Registry / database / jembadb

jembadb

JSON →
library5.1.7jsnpmunverified

JembaDb is a tiny, embeddable, append-only JSON database for Node.js v16.16.0+. Current version 5.1.7, actively maintained. Unlike full-featured databases, it focuses on simplicity: append-only logging and in-memory queries. Ideal for small projects, configuration, or logging scenarios where a full database is overkill.

npm install jembadb
INSTALL
IMPORT
SIG · JEMBADB
J
jembadb
databasejavascriptv5.1.7
Install
Import
Disk
Pass rate
0/ 6
Env Coverage0 / 6
glibc
1822
musl
1822
Install & Compatibility
Where this runs
tested against v? · npm install
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
node 18226 runs
build_error
glibc
node 18226 runs
build_error
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

default
import JembaDb from 'jembadb'
const JembaDb = require('jembadb')
ESM-only package, no CJS support.
JembaDb
import JembaDb from 'jembadb'
import { JembaDb } from 'jembadb'
Default export only.
type
import type JembaDb from 'jembadb'
import JembaDb from 'jembadb'
Use `import type` for TypeScript type-only imports.

Shows basic usage: initialize, insert, query, and close.

import JembaDb from 'jembadb'; const db = new JembaDb(); await db.insert({ id: 1, name: 'test' }); const results = await db.query({ id: 1 }); console.log(results); await db.close();
Debug
Known issues
breakingCJS require() is not supported; use ESM import.
fix
Switch to ESM with `import JembaDb from 'jembadb'`.
affects: >=5.0.0
gotchaDatabase is append-only; updates mean appending new entries, not in-place modification.
fix
Use `query()` to find latest entry or implement versioning.
affects: *
deprecatedOld `find()` method replaced by `query()`.
fix
Replace `db.find(...)` with `db.query(...)`.
affects: >=5.0.0 <5.1.0
breakingNode.js >=16.16.0 required.
fix
Upgrade Node.js to 16.16.0+.
affects: >=5.0.0
Errors
Common errors & fixes
TypeError: JembaDb is not a constructor
Using CommonJS require with an ESM-only package.
fix
Use `import JembaDb from 'jembadb'` or set `"type": "module"` in package.json.
ERR_REQUIRE_ESM
Attempting to require the package in a CommonJS file.
fix
Switch to ESM: rename file to .mjs or add `"type": "module"`.
Cannot find module 'jembadb'
Package not installed or wrong import path.
fix
Run `npm install jembadb` and verify import path.
Upgrade
Version history
5.1.7latest on npm
Audit
Dependencies

No dependency data recorded yet.

Agent activity
6 hits · last 30 days
node
6
Resources
jembadb — npm install jembadb · libregistry