A lightweight ORM for interacting with JSON Bin as a database, simplifying CRUD operations on JSON Bin collections. Current stable version is 1.1.4. It provides schema validation, query-based find/update, and record-level CRUD. Differentiators include a simple API similar to traditional ORMs, built-in schema enforcement, and zero external dependencies. The package is maintained but has a small community. Currently supports only CommonJS (require), with no ESM exports, limiting use in modern Node.js environments.
npm install jsonbin-ormNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows how to initialize bin, create, find, update, and delete records using the ORM.
Use await or .then() when calling any bin method.
Ensure updated fields match schema manually or use createNew for validated inserts.
Pass exact values to find(). For partial matches, consider fetching all records and filtering.
Implement your own retry logic or delay between requests.
Pin version in package.json to avoid breaking changes on minor updates.
Use const { bin } = require('jsonbin-orm'); then new bin({...}).Ensure you call new bin(config) and store the instance.
Add the field to the schema or remove it from the data object.
Reduce request frequency or implement exponential backoff.
No dependency data recorded yet.