Version 4.5 Now Available

The Fastest JSON Database for Node.js

Rust-powered core via N-API. Zero dependencies. ACID durability. 2M+ reads per second. Built for production.

2M+
Reads/sec
260K+
Writes/sec
0
Dependencies

Built for Speed & Reliability

Everything you need in a production-ready JSON database, with zero external dependencies.

Multi-Process Safe

OS-level advisory file locking prevents data corruption across multiple processes.

ACID Durability

Group Commit Write-Ahead Logging ensures data integrity with near-zero overhead.

O(1) Indexing

In-memory Map indices provide instant lookups regardless of dataset size.

Multi-Core Parallel

Adaptive parallelism using Rayon automatically scales with your CPU cores.

AES-256 Encryption

Built-in encryption for data at rest. Protect sensitive data without external libraries.

TTL Support

Auto-expire keys after a specified time. Perfect for sessions and caches.

Pub/Sub Events

EventEmitter-style subscriptions to data changes with pattern matching.

Get Started in Seconds

Simple API designed for developer productivity without sacrificing performance.

Installation

# Using bun (recommended)
bun add jsondb-high

# Using npm
npm install jsondb-high
Note: This package builds its native core from source. You need Rust installed.
import JSONDatabase from 'jsondb-high';

// Initialize
const db = new JSONDatabase('db.json');

// Write data
await db.set('user.1', { 
  name: 'Alice', 
  role: 'admin' 
});

// Read data
const user = await db.get('user.1');
console.log(user);

Built for Speed

Benchmarked against real-world workloads. Consistently outperforms alternatives.

1.9M
Read Ops/sec

Near-instant reads with lock-free architecture

340K
Write Ops/sec

Sustained writes with Group Commit WAL

511K
Indexed Ops/sec

O(1) lookups regardless of dataset size

0.5ms
Avg Latency

Sub-millisecond response times

View Full Benchmarks

Choose Your Consistency

Four durability modes to match your performance and safety requirements.

Mode Throughput Latency Durability Window Best For
none ~260k ops/s 0.003ms Manual save only Caching, temp data
lazy ~200k ops/s 0.003ms 100ms Development
batched (Recommended) ~240k ops/s 5ms 10ms Production workloads
sync ~2k ops/s 0.5ms Immediate Financial data