Description
OrbitDB is a serverless, distributed database that runs peer to peer. It stores data in IPFS and uses libp2p Pubsub to sync databases between peers automatically, so apps can work without a central server. The database is eventually consistent and uses Merkle-CRDTs to merge writes from different peers without conflicts, which suits decentralized apps, local-first web apps and blockchain applications. It offers several database types: events, an append-only log with traversable history that suits latest-N queries and message queues; documents, JSON stores indexed by a chosen key; keyvalue, a simple key-value store; and keyvalue-indexed, which keeps key-value data in a Level database. All of them sit on OrbitDB's OpLog, an operation-based replicated data structure that can be verified cryptographically, and developers can add custom data models that share its properties. The JavaScript implementation runs in browsers and Node.js on Linux, macOS and Windows, and it can be loaded with a script tag. A Go implementation is maintained by the Berty project. The README points to a Getting Started guide, a quick-start module and documentation on storage, identities and access controllers.…
Highlights
- Serverless peer-to-peer database
- Syncs over libp2p Pubsub and IPFS
- Event, document and key-value databases
- Conflict-free merges with Merkle-CRDTs
- Works in browsers and Node.js
Ratings & Reviews
No ratings yet
Be the first to rate Orbitdb.
People also visit
Canvas
Instant database and sync engine for decentralized and local-first applications
Orbitdb FAQ
What is OrbitDB?
A serverless, peer-to-peer database that stores its data on IPFS and syncs it between peers.
Who is it for?
Developers building decentralized, peer-to-peer, blockchain or local-first web applications.
How does it resolve conflicting writes?
It uses Merkle-CRDTs, which allow writes and merges without conflicts, so the database is eventually consistent.
Which kinds of database does it provide?
Events, documents, keyvalue and keyvalue-indexed.
Can I use it in a browser?
Yes. The JavaScript version works in browsers, through a script tag or as a module, and in Node.js.
Is there another implementation?
Yes. The README says a Go implementation is developed by the Berty project.
Where do I start?
The Getting Started guide, and the @orbitdb/quickstart module for setup examples.
What are the best Orbitdb alternatives?
Popular alternatives to Orbitdb include Goatdb, Rxdb and Guardian DB. See all Orbitdb alternatives

