All smolbren output is single-line JSON written to stdout. Pipe to
jq for
human-readable formatting: smolbren search "rust async" | jq.Install
smolbren is distributed as a Rust crate. You need the Rust toolchain (edition 2024, rustc 1.85+) and Confirm the binary is available:
protoc on your PATH before running cargo install — see the Installation guide for full prerequisites.Register your vault
Tell smolbren where your Markdown files live by registering the directory as a named vault. The You’ll get a JSON confirmation:List all registered vaults at any time:
--default flag makes it the vault used by all subsequent commands. If this is the first vault you register it becomes the default automatically.Build the index
Index your vault. The first run scans every smolbren prints an
To rebuild the index from scratch (e.g. after bulk renames):
.md file; subsequent runs are incremental — smolbren compares modification times, file sizes, and content hashes to skip unchanged files.IndexStats object when it finishes:| Field | Description |
|---|---|
scanned | Total .md files found in the vault |
unchanged | Files skipped because mtime/size and content hash matched |
added | New notes inserted into the index |
updated | Existing notes whose content changed |
removed | Notes deleted from disk and removed from the index |
edges | Total resolved edges in the graph after indexing |
unresolved_edges | Edges whose wikilink target couldn’t be found |
duration_ms | Wall-clock time for the full index run |
Search and query
Full-text search with BM25 — results are ranked by relevance score:Narrow results to a specific note type with Graph queries with Cypher — traverse typed relationships between notes:Follow edges between node types:Fetch outgoing and incoming links for a specific note:Inspect the discovered ontology — all node types and edge types with counts:
--type:Next steps
Installation
Full prerequisites, protoc setup, and platform-specific install instructions.
CLI Reference
Every subcommand, flag, exit code, and JSON output shape documented in detail.