About Apache CouchDB
Apache CouchDB is a document database that speaks HTTP and JSON. Every document has a URL, every change gets a revision, and replication between servers, laptops and phones is built in, which is why offline-first apps often sync through it with PouchDB. Apache-2.0.
Replication works best against a stable public endpoint. A CloudSat server gives your sync hub a dedicated IPv4 and IPv6, NVMe for its append-only files and a region near your users.
After deploy CouchDB runs on Ubuntu 24.04 LTS, with the Fauxton admin UI under /_utils on port 5984.
What you get with Apache CouchDB
- REST API where every document is a URL
- Multi-master replication and a changes feed
- Mango JSON queries and MapReduce views
- Fauxton web admin built in
- Sync with PouchDB in browsers and mobile apps
Apache CouchDB use cases
- Offline-first apps that sync when a connection returns
- Replicating data between branch sites and a central server
- A schemaless store for JSON from devices or forms
After you deploy Apache CouchDB
- With the server Running, SSH in and run
curl http://127.0.0.1:5984/, which returns a JSON welcome with the version. - Open Fauxton at http://<server IP>:5984/_utils, or through an SSH tunnel if CouchDB binds to 127.0.0.1, and sign in as the admin.
- Finish single-node setup in Fauxton so the
_usersand_replicatordatabases exist. - Serve 5984 through a domain with HTTPS before apps sync over the internet, and give each app its own user.
Apache CouchDB ports
Open these in your firewall if you use one: 5984/tcp HTTP API and Fauxton.
Apache CouchDB FAQ
Why does CouchDB insist on an admin user?
Since version 3.0 it will not run without one, which closed the old mode where anyone had full access. The Ubuntu package asks for that password during installation.
Can I build a cluster?
Yes. Nodes talk over Erlang's port mapper on 4369 and a distribution port range set in the configuration. Keep those ports open between nodes only, never to the internet.
Disclaimer. The Apache CouchDB project has no affiliation with CloudSat and does not endorse it. Names and logos belong to their owners and appear only to identify the software.