DEV Community

Cover image for # πŸš€ From Smart JSON to Armored JSON on Steroids β€” Introducing WiseJSON
Pavel
Pavel

Posted on

# πŸš€ From Smart JSON to Armored JSON on Steroids β€” Introducing WiseJSON

πŸ”₯ I'm super proud to present my project WiseJSON!

This is a blazing-fast embedded JSON database for Node.js. It's grown from a simple engine to a robust local NoSQL powerhouse. If you need a lightweight, safe, and dependency-free database for local storage, caching, or logs β€” this is it.


Why is WiseJSON special?

If you're looking for a local JSON engine that:

βœ… Inserts 10,000+ documents in seconds

⚑ Handles batch inserts in ~300ms

πŸ›‘ Survives crashes with WAL + checkpoint β€” no data loss

⏳ Supports TTL, indexes, events, multi-collection

🧩 Has zero native dependencies β€” pure Node.js

πŸ“¦ And does all that in a few lines of code...

πŸ‘‰ You should absolutely try it!


Quick Example

const WiseJSON = require('wise-json-db');
const db = new WiseJSON('./db-folder', { checkpointIntervalMs: 500 });
await db.init();

const users = await db.collection('users');
await users.insert({ name: 'Alice', email: 'alice@example.com' });
Enter fullscreen mode Exit fullscreen mode

What’s New?

πŸ’₯ Performance boost:

Old version: ~1.3 seconds per insert

Now: ~300ms for same workload


Tested on

  • OS: Windows
  • Node.js: 18+, 20+
  • Stress tests: batch insert, TTL, export/import, indexes, crash-recovery

Try it now:


πŸ’¬ Dive into the source if you're curious about WAL, segmented checkpoints, or TTL. Everything's written with care and fully open.

Thanks for the support & feedback πŸ™Œ

Top comments (0)