Sagdb is a lightweight local JSON database for Node.js, version 2.3.0. It provides a simple key-value store and a table abstraction with CRUD operations, event listeners, and automatic ID generation. The database is file-based, storing data in JSON files. It offers readable JSON output via minify option. Differentiators include built-in dot notation for nested objects, table support with event hooks, and zero external dependencies. Release cadence is irregular; this version is stable but may not see frequent updates.
npm install sagdbNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows basic CRUD operations: set, get, update, delete, and add methods with dot notation support.
Use `const Sagdb = require('sagdb').default;` or switch to ESM `import Sagdb from 'sagdb';`Only store serializable values (objects, arrays, strings, numbers, booleans, null).
Use forward slashes: `folder: 'folder/database'`
No action needed.
Use `const Sagdb = require('sagdb').default;`Only store serializable values; do not store functions.
Ensure the key has a numeric value: `db.set('counter', 0);` then `db.add('counter', 1);`Use forward slashes: `folder: 'data/db'`
No dependency data recorded yet.