A simple ORM wrapper for node-json-db, providing decorator-based schema definitions, validators, auto-increment primary keys, and default values. Current version 0.2.14. Release cadence is irregular, with limited recent updates. Key differentiators: lightweight, uses decorators for TypeScript, integrates tightly with node-json-db, and includes built-in validation and default value support.
npm install json-db-ormNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Demonstrates schema definition, auto-increment primary key, field validation, default value, and saving a record.
Add import 'reflect-metadata' at the top of your entry file.
Set Store.root immediately after imports, before any class instantiation.
Consider migrating to a more actively maintained library.
Use @Primary() decorator for KeySchema classes.
npm install node-json-db
Add Store.root = 'path/to/data' before any save() calls.
Add import 'reflect-metadata' at the top of your entry file.