Respect Your Data

Give your data the treatment it deserves with a framework-agnostic, datastore-agnostic JavaScript ORM built for ease of use and peace of mind. Works in Node.js and in the Browser.

Get Started

DS is a constructor function and produces instances of the core data store. The data store is the in-memory cache that manages your resources and your data.

Quick Start

npm install --save js-data js-data-http or bower install --save js-data js-data-http.

var store = new JSData.DS();

// register and use http by default for async operations
store.registerAdapter('http', new DSHttpAdapter(), { default: true });

// simplest model definition
var User = store.defineResource('user');

User.find(1).then(function (user) {
  user; // { id: 1, name: 'John' }


Asynchronous Methods

Synchronous Methods

Updated less than a minute ago


Suggested Edits are limited on API Reference Pages

You can only suggest edits to Markdown body content, but not to the API spec.