Jsorm is an isomorphic JavaScript ORM for JSON:API compliant APIs, version 1.3.22. It provides an Active Record-like pattern for fetching, querying, and persisting data, supporting scopes, pagination, sorting, includes, and error handling. Written in TypeScript and compatible with ES5+ environments including browsers and Node.js. Unlike generic HTTP clients, JSORM offers models with decorators (Attr, HasMany, BelongsTo) and chainable query methods, making API interactions declarative. It is part of the jsonapi-suite ecosystem.
npm install jsormNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Defines models for Person and Pet, then queries for people filtered, paginated, sorted, and including related pets.
Set 'experimentalDecorators': true in tsconfig.json
Add @Model() decorator to the class that extends JSORMBase.
Use .includes('related') instead of .include('related').Use named imports: import { JSORMBase } from 'jsorm'.Use @Attr() not @Attr.
Evaluate using other JSON:API clients like 'jsonapi-client' or 'kitsu'.
Add @Model() decorator to ApplicationRecord class.
Ensure the model class extends JSORMBase and static baseUrl is set.
Use named import: import { JSORMBase } from 'jsorm'.Set 'experimentalDecorators': true in tsconfig.json.
No dependency data recorded yet.