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

postpage

v0.0.2

Published

CLI for postpage.ai — publish a self-contained HTML document as an isolated static web page.

Readme

postpage CLI

First-party command-line interface over the Postpage HTTP API.

# Publish without logging in at all — the first publish mints a guest
# account (5 pages/day; pages are deleted 1 week after publish) and the
# CLI stores its token so it can keep managing the page
echo '<h1>hi</h1>' | postpage publish

# One-time: log in via the browser (WorkOS device flow) …
postpage login

# … or store a static bearer token (dev stub / CI)
postpage login --token user-1 --api-url http://localhost:8787

# Publish a document
generate-report | postpage publish
postpage publish report.html

# Everything else
postpage update <uuid> report.html
postpage pull <uuid> --output report.html      # stdout without --output
postpage list --collection all --all
postpage sharing <uuid> specific_users --email [email protected]
postpage delete <uuid> --force
postpage whoami
postpage logout

# Use the API directly with a fresh access token
curl -H "Authorization: Bearer $(postpage token)" https://api.postpage.ai/v1/pages

Every command accepts --json for machine-readable output and --api-url to target a specific API origin (also POSTPAGE_API_URL). A POSTPAGE_TOKEN environment variable overrides stored credentials — useful for scripts and agents.

Authentication

postpage login runs the OAuth 2.0 Device Authorization flow against WorkOS CLI Auth: it prints a verification URL and code, waits for browser approval, and stores the tokens in ~/.config/postpage/credentials.json (mode 0600; override the directory with POSTPAGE_CONFIG_DIR). Access tokens are refreshed automatically; when the refresh token expires you are asked to log in again. The production WorkOS client id is built in; override it with --client-id or POSTPAGE_WORKOS_CLIENT_ID.

postpage publish needs no authentication at all: with no stored credentials it publishes anonymously, and the guest bearer token the API returns (exactly once) is stored as the CLI's credentials so later update/sharing/delete calls work on the page. The token itself is never printed; --json output marks the result with "guest": true. Logging in later replaces the guest credentials — keeping a page past the anonymous tier means republishing it while signed in.

postpage token prints a currently valid access token (refreshing first when needed) for use outside the CLI, e.g. curl -H "Authorization: Bearer $(postpage token)" ….

Development

pnpm build       # tsc -> dist/, bin: dist/main.js
pnpm typecheck
pnpm test        # vitest unit tests

No runtime dependencies; requires Node ≥ 20.