Neato Polyester Material

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

    14.0.2 • Public • Published

    Kinto.js

    Greenkeeper badge

    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");
    
    // 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

    Install

    npm i kinto

    DownloadsWeekly Downloads

    26

    Version

    14.0.2

    License

    Apache-2.0

    Unpacked Size

    1.26 MB

    Total Files

    32

    Last publish

    Collaborators

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