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

x02-cli

v1.1.0

Published

Official CLI tool for X02 file hosting platform

Readme

X02 CLI

Official command-line interface for the X02 file hosting platform.

Installation

npm install -g x02-cli

For local development:

cd cli
npm install
npm link

Quick Start

x02 login
x02 upload screenshot.png
x02 upload screenshot.png report.pdf notes.txt
x02 upload --url https://example.com/photo.jpg
x02 list
x02 info screenshot.png

If you are already logged in and want to switch accounts:

x02 logout
x02 login

Or replace the saved key directly:

x02 login --replace --key YOUR_API_KEY

Commands

Authentication

x02 login
x02 login --key YOUR_API_KEY
x02 login --replace --key YOUR_API_KEY
x02 logout
x02 status

File Operations

x02 upload file.png
x02 upload file1.png file2.jpg file3.pdf
x02 upload file.png --expiry 1d --copy
x02 upload file1.png file2.jpg --dry-run
x02 upload --url https://example.com/photo.jpg
x02 upload --url https://example.com/photo.jpg --expiry 1d --copy
x02 list
x02 list --json
x02 info file.png
x02 delete file.png --force

Bulk upload is supported by passing multiple files to x02 upload. You can also upload images from remote URLs using the --url option.

Folder Operations

x02 folder list
x02 folder create Screenshots
x02 folder delete Screenshots
x02 folder move file.png Screenshots
x02 folder move file.png --root

Configuration

x02 config
x02 config get baseUrl
x02 config set baseUrl https://x02.me
x02 config set autoCopy true
x02 config delete defaultFolder

Supported config keys:

  • apiKey
  • baseUrl
  • autoCopy
  • verbose
  • defaultFolder

Environment Overrides

Environment variables take precedence over stored config:

X02_API_KEY=your-key
X02_BASE_URL=https://x02.me
X02_AUTO_COPY=true
X02_VERBOSE=true
X02_DEFAULT_FOLDER=Screenshots

Behavior Notes

  • Configuration is stored in ~/.x02/config.json.
  • upload --dry-run and delete --dry-run validate input without making API changes.
  • Bulk upload is supported: x02 upload file1.png file2.jpg file3.pdf
  • URL upload is supported: x02 upload --url https://example.com/photo.jpg
  • Auth-protected commands fail with exit code 1 when no API key is configured.
  • Running x02 login while already logged in gives guidance instead of overwriting the saved account.
  • npm start prints CLI help and exits successfully.

Development

cd cli
npm test
node bin/x02.js --help

Requirements

  • Node.js >=18

Support