talira

The JavaScript database that syncs

open sourceApache-2.0self-hostablefree

Apache PouchDB is an open-source JavaScript document database inspired by Apache CouchDB and designed to run in the browser as well as in Node.js. Apps store data locally so they keep working offline, then replicate with CouchDB and compatible servers when back online, keeping each user's data in sync wherever they next log in. It speaks CouchDB's API (put, get, changes feeds, replication), is about 46 KB gzipped as a script tag or installs from npm, and has pluggable storage adapters, including a nodesqlite adapter on Node.js's built-in SQLite. It is incubating at the Apache Software Foundation.

Problems it solves

  • a web app that works offline and syncs with the server when back online
  • sync data from the browser to CouchDB
  • store JSON documents in the browser with a real database API
  • keep a user's data in sync across their devices
  • listen for changes to local data and update the UI
  • an offline-first database for a Node.js or Electron app

Features

  • CouchDB-compatible API
  • bidirectional replication with CouchDB and compatible servers
  • changes feed
  • runs in browsers and Node.js
  • pluggable storage adapters including nodesqlite
  • 46 KB gzipped

Capabilities

Takes pluginsplan not known
Has official SDKsplan not known

Alternatives

The same job

These do what PouchDB does.

  1. RxDB A fast, local-first, reactive database for JavaScript applications

Compare PouchDB with the top 3