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/w3up-cli

v3.0.1

Published

💾 w3 command line interface

Downloads

17

Readme

Getting started

Install the CLI from npm :

npm install -g @web3-storage/w3cli

Create a new space for storing your data and register it:

w3 space create Documents # pick a good name!
w3 space register [email protected]

Upload a file or directory:

w3 up recipies.txt

Commands


w3 up <path> [path...]

Upload file(s) 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
  • -H, --hidden Include paths that start with "."

w3 ls

List all the uploads registered in the current space.

  • --json Format as newline delimted JSON
  • --shards Pretty print with shards in output

w3 rm <root-cid>

Remove an upload from the uploads listing. Note that this command does not remove the data from the IPFS network, nor does it remove it from space storage (by default).

  • --shards Also remove all shards referenced by the upload from the store. Use with caution and ensure other uploads do not reference the same shards.

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 whoami

Print information about the current agent.

w3 space add <proof.ucan>

Add a space to the agent. The proof is a CAR encoded delegation to this agent.

w3 space create [name]

Create a new w3 space with an optional name.

w3 space ls

List spaces known to the agent.

w3 space register <email>

Claim the space by associating it with your email address.

w3 space use <did>

Set the current space in use by the agent.

w3 delegation create <audience-did>

Create a delegation to the passed audience for the given abilities with the current space as the resource.

  • --can One or more abilities to delegate, default * (everything).
  • --name Human readable name for the audience receiving the delegation.
  • --type Type of the audience receiving the delegation, one of: device, app, service.
  • --output Path of file to write the exported delegation data to.

w3 delegation ls

List delegations created by this agent for others.

  • --json Format as newline delimted JSON

w3 proof add <proof.ucan>

Add a proof delegated to this agent. The proof is a CAR encoded delegation to this agent. Note: you probably want to use w3 space add unless you know the delegation you received targets a resource other than a w3 space.

w3 proof ls

List proofs of delegated capabilities. Proofs are delegations with an audience matching the agent DID.

  • --json Format as newline delimted JSON

w3 can space info <did>

w3 can space recover <email>

w3 can store add <car-path>

Store a CAR file to web3.storage.

w3 can store ls

w3 can store rm <car-cid>

w3 can upload add <root-cid> <shard-cid> [shard-cid...]

Register an upload - a DAG with the given root data CID that is stored in the given CAR shard(s), identified by CAR CIDs.

w3 can upload ls

w3 can upload rm <root-cid>

Contributing

Feel free to join in. All welcome. Please read our contributing guidelines and/or open an issue!

License

Dual-licensed under MIT + Apache 2.0