kinto
TypeScript icon, indicating that this package has built-in type declarations

15.0.0 • Public • Published

Kinto.js

Greenkeeper badge

Build Status Coverage Status

An Offline-First JavaScript client for Kinto.

Note: This library also includes a pure JS HTTP client for Kinto. You can learn more in the docs.

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://demo.kinto-storage.org/v1/" });
const posts = kinto.collection("posts");

// Create and store a new post in the browser local database
await posts.create({ title: "first post" });

// Publish all local data to the server, import remote changes
await posts.sync();

Documentation

Package Sidebar

Install

npm i kinto

Weekly Downloads

158

Version

15.0.0

License

Apache-2.0

Unpacked Size

1.87 MB

Total Files

66

Last publish

Collaborators

  • n1k0
  • ametaireau
  • michielbdejong
  • natim
  • leplatrem
  • dstaley
  • magopian
  • glasserc