BackboneORM is a polystore ORM that provides a consistent interface for database operations across MongoDB and SQL databases (PostgreSQL, MySQL) as well as in-memory and HTTP stores. Version 0.7.14 is the latest stable release. Key differentiators include Node.js-style callbacks and streams, MongoDB-like query language, REST controller for browser search bar queries, CouchDB-inspired paging, JSON-rendering DSL, automatic ISO8601 date parsing, and versioning support via BackboneMongo. Released under MIT license with weekly or monthly updates via npm.
npm install backbone-ormNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
This quickstart demonstrates setting up a memory store, defining a model, saving a new project, and querying for it using callbacks.
Ensure Backbone is installed and available globally via script tag or bundler (e.g., `require('backbone')` before `require('backbone-orm')`).Use a promisify utility (e.g., `util.promisify` from Node.js) or wrap callbacks manually.
Ensure that no other library overrides Backbone.sync or Backbone.history before using BackboneORM.
Use explicit `{id: {$in: [1,2,3]}}` instead of `{$ids: [1,2,3]}` for portability.Always handle stream errors and backpressure; consider using `$each` batching or cursor with limits.
Install @types/backbone-orm if available or create custom type declarations.
Add `require('backbone')` or include Backbone script tag before loading BackboneORM.Run `npm install backbone-orm` and ensure the import is correct: `require('backbone-orm')`.Ensure Model is defined via `model = Model.extend({...})` and store is connected.Create a store instance (e.g., `new Store({ type: 'memory' })`) and call `store.connect()`.No dependency data recorded yet.