PouchDB

active

by Apache Software Foundation (PouchDB community) · since 2012 · also known as Pouch

JavaScript database for browsers and Node that speaks the CouchDB replication protocol.

documentembedded libraryopen source (permissive)mature

Overview

PouchDB is a JavaScript document database modelled on Apache CouchDB: it runs in the browser on IndexedDB, in Node on LevelDB, and replicates bidirectionally with CouchDB or any server that implements the CouchDB protocol. It pioneered the offline-first web app pattern and is still the simplest way to give a web app live sync with a CouchDB backend. Development is slow (the last major release was 9.0 in 2024, now under the Apache umbrella), and the revision-tree model it inherits from CouchDB makes storage grow unless you compact. Newer local-first libraries offer better TypeScript ergonomics and query power.

Strengths & trade-offs

Strengths

  • +Drop-in two-way replication with CouchDB and IBM Cloudant
  • +Runs unchanged in browsers, Node.js, Electron and Cordova
  • +Changes feed makes reactive UIs and background sync straightforward
  • +Mature, battle-tested conflict model with deterministic winners

Trade-offs

  • −Revision history bloats storage unless you compact regularly
  • −Mango queries are limited; no joins or aggregations
  • −Slow release cadence and dated APIs compared with newer local-first libraries

Great for

  • +Offline-capable web apps with a CouchDB backend
  • +Field data collection that syncs when back online
  • +Electron desktop apps needing replication

Think twice for

  • −Relational data with many joins
  • −Large datasets beyond browser storage quotas
  • −Teams not running CouchDB-compatible servers

Capabilities

Native or official first-party support · 6 of 25 tracked

✓Secondary indexes
✓JSON
✓Change data capture
✓In-memory
✓Durable persistence
✓Offline sync
–Transactions
–Joins
–Full-text search
–Vector search
–Geospatial
–Triggers
–Stored procedures
–Materialized views
–TTL / expiry
–Pub/Sub
–Columnar storage
–Compression
–Encryption at rest
–Role-based access
–Time travel
–Branching
–Online schema changes
–Streaming ingest
–Runs in WebAssembly

Scale & consistency

Comfortable data size
Small · ≤ 100 GB
Horizontal scaling
None
Multi-region
No
Transactions
Limited ACID
Consistency
Eventual
Schema
Schemaless
Architecture
Embedded
Query languages
Mango (CouchDB find), MapReduce views

Bounded by browser storage quotas on the client; server-side scale comes from CouchDB.

Deployment

Self-hosted Vendor-managed cloud Serverless Embedded Edge Kubernetes operator

Ecosystem

compatible withCouchDB
apis & protocolsCouchDB HTTP/replication protocol, JavaScript API
client languagesJavaScript

Alternatives to PouchDB

Compare all→
RxDBDocument20.2

Reactive local-first NoSQL database for JavaScript with pluggable storage and replication.

pouchdb vs rxdb →
Apache CouchDBDocument43.6

HTTP/JSON document database built around multi-master replication and offline-first sync.

pouchdb vs apache-couchdb →
Dexie.jsDocument25.8

The most popular IndexedDB wrapper, with live queries and an optional Dexie Cloud sync service.

pouchdb vs dexie →
Couchbase LiteDocument7.9

Embedded JSON document database with SQL++ queries, vector search and sync to Couchbase.

pouchdb vs couchbase-lite →
ElectricSQLRelational30.4

Read-path sync engine that streams partial replicas of Postgres to clients over plain HTTP.

pouchdb vs electricsql →
PowerSyncRelational23.3

Sync engine that keeps on-device SQLite in sync with Postgres, MongoDB, MySQL or SQL Server.

pouchdb vs powersync →

PouchDB FAQ

What is PouchDB?

PouchDB is a document database by Apache Software Foundation (PouchDB community), first released in 2012. PouchDB is a JavaScript document database modelled on Apache CouchDB: it runs in the browser on IndexedDB, in Node on LevelDB, and replicates bidirectionally with CouchDB or any server that implements the CouchDB protocol. It pioneered the offline-first web app pattern and is still the simplest way to give a web app live sync with a CouchDB backend. Development is slow (the last major release was 9.0 in 2024, now under the Apache umbrella), and the revision-tree model it inherits from CouchDB makes storage grow unless you compact. Newer local-first libraries offer better TypeScript ergonomics and query power.

Is PouchDB open source?

Yes. PouchDB is open source. License: Apache License 2.0.

Does PouchDB support ACID transactions?

Partly. PouchDB offers limited ACID guarantees (for example, single-record or single-partition transactions), with eventual consistency.

Does PouchDB scale horizontally?

PouchDB does not scale horizontally; it runs on a single node, so you scale it up rather than out. It is comfortable at small scale (≤ 100 GB).

How can I run PouchDB?

You can self-host it and embed it in your application.

What is PouchDB best for?

PouchDB is a strong fit for offline-capable web apps with a CouchDB backend, field data collection that syncs when back online and electron desktop apps needing replication. Think twice for relational data with many joins.

What are the best alternatives to PouchDB?

Common alternatives to PouchDB include RxDB, Apache CouchDB, Dexie.js, Couchbase Lite and ElectricSQL. The right choice depends on your workload, scale and hosting; WhichDB's smart match ranks them against your requirements.

How popular is PouchDB?

PouchDB ranks #130 of 844 databases on the WhichDB Score (23.2/100), and #15 among document databases. The score combines public adoption signals such as package downloads, GitHub activity, job posts and developer discussion.