Are you happy with your logging solution? Would you help us out by taking a 30-second survey? Click here

ipfs-blob-store

An abstract-blob-store compatible implementation built using IPFS as the storage backend

Subscribe to updates I use ipfs-blob-store


Statistics on ipfs-blob-store

Number of watchers on Github 35
Number of open issues 2
Average time to close an issue about 1 month
Main language JavaScript
Average time to merge a PR 16 days
Open pull requests 0+
Closed pull requests 0+
Last commit almost 2 years ago
Repo Created over 4 years ago
Repo Last Updated over 1 year ago
Size 1.64 MB
Organization / Authoripfs-shipyard
Contributors6
Page Updated
Do you use ipfs-blob-store? Leave a review!
View open issues (2)
View on github
Fresh, new opensource launches 🚀🚀🚀
Trendy new open source projects in your inbox! View examples

Subscribe to our mailing list

Evaluating ipfs-blob-store for your project? Score Explanation
Commits Score (?)
Issues & PR Score (?)

ipfs-blob-store

standard-readme compliant Build Status Dependency Status js-standard-style npm

An abstract-blob-store compatible implementation built using IPFS as the storage backend

Implements the abstract-blob-store, using IPFS for storage.

Install

npm install ipfs-blob-store

Usage

ipfs-blob-store today requires a running IPFS daemon to talk to over HTTP. This module will be able to be entirely self-contained once js-ipfs is complete.

ipfs-blob-store uses the IPFS Files API to create the abstraction of a mutable filesystem over snapshots of Merkle DAGs (per mutation). You'll need to use the Files API directly to get the /ipfs/Qm... address of the filesystem root so that other IPFS nodes can retrieve it.

var ipfsBlobStore = require('ipfs-blob-store')

var options = {
  port: 5001,   // default value
  host: '127.0.0.1', // default value
  baseDir: '/', // default value
  flush: true  // default value
}

var store = ipfsBlobStore(options)

var ws = store.createWriteStream({
  key: 'some/path/file.txt'
})

ws.write('hello world\n')
ws.end(function() {
  var rs = store.createReadStream({
    key: 'some/path/file.txt'
  })

  rs.pipe(process.stdout)
})

Contribute

Feel free to join in. All welcome. Open an issue!

This repository falls under the IPFS Code of Conduct.

Want to hack on IPFS?

License

MIT

ipfs-blob-store open issues Ask a question     (View All Issues)
  • over 3 years Does this still require a daemon?
  • over 3 years file not available when writestream ends
ipfs-blob-store list of languages used
Other projects in JavaScript