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

cidhookd

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cidhookd

A webhook server for pinning ipfs cids

  • 0.1.0
  • npm
  • Socket score

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

cidhook Build Status

A tool for easily pinning IPFS cids from ephemeral environments (like CI, local machine, etc).

Example CI

script:
  - npm run build:production
  - jsipfs init
  - jsipfs daemon &
  - cidhook cidhook.commontheory.io $(jsipfs add -Qr ./static)

The script above assumes there is a cidhook server running at https://cidhook.commontheory.io. The directory ./static is pinned to IPFS recursively on the current machine, then the cidhook command is used to ensure the remote server has pinned the content. Once the cidhook command finishes the current machine can be safely destroyed without content falling off the network.

This can be used to seed content into swarms of machines and the IPFS network more generally.

Install

Install the cli with npm install -g cidhook

Server

The docker image jchancehud/cidhook should be used as the server.

cidhook http servers have 2 endpoints:

  • /:cid - POST - Pins the supplied IPFS cid
  • /:cid - DELETE - Unpins the supplied IPFS cid

The cidhook server runs a jsipfs node with requested content pinned.

CLI

The cidhook command can be used to interact with remote cidhook instances.

cidhook <url> <cid> [pin|unpin]

The CLI is a thin wrapper for making the actual http request.

License

MIT

FAQs

Package last updated on 13 Jan 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