1.0.15 • Published 3 months ago

blockstore-s3 v1.0.15

Weekly downloads
-
License
Apache-2.0 OR MIT
Repository
github
Last release
3 months ago

blockstore-s3

ipfs.tech Discuss codecov CI

IPFS blockstore implementation backed by s3

About

A Blockstore implementation that stores blocks on Amazon S3.

Example - Quickstart

If the flag createIfMissing is not set or is false, then the bucket must be created prior to using blockstore-s3. Please see the AWS docs for information on how to configure the S3 instance. A bucket name is required to be set at the s3 instance level, see the below example.

import { S3 } from '@aws-sdk/client-s3'
import { S3Blockstore } from 'blockstore-s3'

const s3 = new S3({
  region: 'region',
  credentials: {
    accessKeyId: 'myaccesskey',
    secretAccessKey: 'mysecretkey'
  }
})

const store = new S3Blockstore(
  s3,
  'my-bucket',
  { createIfMissing: false }
)

Example

Using with Helia

See [examples/helia](./examples/helia) for a full example of how to use Helia with an S3 backed blockstore.

Install

$ npm i blockstore-s3

Browser <script> tag

Loading this module through a script tag will make it's exports available as BlockstoreS3 in the global namespace.

<script src="https://unpkg.com/blockstore-s3/dist/index.min.js"></script>

API Docs

License

Licensed under either of

Contribute

Contributions welcome! Please check out the issues.

Also see our contributing document for more information on how we work, and about contributing in general.

Please be aware that all interactions related to this repo are subject to the IPFS Code of Conduct.

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

npm.io

1.0.15

3 months ago

1.0.14

4 months ago

1.0.12

5 months ago

1.0.9

5 months ago

1.0.8

5 months ago

1.0.7

8 months ago

1.0.6

9 months ago

1.0.5

9 months ago

1.0.11

5 months ago

1.0.10

5 months ago

1.0.4

11 months ago

1.0.3

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago

0.1.0

1 year ago

0.0.0

1 year ago