# @dstaley/kinto

> An Offline-First JavaScript client for Kinto.

Latest version **12.4.2** (published 2019-06-10) · Apache-2.0 license · 0 weekly downloads

## Install

```sh
npm install @dstaley/kinto
pnpm add @dstaley/kinto
yarn add @dstaley/kinto
bun add @dstaley/kinto
```

## Health

**Score 35/100 (D)** — status: abandoned.

Positive: esm support; no vulnerabilities; high maintenance score.

Warnings: low downloads; no types.

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 12.4.2 |
| Published | 2019-06-10 |
| First published | 2018-11-23 |
| Weekly downloads | 0 |
| License | Apache-2.0 |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Node | >=6 |
| Dependencies | 7 |
| Unpacked size | 593.4 KB |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 331 |
| Author | Mozilla |
| Maintainers | dstaley |
| Keywords | offline, sync, api, rest, kinto, indexeddb |

## Links

- npm: https://www.npmjs.com/package/@dstaley/kinto
- Repository: https://github.com/Kinto/kinto.js
- Issues: https://github.com/Kinto/kinto.js/issues
- npm.io page: https://npm.io/package/@dstaley/kinto

## Dependencies (7)

- [btoa](https://npm.io/package/btoa.md) ^1.1.2
- [uuid](https://npm.io/package/uuid.md) ^3.0.0
- [@babel/core](https://npm.io/package/@babel/core.md) ^7.0.0
- [@babel/runtime](https://npm.io/package/@babel/runtime.md) ^7.0.0
- [@babel/polyfill](https://npm.io/package/@babel/polyfill.md) ^7.0.0
- [@dstaley/kinto-http](https://npm.io/package/@dstaley/kinto-http.md) ^4.7.0
- [@babel/plugin-transform-async-to-generator](https://npm.io/package/@babel/plugin-transform-async-to-generator.md) ^7.0.0

## Alternatives

- [launchdarkly-js-client-sdk](https://npm.io/package/launchdarkly-js-client-sdk.md) — 2.5M weekly downloads
- [@elastic/elasticsearch](https://npm.io/package/@elastic/elasticsearch.md) — 2.1M weekly downloads
- [@c8y/client](https://npm.io/package/@c8y/client.md) — 15.3K weekly downloads
- [@signaldb/maverickjs](https://npm.io/package/@signaldb/maverickjs.md) — 1.7K weekly downloads
- [@bbc/http-transport-cache](https://npm.io/package/@bbc/http-transport-cache.md) — 1.2K weekly downloads

## Recent versions

- 12.4.2 (latest) — 2019-06-10
- 12.2.3-rc.3 — 2018-11-23
- 12.2.3-rc.2 — 2018-11-23
- 12.2.3-rc.1 — 2018-11-23

## README

# Kinto.js

[![Greenkeeper badge](https://badges.greenkeeper.io/Kinto/kinto.js.svg)](https://greenkeeper.io/)

[![Build Status](https://travis-ci.org/Kinto/kinto.js.svg?branch=master)](https://travis-ci.org/Kinto/kinto.js) [![Coverage Status](https://coveralls.io/repos/Kinto/kinto.js/badge.svg?branch=master&service=github)](https://coveralls.io/github/Kinto/kinto.js?branch=master) [![](https://readthedocs.org/projects/kintojs/badge/?version=latest)](http://kintojs.readthedocs.io/)

An [Offline-First](http://offlinefirst.org/) JavaScript client for [Kinto](https://kinto.readthedocs.io/).

> Note: If you're looking for a pure HTTP js client for Kinto, check out [kinto-http.js](https://github.com/Kinto/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:

```js
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

- [Installation](https://kintojs.readthedocs.io/en/latest/installation/)
- [Tutorial](https://kintojs.readthedocs.io/en/latest/tutorial/)
- [Api documentation](https://kintojs.readthedocs.io/en/latest/api/)
- [Extending Kinto.js](https://kintojs.readthedocs.io/en/latest/extending/)
- [Upgrading Kinto.js](https://kintojs.readthedocs.io/en/latest/upgrading/)
- [Known limitations](https://kintojs.readthedocs.io/en/latest/limitations/)
- [Contributing](https://kintojs.readthedocs.io/en/latest/contributing/)

---
_Source: https://npm.io/package/@dstaley/kinto · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
