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

@next-starters/skill-prod-deploy

v1.0.0

Published

The prod half of an ENV-selected runtime-env stack (api→Render, web→Vercel, DB→Supabase Cloud) — the counterpart to runtime-env-config (app-side loader/EnvProvider) and local-dev-stack (local stack).…

Downloads

18

Readme

prod-deploy

The prod half of an ENV-selected runtime-env stack: bringing the same image up in production the first time on api→Render · web→Vercel · DB→Supabase Cloud. Counterpart to skills/runtime-env-config (the app-side loader + EnvProvider chain) and skills/local-dev-stack (the operational local stack). The load-bearing fact: a git push does not bring prod up — secrets, DB migrations, and Supabase-cloud auth config are manual, per-env, one-time setup.

Why the loader can't save you

On both platforms the runtime loader finds no .env files:

  • Render — the image .dockerignores .env.*, so they never ship.
  • Vercel — the runtime server-preload.cjs never executes.

So process.env is the only source and every var (secret and the "non-secret" .env.<stage> set) must be entered in the platform env. Platform-injected process.env wins (override:false).

The prod side

  • Set every var on the platform — not just secrets; the type:'public' .env.<stage> keys (ENV, URLs, selectors) too.
  • Inject ENV=<stage> on each platform — the stage selector, distinct from NODE_ENV; missing it, the loader falls back to base .env.
  • Secrets by registry — derive the per-platform list from the env registry's type/source; .env.<stage>.local is the name list, values entered by hand.
  • Migrate manuallydb:deploy = db:migrate && db:post (schema → RLS + auth-hook), run against the cloud direct/session URL. No migrate-on-deploy; Drizzle owns the schema.
  • Supabase Cloud dashboard — register the access-token hook (or JWTs carry no org/role), set the captcha secret, turn email confirmations ON; config.toml can't carry these.
  • Connection strings — app :6543 {prepare:false}, migrations :5432 {max:1}; but Render egress needs session :5432 + sslmode=require for both, or ECONNREFUSED on first boot.
  • Build ≠ runtimenext build must NOT run the preload; runtime env comes from platform injection.
  • Automate the setup, not the deploy — the first deploy is a deliberate human trigger.

Use it

Read SKILL.md for the 14 invariants (one verifiable todo each) and the red flags. The last 6 (9–14) were added after a 13-repo rollout of this pattern: detecting which org/role model applies before picking a verify method, the DB driver+SSL decision table (the #1 repeated deploy-killing mistake), checking migration drift + a baseline recipe before running db:deploy on a pre-existing DB, a near-free rowsecurity=false sweep that's caught a real live P0, a set of Vercel-specific landmines (ciphertext, ignoreCommand batched-push bugs, monorepo rootDir-skip), and the JIT-provisioning onboarding-gap check. Copy the genericized templates from references/:

  • PROD-DEPLOY-checklist.md — a fill-in checklist to drop into your repo as docs/PROD-DEPLOY.md.
  • render.yaml — the annotated Render blueprint (ENV, non-secret inline values, sync:false secret prompts, the :5432/sslmode caveat).
  • deploy-env.mjs — a SAFE, dry-run-by-default env pusher for the Render API + vercel env (node deploy-env.mjs --stage <stage> prints the plan; --apply to write; never echoes secret values).

Swap the <scope> / <app> / <stage> placeholders for your own.

Companion

Pairs with skills/runtime-env-config (the loader + EnvProvider chain and the typed env registry this skill derives the per-platform var lists from) and skills/local-dev-stack (whose db:post post-schema step is the same db:deploy run here against the cloud). Canonical schema in docs/ENVIRONMENT-CONFIG.md.