An ActiveRecord-like ORM for AngularJS built on LokiJS. Version 3.0.19 is the latest stable release. Designed specifically for Rails apps using Active Model Serializers, it provides client-side model definitions with relationships (hasMany, belongsTo), indices, default values, and computed attributes. It uses a single-source-of-truth approach for records and supports snake_case to camelCase conversion. The library is unmaintained since 2017, incompatible with Angular 2+ and modern Node.js.
npm install angular_record_storeNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Defines a Dog model with relationships and default values, registers it in an AngularJS module.
Migrate to a modern ORM like ngx-orm or use Angular services with a database library.
Use the new module name: angular.module('myApp', ['angular_record_store'])Add lokijs to your project: npm install lokijs
Always provide singular and plural in your model definition.
Use $http service from AngularJS instead of RestfulClient.
Use different collection names or isolate your apps if needed.
Ensure 'angular-record-store' is listed in your module dependencies and inject BaseModel correctly.
Add <script src='lokijs.min.js'></script> before angular-record-store script.
Use require() or configure your bundler to handle CommonJS modules.