Skip to content
WeftKitBeta
Modules/WeftKitMD
Custom (no direct equivalent)

WeftKitMD

Markdown Content Database

Purpose-built Markdown database with AST parsing, frontmatter indexing, full-text search, version history, cross-document linking, and rendering.

~18.6 μs

BM25 search (1K documents)

Markdown ASTFrontmatter IndexingFull-Text SearchVersion HistoryCross-linking
Features

Key Features

What makes WeftKitMD stand out.

Markdown AST Parsing

Full CommonMark + GFM parsing into typed AST. Query documents by structural elements (headings, code blocks, links, images).

Frontmatter Indexing

Automatic YAML/TOML frontmatter extraction and indexing. Filter documents by any frontmatter field with rich query language.

Full-Text Search

Inverted index with BM25 ranking, stemming, fuzzy matching, and phrase search. Highlighted excerpts with context.

Version History

Every document change stored as an immutable version. Diff between versions. Restore to any historical state.

Cross-Document Links

Bidirectional link tracking. Backlinks index. Broken link detection. Wiki-style [[page]] syntax support.

Server-Side Rendering

Built-in renderer to HTML, PDF, and plain text. Syntax highlighting for code blocks. Math rendering via KaTeX.

Performance

Performance Targets

Real numbers from Criterion benchmarks on reference hardware.

Full-text search< 5 ms for 1M documents
Document insert> 10K docs/sec
Memory footprint~16 MB base
Compatibility

Wire Protocol

WeftKitMD supports the REST API protocol. Your existing tools just work.

curlhttpieAny HTTP clientOpenAPI-generated clients
Code Example

Get Started in Seconds

Add WeftKitMD to your Rust project and start querying.

markdown.rs
rust
use weftkitmd::prelude::*;

// Open or create a database
let db = Database::open("my_app.db")?;

// Use the module API
let result = db.query("SELECT * FROM users WHERE active = true")?;

for row in result.rows() {
    println!("{:?}", row);
}
Use Cases

Where to Use It

1

Developer documentation portals

2

Knowledge management systems

3

Blog and content platforms