A micro JavaScript ORM memory store inspired by Laravel Eloquent, version 4.0.3. It provides in-memory data storage with automatic indexing of primary and foreign keys for fast selection of models and relations. Supports relation types: BelongsTo, HasMany, HasManyThrough. Lightweight, designed for Node.js and modern browsers. Not actively maintained (last release 2020). Suitable for small-scale or prototyping applications where database persistence is not required.
npm install jeloquentNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Defines three models (User, Team, Comment) with Eloquent-style relations, creates an in-memory database store, inserts data, and retrieves a record.
Use for prototypes or non-persistent contexts; implement persistence manually if needed.
Use import statements or upgrade to Node >= 13.2 with type: 'module' in package.json.
Ensure uniqueness of primary key values or use auto-generated temporary keys.
Consider alternatives if you need active maintenance or newer features.
Ensure your project uses ES modules (e.g., set type: 'module' in package.json) and use import syntax.
Always use new when creating instances of your model classes, e.g., new User() or User.insert() for bulk.
Pass a primary key value or allow auto-generated keys (temporary _N keys).
No dependency data recorded yet.