Skip to content

Start your project with Next.js or TanStack Start, or a React + Vite frontend with a Hono or FastAPI API, and PostgreSQL. Add Authentication, Storage, Email, Payments, Background Jobs, Tests and CI. Coding agents can create it too, through the MCP server.

pnpm dlx @clubedge/create-clubedge-app my-app

Six layers, already connected.

Monorepo

Structure that scales past one app. A pnpm workspace orchestrated by Turborepo. Your app lives in apps/web, or a frontend there and its API in apps/api, joined by one OpenAPI contract, which a native app in apps/mobile calls too. Database, auth, storage, cache and UI live in framework-agnostic packages that never import Next.js or TanStack, and lint rules keep it that way.

Data

PostgreSQL as the source of truth. Drizzle centralizes your schema, queries and migrations. Generate, apply, check and seed from scripts, and point it at Supabase PostgreSQL or any reachable provider.

Auth

Sessions handled server-side. Supabase Auth, Better Auth, Firebase or Appwrite behind one AuthProvider interface, so pages and forms never touch the provider SDK. Sessions live in secure cookies, the dashboard redirects signed-out visitors, and sign-in is rate limited. Or create the project with --auth none.

Infrastructure

Adapters, not lock-in. Rate limiting works on day one: Redis when you set REDIS_URL, an in-memory window otherwise. A storage interface with S3-compatible and Supabase Storage adapters means swapping a provider does not touch application code.

UI

A real design layer, not a demo page. @clubedge/ui ships shadcn components on Base UI primitives with a light and dark theme. A working dashboard shows the sidebar, breadcrumbs, tables, cards and forms in use.

Hardening

Safe defaults from commit one. Environment variables are validated with Zod on first use, security headers are set, redirects stay on your origin, cross-site form posts are rejected, and a liveness endpoint is ready for your orchestrator.

Not a folder of snippets. A working application with a real structure, so your first commit is a feature instead of configuration. Browse the complete Starter ↗

Try the mobile app (Android) The Starter's mobile app: Android only, with sample data and no account needed.

Try the native app (Android) The Starter's native app: Android only, with a real account on its live API.

Everything below is installed, configured and tested together

  • Next.js App Router
  • TanStack Start
  • React + Vite
  • React
  • TypeScript
  • Tailwind CSS 4
  • shadcn/ui
  • Hono
  • FastAPI
  • Python
  • OpenAPI
  • pnpm workspaces
  • Turborepo
  • PostgreSQL
  • Drizzle ORM
  • Neon
  • Supabase Auth
  • Better Auth
  • Firebase Auth
  • Appwrite
  • Redis cache
  • S3-compatible storage
  • Docker
  • Stripe
  • Sentry
  • Vitest
  • Playwright
  • ESLint
  • Prettier
  • GitHub Actions

A starter template gives you a page. This gives you a foundation.

A blank Next.js, TanStack Start or Vite app is the easy part. The days go into choosing, wiring and testing everything around it.

What you get A starter template create-clubedge-app
Framework The one you picked Next.js, TanStack Start or React + Vite
A separate API, in TypeScript or Python Hono or FastAPI, on one OpenAPI contract, with or without a website
An Android and iOS app Native with Expo, or Capacitor from the React + Vite app
Monorepo with shared packages
PostgreSQL, Drizzle schema and migrations
Authentication Supabase, Better Auth, Firebase, or Appwrite
Email and password reset
Stripe payments and webhooks
Background jobs with retries
Observability OpenTelemetry or Sentry
Cache and rate limits
File storage S3-compatible or Supabase
Leave out what you don't use
Local services in one command
UI kit and a working dashboard
Security headers and validated environment
Tests and CI
Deploy config for five platforms
Version and commit recorded in package.json
Upgrades that keep your edits
An MCP server for coding agents
Pick your modules in the builder

From command to running dashboard. Four steps, about as long as the install takes.

  • You need
  • Node.js 22.12+
  • pnpm 10.9+
  • Git
  • Internet connection
~/my-app

$pnpm dlx @clubedge/create-clubedge-app my-app

◇ Starter v0.32.0 ready

◇ Which framework should the app use? Next.js

◇ Which framework should the app use? Next.js

✓ Created my-app with Next.js from Starter v0.32.0

✓ apps/web/.env.local created

✓ Git initialized, dependencies installed

✓ Origin recorded in package.json

$pnpm infra:up

✓ PostgreSQL, Redis and S3 storage healthy

$pnpm db:migrate

✓ Migrations applied

$pnpm check:services

✓ PostgreSQL, Redis and file storage reachable

$cd my-app && pnpm dev

✓ Ready on http://localhost:3000

/ landing page

/dashboard working dashboard

/api/health liveness endpoint

Commands you will use from day one

Run from the repository root. Select one to copy it.

Develop

Verify

Database

Production-grade,
from day one

Every project starts from a Starter release that CI has generated, tested, built and booted. Your first day goes into features instead of configuration, and the structure still holds as the project grows.

  • Setups tested per release

    13

  • Options in the builder

    50

npm downloads, last 7 days
115 -92.2%

115 npm downloads in the last 7 days, -92.2% on the week before.

PostgreSQL at its core

Drizzle schema, migrations and seed commands, on any PostgreSQL provider.

A monorepo by default

pnpm workspaces and Turborepo, with shared packages for core, db and UI, plus one per module, from auth to observability.

Hardened from the start

Validated environment, security headers, safe redirects and cross-site request checks.

Tests and CI included

Vitest, Playwright, ESLint and Prettier, run by GitHub Actions on every push.

Deploy in one command

Config for Fly.io, Railway, Render, Vercel or Netlify, and pnpm clubedge deploy for the first deploy.

Upgrade without starting over

Move to newer Starter releases and keep your own edits, merged, not overwritten.

Pick what you need. Start with FastAPI

15 building blocks and 50 options, each with a default that works. Anything you leave out is never generated: not its code, packages or environment variables.

Open the builder
# A React + Vite frontend and an API in Pythonpnpm dlx @clubedge/create-clubedge-app my-app --framework vite --api fastapi # One OpenAPI contract joins them, and the API passes# the same conformance suite as the Hono one.# FastAPI is managed with uv: install it first.
Open with FastAPI in the builder

See how projects
are built with Clubedge Starter

Chess

Live games, a bot, puzzles and lessons

In production 46 hours after the first commit, then from the Starter's 161 tests to 1,517 in a week, on the Starter's structure.

Built by the Clubedge team · Starter v0.30.1

Read the case study →

Chat App

Messages, groups, calls and push

In production 65 minutes after the first commit, with real-time messaging on the Starter's Postgres and no extra service to run.

Built by the Clubedge team · Starter v0.30.0

Read the case study →

Subscription SaaS

Email, Stripe, background jobs

Better Auth with required email confirmation, Stripe subscriptions, and a job queue, on the Docker services. Mailpit catches every email the app sends.

Recorded with create-clubedge-app v0.49.1 · 2 min

Watch the walkthrough →

TanStack Start, no Docker

The other framework, PGlite

The same Starter on TanStack Start, with PGlite as a local Postgres, so nothing needs Docker.

Recorded with create-clubedge-app v0.49.1 · 1 min

Watch the walkthrough →

Minimal foundation

Only what you need

No auth, storage, email or local services, and a memory cache. Fewer packages, nothing to configure, still the same structure.

Recorded with create-clubedge-app v0.49.1 · 1 min

Watch the walkthrough →

Project evolution

Upgrade, add, remove

A project generated from an older Starter, edited by hand, upgraded, then changed with add and remove, with the running app after every step. The hand edits survive.

Recorded with create-clubedge-app v0.49.1 · 2 min

Watch the walkthrough →

Try on Railway

No account, no Docker

One command creates a project on a free Railway VM and runs it behind a preview URL: no Railway account, and nothing to install but Node.js. The VM lasts an hour.

Recorded end to end

Watch the walkthrough →
Release process

Pinned, tested and traceable.

You always know what you installed, and that it was tested the way you will use it.

  • Pinned. The same CLI version always creates the same Starter release, bundled inside the package. It never follows the Starter's main branch.

  • Tested. Before a version publishes, CI generates 13 project setups across all 3 frameworks, then lints, type-checks, runs the unit and Playwright tests, builds and boots each one.

  • Traceable. Your package.json records the CLI version, Starter release, commit and framework it came from.

See the full release process
my-app/package.json
{  "name": "my-app",  "clubedge": {    "cliVersion": "0.49.1",    "starterRef": "v0.32.0",    "starterCommit": "ff2f60ac…",    "framework": "next"  }}
Scope

What this is, and what it isn't.

Knowing the limits up front is part of a foundation you can trust.

What it is

  • A complete reference Starter

    Scaffolded as it exists in the Starter repository.

  • Full-stack, or an API and its apps

    Next.js or TanStack Start, or Hono or FastAPI with React + Vite, Android and iOS apps, or both.

  • Services you choose

    Auth, storage, email, payments, jobs, observability and Redis, each one optional.

  • One tested release per CLI version

    Pinned, so what you scaffold is what was verified.

  • Open source

    Apache-2.0, with no account required.

  • A foundation you own

    Fork it, edit it, keep it.

What it isn't

  • A hosted service

    Nothing runs on our side.

  • A plugin marketplace

    Every module ships with the Starter and is tested with it.

  • Non-React frameworks

    The shared UI package is React.

  • Production-ready on its own

    Review security and deployment choices for your application.

Open source from day one

The CLI and the Starter are built in the open, under Apache-2.0. Read the code, follow every release, report an issue. The project you generate is yours: no lock-in, and nothing that calls home.

CLI
v0.49.1
Starter
v0.32.0
Weekly downloads
115

Published Nov 13, 2026

115 npm downloads in the last 7 days.

Before you run the command.

Need something more specific? The docs cover every command, module and option.

What do I actually get when I run the command?

A new project generated from the Clubedge Starter: a pnpm and Turborepo monorepo with a Next.js or TanStack Start web app (or a separate API with a React + Vite frontend, which can also ship as an Android and iOS app, a native Android and iOS app, or both), framework-agnostic packages for auth, data, storage and caching, a shared shadcn/ui package, PostgreSQL through Drizzle, sign-in through Supabase Auth, Better Auth, Firebase or Appwrite, optional Redis and background jobs, S3-compatible and Supabase storage adapters, local services you start with one command, Zod-validated environment, security headers, a health endpoint, Docker support, and a test and CI setup using Vitest, Playwright, ESLint, Prettier and GitHub Actions.

Next.js or TanStack Start: which should I pick?

Both generate the same product: the same pages, auth flow, dashboard, security headers and packages, verified by the same browser tests. Pick Next.js for the App Router and React Server Components, or TanStack Start for Vite, type-safe routing and server functions. Choose with --framework next or --framework tanstack-start; when you run the CLI interactively, it asks.

Can I use a separate API, or a Python backend?

Yes. --framework vite creates a React + Vite frontend in apps/web, and --api picks its API in apps/api: --api hono for Hono in TypeScript, or --api fastapi for FastAPI in Python, managed with uv (install uv first). One OpenAPI contract in packages/contract joins them: the frontend calls the API only through the client generated from it, and every API passes the same conformance suite over HTTP. pnpm dev starts both, and the frontend forwards /api to the API, so the browser sees one origin. With either API, sign-in can use any of the four auth providers, and the pair deploys with Docker or Railway. Every other module works as it does on Next.js: storage, Redis, email, Stripe payments, background jobs and observability run in the API, and the frontend has the billing and jobs cards and an account settings page. The one exception is pg-boss on FastAPI: pg-boss has no Python version, so FastAPI's background jobs run on BullMQ or Inngest. A full-stack framework has its own server, so it takes no --api.

Can it make a mobile app?

Yes, two kinds, and a project can have both. --mobile expo adds a native Android and iOS app in apps/mobile, built with Expo SDK 58 and React Native, with screens of its own: sign-in, sign-up and password reset, a dashboard, and settings with account deletion. It calls the API with the same contract client, through your website with --framework vite, or directly with --framework none, and signs in with Supabase Auth or Better Auth; pnpm --filter @clubedge/mobile-app android, or ios on a Mac, builds and runs it, and the project's CI builds a release APK. --shell capacitor instead packages the React + Vite frontend as an Android and iOS app with Capacitor 8, in apps/shell: it loads the website's pages from the device, calls the API through your deployed website, and keeps its session on the device, so sign-in works with all four auth providers. pnpm --filter @clubedge/shell android creates its native project and opens it in Android Studio, and a demo build runs with sample data and no server; the Starter's is clubedge-demo.apk, attached to each Starter release, to install on an Android phone. Both ask for an update when the API serves newer versions, and require one below the minimum version you set. Next.js and TanStack Start have no separate API for an app to call, so they take neither, and the apps have no in-app payments: subscriptions stay on the website.

Can I build only an API, without a website?

Yes. --framework none leaves the website out: the project is its API, Hono or FastAPI, with or without the native app, which then calls the API directly. pnpm dev runs the API on port 3001, on every interface in development, so a phone on the same network reaches it. Better Auth then runs in the Hono API, at /api/auth, and emailed links, such as password resets, open the native app. Payments and Inngest need a website, so the CLI refuses them, and the API deploys with Docker Compose behind Caddy or as one public service on Railway.

Can I add a stack in another language?

Yes. Each app in the Starter describes itself in a clubedge.stack.json: its role, the options it implements and, for stacks outside Node.js, a toolchain such as uv. Adding a stack adds a folder and changes nothing shared; FastAPI was added that way, with no change to the CLI. A new API passes the contract's conformance suite.

How is this different from create-next-app?

create-next-app gives you a Next.js application. This gives you the surrounding foundation already wired together: monorepo structure, database, auth, storage, caching, environment validation, tests and CI, all verified as one generated project. It also records exactly which Starter revision you started from.

Do I have to use Supabase?

No. Your database can be any reachable PostgreSQL provider. For sign-in, choose Supabase Auth (the default), Better Auth, which keeps users and sessions in your own PostgreSQL (--auth better-auth), Firebase Authentication (--auth firebase), Appwrite on its Cloud or your own server (--auth appwrite), or no authentication (--auth none). Every provider passes the same conformance tests. File storage can be S3-compatible, Supabase Storage, or none.

Can I leave out services I don't need?

Yes. --auth none, --storage none and --cache memory remove those modules completely: their packages, provider SDKs, environment variables, documentation and lockfile entries. Run the CLI interactively and it offers the same choices. Every combination installs, builds and passes its tests.

Is Redis required?

No. Without REDIS_URL, rate limiting falls back to a per-process memory window, which suits a single server instance. Add Redis when you run several instances or want a shared cache.

Do I need to set up services before I can run it?

No. By default the project includes a Docker Compose file and an environment already pointing at it: pnpm infra:up starts PostgreSQL, plus Redis and S3-compatible storage when you use them, and pnpm check:services confirms the app can reach each one. Without Docker, choose --infra local: pnpm dev then also starts PostgreSQL through PGlite and keeps files in a local folder, with nothing else to install. Choose --infra neon for a free hosted PostgreSQL on Neon, created for you with no account, or --infra supabase to run the Supabase CLI's local stack, or --infra none to use your own or hosted services.

What do I need installed?

Node.js 22.12 or newer and pnpm 10.9.0 or newer (the CLI falls back to corepack pnpm). Git is only needed for the default Git initialization, and Docker only for the Docker or Supabase local services; --infra local and --infra neon need nothing extra. The FastAPI API also needs uv, and the mobile and native apps need Android Studio, or Xcode on a Mac, to build them. The Starter ships inside the CLI, so internet access is only needed to install dependencies, or to fetch another revision with --ref.

Do I need a Clubedge account?

No. The CLI is public and the generated project is yours to develop independently.

Can I try it without installing anything?

Yes. pnpm dlx @clubedge/create-clubedge-app try creates a project on a free, temporary Railway VM, no Railway account needed, and opens its preview URL; inside a project, pnpm clubedge try uploads and runs that project instead, to share work in progress without deploying. The VM lasts 60 minutes, and claiming it, a free Railway sign-up, keeps it and makes the URL shareable.

Can a coding agent create the project?

Yes. The same npm package includes create-clubedge-app-mcp, an MCP server with four tools: get_starter_capabilities lists the stacks and modules, validate_project_config checks a choice, plan_project previews the files and setup steps without writing anything, and create_project writes the project in a new folder beneath the server's working directory. It uses the CLI's pinned Starter and the same rules, so an agent never picks a combination the CLI would refuse. An agent skill ships in the package too; the Coding agents page in the docs shows how to connect both.

How do I deploy it?

On Railway, Fly.io, Vercel, Netlify, or Render, one command: pnpm clubedge deploy signs in, creates what the app runs on, sets the variables, and waits until the release is live (Fly.io, Vercel, Netlify, and Render are experimental). For any platform, pick it with --deploy: docker (the default, for any container host), fly, railway, render, vercel, or netlify. The project gets that platform's config, a guide in SETUP.md listing the production variables its modules need, and a manual GitHub Actions workflow that deploys it. With docker, pnpm clubedge deploy sets up a server of your own instead: a compose.yaml that runs the app behind Caddy, which serves your domain over HTTPS with certificates it renews, and a workflow that publishes the images to your repository's GitHub Container Registry with each release. Each platform also gets the setting that tells the app where a client's address is, so rate limits count each visitor on their own. Migrations run before each release where the platform allows it, through a migrator built into the image, and during the build on Vercel and Netlify. A React + Vite frontend and its API deploy as two services: with --deploy docker, the compose.yaml runs both, with the API on the Compose network behind the frontend; with --deploy railway, it deploys a public frontend and a private API. A project without a website deploys its API alone, behind Caddy with docker or as one public service on Railway. Change platforms later with pnpm clubedge add deploy <platform>. With --infra neon, each pull request can also get its own branch of the database and a preview on Vercel or Railway.

Does it handle password reset and email?

Yes. The email module sends through any SMTP provider or Resend (--email smtp, the default, or --email resend). "Forgot password?" works with every auth provider, and Better Auth can require email verification before sign-in. During development, emails land in a local inbox (Mailpit with Docker, or the Supabase stack's inbox), or print to the terminal with --infra local, so no email account is needed. --email none leaves email out. With background jobs on too, these emails go through the job queue with retries, so a slow email provider never holds up sign-up.

Can users manage their own account?

Yes. With any auth provider, a settings page at /settings lets users set a display name, change their password, which signs out their other devices, and delete their account. Deleting needs the password, removes the user's data from your database, and waits until any active subscription is cancelled. Password checks are rate-limited per user. With Supabase, account deletion needs its secret key (SUPABASE_SECRET_KEY).

Can it take payments?

Yes, with --payments stripe (it needs an auth provider: any of the four works). The dashboard gets a billing card that starts Stripe Checkout for a plan and opens the Stripe customer portal, and a verified webhook keeps a subscriptions table in your database in sync, applying each event once. Pages check that table, not Stripe, to decide who has access. Billing code depends on a provider-neutral payments interface, so another provider can be added without rewriting it. Add it later with pnpm clubedge add payments stripe.

Can it run background jobs?

Yes, with one of three providers behind the same jobs interface. --jobs pg-boss stores jobs in your own PostgreSQL and --jobs bullmq in Redis, and both run a worker inside the app server, so no platform needs a second process; on Vercel and Netlify a scheduler calls /api/jobs/run with a secret instead. --jobs inngest hands jobs to Inngest, which calls the app for each one, so serverless hosts need no cron. Jobs get retries with backoff, timeouts, throttling, and cron schedules, and the dashboard shows a sample job and its recent runs. A shared conformance suite proves every provider behaves the same, so switching later with pnpm clubedge add jobs <provider> leaves your job code as it is.

Does it report errors and trace requests?

Yes, with --observability otel or --observability sentry. Every request is traced, and so are calls to email, storage, and payments. Server errors are reported with the request's method and path, whether they escape a page, route, server action, or server function or the app handles them, along with failed background jobs. OpenTelemetry exports over OTLP to any collector or vendor that accepts it, and Sentry uses its Node.js SDK. Nothing is sent until you set the endpoint or DSN, and the rest of the code only uses small hooks in @clubedge/core, so the vendor SDK stays in one package. Errors in the browser are reported too: uncaught errors, unhandled promise rejections, and render errors caught by the error pages. With OpenTelemetry they go through an endpoint in the app; with Sentry, through its browser SDK, and a build with a Sentry auth token uploads source maps and then deletes them so they are never served.

Can I change modules after creating the project?

Yes. Inside the project, run pnpm dlx @clubedge/create-clubedge-app add auth better-auth, or remove storage. The CLI renders your project as it was generated and as it would be with the new module, and merges the difference into your code: files you never touched are updated, your edits are kept, and lines you both changed get conflict markers to resolve. Commit first, so git diff shows the result and you can undo it.

How do I get later Starter releases?

They come to you: projects get a weekly workflow that opens a pull request when a newer Starter release is out, so your CI tests it before you merge. Or run pnpm dlx @clubedge/create-clubedge-app@latest upgrade inside the project. It uses the same merge to bring the newer release into your code, keeps your modules, and records the new Starter release. Modules the Starter added since then start switched off, so an upgrade never adds a service on its own.

Can I use another Starter revision?

Yes. Use --ref with a tag, branch or commit. The default stays the tested release for your CLI version, so the same CLI version always scaffolds the same Starter revision.

Is the generated app production-ready?

It is production-oriented, not automatically production-ready. You still need environment configuration, secrets management, provider setup, an authorization review, deployment configuration and application-specific security testing.

Where do I report an issue?

Report scaffolding and command issues in the CLI repository. For problems in the generated application's code, use the Starter repository and its issue tracker.

Start from a stack that's already wired.

Next.js or TanStack Start, or React + Vite with a Hono or FastAPI API. PostgreSQL, auth, storage, tests and CI. Two questions, and the project is written, installed and ready to run.

pnpm dlx @clubedge/create-clubedge-app my-app

  • Apache-2.0 licensed
  • Tests and CI included
  • No lock-in, you own the code
  • Report an issue
What you will see