Multi-process safe, Rust-powered JSON database. Built for Node.js applications that demand high throughput and near-zero latency.
import { JSONDatabase } from 'jsondb-high';
// High-Performance Hybrid Mode
const db = new JSONDatabase('./data.json', {
// Acid-Compliant Durability
durability: 'batched',
walFlushMs: 10,
// Multi-Process Safety
lockMode: 'exclusive',
// Auto-Parallelism (Rayon)
parallel: true
});
await db.set('user.1', { id: 1, role: 'admin' });