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

planlink

v0.1.5

Published

Static HTML draft publishing for agents.

Downloads

748

Readme

PlanLink

PlanLink is a Bun-powered TypeScript service and CLI for publishing static HTML drafts from agents.

The app keeps the original behavior:

  • Validate static HTML locally before upload.
  • Upload drafts through a CLI.
  • Store draft metadata and versions in Postgres.
  • Store HTML documents in S3-compatible object storage.
  • Render public drafts inside a sandboxed iframe.
  • Show draft versions and review Q&A outside the sandboxed iframe.
  • Read section run-throughs aloud in Chrome with browser-native text-to-speech.
  • Support optional API keys for admin and authenticated ownership flows.

CLI

Install dependencies:

bun install

Build the project, then run the CLI:

bun run build
bun dist/bin/planlink.js upload ./plan.html

During development you can run the TypeScript CLI directly with Bun:

bun run cli upload ./plan.html --api-url http://localhost:3000

Set optional credentials:

bun run cli auth set <api-key> --api-url http://localhost:3000

The CLI stores optional credentials and draft mappings in ~/.planlink.

Once published, the package can also be run directly:

bunx planlink upload ./plan.html

By default the CLI uploads to https://planlink.spiritdevs.com. Use --api-url or PLANLINK_API_URL to point the CLI at another PlanLink deployment.

Manage drafts uploaded with the configured API key:

bunx planlink drafts list
bunx planlink drafts delete <draft-id> --yes
bunx planlink drafts delete-all --yes

Draft management requires planlink auth set <api-key> and only applies to drafts owned by that key's account.

Review Q&A

Every public draft includes a bottom review panel. Viewers can switch between saved plan versions, read questions and answers, and copy an AI-ready prompt for any question.

Owners can unlock editing in the review panel with their PlanLink API key. Owner mode can add questions and save plain-text answers against the selected plan version. Re-uploading the same local HTML file updates the existing draft and creates a new version; use --new when you want a separate draft instead.

Audio Run-Throughs

PlanLink extracts narrated section notes from static HTML and exposes them in the bottom panel. In Chrome, the panel can read the selected section aloud using the browser's built-in speechSynthesis API.

For best results, add an aside at the bottom of each plan section:

<aside data-planlink-narration>
  A detailed listener-friendly explanation of this section.
</aside>

If a draft does not include explicit narration blocks, PlanLink falls back to the visible heading text and section body.

Service

Required service variables:

  • DATABASE_URL
  • PLANLINK_BOOTSTRAP_API_KEY
  • AWS_ENDPOINT_URL
  • AWS_ACCESS_KEY_ID
  • AWS_SECRET_ACCESS_KEY
  • AWS_S3_BUCKET_NAME
  • AWS_DEFAULT_REGION

Optional service variables:

  • PORT
  • PLANLINK_PUBLIC_BASE_URL
  • MAX_HTML_BYTES
  • UPLOAD_BODY_LIMIT
  • UPLOAD_IP_RATE_LIMIT_WINDOW_MS
  • UPLOAD_IP_RATE_LIMIT_MAX
  • UPLOAD_RATE_LIMIT_WINDOW_MS
  • UPLOAD_RATE_LIMIT_MAX
  • AWS_S3_FORCE_PATH_STYLE

Run the service:

bun run build
bun start

Development mode:

bun run dev

Railway

PlanLink is ready for Railway using the included railway.json and nixpacks.toml files. The service still needs Railway Postgres and a Railway Storage Bucket wired through the required environment variables above.

Scripts

bun run build
bun run typecheck
bun test

Original Source

The npm tarball used for this port is kept under downloads/ for reference. The new TypeScript implementation lives in src/ and is the app code intended for ongoing Git-based development.

Credits

PlanLink is based on the original postplan npm package by Theo.