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

postplan-aryan

v0.4.0

Published

Publish a self-contained HTML document and get a link. Convex + S3 backend. Fork of postplan (MIT, t3dotgg).

Readme

postplan-aryan

Publish a self-contained HTML document and get a link back. A fork of postplan (MIT, t3dotgg) with the express + Postgres + S3 server replaced by Convex functions and tables.

npx postplan-aryan auth set <api-key> --api-url https://<your-deployment>.convex.site
npx postplan-aryan upload plan.html

The CLI is upstream's, unmodified. No deployment is baked into the published package: it reads --api-url, then POSTPLAN_API_URL, then ~/.postplan/config.json. Point it at your own instance.

Where uploads go

Uploads go to whichever instance you configured — not postplan.dev. Run auth set once per machine; without it the CLI falls back to postplan.dev, which is somebody else's server.

The instance stores each document in its S3 bucket and serves it at /d/<draftId>. Re-uploading the same file path updates that URL in place and bumps the version, so a link you already sent keeps working and keeps showing the latest. --new starts a separate draft instead.

Draft ids are random and unguessable, and there is no listing URL: a link leads to one document and nothing else. /d/<id>/raw returns the source.

Self-hosting

You need a Convex project and an S3 bucket. No Postgres, no Railway.

  1. npm install
  2. Copy .env.example to .env.local and fill in your deployment.
  3. Set the server env vars on your deployment:
npx convex env set --prod S3_BUCKET <bucket>
npx convex env set --prod S3_REGION <region>
npx convex env set --prod S3_PREFIX <prefix>
npx convex env set --prod S3_ACCESS_KEY_ID <key>
npx convex env set --prod S3_SECRET_ACCESS_KEY <secret>
npx convex env set --prod POSTPLAN_PUBLIC_BASE_URL https://<deployment>.convex.site
npx convex env set --prod POSTPLAN_API_KEY <a long random string>

Set POSTPLAN_API_KEY. With it unset the upload endpoint is open, and anyone who learns your deployment URL can write HTML into your bucket and have it served from your origin.

  1. npx convex deploy

Give the bucket a private prefix for drafts; they are reachable only through /d/<draftId>. Use an IAM user scoped to that prefix, with no ListBucket.

What changed from upstream

  • express + pg + @aws-sdk/client-s3 + jose are gone; Convex serves the API and holds drafts and versions.
  • HTML goes to S3 addressed by content hash, so re-uploading identical HTML is idempotent.
  • src/html-policy.js is unchanged apart from Buffer.byteLength becoming TextEncoder, since Convex is V8 without Node globals. It is still enforced server side.