Skip to content

khanfarr/kinto.js

 
 

Repository files navigation

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

About

An Offline-First JavaScript Client for Kinto.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • TypeScript 99.5%
  • JavaScript 0.5%