New:New releases:CLIcreate-clubedge-app v0.49.1·Clubedge Starter v0.32.0

Clubedge Starter Docs

Modules

Every module, its options, and its default.

Each module has a default, and anything you leave out is removed completely: its packages, provider SDK, environment variables, documentation, and lockfile entries. To pick them in a page and copy the command, use the builder.

FlagOptionsDefault
--frameworknext, tanstack-start, vite (a frontend, with --api), none (no website: an API, with --api)next
--apihono, fastapi (with --framework vite or none), nonenone
--mobileexpo (a native Android and iOS app, with an API and --framework vite or none), nonenone
--shellcapacitor (an Android and iOS app, with --framework vite and its API), nonenone
--authsupabase, better-auth, firebase, appwrite, nonesupabase
--storages3, supabase (needs Supabase Auth), nones3
--cacheredis (falls back to memory without REDIS_URL), memoryredis
--emailsmtp (any provider, or a local inbox), resend, nonesmtp
--paymentsstripe, none (needs an auth module)none
--jobspg-boss, bullmq (Redis), inngest, nonenone
--observabilityotel (OpenTelemetry, to any OTLP collector), sentry, nonenone
--pushexpo (Expo's push service, the native app), native (FCM and APNs, both mobile apps), none: needs auth and a mobile appnone
--otaeas (EAS Update, with --mobile expo), nonenone
--deploydocker (any container host), fly, railway, render, vercel, netlifydocker
--infradocker (Docker Compose), supabase (Supabase CLI), local (no Docker: PGlite and a local folder), neon (a free hosted Neon database), nonedocker

Interactive runs ask whether to customize these after the questions about the apps.

Modules depend on the apps

The options above are those of Next.js and TanStack Start, which implement every one. Each app lists the module options it implements. React + Vite with Hono (CLI 0.39.0 or newer) or FastAPI (CLI 0.40.0 or newer) implements every option of auth, storage, cache, email, payments, jobs, and observability, with the same defaults, except --jobs pg-boss with FastAPI: pg-boss has no Python version. Deploy is docker or railway (Modules on these stacks). The native app takes part in sign-in, with supabase, better-auth, or none, so --mobile expo leaves out firebase and appwrite, and in push notifications and over-the-air updates (Starter v0.30.0 or newer). Push notifications need a mobile app, Expo's push service reaches only the native app, and over-the-air updates need it.

The CLI only offers options the selected apps implement, in prompts, the builder, and add. A module you don't choose falls back to a supported default, and an option the apps don't implement is refused with the ones they do:

FastAPI (Python) does not implement pg-boss (jobs stored in PostgreSQL) (--jobs pg-boss). It implements: bullmq, inngest, none.

The Starter's clubedge.template.json defines the modules, so a module a newer Starter adds gets its --<module> flag without a CLI change. --help lists the modules of the Starter your CLI release creates.

Requirements between modules

  • --storage supabase needs --auth supabase: Supabase Storage uses the signed-in user's Supabase session.
  • --payments stripe needs an auth module, because subscriptions belong to users.
  • --jobs bullmq needs --cache redis: BullMQ stores its jobs in Redis.

Several modules in one command are checked together, so add auth supabase storage supabase works on a project that had neither.

Without a website

A project without a website (--framework none, CLI 0.44.0 or newer) is its API, and the Starter's rules refuse what needs the website, with the reason:

  • --payments stripe: payments send users back to the website's pages.
  • --jobs inngest: Inngest reaches the jobs through the website's address; pg-boss and bullmq run in the API.
  • --auth better-auth with --api fastapi: Better Auth then runs in the API, and FastAPI can't run it.
  • --deploy fly, vercel, netlify, and render: they deploy a web app, so the API deploys with docker or railway.
Inngest reaches the jobs through the website's address, and a project without a website has none: choose --jobs pg-boss or --jobs bullmq, which run in the API.

Prompts, the builder, and add don't offer them, and a module left to its default takes the first option the rules allow. See Without a website.

What each module adds

Change them later

Modules aren't a one-time choice. Inside a project, pnpm clubedge add and pnpm clubedge remove change them by merging the difference into your code, and, from CLI 0.46.0, the mobile apps too. See Change a project.

A module you leave out takes its packages with it, and, from CLI 0.46.0, the packages from the registry its apps only need for it, such as the native plugins of push notifications.

How is this guide?