Skip to content

Repository files navigation

@orbitdb/feed-db

Feed database type for orbit-db.

feed-db testscodecov

Installation

$ pnpm add @orbitdb/feed-db

Introduction

Feed database for those feeling nostalgic for orbit-db v.0.x. But honestly, you're probably better off with a KeyValue or a Set.

Examples

import{createOrbit}from"@orbitdb/core";import{registerFeed}from"@orbitdb/feed-db";// Register database type. IMPORTANT - must call before creating orbit instance !registerFeed();constdb=awaitorbit.open({type: "feed"});awaitdb.add({a: 1,b: "c"});constall=awaitdb.all();// [{ value: { a: 1, b: "c" }, hash: "..." }]awaitdb.add({a: 1,b: "c"});awaitdb.all();// [{ value: { a: 1, b: "c" }, hash: "..." }, { value: { a: 1, b: "c" }, hash: "..." }]

About

Feed database type for orbit-db

Resources

Code of conduct

Contributing

Stars

3 stars

Watchers

4 watching

Forks

Releases

Packages

Used by

Contributors

Languages