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

create-codewave-app

v0.1.1

Published

Production Next.js scaffolder — tRPC, TanStack Query, Better Auth, Prisma, shadcn

Readme

create-codewave-app

A CLI that scaffolds opinionated, production-ready Next.js applications. Composes Next 16 + tRPC + TanStack Query + Tailwind v4 + shadcn/ui + Prisma 7

  • Better Auth + Resend into a working codebase that builds cleanly on the first try.

Quick start

# Interactive (walks you through prompts)
npx create-codewave-app@latest my-app

# Non-interactive (flag-driven, suitable for CI)
npx create-codewave-app@latest my-app \
  --db prisma-postgres \
  --auth better-auth \
  --auth-plugins 2fa,google,github \
  --email \
  --pm pnpm \
  --src-dir \
  --install \
  --git \
  --yes

Both modes produce identical output. --yes skips all confirms and uses defaults for any unspecified flag.

What you get

A Next.js 16 App Router project with:

| Layer | Technology | |----------|----------------------------------------------| | Runtime | Next 16, React 19, TypeScript (strict) | | Styling | Tailwind v4 (via @tailwindcss/postcss), shadcn/ui baseline | | API | tRPC v11, TanStack Query v5, superjson | | Database | Prisma 7 with prisma-client generator (optional) | | Auth | Better Auth 1.x (optional, with plugins) | | Email | Resend + React Email (optional) | | Tooling | ESLint flat config, Prettier-friendly |

Every combination is covered by a scaffold integration test suite that verifies generated file structure, dependency lists, and generated content. End-to-end build smoke tests (install + next build) are run manually before each release.

Features (the things you can mix in)

  • --db prisma-postgres — Prisma 7 + @prisma/adapter-pg + pg. Connection via DATABASE_URL.
  • --db prisma-sqlite — Prisma 7 + @prisma/adapter-better-sqlite3 + better-sqlite3. DATABASE_URL="file:./dev.db" by default.
  • --auth better-auth — Better Auth wired to your Prisma db. Sign-in, sign-up, forgot-password, reset-password, verify-email, and a protected dashboard. Adds protectedProcedure to tRPC.
  • --auth-plugins 2fa — Two-factor (TOTP / email OTP / backup codes) page + form. Extends the Prisma User model and adds a TwoFactor model automatically.
  • --auth-plugins google,github — Social OAuth providers. Each adds *_CLIENT_ID / *_CLIENT_SECRET env vars.
  • --email — Resend + React Email templates for verification, password reset, and OTP. When auth is selected without email, a stub lib/email.ts is emitted so the build still works.

CLI flags

| Flag | Values | Default | |-------------------------------|----------------------------------------------|---------------| | [name] (positional) | ., a name, or any path | (prompt) | | --db | prisma-postgres, prisma-sqlite, none | prompt | | --auth | better-auth, none | prompt | | --auth-plugins | csv of 2fa, google, github | none | | --storage | none | none | | --email / --no-email | boolean | prompt | | --src-dir / --no-src-dir | boolean | true | | --pm | npm, pnpm, yarn | auto-detect | | --install / --no-install | boolean | true | | --git / --no-git | boolean | true | | -y / --yes | flag | false |

Project name forms

The positional argument can be any of:

  • . — scaffold into the current directory (must be empty or contain only .git)
  • my-app — scaffold into ./my-app
  • foo/my-app — scaffold into ./foo/my-app (creates the parent)
  • /abs/path/my-app — scaffold into the absolute path
  • C:\Users\me\my-app — Windows path, same idea

The basename always becomes the name in the generated package.json.

Next steps after scaffold

cd my-app
cp .env.example .env.local        # fill in secrets
pnpm install                       # if --no-install
pnpm exec prisma generate          # if you picked Prisma
pnpm exec prisma db push           # create your schema
pnpm dev                           # start the dev server

Contributing

The architecture is documented in progress-tracker.md. Adding a new feature is one folder under src/features/<category>/<id>/ plus one line in src/core/registry.ts and one matrix entry. See any existing feature (prisma-postgres is the simplest) for the pattern.

git clone <repo>
cd create-codewave-app
pnpm install
pnpm typecheck
pnpm lint
pnpm test            # unit tests
pnpm test:scaffold   # integration: scaffold + assert into tempdirs

License

MIT.