node-idb

Local documents.
SQL-style queries.

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
A navy node-idb storage object beside a stack of softly colored document tiles
01

Document-friendly

Store JavaScript objects without giving up predictable local persistence.

02

Query-ready

Filter, sort, project and index data with practical SQL-backed behavior.

03

Node-native

Designed for server tools, desktop apps and focused local-first workflows.

Start small

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.