RenganDB is a Node.js JSON/YAML database module with file-locking via proper-lockfile and live file watching via chokidar. Version 1.0.7 offers two engines: a fast native flat-key mode (default) and a deeply nested path mode using lodash. It supports JSON, YAML, and YML formats with auto-detection. The library is designed for small-scale projects needing simple persistent storage with basic concurrency protection. It is not suitable for high-throughput or distributed scenarios.
npm install rengandbNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Demonstrates basic CRUD operations with default and lodash engines, including init, set, get, has, delete, and fetchAll.
Always decide on the engine before saving data and stick with it. If you must switch, manually transform the data file.
If you need nested objects, enable useLodash: true. Or use unique flat keys without dots or arrays.
Use import syntax or configure your project for ESM (type: 'module' in package.json).
Use db.get(key) consistently.
Use: import Database from 'rengandb';
Ensure the directory exists before calling Database.init(). Use mkdirp or manually create the folder.
Validate the JSON file with a linter or undo manual changes. The library does not auto-repair corrupt JSON.
Run: npm install rengandb proper-lockfile chokidar. For lodash engine, also install lodash.