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

previewbox-cli

v1.2.5

Published

A lightweight CLI tool for deploying static site previews with ease

Readme

PreviewBox CLI

A lightweight CLI tool for deploying static site previews with email-based authentication.

Installation

npm install -g previewbox-cli

Usage

Authentication

Create Account

Sign up for a new account with email and password:

previewbox auth signup --email <email> --password <password>

This creates a new account, saves your authentication token, and automatically opens your browser for email verification.

Login

Sign in to an existing account:

previewbox auth login --email <email> --password <password>

If your email isn't verified, the CLI will guide you through the verification process.

Email Verification

After signup or login, if your email isn't verified, the CLI will:

  1. Open your browser to https://www.previewbox.dev/verify/<email>
  2. Watch for verification completion in real-time
  3. Notify you when verification is complete

You can verify your email later by running previewbox publish with an unverified account.

Publish a Directory

Create a preview by publishing a directory of static files:

previewbox publish <directory>

This will:

  • Check your email verification status
  • Upload all files in directory (recursively)
  • Provide a temporary preview URL that expires in 7 days
  • Require verified email for preview creation

List Previews

View all available previews (now public):

previewbox list

For detailed listing with filtering and sorting options:

previewbox list-previews [options]

Options:

  • -f, --format <format>: Output format (table|json)
  • -s, --sort <field>: Sort by field (created|expires|hash|url)
  • -r, --reverse: Reverse sort order
  • --search <query>: Search previews by hash or URL
  • --active-only: Show only active (non-expired) previews
  • --expired-only: Show only expired previews

Remove a Preview

Delete a preview by its hash or URL:

previewbox remove <hash-or-url>

Authentication Flow

  1. Signuppreviewbox auth signup → Create account → Email verification → JWT token saved
  2. Loginpreviewbox auth login → Authenticate → Email verification (if needed) → JWT token saved
  3. Publishpreviewbox publish → Check verification status → Upload files → Preview created

Your JWT token is stored in ~/.previewbox/token for future use.

Requirements

  • Node.js 18+
  • Verified email address (required for creating previews)

Features

  • Email-based Authentication: Secure JWT-based authentication with email verification
  • Automatic Verification: Real-time verification watching via Server-Sent Events
  • Public Discovery: List and view previews without authentication
  • File Management: Upload, list, and remove previews
  • Search & Filter: Advanced preview listing with search and filtering options

License

ISC

Usage

Register

Generate a new API token:

previewbox register

This will generate a new token, save it, and display it for your reference.

Login

Alternatively, authenticate with an existing API token:

previewbox login <token>

Provide your API token as an argument.

Publish a Directory

Create a preview by publishing a directory of static files:

previewbox publish <directory>

This will upload all files in the directory (recursively) and provide a temporary preview URL that expires in 7 days.

List Previews

View your active previews:

previewbox list

Remove a Preview

Delete a preview by its hash or URL:

previewbox remove <hash>

Requirements

  • Node.js 18+

License

ISC