npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@web3-storage/w3

v2.8.0

Published

The CLI to save your things in web3.storage ⁂

Downloads

3,223

Readme

Getting started

Install the CLI from npm

$ npm install -g @web3-storage/w3

Login in and create a token on https://web3.storage and pass it to w3 token to save it.

$ w3 token
? Paste your API token for api.web3.storage › <your token here>

⁂ API token saved

Commands

w3 put <path>

Upload files to web3.storage. The IPFS Content ID (CID) for your files is calculated on your machine, and sent up along with your files. web3.storage makes your content available on the IPFS network

  • --no-wrap Don't wrap input files with a directory
  • -n, --name Name to identify the upload
  • -H, --hidden Include paths that start with "."
  • --no-retry Don't try the upload again if it fails

w3 put-car <path>

Upload a CAR file to web3.storage.

  • -n, --name Name to identify the upload
  • --no-retry Don't try the upload again if it fails

w3 open <cid>

Open a CID on https://w3s.link in your browser. You can also pass a CID and a path.

# opens a browser to https://w3s.link/ipfs/bafybeidluj5ub7okodgg5v6l4x3nytpivvcouuxgzuioa6vodg3xt2uqle
w3 open bafybeidluj5ub7okodgg5v6l4x3nytpivvcouuxgzuioa6vodg3xt2uqle

# opens a browser to https://w3s.link/ipfs/bafybeidluj5ub7okodgg5v6l4x3nytpivvcouuxgzuioa6vodg3xt2uqle/olizilla.png
w3 open bafybeidluj5ub7okodgg5v6l4x3nytpivvcouuxgzuioa6vodg3xt2uqle/olizilla.png

w3 get <cid>

Fetch files by CID. They are verified on your machine to ensure you got the eact bytes for the given CID.

  • -o, --output The path to write the files to

w3 list

List all the uploads in your account.

  • --json Format as newline delimted JSON
  • --cid Only print the root CID per upload

w3 status <cid>

Get the Filecoin deals and IPFS pins that contain a given CID, as JSON.

w3 token

Paste in a token to save a new one. Pass in --delete to remove a previously saved token.

  • --api URL for the Web3 Storage API. Default: https://api.web3.storage
  • --delete Delete a previously saved token

w3 name create

❗️Experimental this command may not work, may change, and may be removed.

Create a new name and associated signing key that can be used to create and publish IPNS record revisions. Prints the IPNS name and stores the signing key in config.

w3 name list

❗️Experimental this command may not work, may change, and may be removed.

List IPNS names managed by this utility.

w3 name publish <keyId> <value>

Publish a name revision to Web3.Storage.

❗️Experimental this command may not work, may change, and may be removed.

⚠️ Name records are not yet published to or updated from the IPFS network. Working with name records simply updates the Web3.Storage cache of data.

w3 name resolve <keyId>

❗️Experimental this command may not work, may change, and may be removed.

Resolve the current IPNS record revision for the passed name.

w3 name rm <keyId>

❗️Experimental this command may not work, may change, and may be removed.

Remove an IPNS name managed by this utility. Note: this does NOT unpublish the IPNS name, it simply removes the IPNS name and signing key from local config.