Beyond All Reason Database (bar-db) is a lightweight, typed database library for Node.js and browser environments, currently at v6.4.1. It provides a simple key-value store with optional schema validation, focusing on ease of use and TypeScript integration. Key differentiators include zero dependencies, built-in JSON-based persistence, and support for async/await patterns. The library is actively maintained with a monthly release cadence.
npm install bar-dbNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Initialize a bar-db database, insert, retrieve, delete a record, and list keys.
Use await or .then() on all Database method calls. For sync usage, stick to v5.x.
Replace `import Database from 'bar-db'` with `import { Database } from 'bar-db'`.Pass an absolute path or use path.resolve().
Remove calls to .save() and .load(); .init() handles persistence automatically.
Switch to import { Database } from 'bar-db' and ensure your project uses ESM.Provide an absolute path or ensure the parent directory exists before init.
No dependency data recorded yet.