Fully in-process
Single-file storage, WAL + tiered segments, group-commit batching, and an exclusive-open lock so two engines can't corrupt one data dir. Copy the file, ship the app.
production-candidate · MIT
HakoDB is an embedded document database with native vector + graph search and multi-plane sync, written in Rust. It runs fully in-process like SQLite — no server, no daemon — and replicates over LAN mesh or a cloud hub when you need it.
use hakodb::config::HakoConfig;
use hakodb::engine::Hako;
let db = Hako::open("./data", HakoConfig::default())?;
db.put("users", "alice", &doc)?;
let found = db.query(
Query::new("users").where_filter("age", Operator::Gte, 18.into())
)?;
The zero-deploy footprint of an embedded engine, with the query power of a document cloud.
Single-file storage, WAL + tiered segments, group-commit batching, and an exclusive-open lock so two engines can't corrupt one data dir. Copy the file, ship the app.
Filters, ordering, cursors, projections, count/sum/avg — plus composite, full-text and secondary indexes built in the background.
HNSW nearest-neighbor, hybrid text+vector search with admission filters, and BFS/Dijkstra traversal over document references and weighted edge collections.
Projections decode straight from memory-mapped bytes. Dotted-path pulls skip whole-subtree decode — ~18× on nested docs.
ChaCha20-Poly1305 over WAL and segments, per-collection keys — with fail-closed sync guards so encrypted rooms never leak plaintext.
Subscribe to any query; deltas stream over Tauri events, FFI callbacks, or channels. Reactive UIs without polling.
Atomic batches and serializable snapshot-isolation transactions with conflict-aware commit validation.
Local-first always. Replication is opt-in, per deployment.
mDNS + broadcast discovery, room-key isolation, WAL-delta replication across peers. No server on the network.
hakodb · net-sync
Offline-first clients converge through a WebSocket hub: 5 ms micro-batched writes, room-scoped storage, group admission with API keys.
hakocloudserver
A flat C ABI (hakodb.h) under everything. Pick the SDK for your language — each lives in its own repo.
| Package | For | Install |
|---|---|---|
| hakodb | Rust | cargo add hakodb |
| hakogo | Go (cgo) | go get github.com/hakodb/hakogo |
| @hakodb/client | Node.js + Bun | npm i @hakodb/client |
| hakopascal | Lazarus / Free Pascal | hakodb.dll + Hako.pas |
| hakotauri + @hakodb/tauri | Tauri apps | cargo + npm |
| hakocli | Terminal + REPL | cargo install --git https://github.com/hakodb/hakocli |
| hakobackend | HTTP gateway + TS client | see releases |
cargo add hakodb
# query, sync, encrypt — see README
Core README
npm i @hakodb/client # JS/TS
go get github.com/hakodb/hakogo # Go
All repos
MIT licensed. One org, one engine, a growing set of open-source tools.
Explore the org