All Projects → orbitdb → Orbit Db

orbitdb / Orbit Db

Licence: mit
Peer-to-Peer Databases for the Decentralized Web

Programming Languages

184084 projects - #8 most used programming language
75241 projects

Projects that are alternatives of or similar to Orbit Db

Js Dag Service
Library for storing and replicating hash-linked data over the IPFS network.
Stars: ✭ 81 (-98.73%)
Mutual labels:  p2p, ipfs, peer-to-peer, distributed, decentralized
The Offical User's Guide to OrbitDB
Stars: ✭ 178 (-97.21%)
Mutual labels:  peer-to-peer, ipfs, decentralized, p2p, distributed
Js Ipfs
IPFS implementation in JavaScript
Stars: ✭ 6,129 (-3.95%)
Mutual labels:  p2p, ipfs, peer-to-peer, distributed, decentralized
An open source cybersecurity protocol for syncing decentralized graph data.
Stars: ✭ 15,172 (+137.77%)
Mutual labels:  database, crdt, p2p, peer-to-peer, decentralized
Run a point-of-presence within Myel, the community powered content delivery network.
Stars: ✭ 28 (-99.56%)
Mutual labels:  peer-to-peer, ipfs, decentralized, p2p
Rust Ipfs
The InterPlanetary File System (IPFS), implemented in Rust.
Stars: ✭ 739 (-88.42%)
Mutual labels:  p2p, ipfs, peer-to-peer, decentralized
Real-time P2P messenger using go-ipfs pubsub. TUI. End-to-end encrypted texting & file-sharing. NAT traversal.
Stars: ✭ 84 (-98.68%)
Mutual labels:  peer-to-peer, ipfs, decentralized, distributed
A p2p, secure file storage, social network and application protocol
Stars: ✭ 895 (-85.97%)
Mutual labels:  p2p, ipfs, peer-to-peer, decentralized
Unstoppable Wallet Ios
A secure and decentralized Bitcoin and other cryptocurrency wallet for iPhone. Supports Bitcoin, Ethereum, EOS, Binance Chain, Bitcoin Cash, DASH, ...
Stars: ✭ 180 (-97.18%)
Mutual labels:  p2p, ipfs, peer-to-peer, decentralized
Shared data types for building collaborative software
Stars: ✭ 5,894 (-7.63%)
Mutual labels:  crdt, p2p, peer-to-peer, decentralized
Awesome Decentralized
🕶 Awesome list of distributed, decentralized, p2p apps and tools 👍
Stars: ✭ 358 (-94.39%)
Mutual labels:  p2p, ipfs, distributed, decentralized
Unstoppable Wallet Android
A secure and decentralized Bitcoin and other cryptocurrency wallet for Android phones. Supports Bitcoin, Ethereum, EOS, Binance Chain, Bitcoin Cash, DASH, ...
Stars: ✭ 165 (-97.41%)
Mutual labels:  p2p, ipfs, peer-to-peer, decentralized
A highly-configurable, distributed, realtime database that manages a state tree shared among many peers.
Stars: ✭ 218 (-96.58%)
Mutual labels:  database, crdt, p2p, peer-to-peer
p2p peer-to-peer training of tensorflow models
Stars: ✭ 57 (-99.11%)
Mutual labels:  peer-to-peer, p2p, distributed
Decentralized Internet
A SDK/library for decentralized web and distributing computing projects
Stars: ✭ 406 (-93.64%)
Mutual labels:  p2p, peer-to-peer, decentralized
Decentralized Package Network
Stars: ✭ 103 (-98.39%)
Mutual labels:  peer-to-peer, decentralized, distributed
[WIP] Easy-to-use decentralized secure overlay private network (for any device)
Stars: ✭ 24 (-99.62%)
Mutual labels:  ipfs, decentralized, p2p
Useful resources for using OrbitDB and building projects on it
Stars: ✭ 87 (-98.64%)
Mutual labels:  ipfs, decentralized, p2p
Expose local http-server (web-app) through IPNS
Stars: ✭ 18 (-99.72%)
Mutual labels:  ipfs, decentralized, distributed
The Infinit policy-based software-defined storage platform.
Stars: ✭ 363 (-94.31%)
Mutual labels:  peer-to-peer, distributed, decentralized


Matrix CircleCI Status npm version node

OrbitDB is a serverless, distributed, peer-to-peer database. OrbitDB uses IPFS as its data storage and IPFS Pubsub to automatically sync databases with peers. It's an eventually consistent database that uses CRDTs for conflict-free database merges making OrbitDB an excellent choice for decentralized apps (dApps), blockchain applications and local-first web applications.

Test it live at Live demo 1, Live demo 2, or P2P TodoMVC app!

OrbitDB provides various types of databases for different data models and use cases:

  • log: an immutable (append-only) log with traversable history. Useful for "latest N" use cases or as a message queue.
  • feed: a mutable log with traversable history. Entries can be added and removed. Useful for "shopping cart" type of use cases, or for example as a feed of blog posts or "tweets".
  • keyvalue: a key-value database just like your favourite key-value database.
  • docs: a document database to which JSON documents can be stored and indexed by a specified key. Useful for building search indices or version controlling documents and data.
  • counter: Useful for counting events separate from log/feed data.

All databases are implemented on top of ipfs-log, an immutable, operation-based conflict-free replicated data structure (CRDT) for distributed systems. If none of the OrbitDB database types match your needs and/or you need case-specific functionality, you can easily implement and use a custom database store of your own.

Project status & support

  • Status: in active development
  • Compatible with js-ipfs versions <= 0.52 and go-ipfs versions <= 0.6.0

NOTE! OrbitDB is alpha-stage software. It means OrbitDB hasn't been security audited and programming APIs and data formats can still change. We encourage you to reach out to the maintainers if you plan to use OrbitDB in mission critical systems.

This is the Javascript implementation and it works both in Browsers and Node.js with support for Linux, OS X, and Windows. LTS versions (even numbered versions 8, 10, etc) are supported.

To use with older versions of Node.js, we provide an ES5-compatible build through the npm package, located in dist/es5/ when installed through npm.

Table of Contents


Read the GETTING STARTED guide for a quick tutorial on how to use OrbitDB.

For a more in-depth tutorial and exploration of OrbitDB's architecture, please check out the OrbitDB Field Manual.

Database browser UI

OrbitDB databases can easily be managed using a web UI, see OrbitDB Control Center.

Install and run it locally:

git clone
cd orbit-db-control-center/
npm i && npm start

Module with IPFS Instance

If you're using orbit-db to develop browser or Node.js applications, use it as a module with the javascript instance of IPFS

Install dependencies:

npm install orbit-db ipfs
const IPFS = require('ipfs')
const OrbitDB = require('orbit-db')

;(async function () {
  const ipfs = await IPFS.create()
  const orbitdb = await OrbitDB.createInstance(ipfs)

  // Create / Open a database
  const db = await orbitdb.log("hello")
  await db.load()

  // Listen for updates from peers"replicated", address => {
    console.log(db.iterator({ limit: -1 }).collect())

  // Add an entry
  const hash = await db.add("world")

  // Query
  const result = db.iterator({ limit: -1 }).collect()
  console.log(JSON.stringify(result, null, 2))

Module with IPFS Daemon

Alternatively, you can use ipfs-http-client to use orbit-db with a locally running IPFS daemon. Use this method if you're using orbitd-db to develop backend or desktop applications, eg. with Electron.

Install dependencies:

npm install orbit-db ipfs-http-client
const IpfsClient = require('ipfs-http-client')
const OrbitDB = require('orbit-db')

const ipfs = IpfsClient('localhost', '5001')

const orbitdb = await OrbitDB.createInstance(ipfs)
const db = await orbitdb.log('hello')
// Do something with your db.
// Of course, you may want to wrap these in an async function.


See for the full documentation.


Install dependencies

git clone
cd orbit-db
npm install

Some dependencies depend on native addon modules, so you'll also need to meet node-gyp's installation prerequisites. Therefore, Linux users may need to

make clean-dependencies && make deps

to redo the local package-lock.json with working native dependencies.

Browser example

npm run build
npm run examples:browser

Using Webpack:

npm run build
npm run examples:browser-webpack

Check the code in examples/browser/browser.html and try the live example.

Node.js example

npm run examples:node


See the code in examples/eventlog.js and run it with:

node examples/eventlog.js


We have a field manual which has much more detailed examples and a run-through of how to understand OrbitDB, at orbitdb/field-manual. There is also a workshop you can follow, which shows how to build an app, at orbit-db/web3-workshop.

More examples at examples.


OrbitDB uses the following modules:

OrbitDB Store Packages

Community-maintained Typescript typings are available here:


Run Tests

npm test


npm run build


node benchmarks/benchmark-add.js

See benchmarks/ for more benchmarks.


To enable OrbitDB's logging output, set a global ENV variable called LOG to debug,warn or error:

LOG=debug node <file>

Frequently Asked Questions

We have an FAQ! Go take a look at it. If a question isn't there, open an issue and suggest adding it. We can work on the best answer together.

Are there implementations in other languages?

Yes! Take a look at these implementations:

The best place to find out what is out there and what is being actively worked on is likely by asking in the Matrix. If you know of any other repos that ought to be included in this section, please open a PR and add them.


Take a look at our organization-wide Contributing Guide. You'll find most of your questions answered there. Some questions may be answered in the FAQ, as well.

If you want to code but don't know where to start, check out the issues labelled "help wanted".


The development of OrbitDB has been sponsored by:

If you want to sponsor developers to work on OrbitDB, please reach out to @haadcode.


MIT © 2015-2019 Protocol Labs Inc., Haja Networks Oy

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].