• Stars
    star
    210
  • Rank 187,585 (Top 4 %)
  • Language
    JavaScript
  • Created almost 6 years ago
  • Updated over 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

The Offical User's Guide to OrbitDB

Notice: The field manual is outdated. Code examples may show use of deprecated api's and result in errors. Consult the current documentation of the packages being used.

The OrbitDB Field Manual

An end-to-end tutorial, an in-depth look at OrbitDB's architecture, and even some philosophical musings about decentralization and the distributed industry. From the creators of OrbitDB.

Gitter Matrix

What's in the book?

The book opens with an introduction that gives an overview of the promises and risks of the distributed space, and describes OrbitDB and its use cases at a high level.

The tutorial begins by guiding you through building a JavaScript application from scratch. You will work through: installation and database creation; managing and structuring your data; networking, communicating, and sharing data in a peer-to-peer fashion; and finally managing distributed identity and access to the databases. By the end of the tutorial, you should have everything you need.

Next, Thinking Peer to Peer is a collection of essays that approach peer-to-peer engineering from a more intellectual and philosophical perspective. It is light on code and heavy on ideas. It is also open for community members to contribute essays of their own, pending editorial review.

Then, The Architecture of OrbitDB covers in-depth, in a more reference style, the structured and architecture of OrbitDB. It includes a description of ipfs-log, the core of OrbitDB, the data stores and finally how the orbit-db library brings it all together into a single, cohesive package that works both in the browser and on the command line.

What comes next? provides some guidance and suggestions about subsequent topics you should explore. This section serves as a launch pad to further your understanding of how our distributed future will be built.

And after all that, we have a chapter on how you might write custom Stores in OrbitDB in Customizing OrbitDB, written in the form of a second Tutorial, that is based on our first chapter.

How to read this book

While this book is best consumed by reading cover-to-cover, we understand that your time is valuable and you want to get the most out of it in the shortest amount of time. Here are some suggestions to digest the information efficiently.

If you are a technical person and want to use OrbitDB to build distributed, peer-to-peer applications, start with Part 1: The tutorial, move to Part 3: The Architecture of OrbitDB, and then read chapters from Part 2 and Part 4 as necessary to fill in any knowledge gaps you may have.

After reading Part 1, Part 3 and Part 2, you are equipped to read Part 5: Customizing OrbitDB.

If you do not want to write code, but instead want to understand peer-to-peer systems and architectures at a higher level, you should be able to get away with only reading Part 2: Thinking Peer to Peer, and then moving on to Part 4, followed by Part 3.

Please note that we may repeat ourselves in different parts of the book. This is intentional because we cannot guarantee people will read the sections of the book in order. Please skim any sections that you already feel like you understand.

Getting the book

Here you can download a copy of the book in the following free formats:

Gaps and out-of-date sections

OrbitDB is an alpha phase software in an alpha industry. A risk of this fact is, that documentation can quickly become out-of-date and be filled with errors.

It is thus vital, that everyone reading the Field Manual from OrbitDB also stay in contact with the OrbitDB Community on Matrix or Gitter for questions and reporting of issues with the Manual.

Maintainers

Mark Henderson (@aphelionz) is the maintainer and lead author of the OrbitDB field manual. However, this work is built upon the efforts of many other people:

Contributing

This is a living, community-based document, which means it is for and can include you.

Anybody can:

  1. give feedback on, or request modifications to, the tutorial;
  2. submit an essay for inclusion in the "Thinking Peer to Peer" section.

To do so you are welcome to create a pull request.

Please look at and follow the Code of Conduct.

Building

Requires Pandoc to convert markdown to other formats.

  1. Make your edits in the markdown files.
  2. npm run lint to make sure your edits meet linting standards.
  3. npm run build to populate the dist folder.
  4. Manually audit the dist output to ensure no errors were made.
  5. Create your PR!

License

The OrbitDB Field Manual is released under the Creative Commons Attribution-NonCommercial 4.0 International License by Haja Networks Oy.

CC BY-NC 4.0
Attribution-NonCommercial
CC BY-NC

More Repositories

1

orbitdb

Peer-to-Peer Databases for the Decentralized Web
JavaScript
8,258
star
2

orbit

A distributed, serverless, peer-to-peer chat application on IPFS
1,637
star
3

ipfs-log

Append-only log CRDT on IPFS
JavaScript
394
star
4

orbit-web

Orbit Web Application
JavaScript
262
star
5

crdts

A library of Conflict-Free Replicated Data Types for JavaScript
JavaScript
211
star
6

awesome-orbitdb

Useful resources for using OrbitDB and building projects on it
134
star
7

welcome

☄️💫 The OrbitDB community and documentation repo
95
star
8

orbit-db-control-center

UI for managing OrbitDB databases
JavaScript
85
star
9

orbit-core

Orbit communication protocol and library
JavaScript
70
star
10

orbit-db-cli

CLI for orbit-db
JavaScript
61
star
11

orbit-textui

A prototype terminal client for Orbit
JavaScript
48
star
12

orbit-electron

Orbit Electron App
JavaScript
45
star
13

orbit-db-docstore

Document Store for orbit-db
JavaScript
40
star
14

orbit-db-store

Base class for orbit-db data stores
JavaScript
40
star
15

orbit-db-http-api

A HTTP API Server for the OrbitDB distributed peer-to-peer database
JavaScript
38
star
16

orbit-db-pinner

A pinning service for Orbitdb, a decentralized database based on IPFS.
JavaScript
35
star
17

py-orbit-db-http-client

A python client for the Orbitdb HTTP API
Python
33
star
18

orbit-db-identity-provider

Default identity provider for OrbitDB
JavaScript
32
star
19

orbitdb.org

The website for OrbitDB
HTML
32
star
20

orbit-db-eventstore

Append-Only Log database for orbit-db
JavaScript
30
star
21

go-orbit-db

Go implementation of OrbitDB.
Go
28
star
22

orbit-db-access-controllers

Access Controllers for OrbitDB
JavaScript
27
star
23

orbit-db-kvstore

Key-Value database for orbit-db
JavaScript
26
star
24

orbit-db-types

Unofficial orbit-db typings!
TypeScript
25
star
25

web3-workshop

A workshop showing how to build a basic app using OrbitDB
SCSS
25
star
26

repo-template

A template for creating new repositories in the @orbitdb organization
22
star
27

example-orbitdb-todomvc

TodoMVC with OrbitDB
JavaScript
22
star
28

orbit-db-pubsub

Message propagation module for orbit-db
JavaScript
19
star
29

orbit-db-feedstore

Log database for orbit-db
JavaScript
16
star
30

orbit-db-powergate-io

A bridge between OrbitDB and Powergate, which is itself a bridge between Filecoin and IPFS.
JavaScript
14
star
31

orbit-chat

Deprecated: Rewrite of orbit-web. Go to https://github.com/orbitdb/orbit-web
JavaScript
14
star
32

research

Decentralized Database Research
13
star
33

orbit-db-cache

Local cache for orbit-db
JavaScript
11
star
34

orbit-db-counterstore

Counters database for OrbitDB
JavaScript
10
star
35

orbit-db-keystore

A local key manager for OrbitDB
JavaScript
9
star
36

SCPs

Inbox for proposals to improve OrbitDB
HTML
9
star
37

opentelemetry-plugin-orbitdb

OpenTelemetry Plugin for OrbitDB
TypeScript
8
star
38

orbit-db-storage-adapter

A wrapper for abstract-leveldown compliant stores, used by OrbitDB
JavaScript
8
star
39

example-orbitdb-todomvc-updated

TodoMVC app using OrbitDB
JavaScript
7
star
40

orbit-db-io

Helper module used in OrbitDB to interface with storage layer
JavaScript
7
star
41

localstorage-level-migration

Move items from localstorage to leveldb
JavaScript
6
star
42

orbit-db-polkadot-iam

Identity Provider and Access Controller for Polkadot / Substrate based accounts
JavaScript
5
star
43

ipfs-post

POST prototype for IPFS
JavaScript
5
star
44

.github

Default Community documents
5
star
45

orbit-db-test-utils

Shared test utilities for OrbitDB-related projects
JavaScript
5
star
46

orbit-bot

Bot for Orbit communication network that caches messages
JavaScript
5
star
47

orbitdb-identity-provider-did

Create, sign and verify OrbitDB identities using Decentralized Identifiers (DIDs).
JavaScript
5
star
48

quickstart

A preconfigured instance which allows developers to "test drive" OrbitDB.
JavaScript
5
star
49

benchmark-runner

OrbitDB Benchmark Runner
JavaScript
4
star
50

orbitdb-orbit-crypto

Crypto primitives for Orbit
JavaScript
4
star
51

example-orbitdb-webpack

How to use OrbitDB JavaScript module with webpack
JavaScript
3
star
52

orbit-db-access-controller-store

Deprecated: OrbitDB Access Controller Store
JavaScript
3
star
53

spec

Specifications for implementing the OrbitDB System
3
star
54

logo

🌑 Orbit's brand files, formats and guidelines
2
star
55

orbit-db-community-stats

A script to get stats for the orbitdb GitHub organization
Python
2
star
56

eslint-config-orbitdb

Deprecated: Standard ESLint config for OrbitDB
JavaScript
2
star
57

orbitdb-identity-provider-ethereum

Provides creation and signing of identities using an Ethereum wallet.
JavaScript
2
star
58

examples

Implementing OrbitDB on various Javascript platforms.
JavaScript
2
star
59

orbit-db-http-api-bash-client

A HTTP API client for the OrbitDB distributed peer-to-peer database in bash
1
star