Releases

MoltenDB, Pure-Rust JSON Document Database, Hits Alpha With WebAssembly Support

A solo Rust dev shipped a JSON document database that runs the same query engine in your browser and on your server, with zero main-thread blocking via WASM and OPFS.

Nina Kowalski2 min read
Published
Listen to this article0:00 min
Share this article:
MoltenDB, Pure-Rust JSON Document Database, Hits Alpha With WebAssembly Support
Source: k3-production-bucket.s3.amazonaws.com

Juggling a full-time job and personal life, Maximilian Both still found time to build something the Rust ecosystem rarely sees: a JSON document database that compiles to both a native server binary and a WebAssembly module, sharing the exact same query engine and log format across both targets. Both announced MoltenDB's alpha release on March 22, calling it his "first major open-source project."

The core technical bet is parity. Most local-first storage solutions treat the browser and the server as fundamentally different environments, which means duplicated logic, diverging behavior, and subtle bugs at the seams. MoltenDB collapses that gap. "This means you run the exact same query engine and use the exact same log format in your browser as you do on your backend," Both wrote in the announcement.

The browser runtime goes further than in-memory storage. MoltenDB runs as a full document store inside a Web Worker using OPFS, the browser's Origin Private File System, which keeps all database I/O off the main thread entirely. On the server side, the native Rust binary is described as "built for speed and security," though Both has not yet published benchmarks or detailed security documentation at the alpha stage. Querying in both environments uses a GraphQL-style interface over plain JSON, with Both teasing "Powerful Query Features" in the roadmap without specifying the full query surface in the current release.

Getting hands on it requires nothing if you just want to poke at the WASM build: a live demo runs directly on StackBlitz. For the server, `cargo install moltendb` drops the binary locally, or you can pull a pre-built artifact from the releases page on the GitHub repo.

AI-generated illustration
AI-generated illustration

Both is explicit about the caveats. The alpha disclaimer reads: "APIs might change, and it is not recommended for production just yet. But I am actively looking for developers to test it, break it, and provide feedback!" As a solo developer, he described his development pace as deliberate, writing that he is "moving at a sustainable pace to keep the architecture clean." The roadmap exists but specifics remain unpublished; what Both did commit to is a strict anti-bloat philosophy, stating flatly, "To keep MoltenDB incredibly fast and lightweight, I am strictly avoiding bloat."

For anyone building local-first Rust applications that need to straddle browser and server, MoltenDB is worth watching, particularly as the OPFS-based persistence model matures past alpha and the query language specification gets documented in full.

Know something we missed? Have a correction or additional information?

Submit a Tip

Never miss a story.
Get Rust Programming updates weekly.

The top stories delivered to your inbox.

Free forever · Unsubscribe anytime

Discussion

More Rust Programming News