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

@justlab/create-saas-stack

v0.1.1

Published

Codex agent-ready production SaaS app generator.

Readme

create-saas-stack

create-saas-stack is a local CLI generator in the sassy-codex repository that scaffolds a production-minded SaaS monorepo from the architecture in Codex.md.

It generates:

  • Next.js (App Router) web app
  • Node worker service with pg-boss
  • Prisma + Supabase Postgres/Storage
  • Clerk auth (with optional orgs)
  • Stripe billing via webhook-first state handling
  • Loops event delivery through background jobs
  • Docker-first infrastructure and CI-friendly layout

Getting started (local clone + local CLI)

1) Clone and install

git clone https://github.com/abshkd/sassy-codex.git
cd sassy-codex
pnpm install

2) Run the generator from this repo

pnpm exec create-saas-stack my-saas
# or
node src/cli.mjs my-saas

3) Enter generated project and run it

cd my-saas
pnpm install
pnpm dev

Setting up the generated SaaS app for development

Inside the generated repo:

  1. Copy environment defaults:
    cp .env.example .env
  2. Fill provider keys (Clerk, Stripe, Supabase, Loops, Sentry).
  3. Start app + worker:
    pnpm dev
    pnpm worker
  4. Run quality checks before shipping:
    pnpm typecheck
    pnpm lint
    pnpm test

Local architecture expectations

  • Keep request handlers light and enqueue heavy work to the worker.
  • Treat webhook and background processing as idempotent.
  • Keep business logic in TypeScript services (not SQL triggers/procedures).

Provider configuration for development

Clerk

  • Configure frontend and backend keys.
  • If org mode is enabled, validate org membership flows.
  • Mirror Clerk identities to app-owned tables (User, Org, OrgMember) through app logic.

Supabase

  • Configure Postgres connection string for Prisma.
  • Configure Storage bucket and signed upload URL flow.
  • Keep Supabase Auth disabled for baseline (Clerk is the auth source).

Stripe

  • Configure API key and webhook secret.
  • Use Stripe webhooks as the source of truth for subscription status.
  • Validate idempotency using Stripe event IDs.

Loops

  • Configure API key and event identifiers.
  • Emit lifecycle events from app code and deliver from worker with retries.
  • De-dupe sends with your own event IDs.

Sentry

  • Configure DSNs for web and worker.
  • Keep instrumentation enabled in all environments to catch integration issues early.

Motivation: save tokens and help Codex produce production-ready SaaS faster

This project follows a harness-style engineering mindset: constrain the problem, standardize interfaces, and codify repeatable checks.

Why this helps:

  • Smaller prompt surface: a fixed stack reduces branching decisions, so Codex spends fewer tokens on architecture debates.
  • Deterministic generation: repeated runs produce a familiar structure, making edits and reviews faster.
  • Operational guardrails: webhook-first billing, worker-based async jobs, and idempotency defaults reduce rework.
  • Faster debug loops: consistent layout and provider contracts let Codex patch known seams quickly.
  • Production readiness by default: Dockerized services, strict TypeScript, and baseline checks move teams from idea to deploy with less manual hardening.

Production deployment notes

Production deployment guidance should live in each generated app's own docs so it stays aligned with that app's concrete provider settings, infrastructure topology, and runtime constraints.

Best way to use the generated app with Codex

  • Treat the generated repository's AGENTS.md as the primary Codex operating contract.
  • Keep prompts task-specific and include failing command output when asking for fixes.
  • Ask Codex to run and report typecheck, lint, and test after meaningful changes.
  • Prefer small iterative PRs so behavior is validated incrementally.

In short: use AGENTS.md as the source of truth for how Codex should work inside the generated app.