Self-hosted service
apache/couchdb avatar
apache/couchdb

Apache CouchDB: replication you can watch happen

Seamless multi-primary syncing database with an intuitive HTTP/JSON API, designed for reliability

7,018 stars1,093 forksErlangApache-2.0

At a glance

What is it?
A document database whose defining feature is not its query language but its conflict model. Here is what the repository shows about the dev workflow, the build and the project's current state.
Who is it for?
CouchDB describes itself as a multi-primary syncing database with an HTTP/JSON API, so any node can accept a write and nodes reconcile later. The cost is that you give up joins and ad hoc aggregation, and the practical test is whether your data is document-shaped and your writes are conflict-tolerant.
Can I use it commercially?
Yes. Apache-2.0 is a permissive licence: you can use, modify and sell software built on it, as long as you keep its copyright and licence notices.
Is it still maintained?
Yes. The repository received new commits within the last day.
What is it written in?
Mainly Erlang, according to GitHub's language statistics.

Answers come from the project's GitHub data, last synced on November 26, 2026, and from our analysis. They are not legal advice.

From daily snapshots

Star history

  • apache/couchdb7,018 ★ · +48
Star history
Repository2026-10-072026-11-26
apache/couchdb7k7k

48 Stars in the last 50 days, measured from the daily GitHub snapshot. Compare with other projects

Editorial analysis

What the repository is for, given that you did not come here to read it

Almost nobody reads the CouchDB source to learn how to use it. The README is written for two narrower audiences: people trying to install the thing and people who want to hack on it. Installation gets two pointer lines to `INSTALL.Unix` and `INSTALL.Windows` and a link to docs.couchdb.org. Everything else is developer workflow.

That is worth stating plainly because it changes what the repository can tell you. The README will not explain replication, conflicts or the query language. It will tell you, with unusual precision, how to get three CouchDB nodes running on your laptop, which is the detail that most database repositories bury in a wiki.

The tree explains the rest. This is an Erlang project: `src/` for the server, `bin/` for build tooling, `build-aux/`, `config/`, `rel/` for release assembly, `share/`, `dev/` for the development scripts, `test/`, and `extra/` which holds `nouveau` and its Gradle wrapper. There are two Makefiles, `Makefile` and `Makefile.win`, with a comment at the top of the first warning that edits to one must be mirrored in the other.

Three nodes and an optional proxy, in four commands

The manual setup section says you need to install the dependencies documented in the install docs and then run:

code
./configure && make

Then the part that is genuinely useful, because you do not need `make install`. The dev scripts spin up a local three-node cluster directly:

code
./dev/run

Three nodes is not an arbitrary default. A single-node CouchDB demonstrates nothing about the thing that makes it interesting, so the default dev experience is already a cluster. You can point it at admin credentials or leave it in admin party mode:

code
./dev/run --admin=admin:admin
./dev/run --with-admin-party-please

And there is a caching proxy in front if you want one, which matters because a load balancer in front of a replicated database changes how you think about read routing:

code
./dev/run --with-haproxy --haproxy=/path/to/haproxy

The result is a local cluster listening on port 5984, CouchDB's well-known port. `make check` runs the test suite.

One documentation gap is worth naming: there is a note that the Fauxton admin interface cannot fix admin party mode by itself, so you have to start the cluster with the admin flag instead.

The devcontainer is the recommended path, and that is a signal

The README's developer section opens with a VS Code Remote Containers badge that clones the source into a container volume and spins up a dev environment automatically. The container runs `./configure && make` the first time it is created, which the README acknowledges costs extra startup time and frames as a trade for being able to run the dev scripts and the test suite immediately.

A project that ships a devcontainer as the recommended path is telling you something about its build. CouchDB needs the dependencies listed in its install docs plus an Erlang toolchain, and getting them right on an arbitrary laptop is real work. The devcontainer makes that work disappear behind an image, at the cost of a slower first start.

The build system itself is visible at the top of the Makefile and reflects that complexity. There are separate binaries for `rebar`, `rebar3` and `erlfmt`, plus a Gradle wrapper for the `extra/nouveau` tooling, all defaulting to paths under `bin/` and `extra/`. A `version.mk` is included first, and the version resolution logic has four branches depending on whether you are building from a tarball, a clean release tag, an RC tag, or a working tree.

That last branch is the interesting one. On a clean tag it uses the tag; otherwise it builds from `version.mk` plus a git SHA plus dirty status. In other words, a development build identifies itself as a development build, which is the behaviour you want from a database and do not always get.

What the design commits you to

The repository description says multi-primary syncing database with an intuitive HTTP/JSON API, and both halves of that phrase are a decision. Multi-primary means any node can accept a write, which means concurrent writes to the same document can arrive at different nodes independently. Syncing means those nodes reconcile later. The consequence is that a document can end up in conflict, and CouchDB's approach is to represent that explicitly rather than resolve it automatically behind your back.

This is the honest trade. You get an HTTP API you can drive with curl, documents that sync between nodes, and no single point of write availability.

It is not a SQL database, and no amount of MapReduce or view language will change that. If your workload is reporting across joins, this is the wrong tool and it is better to say so early.

Support, sponsorship and the export paperwork

The README's acknowledgements section lists the organizations that support the project: IBM Cloudant, MacStadium, Neighbourhoodie, DigitalOcean and netcup. For a database whose most recognizable commercial descendant is a hosted service, that is a reasonable map of who depends on it.

Support channels are listed plainly rather than vaguely. There is a mailing list reached through couchdb.apache.org, an IRC channel on Libera Chat, and a troubleshooting page under the install docs for cryptic error messages. The docs site also carries a changelog at a whatsnew URL, which is where release notes live given that this repository records no releases of its own.

The last section of the README is the one that surprises people: a cryptographic software notice. CouchDB ships an HTTP client called ibrowse with SSL functionality, and because that makes the distribution fall under US export control, the README spells out the ECCN classification, the License Exception it relies on, and a pointer to the Wassenaar Arrangement. The notice tells you to check your own country's rules before deploying it.

It is an unusual thing to find in a database README and a reminder that Apache-2.0 covers the code, not the regulatory context around it.

Where the state of the project is actually recorded

The repository itself is honest that it is not where to learn the current version. There are no releases recorded, and the version information is assembled at build time by the Makefile from a tag, a git SHA and dirty status. That is a well-behaved build system doing the right thing, but it does mean the definitive record of what shipped is the changelog on docs.couchdb.org under the whatsnew section.

The project is not archived. The last recorded push on the default branch is 2026-11-02, with roughly 7,000 stars, about 1,087 forks and 371 open issues.

Two directories are worth watching if you go looking. `test/` holds tests, run with `make check`. And `dev/` contains the scripts that make a three-node cluster cheap, which is quietly the highest-leverage contribution anyone could make to this project, because it is what lets everyone else reproduce the replication behaviour locally rather than theorize about it.

If you want to evaluate this rather than read about it, the devcontainer path gets you a replicated three-node cluster on port 5984 faster than any document will.

Editorial conclusion

CouchDB describes itself as a multi-primary syncing database with an HTTP/JSON API, so any node can accept a write and nodes reconcile later. The cost is that you give up joins and ad hoc aggregation, and the practical test is whether your data is document-shaped and your writes are conflict-tolerant. For development, the devcontainer plus the dev scripts get a three-node cluster with optional haproxy in front on port 5984, which is the fastest way to see the replication model for yourself. The repository records no releases here, so the changelog on docs.couchdb.org and the last recorded push on 2026-11-02 are where current state lives.

Frequently asked questions

What is CouchDB used for?

It is used where documents have to sync between several nodes that can each accept writes. Multi-primary writes with later syncing is the design, and the HTTP and JSON API means no special client library is needed to drive it.

What is the difference between MongoDB and CouchDB?

The repository does not compare the two. CouchDB describes itself as a multi-primary syncing database with an HTTP/JSON API.

Is CouchDB a SQL database?

No. It is a document database with a deliberately narrow query interface built around views, and there are no joins across documents and no ad hoc aggregation over arbitrary fields. If your workload is reporting across joined tables, this is the wrong shape of tool.

What are the disadvantages of CouchDB?

Two stand out. Concurrent writes to the same document can conflict, and resolving them is application work rather than a server rule. And the query surface is narrow, so the kind of arbitrary reporting SQL makes easy will need to be restructured or done elsewhere.

Official sources

  1. apache/couchdb on GitHub
  2. Issues
  3. License: Apache-2.0
  4. Project website
  5. README
Add this badge to your README

If you maintain this project, the badge below links readers to this analysis and shows its maintenance status from the daily GitHub snapshot. Paste the markdown into your README; add ?metric=license or ?metric=stars to the image URL for a different field.

Add this badge to your README

markdown
[![Hysen Labs](https://hysenlabs.com/badge/apache-couchdb.svg)](https://hysenlabs.com/projects/apache-couchdb)

Star history chart for your README

markdown
[![Star history](https://hysenlabs.com/chart/apache-couchdb.svg)](https://hysenlabs.com/projects/apache-couchdb)

Was this useful?