1.1.0 • Published 8 months ago

@orbitdb/feed-db v1.1.0

Weekly downloads
-
License
AGPL-3.0-or-later
Repository
-
Last release
8 months ago

@orbitdb/feed-db

Feed database type for orbit-db.

feed-db tests codecov

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();
const db = await orbit.open({ type: "feed" });

await db.add({ a: 1, b: "c" });

const all = await db.all();  // [{ value: { a: 1, b: "c" }, hash: "..." }]

await db.add({ a: 1, b: "c" });
await db.all();  
// [{ value: { a: 1, b: "c" }, hash: "..." }, { value: { a: 1, b: "c" }, hash: "..." }]
1.1.0

8 months ago

1.1.1-cf68a46.0

8 months ago

1.0.1

11 months ago

1.0.1-9e47a94.0

1 year ago

1.0.0

1 year ago