
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
@noisekit/ipns-deploy
Advanced tools
ipns-deploy
is a command-line utility for publishing IPFS content identifiers (CIDs) to IPNS keys. It is designed to work in conjunction with ipfs-deploy
, which uploads files and returns the corresponding CID.
By using ipns-deploy
together with ipfs-deploy
, you can publish your uploaded files' CID to an IPNS key, making it easier to manage and share your content on IPFS.
npm install -g @noisekit/ipns-deploy
Configure the environment variables with your IPFS cluster credentials and settings.
IPFS_HOST=ipfs.synthetix.io
IPFS_PORT=443
IPFS_PROTOCOL=https
IPFS_USER=
IPFS_PASS=
Usage and examples
# Publish a CID to an IPNS key
# Usage: ipns-deploy KEY CID
# Example: Publish the CID obtained from ipfs-deploy to the 'staking.synthetix.eth' IPNS key
ipns-deploy "staking.synthetix.eth" QmAbCdEf1234567890
# Publish a CID obtained from an `ipfs-deploy` execution to the 'staking.synthetix.eth' IPNS key
export IPFS_CID=$(ipfs-deploy ./public)
ipns-deploy "staking.synthetix.eth" "$IPFS_CID"
# DEBUG mode to view additional information
DEBUG=ipns-deploy ipns-deploy "staking.synthetix.eth" QmXyZaBc1234567890
If the IPNS key was not added to the IPFS server it needs to be added first.
NOTE: This needs to be executed on the remote IPFS Cluster server
Generate PEM PKCS8 key
openssl genpkey -algorithm RSA -pkeyopt rsa_keygen_bits:2048 -out staking.synthetix.eth -outform PEM
Import the key
ipfs key import staking.synthetix.eth --format=pem-pkcs8-cleartext staking.synthetix.eth
# This returns the key ID (IPNS name)
# k2k4r8jvf8qlg4ytq7y3ta749vkjzms0hisd9i92ohk0lsp0yestbhy3
Check all the keys added
ipfs key list
Check the IPNS URL can be resolved
curl http://k2k4r8jvf8qlg4ytq7y3ta749vkjzms0hisd9i92ohk0lsp0yestbhy3.ipns.localhost:8080/
FAQs
Unknown package
The npm package @noisekit/ipns-deploy receives a total of 0 weekly downloads. As such, @noisekit/ipns-deploy popularity was classified as not popular.
We found that @noisekit/ipns-deploy demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Security News
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.