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

@clawmapper/publish

v1.0.0

Published

CLI for publishing self-contained HTML pages to a publish-service instance

Downloads

36

Readme

@clawmapper/publish

CLI for publishing self-contained HTML pages to a publish-service instance.

Install

npm install -g @clawmapper/publish

Configure

Run once to save your server URL and API key:

publish configure
# Base URL: https://your-service.example.com
# API key:  pub_live_xxxx...

Config is saved to ~/.publish.json with permissions 600.

Commands

publish upload <file>

Publish an HTML file. Prints the page URL on success.

# Public — anyone with the link can view
publish upload report.html --public --title "Q4 Report"

# Password protected
publish upload report.html --password "hunter2" --title "Internal Report"

# Restricted to specific emails or domains
publish upload report.html --allow "[email protected],[email protected]"
publish upload report.html --allow "*@corp.com"
publish upload report.html --allow "[email protected],*@corp.com"

# Update an existing page (preserves its auth settings unless flags are given)
publish upload report-v2.html --slug aB3xY7qZ

Options

| Flag | Description | |---|---| | --title <title> | Human-readable page title | | --public | No authentication | | --password <pw> | Protect with a shared password | | --allow <list> | Comma-separated emails and/or *@domain.com wildcards | | --slug <slug> | Update an existing page instead of creating a new one |

If no auth flag is given, the CLI will prompt interactively.


publish list

List all published pages.

publish list

publish open <slug>

Open a page in your default browser.

publish open aB3xY7qZ

publish auth <slug>

Show or update the auth settings for a page.

# Show current settings
publish auth aB3xY7qZ

# Make public
publish auth aB3xY7qZ --public

# Change password
publish auth aB3xY7qZ --password "newpassword"

# Replace the allowed list entirely
publish auth aB3xY7qZ --set "[email protected],*@corp.com"

# Add to the allowed list
publish auth aB3xY7qZ --add "[email protected]"

# Remove from the allowed list
publish auth aB3xY7qZ --remove "[email protected]"

publish delete <slug>

Delete a page (prompts for confirmation).

publish delete aB3xY7qZ

HTML requirements

Pages must be fully self-contained — all CSS, JavaScript, fonts, and images must be either inlined or hosted at a publicly accessible URL. Private URLs (e.g. private GitHub raw links) will not load for viewers who don't have access.

Auth modes

| Mode | How it works | |---|---| | public | Anyone with the URL can view | | password | Visitors enter a shared password; session lasts 7 days | | email_list | Visitors enter their email; a one-time magic link is sent if they're on the list | | email_domain | Same as above but access is granted to an entire domain (e.g. *@corp.com) |

Email-based auth requires the server to be configured with a Resend API key. If it isn't, visitors will see a clear error rather than a broken flow.