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 🙏

© 2026 – Pkg Stats / Ryan Hefner

cube-cli

v2.1.1

Published

A CLI client for Cube

Readme

cube-cli

A CLI client for Cube

Install

> npm i -g cube-cli

Usage

cube init

You will need to use init to initialize your account.

> cube init

You will be prompted for credit card information. Since Cube is currently in test mode, you may just use the Stripe test card info:

  • Card Number: 4242424242424242
  • Expiration: 01/20
  • CVC: 123

cube deposit

Adds funds to your account so you may pay for files.

> cube deposit
> cube deposit --amount=10
> cube deposit -a 10

Options:

  • -a <amount>, --amounts=<amount> - Specify an amount of money to be deposited. If not supplied, a prompt will be given.

cube add <file>...

Adds files (or directories) to IPFS, then pins the ref on Cube.

> cube add file.jpg
> cube add a.jpg b.png
> cube add -r directory/
> cube add --private somefile

When files are pinned to Cube, they will be publicly accessible. Anyone may add credit to a file already pinned on Cube, which will increase the amount of time the data will be stored or the available bandwidth.

Options:

  • -r, --recursive - Add recursively
  • -s <days>, --storage=<days> - The number of days to store the file for. If not specified, the user will be prompted.
  • -b <MB>, --bandwidth=<MB> - The amount of bandwidth to give the file. If not specified, the user will be prompted.
  • -p, --private - Adds credit to refs privately. For more info about private refs, see Private Refs.

cube put <hash>...

Adds credit to an IPFS path or hash.

> cube put QmT5M8bpZeZMPAQXtqJ2hQp3kaEsf6zpz5qm6wvx4Sqh78
> cube put /ipfs/QmPKPZzPQRK62trV4WEnhKVNJ5miDHNz8Hr99h4zoydk7Z/README.md
> cube put /ipns/QmcgPkZSRuqDj3hbmCnf7qrYnZ5WDw4dvwVanMau58Ejob
> cube put --private QmT5M8bpZeZMPAQXtqJ2hQp3kaEsf6zpz5qm6wvx4Sqh78

put is almost identical to add, but uses a hash or path of a file that is already added to IPFS (without requiring to add the file to IPFS again, or to even have the data locally). This can be helpful when adding credit to large files.

Options:

  • -s <days>, --storage=<days> - The number of days to store the file for. If not specified, the user will be prompted.
  • -b <MB>, --bandwidth=<MB> - The amount of bandwidth to give the file. If not specified, the user will be prompted.
  • -p, --private - Adds credit to refs privately. For more info about private refs, see Private Refs.

cube stat <hash>

Shows information about a ref.

> cube stat QmT5M8bpZeZMPAQXtqJ2hQp3kaEsf6zpz5qm6wvx4Sqh78
> cube stat /ipfs/QmPKPZzPQRK62trV4WEnhKVNJ5miDHNz8Hr99h4zoydk7Z/README.md

Options:

  • -sc, --show-credit - Shows the amount of credit that was added to this ref.

cube user

Shows information about the local Cube user account.

> cube user

Private Refs

Sometimes, a ref may be commonly used by the network, e.g. a popular cat picture. When all of its bandwidth credit is consumed it will be inaccessible, which can be disruptive to any website that linked to the picture.

Credit can be added to refs privately, which will add bandwidth to a file that may only be consumed by users that have the private URL (e.g. the owner of a website that wants to ensure the cat picture will be available for his/her own users).

Add private credit using cube add -p <file> or cube put -p <file>. Anyone who has the private access URL returned by these commands will be able to access file file using the private bandwidth credits.