talira

A minimalist JSON storage service with synchronisation and sharing

open sourceApache-2.0self-hostablefree

Kinto is an open source, self-hostable JSON storage service from Mozilla: an HTTP API in front of a database that stores records in buckets and collections, with fine-grained permissions for sharing them between users, optional JSON Schema validation, and synchronisation through revision numbers and change polling. Its JavaScript client uses IndexedDB to work offline and sync when online, and data can be encrypted on the client. Plugins add history, file attachments and other authentication, and a web admin UI manages content. Mozilla uses it in Firefox to deliver frequently changed settings such as blocklists, experiments and search engine lists.

Problems it solves

  • a backend to store JSON for my single-page app without writing server code
  • sync app data between a user's devices and keep it working offline
  • share records between users with per-object permissions
  • push frequently changing settings or blocklists to our clients
  • a self-hosted JSON store with an HTTP API and an admin UI

Features

  • HTTP API for JSON records in buckets and collections
  • fine-grained permissions and groups for sharing data
  • synchronisation with revision numbers and change polling
  • optional JSON Schema validation
  • offline-first JavaScript client on IndexedDB, and a Python client
  • client-side encryption
  • plugins for history, file attachments and authentication
  • web admin UI
  • pluggable storage, cache and permission backends
  • built-in monitoring

Limitations

  • Doesn't resolve sync conflicts automatically: it provides concurrency control and change polling, and clients handle conflicts1

Alternatives

The same job

These do what Kinto does.

  1. Apache CouchDB Seamless multi-primary syncing database with an intuitive HTTP/JSON API, designed for reliability
  2. PocketBase Open Source backend in 1 file
  3. Appwrite The open-source cloud for agents & devs
  4. Directus The backend for your whole team
  5. Supabase The Postgres development platform
  6. InstantDB An open-source realtime backend with relational queries, auth, permissions, storage and presence

Compare Kinto with the top 3