New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

dat-offchain-ipfs

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dat-offchain-ipfs

(working title)

  • 1.0.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1
decreased by-75%
Maintainers
1
Weekly downloads
 
Created
Source

dat-offchain-ipfs

(working title)

For when neither dat nor ipfs really suits your needs.

Situations where this module can be useful:

  • You want to use dat but don't want/need the inherent revision history of it.
  • You want to use ipfs but need dynamic content and don't want to wait for ipns/iprs to be bug-free/implemented.

Concept

What the module does it that when you call host/update, it adds your dir to ipfs, and then publishes the hash of that dir to dat. Other people can then download that dir by getting the ipfs hash from the dat archive. Only publishing small hashes to dat keeps the archive size very small, even after many edits to the dir contents.

Trying it out

In one terminal/on one computer, create a dir test-content/ with some files in it. Run node examples/host.js

Take the dat link that host.js prints to another terminal/computer and run node examples/seed.js <the dat link>

Examples

The api is still a work in progress, but you can look in the examples/ dir, that code should mostly work.

FAQs

Package last updated on 15 May 2019

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