JSPM

  • Created
  • Published
  • Downloads 267
  • Score
    100M100P100Q110838F
  • License Apache-2.0

An Offline-First JavaScript client for Kinto.

Package Exports

  • kinto
  • kinto/lib/collection

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (kinto) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

Kinto.js

Build Status Coverage Status

An Offline-First JavaScript client for Kinto.

Note: If you're looking for a pure HTTP js client for Kinto, check out kinto-http.js.

The idea is to persist data locally in the browser by default, then synchronizing them with the server explicitly when connectivity is guaranteed:

const kinto = new Kinto({remote: "https://kinto.dev.mozaws.net/v1/"});
const posts = kinto.collection("posts");

posts
  // Create and store a new post in the browser local database
  .create({title: "first post"})
  // Publish all local data to the server, import remote changes
  .then(_ => posts.sync());

Documentation