Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

blockstore-s3

Package Overview
Dependencies
Maintainers
0
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

blockstore-s3

IPFS blockstore implementation backed by s3

  • 2.0.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
141
increased by161.11%
Maintainers
0
Weekly downloads
 
Created
Source

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 its 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.

Keywords

FAQs

Package last updated on 13 Sep 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc