Document-friendly
Store JavaScript objects without giving up predictable local persistence.
A compact SQLite-backed document store for Node.js. Keep a familiar document API while using durable local storage, indexes, transactions and expressive queries.
npm install node-idbView on npm
Store JavaScript objects without giving up predictable local persistence.
Filter, sort, project and index data with practical SQL-backed behavior.
Designed for server tools, desktop apps and focused local-first workflows.
import { createDatabase } from 'node-idb';
const db = await createDatabase('./app.db');
const products = db.collection('products');
await products.insert({ name: 'Notebook', price: 12 });
const affordable = await products.find({ price: { $lt: 20 } });See the package README for the current API, examples and supported Node.js versions.