[Integration Announcement] — KAIZEN x OrbitDB

A
portalnetworkofficial
3 min readOct 15, 2019

Portal Network’s KAIZEN-CLI now support OrbitDB, which could help developers to easily install different libraries of OrbitDB via `kaizen plugins install orbit`, it only needs one command to start using this awesome decentralized database.

TLDR: NPM for download — http://bit.ly/2lSH2Qy

Main https://orbitdb.org

What is OrbitDB?

OrBitDB

The OrbitDB Github page bills the package a peer-to-peer database for the decentralised web. To achieve this decentralised nature the database is run on top of IPFS, as mentioned above. But unlike a traditional centralised database, where data is stored in one central location, (and perhaps replicated or sharded to other centralised locations), an OrbitDB database is serverless, and is replicated to all peers that are using it. And because of IPFS’s hashing protocols that do not allow duplication of a piece of content, there is no central point for such a database.

The hash is the true source, which could exist on hundreds or thousands of nodes across the network.

OrbitDB Data Structures

OrbitDB offers a range of datatypes to work with out of the box, as well as the ability to add custom datatypes. We define a datatype to adhere to when initialising a database. We will visit the code this entails further down.

The datatypes we have out of the box are:

  • A log (append only, immutable) structure with traversable history. Useful for queueing and logging applications where you don’t want to delete entries.
  • A feed (mutable) structure with traversable history. Entries can be added and removed. Useful for shopping carts, comments, responses to articles.
  • A keyvalue store. As the name suggests, a simple key-value structure. Good for persisting app configuration or app state.
  • A document store. Similar to a document-based database like MongoDB, the document datatype allows us to store JSON documents as entries. The _id field can be utilised to lookup entries of a document. This more flexible datatype can be used for describing items such as products and articles.
  • A counter. The simplest of datatypes, a counter comes with an inc() function where we can pass positive and negative integers to manipulate our counter. Counters are useful for counting events in conjunction with a log or feed database.

Start using OrbitDB w/ KAIZEN-CLI

```

STEP 1: Install KAIZEN to support Orbit
```
npm install -g kaizen-cli
```

STEP 2: Install Orbit library using KAIZEN
```
kaizen plugins install orbit
```

That’s it, we hope you enjoy using KAIZEN-CLI and OrbitDB, let us know what we should integrate next.

--

--