jsorm
This library provides an interface to APIs following the JSONAPI spec. Though we're not striving for 1:1 compatibility with Active Record, you'll see it's the same basic usage, from scopes to error handling.
Written in Typescript but works in plain old ES5 as well. This library is isomorphic - use it from the browser, or from the server with NodeJS.
Sample Usage
Please see our documentation page for full usage. Below is a Typescript sample:
.where .page2.per10 .sort'name' .includes"pets" .all console.lognames // ['Joe Blow', 'Joe DiMaggio', ...] console.logdata.pets.name // "Fido"