@dstanesc/lucy-block-store
TypeScript icon, indicating that this package has built-in type declarations

0.0.3 • Public • Published

Lucy Block Store

Experiment. Blocks are everywhere. Structural resilience, performance and high availability. Censorship resistant. Store content-addressable blocks redundantly, across technologies and providers. Providers compete on retrieval, fastest wins.

API

put: (block: { cid: any, bytes: Uint8Array }) => Promise<void>
get: (cid: any) => Promise<Uint8Array>

Usage

import { blockStore as azureStore } from "@dstanesc/az-block-store"
import { blockStore as awsStore } from "@dstanesc/s3-block-store"
import { blockStore as ipfsStore } from "@dstanesc/ipfs-block-store"
import { blockStore as lucyStore } from "@dstanesc/lucy-block-store"

const ipfsClient = ...
const azClient = ...
const awsS3 = ...
const s1 = azureStore({ containerClient: azClient })
const s2 = ipfsStore({ ipfs: ipfsClient })
const s3 = awsStore({ s3: awsS3, bucket })
const { put, get } = blockStore({ acks: 'all' }, s1, s2, s3)

Build

npm run clean
npm install
npm run build
npm run test

Licenses

Licensed under either Apache 2.0 or MIT at your option.

Readme

Keywords

none

Package Sidebar

Install

npm i @dstanesc/lucy-block-store

Weekly Downloads

0

Version

0.0.3

License

(Apache-2.0 AND MIT)

Unpacked Size

28.1 kB

Total Files

23

Last publish

Collaborators

  • dstanesc