Fast reads
Memory-mapped pages and a cache-friendly B-tree keep point lookups in the microsecond range, with no locks on the read path.
Burrow is a fast, crash safe embedded database for edge and serverless apps. Open a file, read and write, and ship.
$ cargo add burrow
$ npm install @burrow/db
$ pip install burrow-dbThere is no server to run and no connection string to manage. Your database is a single file next to your code.
Values are plain JSON, bytes or strings. Every write is durable by default, and reads come straight from memory-mapped pages, so the same few lines behave the same on a laptop and at the edge.
import { open } from '@burrow/db';
const db = await open('./app.burrow');
await db.put('user:42', { name: 'Ada' });
const user = await db.get('user:42');
// { name: 'Ada' }Four design choices, each made so Burrow stays out of your way.
Memory-mapped pages and a cache-friendly B-tree keep point lookups in the microsecond range, with no locks on the read path.
A write-ahead log and checksummed pages mean a power cut or killed process never leaves a half-written database behind.
The core compiles to under 400 KB, uses no background threads, and starts in well under a millisecond, which suits cold starts.
Everything runs in process against a local file. No network, no account, no service to be down when you need it.
Burrow against two generic embedded alternatives on the same machine and the same data.
A few of the projects that keep their state in a Burrow file.
The quick start walks through install, reads, writes and transactions, with a short example for each.