aof-db
v2.7.0
Published
NEDB — hash-chained, time-traveling, bi-temporal embedded database with Rust native core. SQL, Redis, MongoDB adapters. Causal Write Provenance. RESP2 wire protocol.
Maintainers
Readme
63,400 writes/sec 1,340,000 point reads/sec one fsync per batchaof-db is a tiny, blazing-fast, in-process datastore. No daemon. No schema migrations. No 400 MB of dependencies. Just import it and start flooding it with data — it keeps up.
Why people can't shut up about it
- 🏎️ Fast where it counts. Append-only + group-commit: one
fsyncper batch, not per record. Bigger batches get cheaper per item. Throughput goes up under load, not down. - 🪶 Featherweight. In-process, near-zero footprint. Boots instantly, runs in memory, persists when you say so.
- 🧷 Durable, not fragile. Every write is hash-chained and the log replays clean on open — crash-safe without the ceremony.
- 🚀 Scales with your ambition. Same engine family as crypto-database — flip on the content-addressed DAG the day you need time-travel and tamper-evidence. Start fast, grow powerful.
Install (10 seconds, tops)
npm install aof-db # pip install aof-db # cargo add aof-dbimport { NedbCore } from "aof-db";
const db = new NedbCore();
console.time("100k");
for (let i = 0; i < 100_000; i++) db.put("events", String(i), JSON.stringify({ t: Date.now(), i }));
db.flush(); // one durable group-commit for the whole burst
console.timeEnd("100k"); // …go on, time it.Built for
Edge & embedded · high-throughput event logging · local-first apps · game state · CLIs · anywhere "just make it fast" beats "stand up a server."
Note: aof-db was previously published as
nitrodb. The rename aligns the public package name with what it is — an append-only-file (AOF) fast-path distribution of NEDB. Same engine, same speed, new name.
aof-db is a distribution of the NEDB engine, tuned for speed + simplicity (benchmarks measured on commodity hardware — yours will vary). Engine development: Eth-Interchained/nedb. © Interchained LLC.
