oxios-markdown
Markdown knowledge management library — ported from files.md by Artem Zakirullin. Licensed under MIT — see LICENSE-THIRD-PARTY.
This crate provides core functionality for managing a knowledge base
stored as plain .md files:
- VirtualFs — sandboxed filesystem with path traversal protection
- BacklinkIndex — bidirectional link tracking between notes
- Merge — LCS-based conflict resolution
- Parser — text processing utilities (similarity, links, headings)
Example
use oxios_markdown::VirtualFs;
use std::path::PathBuf;
let fs = VirtualFs::new(PathBuf::from("/path/to/knowledge")).unwrap();
fs.write("brain", "Rust.md", "# Rust\n\nSee [Ownership](brain/Ownership.md)").unwrap();
let content = fs.read("brain", "Rust.md").unwrap();