JSPM

  • Created
  • Published
  • Downloads 4377
  • Score
    100M100P100Q121172F
  • License (Apache-2.0 OR MIT)

w3access client

Package Exports

  • @web3-storage/access
  • @web3-storage/access/agent
  • @web3-storage/access/drivers/conf
  • @web3-storage/access/drivers/indexeddb
  • @web3-storage/access/encoding
  • @web3-storage/access/stores/store-conf
  • @web3-storage/access/stores/store-indexeddb

Readme


web3.storage

The access client for https://web3.storage

Install

Install the package:

npm install @web3-storage/access

Usage

API Reference

import { Agent, connection } from '@web3-storage/access/agent'
import * as Encoding from '@web3-storage/access/encoding'
import { StoreConf } from '@web3-storage/access/stores/store-conf'
// for browsers
import { StoreIndexedDB } from '@web3-storage/access/stores/store-indexeddb'

const store = new StoreConf({ profile: 'app' })
if (!(await store.exists())) {
  await store.init({})
}

const agent = await Agent.create({ store })

Contributing

Feel free to join in. All welcome. Please open an issue!

License

Dual-licensed under MIT + Apache 2.0