We rewrote the core engine in Rust to eliminate the JavaScript garbage collection overhead and file system bottlenecks.
In-memory throughput for sequential writes. 125,000x lower latency for updates compared to v2.
Data is appended to a Write-Ahead Log before memory confirmation. Crash-proof design.
No SQL. No schemas (unless you want them). Just object manipulation with persistence.
const db = new JSONDatabase('data.json', {
wal: true, // Durability enabled
indices: ['email']
});
// Atomic Write
await db.set('users.alice', { id: 1, bal: 500 });
// O(1) Read
const user = await db.findByIndex('email', 'alice@co');