dbdjs.db is a JSON-based database library for Node.js, optimized for speed and ease of use, commonly used with Discord bots (dbd.js, aoi.js). Version 2.0.2 is the current stable release. It provides a simple key-value store with tables, file-based persistence, in-memory caching, and configurable save intervals. Types included. Alternatives like enmap or quick.db offer similar functionality.
npm install dbdjs.dbNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Demonstrates creating a database instance, connecting, setting, getting, and deleting data.
Listen for the 'ready' event before performing read/write operations.
Set extension option to '.json' if you prefer JSON files.
Adjust maxFileData or manage table sizes.
Increase cache size or use force option for critical data.
Run 'npm install dbdjs.db' in your project directory.
Ensure you call 'new Database(...)' and wait for the 'ready' event.
Add the table to the 'tables' array when creating the Database instance.
No dependency data recorded yet.