@dstanesc/lucy-block-store
v0.0.3
Published
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.
Readme
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 testLicenses
Licensed under either Apache 2.0 or MIT at your option.
