FrankenSQLite

SQLite rewritten in Rust with page-level concurrent writers

Image 1 of 2: Illustration of a Frankenstein monster assembling a database engine at a workbench

An independent reimplementation of SQLite that replaces the single-writer lock with page-level MVCC and serializable snapshot isolation. Compatibility mode over standard SQLite files is the live path today, while native mode and RaptorQ durability remain partial.

Trade-offs

  • Versioning sits at page level: row-level would break the file format and need VACUUM, table-level would conflict on every write to a shared table. Writers to the same page still abort and retry.
  • The engine stays in safe Rust, with unsafe allowed only where mmap, shared memory and the optional C ABI need it.
  • What runs is kept apart from what is designed: compatibility mode is the live path, and native mode and ECS are design plus partial work.

Q&A3

Not yet: the dialect is a large and growing subset, and parser coverage exceeds full execution parity today.

Reviews

Loading reviews

    More from the team

    • Beads RustLocal issue tracker in the repo: SQLite plus JSONL for git
    • cassTUI and CLI search over local coding agent session history
    • franken_ocrPure-Rust CPU-only OCR engine for a few hand-ported vision models
    • franken_accountingEvidence-native double-entry accounting system of record in Rust

    More in Database internals

    See all 29 →
    • PaganelData migration engine that verifies the destination down to the row
    • FeOxDBEmbedded key-value store in Rust with write-behind durability
    • SNKVEmbedded key-value store built directly on SQLite's B-tree
    • RuvioRust key-value server that speaks RESP, with locks and queues as commands
    • musqlSQLite-compatible SQL engine on columnar storage and a JIT
    • EgresPostgres-compatible database in Zig for heavy, multi-tenant workloads

    More in SQLite

    See all 22 →
    • MnemosyneLocal-first agent memory in one SQLite file, with evidence on every record
    • FusionalySelf-hosted web analytics in one SQLite file
    • ForemergeCoordination protocol that catches intent conflicts between coding agents
    • roam-codeLocal code index and checks that coding agents can query
    • Crap CMSHeadless CMS in one Rust binary, with Lua hooks and a gRPC API
    • Finance GuruHousehold finance engine where typed code does the math

    More in Performance

    See all 47 →
    • blitcpFile copier that reads in disk order, dedupes and streams over raw SSH
    • EntrolyLocal context layer that picks what coding agents send to the model
    • BigMoeOnEdgeEngine that streams MoE experts from flash to run models larger than memory
    • AntirionAI gateway in one Rust binary, with the admin console built in
    • PXALLM server tuned for Tesla P100, V100 and GTX 10-series GPUs
    • GlydLossless compression that keeps bf16 weights and KV cache smaller on the GPU