Walkthrough videos and screenshots for starter.clubedge.live, recorded with the published CLI v0.49.1 in this run. The site pins a release in showcase.lock.json. Only the newest 3 showcase releases are kept.
Releases
-
-
Walkthrough videos and screenshots for starter.clubedge.live, recorded with the published CLI v0.49.1 in this run. The site pins a release in showcase.lock.json. Only the newest 3 showcase releases are kept.
-
- Starter v0.32.0 by default (#231). Its template schema is still 6. The Starter's release notes cover:
- A support level for every option and stack, so
create,add, andupgradenow warn before a choice below Stable, such as Stripe (Beta) or Cloudflare (Experimental), and the prompts and the MCP server show each option's level. - The
Starter upgradeworkflow a new project gets, which runs the newest CLI with--json --lockfile-onlyand builds its pull request from the report. pnpm devwith a Hono API and no.env.localon Node 22.23.4, and a Vite + Better Auth project's owne2ejob, which both work again.
- A support level for every option and stack, so
- Starter v0.32.0 by default (#231). Its template schema is still 6. The Starter's release notes cover:
-
Support levels
Every module option and every stack has a support level, graded from what CI runs on
main(#181):- Stable (23): every stack, Supabase, Better Auth and Firebase auth, both caches, the Docker and Vercel deploys, SMTP, every local infrastructure, pg-boss and BullMQ, and both storages. Each runs end to end in CI against the real service or its own local stack or emulator, or in production in a case study.
- Beta (13): Appwrite, Fly, Railway, Render, Netlify, Resend, Inngest, OpenTelemetry, Sentry, EAS Update, Stripe, Expo push, and native push. They build and test, but run end to end only against a stand-in, or not at all.
- Experimental (1): Cloudflare, which CI only dry-runs.
An option below Stable has a note that says what is missing. STABILITY.md says what stays compatible from one release to the next, how an option is retired in three stages, and what an upgrade promises.
create-clubedge-app 0.49.0 shows the levels in its prompts, warns before a choice below Stable, and returns them over MCP. Earlier CLIs ignore them.
Upgrade pull requests from the CLI's report
The
Starter upgradeworkflow a generated project gets runs the newest CLI'supgrade --json --lockfile-only(#183):pnpm-lock.yamlfollows the upgrade without installing anything or running the project's scripts. The project's CI installs and tests the pull request.- The pull request takes the Starter before and after, the conflicts, and the lockfile's outcome from the CLI's report, and lists the releases the upgrade crosses, its warnings, and its notes.
- An upgrade whose lockfile could not follow still opens a pull request that says so.
It needs create-clubedge-app 0.49.0 or newer, which the workflow's
@latestgets.Fixes
pnpm devwith a Hono API on Node 22.23.4 (#187): Node's--watchstopped at once when.env.localwas missing. The API's dev script now loads.env.localitself, when there is one, and the environment still wins over the file. Generated Vite + Hono projects failed theire2ejob on it.- A Vite + Better Auth project's own CI (#189): its
e2ejob setsE2E_AUTH_ENABLED, so the browser tests expect the sign-in the app always asks for. - The React + Vite app's auth server bundle (#185): Git and ESLint ignore
.cache/, wherepnpm devbundles the Better Auth server, sogit statusstays clean andpnpm lintpasses after the first run.
Also
- The demo app built for each release asks for an update once a newer release is out (#177).
- This repository opens a pull request when Expo publishes patch versions (#175), and its emulator walkthrough hides Android's error dialogs (#173). Generated projects get neither.
- The roadmap lists phases 21 (#171) and 22.
A project on v0.31.3 gets v0.32.0 with
pnpm clubedge upgrade --ref v0.32.0, or from the CLI release that defaults to it. -
- Support levels (#222; issue #221). The CLI reads the level the Starter gives each option and stack (Stable, Beta, Experimental, or Deprecated) and acts on it. Starter v0.31.3, still the default, grades nothing yet; the next Starter release does.
create,add, andupgradewarn before a choice below Stable, with its note and a link to the Starter's STABILITY.md, and the prompts show each option's level.- An option the Starter no longer offers is refused to new projects, at any level, with its replacement. A project that has it keeps it.
upgradereminds a project of each deprecated option it keeps, with the command that switches, or, for its framework or API, whichaddcannot change, what new projects use.- The MCP server returns each option's level, and refuses the same options.
- Reports for tools (#224; issue #223), such as a service that opens upgrade pull requests:
--jsononadd,remove, andupgradeprints the change's report on stdout as one JSON document (reportVersion1): its outcome, the Starter before and after, each file and its conflicts, the lockfile, the install, the releases it crosses, its warnings, and its notes. The log and pnpm's output go to stderr.--lockfile-onlyupdatespnpm-lock.yamlwithpnpm install --lockfile-only --ignore-scripts --ignore-pnpmfile, so no script and no.pnpmfile.cjsfrom the project runs. pnpm still reads the project's.npmrc.- The package exports the engine:
upgradeProject,addToProject,removeFromProject,readProjectRecord, andparseProjectRecord, with the report's types.
- Templates of your own (#226; issue #225).
--template owner/namecreates a project from a fork of the Starter, often private, at its newest release or at--ref. The project records the template, andadd,remove, andupgradework within it.CLUBEDGE_TEMPLATE_TOKENreads a private template, elseGITHUB_TOKENorGH_TOKEN. The CLI passesCLUBEDGE_TEMPLATE_TOKENto no command it runs in the project.- A template's ref is resolved to its commit before the download, so a project records the commit whose files it got.
- Support levels (#222; issue #221). The CLI reads the level the Starter gives each option and stack (Stable, Beta, Experimental, or Deprecated) and acts on it. Starter v0.31.3, still the default, grades nothing yet; the next Starter release does.
-
Walkthrough videos and screenshots for starter.clubedge.live, recorded with the published CLI v0.48.2 in this run. The site pins a release in showcase.lock.json. Only the newest 3 showcase releases are kept.
-
- Starter v0.31.3 by default (#218). Its template schema is still 6. The Starter's release notes cover:
- Expo 58.0.25's patch versions in the native app, so a new project with it passes
expo install --check, which its CI runs: Expo published more SDK 58 patches after v0.31.2.
- Expo 58.0.25's patch versions in the native app, so a new project with it passes
- CI upgrades projects from the oldest Starter release of each template schema and from the release before the pin: with no edits, after
pnpm up, with apnpm patch, and with feature edits. Its results are on the site's Upgrades page, updated weekly and after each release (#216; issue #215).
Full changelog: v0.48.1...v0.48.2
- Starter v0.31.3 by default (#218). Its template schema is still 6. The Starter's release notes cover:
-
Clubedge Starter v0.31.3
starter githubNew projects with the native app pass Expo's version check
Expo published more patch versions for SDK 58 on 2026-11-12, and
expo install --check, which the CI of a project with the native app runs, failed on the versions v0.31.2 declares.apps/exponow declares the ones Expo 58.0.25 expects:expo58.0.25,expo-dev-client58.0.20 andexpo-sqlite58.0.17 (#167).A project on v0.31.2 gets them with
pnpm clubedge upgrade --ref v0.31.3, or withpnpm exec expo install --fixinapps/mobile. -
Results of the upgrade matrix for starter.clubedge.live's Upgrades page, updated weekly and after each release. Latest: https://github.com/Clubedge/create-clubedge-app/actions/runs/45195367020
-
- Starter v0.31.2 by default (#214). Its template schema is still 6. The Starter's release notes cover:
- a new user's first requests at once, which get one users row instead of a 500 for all but one, in the Hono API, the FastAPI API, and the websites; a sync of the profile to an email address another user's row has still fails.
- Projects from Starter releases before v0.5.0 upgrade (#206; issue #205). They record no modules, since those releases had none, and the CLI refused them as "created before create-clubedge-app 0.5.0", though 0.48.0 had created them. An upgrade now keeps Supabase Auth, S3 storage, and the Redis cache, which those releases built in and v0.5.0 made its first modules, and a note says so; modules that came later start as
none.addandremoveon such a project say to upgrade first. - A dependency you only raised within its range, as
pnpm updoes, takes the Starter's new major or its removal (#208; issue #207). Afterpnpm up -r, every upgrade to Starter v0.31.1 left apackage.jsonconflict pnpm cannot read, such asredis^5.12.2against the Starter's^6.3.1, or a dependency the Starter moved to another package. A change that asks for less than your raise, such as a pin below it, still conflicts, and a range both sides raised still takes the higher one. - A
pnpm patchthe change leaves unused is named before it stopspnpm install(#210; issue #209). A patch made on a version the change moves away from stops the install withERR_PNPM_UNUSED_PATCH. The CLI names it, with the range that leaves it out, skips the install, and says how to keep it: keyed by the package alone, pnpm applies it to whichever version it installs. - CI upgrades a project from Starter v0.4.0 and matches it against a fresh one (#206), and the tests that commit to Git have more time on Windows (#210).
Full changelog: v0.48.0...v0.48.1
- Starter v0.31.2 by default (#214). Its template schema is still 6. The Starter's release notes cover:
-
Clubedge Starter v0.31.2
starter githubA new user's first requests no longer fail
A user's first requests create its row in the
userstable. When two arrived at once, the second insert hit the unique index on the email address, and the request failed with a 500. The Starter's WebKit test of the settings page caught it.ensureUserIdinpackages/db, which the Hono API and the websites use, andensure_user_idin the FastAPI API now insert without a conflict target, so PostgreSQL settles the race on every unique index: one request inserts the row, and the others read it.upsertUserProfile, the sync the websites run at sign-in, reads the row in the same way (#163).An email address another user's row already has still fails, as before:
ensureUserIdnow says why, and the sync still reports it.A project on v0.31.1 gets the fix with
pnpm clubedge upgrade --ref v0.31.2. -
- Starter v0.31.1 by default (#202). Its template schema is still 6. The Starter's release notes cover:
- Expo SDK 58's latest patch versions, without which the native app's CI job fails in projects generated from v0.31.0;
- version 6 of the
redisclient for the Redis cache, still speaking RESP2; pnpm typecheckchecking the browser tests too.
add,remove, andupgraderefuse to change a project that still has conflict markers from an earlier change (#198; issue #195). Merging into those files could leave old and new markers interleaved, or carry them forward with exit code 0. The CLI now lists each file with its number of conflict blocks and asks to resolve them first.--forcechanges the project anyway.- Conflict blocks hold only the lines that differ (#199; issue #196), as Git writes them. Lines your version and the Starter's share inside a conflict stay outside the markers, unless what separates two blocks is three lines or fewer, or lines without a letter or digit, such as closing braces and blank lines: those blocks stay one. In two apps built alongside the Starter, 44% and 39% of the lines inside markers were shared.
- A dependency both sides raised merges to the higher version (#193; issue #191). When the project and the Starter both raised a dependency's
^or~range and both ranges keep the same major (the same minor for~and for^0.x), the merge keeps the higher range, where it left a conflict inpackage.jsonthat pnpm can't read. Other changes to the same dependency, such as exact versions or a new major, still conflict. This stopped 4 of 30 test upgrades. add,remove,upgrade, andstatusreport what happened, and what to run next (#194; issue #192):statushas a Conflicts row with the files left with conflict markers, and its next step is to resolve them.- A change ends by saying to resolve any conflicts first, then to review the diff and run
pnpm typecheckand the tests: files that merged cleanly can still break the code. --dry-runsays how many conflicts the change would leave, in how many files, and exits 2 with--detailed-exit-code, as the change itself would.- When GitHub can't list the Starter releases an upgrade crosses, such as past its rate limit, the upgrade says so and links the releases page, instead of leaving the list out.
- A module new since the project's Starter release names that release, where it named the target.
- A README generated without its "Generated from" section, as React + Vite projects from older releases are, is no longer called replaced.
- A file whose merge changes nothing is left out of the change.
- "Updated N files" counts every file the change writes (#200; issue #197), the lockfile and env files included.
- A failed scaffold keeps the files that were already in the directory (#165 and issue #153, both by @ahmed-husssain). Rolling back a failed run in an existing directory emptied it; it now removes only the files the run wrote, and the folders that leaves empty.
- A lockfile with CRLF line endings is customized like one with LF (#189; issue #186, reported by @ahmed-husssain). With CRLF, the apps and packages a project leaves out stayed in its lockfile, and no optional peer was pruned. The Starter checks the lockfile out with LF, so this concerned copies made outside Git, such as one given to
--template-dir. deploykeeps the platform's direct database URL when the database doesn't change (#188; issue #187, reported by @ahmed-husssain). A deploy with no env file, after one that supplied a pooled Neon URL, setDATABASE_URL_DIRECTto nothing, and migrations and the jobs worker fell back to the pooled URL.- An empty variable with an inline comment is empty (#190, by @ahmed-husssain).
DATABASE_URL= # leave blank to use platform Postgresread as the comment, sodeploytook it for a hosted database, created none on the platform, and the app failed at startup. A#inside a value, as inPASSWORD=secret#123, stays part of it. pnpm releasedrafts name who wrote each pull request and list first-time contributors (#185).
Thanks to everyone who contributed to this release: @ahmed-husssain and @yassine-ahmed.
Full changelog: v0.47.0...v0.48.0
- Starter v0.31.1 by default (#202). Its template schema is still 6. The Starter's release notes cover:
-
Clubedge Starter v0.31.1
starter githubThe native app's CI job passes again
Expo published new patch versions of SDK 58 on November 12, and
expo install --check, which theexpojob of a project'sci.ymlruns, expects them. The job has failed since in every project generated from v0.31.0 with the native app (--mobile expo). The Starter now asks for them: the fifteen packages the check names, from expo 58.0.24 and expo-router 58.0.31 to expo-updates 58.0.22 (#159).A project on v0.31.0 gets them with
pnpm clubedge upgrade --ref v0.31.1, or withpnpm exec expo install --fixinapps/mobile.Redis 6
The Redis cache uses version 6 of the
redisclient (#156).pnpm up --latestinstalled it, and@clubedge/cache-redisthen failed its typecheck: version 6 types its client for RESP3, its new default. The client still asks for RESP2, as version 5 did by default. RESP3 needs Redis 6 or newer on the server, which some hosted services and proxies are not, and the cache and rate limiter don't need it.Browser tests in the typecheck
pnpm typecheckchecks the browser tests too, with a newtypecheck:e2escript ande2e/tsconfig.json(#154). No tsconfig includede2e/before, and ESLint does not report names that are not defined, so a spec that lost an import failed only when the browser tests ran. After an upgrade,pnpm typecheckcan report errors that were already in a project's own specs. -
- Starter v0.31.0 by default (#183). Its template schema is still 6. The Starter's release notes cover:
- deploying React + Vite and its API to Cloudflare (
--deploy cloudflare), which has not yet run on an account with Workers Paid; - downloads by byte range from storage, which browsers ask for to play audio and video;
- Supabase sessions that the Hono API verifies itself;
- fixes to the APIs' CORS and to SMTP sends that never answer;
- browser tests in Chromium, Firefox, and WebKit.
- deploying React + Vite and its API to Cloudflare (
- On Windows, an argument can no longer run a second command or expand a variable (#176; issue #156, reported by @ahmed-husssain). The CLI ran commands through cmd.exe as one line, where
%VAR%is expanded inside quotes, a line break ends the command, and a quote inside an argument can leave&and|outside the quotes. No argument from outside reached these commands, so this closes the gap before one does:- A program (
.exe,.com) now starts directly, with no shell, sogit,node,docker, anduvno longer go through cmd.exe. - A batch file (
.cmd,.bat), such as the npm shims forpnpmandnpx, still needs cmd.exe. Each argument is quoted the way Windows programs split their command line, then escaped for both of cmd.exe's readings. An argument with a line break is refused.
- A program (
- Windows device names are refused as project directories (#169, by @biggdawg320, and #171; issue #155, reported by @ahmed-husssain):
CON,PRN,AUX,NUL,COM1toCOM9, andLPT1toLPT9, with or without an extension, which on Windows could create a folder that can't be deleted. The CLI checks the project's own name and each parent folder it would create, in the prompt and in the MCP server'screate_projecttoo. Folders that already exist are left alone. - The browser opens web addresses only (#175, by @jdotc1; issue #157, reported by @ahmed-husssain). Commands that open a page, such as
deploy,neon, andtry, hand the system's opener only anhttp://orhttps://address with a host, and open nothing otherwise. create_projectreports progress over MCP (#178) while it installs dependencies. A client that sends a progress token gets a notification when each install starts, every 5 seconds while it runs, and when it ends or fails, so a client that resets its timeout on progress keeps waiting. A client that sends none gets the same result as before.- Sponsors (#181, #182): the README has a Sponsors section. Neon supports Clubedge Starter through its Open Source Program.
- CI runs generated projects' browser checks in Chromium, by name (#180), since the Starter now has three browser projects.
@modelcontextprotocol/server2.4.0 or newer (#173), vitest 5.1.0 (#174), and astral-sh/setup-uv 10.3.3 in CI (#172).
New contributors
- @biggdawg320 made their first contribution in #169.
- @jdotc1 made their first contribution in #175.
Thanks to everyone who contributed to this release: @ahmed-husssain, @biggdawg320, @jdotc1, and @yassine-ahmed.
Full changelog: v0.46.1...v0.47.0
- Starter v0.31.0 by default (#183). Its template schema is still 6. The Starter's release notes cover:
-
Clubedge Starter v0.31.0
starter githubDeploying to Cloudflare
Choose with
--deploy cloudflare, for React + Vite with a Hono or FastAPI API (#149).- The whole app on Cloudflare:
deploy/cloudflareis one Worker. Cloudflare serves the website's files, and the Worker sends/apito the API's own image, running as a Cloudflare Container, which needs the Workers Paid plan. The first request starts it: the migrator, then the API. It stops afterAPI_IDLE_MINUTESwithout a request. - The website alone, on the free plan:
pnpm deploy:cloudflare:websiteserves the files only. The API runs on another host, atVITE_API_URL, and a cron asks for its health every five minutes, so a host that stops an idle API keeps it running. - Deploys: from Cloudflare's own Git integration, with
pnpm deploy:cloudflareas the deploy command. The option has nodeploy.yml. - The Worker's name: the project's, from the root
package.json. - Where the CLI refuses it: with Next.js and TanStack Start, which would each need a Cloudflare adapter; with Better Auth and the mobile app (Capacitor), which rely on the website's own server; and without a website. Each refusal says why.
Not deployed for real yet. CI builds the website, tests the Worker, and dry-runs both configurations, and stops short of Cloudflare. The API as a Container needs Workers Paid, which this project's own account does not have. Treat the option as new, and please report what you find.
Downloads by byte range
Browsers ask for audio and video in parts, and Safari plays no media from a route that ignores the Range header (#146).
download(key, { range })returns only the bytes of a range, from S3, Supabase Storage, and the local folder.parseByteRangereads a Range header into one, given the object's size.- FastAPI has the same:
download(key, byte_range)andparse_byte_range. - SETUP.md's file storage section shows a route for your stack: 206 with
Content-Rangefor a range, 416 for one past the end, and the whole file otherwise. @clubedge/storage-supabasenow asks for supabase-js 2.96.0 or newer.
Supabase sessions
With Supabase Auth, the Hono API now verifies each request's access token itself, against the public keys the project publishes, where it asked Supabase Auth on every request (#138). It fetches the keys once and keeps them for ten minutes. A project that still signs with a shared secret is asked of Supabase Auth as before.
As with any signed token, one whose session ended elsewhere keeps working until it expires, an hour by default. SETUP.md says so.
Fixes
- CORS (#134): both APIs allow every method a route can have, where they allowed GET, POST and OPTIONS. A project's first PUT, PATCH or DELETE route no longer fails once pages call the API at its own address.
- A website at two addresses (#134):
FRONTEND_ALIASESon the API lists the other addresses the website is served at, comma-separated, as during a move to a new domain. Both APIs stop at startup on an alias that isn't an absolute URL, andpnpm check:envrefuses it. - SMTP (#136): a send gives up in seconds on a server that never answers, where it could wait 10 minutes. It waits 10 seconds to connect, 10 for the server's greeting, and 20 of silence during a send.
createSmtpEmailtakes other values, andSMTP_URLcan say its own as a query (?connectionTimeout=30000). - The native app (#131): the update screen's note fits on one line.
Browser tests in three engines
A generated project's browser tests run in Chromium, Firefox, and WebKit, which is Safari's engine and every browser's on an iPhone (#150).
playwright.config.tshas the three, and the project'sci.ymlinstalls and runs them.Also
- The whole app on Cloudflare:
-
- Starter v0.30.1 by default (#167). Its template schema is still 6. The Starter's release notes cover:
- the native app (
--mobile expo) reaching its API again: since v0.29.0, each of its calls to the API threw after the API had answered, so the account never loaded, and saving a name or deleting the account failed; - getting the fix to installed apps: a new build in the stores, then
APP_MINIMUM_VERSIONon the API, which sends older installs to the update screen, or an over-the-air update with--ota eas; - end-to-end tests of both mobile apps on an Android emulator;
- Expo SDK 58's latest patch versions.
- the native app (
Full changelog: v0.46.0...v0.46.1
- Starter v0.30.1 by default (#167). Its template schema is still 6. The Starter's release notes cover:
-
Clubedge Starter v0.30.1
starter githubThe native app reaches its API again
Since v0.29.0, every call the native app (
--mobile expo) made to the API threw after the API had answered. Home showed the API offline, the account never loaded, and saving a name or deleting the account failed. The update policy's middleware handed each response back to the API client, which refused Expo's responses. It now leaves them as they are (#129). The mobile app (Capacitor) and the websites were not affected.Getting the fix to installed apps
The fix is in the app's JavaScript, so installed apps need a new build:
- Upgrade the project:
pnpm clubedge upgrade. - Raise the native app's version, such as
pnpm --filter @clubedge/mobile-app set-version 1.0.1, and publish the build to the stores. - Once the stores publish it, set
APP_MINIMUM_VERSIONto that version on the API. Older installed apps then show the update screen, which can't be dismissed. Builds from v0.29.0 and v0.30.0 show it too, but without the store link: they ask to update from the App Store or Google Play.
With over-the-air updates (
--ota eas), publish an update instead: it reaches installed v0.30.0 builds without a store release.The native demo follows the same policy: each release now sends installed demos of an older release to its own.
Mobile tests
A new maintainer workflow, Starter mobile, goes through each mobile app on an Android emulator, on every pull request:
- It generates a project for the app, starts its API, website, and database, and builds the app against them.
- With Maestro, it creates an account, checks the account the API returns, sets a display name, signs out and in, and deletes the account.
- Each app's
e2efolder has the flow, and a README on running it on your own emulator.
A test build may call a server on the computer it's built on over plain HTTP: the native app when
EXPO_PUBLIC_API_URLishttp://, and the mobile app for aWEB_URLof10.0.2.2orlocalhost. Store builds keep https.Also
- Expo SDK 58's latest patch versions: expo 58.0.20, expo-dev-client 58.0.16, expo-router 58.0.27, and expo-web-browser 58.0.7.
- The websites'
reactandreact-domstart at 19.3.1, the version they use, so the lockfile keeps them on it.
- Upgrade the project:
-
- Add and remove the apps installed on devices (#161), so a project created without them can take them later, and drop them again, without starting over:
pnpm clubedge add mobile expofor the native app,pnpm clubedge add shell capacitorfor the shell that packages the website, andpnpm clubedge remove mobileorpnpm clubedge remove shell. The shell needs Starter v0.27.0 or later, and the native app v0.28.0.- Adding an app brings its folder, its CI job and the Starter's other sections for it, its dependencies, and its local env file.
package.jsonrecords it, so later changes and upgrades keep it. - The app must fit the project, and the CLI says which project can have it when this one can't. When the project's option for a module is one the app lacks, such as a sign-in the native app doesn't have yet, switch it in the same command:
pnpm clubedge add mobile expo auth better-auth. - Removing an app deletes the Starter's files and lists what was never the Starter's, such as the shell's
android/andios/projects, to delete once you no longer need them. - The framework and the API stay as the project was created.
- When a change keeps a variable in a local env file, the comments above it that you never edited now follow the example's, so a later change that removes the variable removes them too.
- Adding an app brings its folder, its CI job and the Starter's other sections for it, its dependencies, and its local env file.
- Module options can name the registry packages only they need (#162), in a new
dependenciesfield. A project without the option leaves them out, such as the notification plugins in projects without push. Stack packs can use it too (stack packs). - Starter v0.30.0 by default (#163). Its template schema is still 6. The Starter's release notes cover:
- store releases for both mobile apps, signed, from your computer or a workflow, with build numbers made from each app's version;
- push notifications for both apps (
--push expoor--push native); - over-the-air updates for the native app (
--ota eas).
Full changelog: v0.45.0...v0.46.0
- Add and remove the apps installed on devices (#161), so a project created without them can take them later, and drop them again, without starting over:
-
Clubedge Starter v0.30.0
starter githubStore releases for both mobile apps
Each app builds for Google Play and the App Store, signed, from your computer or a workflow. Its build numbers are made from its version, the one the update policy compares: 1.4.2 is build 1004002 in both stores.
- The native app (
apps/mobile):- Its version is
versioninapp.json, whichpnpm --filter @clubedge/mobile-app set-version 1.5.0sets.app.config.tsmakes both build numbers from it. - EAS build profiles in
eas.json:development,preview(an APK to share), andproduction, each with its EAS environment. - The Native app release workflow (
expo-release.yml) queues EAS builds for both stores or one, with anEXPO_TOKENsecret, and can submit production builds to the stores.
- Its version is
- The mobile app (
apps/shell):- Its version is in
apps/shell/version.json. Each build writes it into both native projects, with its build number;pnpm --filter @clubedge/shell set-version 1.5.0sets it. pnpm --filter @clubedge/shell release androidbuilds an App Bundle with Gradle and signs it with your upload key, usingjarsignerand SHA-256.release iosbuilds an IPA that Xcode signs. Both are copied toapps/shell/release/.- The Mobile app release workflow (
shell-release.yml) does the same on GitHub's runners, with the signing settings as secrets, and can upload the iOS build to TestFlight.
- Its version is in
SETUP.md's "Store releases" sections list each setting and secret.
Push notifications
Choose with
--push expoor--push native. Notifications go to a signed-in user's phones, so the module needs an auth module and a mobile app.- Two ways to send:
exposends through Expo's push service, for the native app, with credentials EAS keeps.nativesends straight to FCM and APNs, for both mobile apps, with the API's own credentials.
- In the apps:
- A Notifications switch and Send a test notification in Settings.
- The token is sent again at each start and forgotten at sign-out.
- A tapped notification opens the screen its
urlnames.
- In your code:
push.send(user, message)on Hono, andpush_notifications().send(...)on FastAPI. Tokens the push service refuses for good are removed. - One interface:
PushProviderinpackages/push, with thepush_devicestable and its own migrations.packages/push-expoandpackages/push-nativeimplement it; FCM's HTTP v1 API and APNs over HTTP/2 use only Node.js's crypto, HTTP/2, and fetch. FastAPI has the same in Python. - Three routes in the contract and its conformance suite:
POST /api/push/devices,POST /api/push/devices/remove, andPOST /api/push/test(5 a minute). The Vite frontend's server forwards them. - What the CLI refuses: push without a mobile app, and Expo's push service next to the mobile app, which it can't reach. In both cases the CLI says why.
Over-the-air updates
Choose with
--ota eas, with the native app.- With EAS Update, changes to the app's JavaScript and assets reach installed apps without a store release.
- The app checks when it starts and when it comes back to the foreground (at most every 15 minutes), downloads a new update, and Home offers to restart into it.
runtimeVersionfollows the app's version, so an update only reaches builds with the same native code.- The Native app update workflow (
expo-update.yml) publishes an update to a channel.
Upgrading
- The native app's version moved from
app.config.tstoapp.json. Keep the Starter'sapp.config.ts, and carry your version over withset-version. - The mobile app's version moved from its native projects to
version.json. A build never takes a native project's version back: the first build after the upgrade stops and names theset-versioncommand that carries it over. - The mobile app's Android signing left
capacitor.config.ts:pnpm release androidsigns instead. Capacitor's owncap build androidsigns with SHA-1, which Java treats as unsigned.
Also
- With CLI 0.46.0:
- A project created without the mobile apps can add them, and remove them again:
pnpm clubedge add mobile expo,pnpm clubedge add shell capacitor,pnpm clubedge remove mobile, andpnpm clubedge remove shell. - A project leaves out the registry packages that only an unselected option needs, such as the notification plugins in projects without push. Module options list them in
dependencies.
- A project created without the mobile apps can add them, and remove them again:
- New packages:
- The native app:
expo-notificationsandexpo-updates. - The mobile app:
@capacitor/push-notifications. - FastAPI: the
push-nativedependency group (cryptographyandh2), which only images with--push nativeinstall.
- The native app:
- The native app (
-
- Starter v0.29.0 by default (#159). Its template schema is still 6. The Starter's release notes cover:
- an update policy for apps installed on phones: a minimum announced for a date, values per platform, and APIs that answer apps below the minimum
426 update_required; - a new design for the native app (
--mobile expo); - splash screens that are never cropped or stretched.
- an update policy for apps installed on phones: a minimum announced for a date, values per platform, and APIs that answer apps below the minimum
package.jsonmerges by key (#158) whenadd,remove, orupgrademerges the Starter's changes into your project:- A key only one side changed takes that side's value, and objects merge key by key, so your dependencies and the Starter's no longer collide line by line.
- A key both sides changed differently is a conflict, with the usual markers around that key's lines only.
- Your key order and indentation are kept. A file that doesn't parse, such as one with markers left from an earlier merge, merges by line as before.
- The Starter pin keeps the release a change came with in notes such as "since CLI 0.44.0, with Starter v0.28.0", which moving the pin to v0.29.0 had changed.
- CI uses astral-sh/setup-uv 10.3.2 (#154).
Full changelog: v0.44.0...v0.45.0
- Starter v0.29.0 by default (#159). Its template schema is still 6. The Starter's release notes cover:
-
Clubedge Starter v0.29.0
starter githubAn update policy for apps installed on phones
The API's environment now decides when installed apps must update, may update, or will soon have to, without a new release of the apps.
- A minimum announced ahead of time:
APP_NEXT_MINIMUM_VERSIONandAPP_NEXT_MINIMUM_VERSION_FROM, a date and time with its time zone. Until that date, apps below it keep working and tell their users when they stop; from then, the API requires it, with no redeploy. - Values per platform: every
APP_*variable can be set for one platform with_IOSor_ANDROID, such as each store's link inAPP_UPDATE_URL_IOSandAPP_UPDATE_URL_ANDROID. The apps say which platform they run on (X-App-Platform). - The API refuses outdated apps: the apps send their version (
X-App-Version) with every request. Below the minimum, both APIs answer426 update_requiredon every route but/api/health,/api/ready, and/api/app-version, and every operation in the contract declares it. - The apps check more often:
- They check when they start, when they come back to the foreground (at most every 15 minutes), and whenever the API refuses them.
- A block is remembered, so it holds when the app next starts offline.
- Not now hides an available update until a newer one is out, and the warning before a minimum's date until the next day.
- One update store for both apps,
createUpdateChecksinpackages/contract, so a slow answer never undoes a block. pnpm check:envreports contradictions, such as a latest version older than the minimum.
SETUP.md's "Apps installed on phones" has the details. Apps built from an earlier Starter send no version: the API still serves them, and they find a new minimum at their next start.
A new design for the native app
apps/mobilegets a new look: the Inter typeface, a palette in light and dark, floating-label fields, grouped settings, and a frosted-glass tab bar.- Welcome is the first screen signed out. It and sign-up link to your Terms and Privacy Policy: set
links.termsandlinks.privacyinapps/mobile/src/config/site.jsonbefore your first release. - Home greets the user and shows the API's status and the app's version at a glance.
- Settings holds:
- the profile;
- a Dark mode switch that holds over the phone's appearance;
- the password and deleting the account;
- signing out, of this device or of all of them.
- The update screens:
- Update to continue below the minimum.
- A sheet before an announced minimum's date.
- A banner on Home when a newer version is out.
Splash screens
- The native app's splash mark is no longer cut off at its corners on Android 12 and later.
- The mobile app's splash screen shows the brand's mark in the middle of its background.
- On Android, the system draws it, so no screen's shape stretches it.
- On iOS, it comes from
assets/splash.svg. - Projects created before this release get it with
pnpm --filter @clubedge/shell icons android.
Also
- FastAPI reads
APP_NEXT_MINIMUM_VERSION_FROMin exactly the form the TypeScript API accepts. - New native app packages: expo-blur, expo-font, react-native-svg, phosphor-react-native, and @expo-google-fonts/inter. Icons and font weights are imported one file at a time, which keeps the app small.
- A minimum announced ahead of time:
-
- The native app with Expo: default to Starter
v0.28.0(#151).--mobile expoaddsapps/mobile, an Android and iOS app with its own native screens, which calls the project's API (#147):- Template schema 6 adds the
mobilerole: an app with its own screens that calls an API. Like a shell, it runs no server, so it has no Dockerfile or deployment, anddeployleaves it out. Older CLIs refuse a schema 6 Starter and ask for an update. - It needs an API,
--api honoor--api fastapi: with React + Vite, or without a website. Next.js and TanStack Start have no separate API for it to call, so they refuse--mobile expo. It can sit next to the Capacitor app (--shell capacitor). - A mobile stack lists the module options it implements, and the others are refused with it: Expo signs in with Better Auth, Supabase, or nothing.
- Interactive runs ask about it after the framework and the API.
- The Starter's release notes cover the app's screens, sign-in, update notice, and builds.
- Template schema 6 adds the
- Projects without a website (#148):
--framework none --api hono(orfastapi), with or without--mobile expo, creates an API, and the native app that calls it directly:- Schema 6 slots can be optional. The project records
framework: none, soadd,remove, andupgradekeep it without a web app. - A slot names the files and root scripts only its apps use, left out when it is empty, such as the browser tests, and the slot whose package the root scripts use instead, so
pnpm devstarts the API. - Templates list the selections they refuse, with the reason (
rules). Prompts andaddoffer only what the rules allow, and a refused option fails with the reason. Without a website, the Starter refuses payments, Inngest, FastAPI with Better Auth, and deploy targets other than Docker and Railway. deploypublishes the API itself: as the public app behind Caddy with Docker Compose, or as one public service on Railway, with Better Auth's URL and secret. Vercel, Netlify, Fly.io, and Render deploy a web app, so they refuse a project without one, anddeploy --previewrefuses it with the Railway commands for a preview by hand.
- Schema 6 slots can be optional. The project records
- Audit exceptions per stack (#150): a stack lists the advisories
pnpm auditskips because of its dependencies (auditIgnores), and projects without the stack audit them again. The Starter's Expo stack skips two in Expo's development CLI that have no usable fix. - The showcase waits for the billing portal's subscription before recording it, so its video no longer ends on a spinner (#146).
Full changelog: v0.43.1...v0.44.0
- The native app with Expo: default to Starter
-
Clubedge Starter v0.28.0
starter githubA native mobile app
--mobile expoaddsapps/mobile, a native Android and iOS app built with Expo SDK 58 (React 19.3, React Native 0.88) and Expo Router, which calls the same API as the website, with the same contract client.- Screens: sign-in, sign-up, and password reset; a dashboard with the account, the API's health, and the app's version; settings for the display name, the password, signing out, and deleting the account, which the App Store requires of apps with sign-up.
- Sign-in with Better Auth, Supabase, or none.
- Better Auth stays on the website, and the app keeps its session cookie in the device's secure storage.
- Supabase keeps the session in the app's storage, and the app sends its access token to the API.
- Offline, the app stays signed in with the session the device keeps, and signing out forgets it even when the server cannot be reached.
- The update notice from
/api/app-version: Update required below the minimum version, and a notice below the latest. - Icons and splash screen from the brand art.
app.config.tstakes the app's name, address scheme, and ids from the site config. - Native projects are generated when the app is built (
expo prebuild), soandroid/andios/are not committed, and upgrades only change the app's TypeScript and config. - CI checks the app's packages against its SDK, bundles it, and builds a release APK.
Projects without a website
--framework none --api hono(orfastapi), with or without--mobile expo, creates a project that is only an API, which the native app calls directly.pnpm devandpnpm startrun the API, on port 3001. In development it listens on every interface, so a phone on the same network reaches it.- Better Auth runs in the Hono API, at
/api/auth, onceBETTER_AUTH_SECRETis set; with a website, it still runs in the website's server. - Emailed links open the app: confirming a new account opens sign-in, and a password reset opens the app's reset screen, with Better Auth or Supabase (add the app's scheme to Supabase's Redirect URLs).
pnpm clubedge deploypublishes the API itself: behind Caddy with Docker Compose, or as the one public service on Railway.- Not available without a website: payments, Inngest, FastAPI with Better Auth, and deploy targets other than Docker and Railway.
- SETUP.md's new section, "Without a website", has the details.
Also
- Better Auth 1.7.13.
pnpm auditskips two advisories in Expo's development CLI (node-forge, with no fixed release, and zod 3) only in projects with the native app.
Upgrading
This release is template schema 6: create projects from it with create-clubedge-app 0.44.0 or newer, which
pnpm clubedge upgradeuses. Older versions of the CLI refuse it. -
tryshows Railway's reason when Railway refuses a VM (#144):- Before, it said Railway may have changed its free VM and told you to update the CLI, which no update fixes.
- It now prints Railway's own explanation, then Railway's limits, the usual cause: 3 free VMs per network per day, and no anonymous VMs while Railway is busy.
- Still on Starter
v0.27.1.
Full changelog: v0.43.0...v0.43.1
-
- Upgrades keep each app's own version (#134, by @ahmed-husssain):
- An app whose version the project changed in
apps/*/package.jsonkeeps it, without a conflict on that line. - An app whose version the project never touched takes the new Starter's.
- This completes 0.41.0's version ownership, which covered the root
package.json.
- An app whose version the project changed in
add,remove, andupgradethat change nothing exit before downloading the Starter (#133, by @ahmed-husssain; issue #132):- The cases:
upgradeon the pinned Starter's commit or with--refset to the recorded commit,addwith options the project already uses, andremoveof modules recorded asnone. - These commands now work offline. They no longer refuse a project with uncommitted changes, since they change nothing.
upgrade --ref <branch>still resolves the branch, which may have moved.removewith an unknown module still fails withUnknown module.
- The cases:
- Still on Starter
v0.27.1.
Full changelog: v0.42.1...v0.43.0
- Upgrades keep each app's own version (#134, by @ahmed-husssain):
-
- Default to Starter
v0.27.1(#140): new projects carry the Clubedge Starter brand, and their mobile app shows it.- Each web app's logo is the new mark, shown whole: the pages no longer round its corners. Each app also has
favicon.ico, a newfavicon.svg, and an Apple touch icon. - The mobile app shows the logo on its pages. The logo was in a
.well-knownfolder, which Android leaves out of an app, so the Vite app now bundles it. - The mobile app's icons and splash screens are made from
apps/shell/assets/logo.svginstead of Capacitor's default. - Upgrading: a logo you replaced comes back as a conflict in
logo.svg, so keep yours. The Starter's release notes cover replaced favicons and existingandroid/andios/projects.
- Each web app's logo is the new mark, shown whole: the pages no longer round its corners. Each app also has
Full changelog: v0.42.0...v0.42.1
- Default to Starter
-
Clubedge Starter v0.27.1
starter githubThe Clubedge Starter brand
The three web apps carry the new Clubedge Starter mark: five rounded squares and two circles forming a C, in
#2563EB.- Logo:
public/.well-known/logo.svg, the transparent mark, readable on light and dark backgrounds. The pages no longer round its corners, which suited the old square tile but would cut the mark. - Browser tabs:
favicon.ico(16, 32 and 48 px) and a newfavicon.svg. - iOS home screens: a 180 px Apple touch icon.
- How each app uses them:
- Next.js picks them up through its file conventions:
src/app/favicon.ico,icon.svgandapple-icon.png. - TanStack Start links them from its root route, and Vite from
index.html.
- Next.js picks them up through its file conventions:
Fixes for the mobile app
- The logo shows inside the app, on the landing page and the dashboard.
- It was an image under
.well-known, a folder Android leaves out of an app. - The Vite app now bundles it into its own files. The website still serves the same file, so a logo you replaced keeps working.
- It was an image under
- App icons and splash screens come from
apps/shell/assets/logo.svg, the white mark on a blue square, instead of Capacitor's default.- The shell makes them when it creates a native project, with Capacitor's asset tool. The tool runs through npx, so the project installs nothing for it.
pnpm --filter @clubedge/shell iconsmakes them again after you change the art.- The backgrounds are set at the top of
apps/shell/scripts/icons.mjs.
- The demo APK attached to this release has the new icon and logo. It is debug-signed, so uninstall the previous demo before installing it.
Upgrading
- If you replaced the logo, the upgrade reports a conflict in
public/.well-known/logo.svg, since an SVG merges as text. Keep your version. - If you replaced the favicon, your
favicon.icostays, since images are never merged. The upgrade also addsfavicon.svgand the Apple touch icon; in Next.js these aresrc/app/icon.svgandsrc/app/apple-icon.png. Replace them with your own as well, because browsers prefer the SVG. - If your app already has
android/orios/, it keeps Capacitor's icon. Put your art inapps/shell/assets/logo.svg, then runpnpm --filter @clubedge/shell iconsonce.
- Logo:
-
- Mobile apps with Capacitor: default to Starter
v0.27.0(#138).--framework vite --api hono --shell capacitor(or--api fastapi) packages the Vite frontend as an Android and iOS app inapps/shell(#135):- Template schema 5 adds the
shellrole: a stack that packages a frontend's static build and runs no server, so it has no Dockerfile or deployment, anddeployleaves it out. Older CLIs refuse a schema 5 Starter and ask for an update. --shellis refused with Next.js and TanStack Start, which render on their own server. Interactive runs ask about a mobile app only after a frontend and its API.apps/shell/.env.localis created from its example (WEB_URL, the website the app calls), andadd,remove, andupgradekeep its values.- A variant file's
clubedge:ifblocks are kept or dropped for the selection where the variant lands, like other conditional files'. Before, they stayed in the project. - MCP:
get_starter_capabilitieslists each slot's question, and the tools describe what each role pairs with. - CI generates a mobile project from the pinned Starter.
- Template schema 5 adds the
- Client addresses per platform (#136, #137):
deploytells the app where each client's address is, for Starterv0.27.0's rate limits:CLIENT_IP_HEADER:x-real-ipon Railway and Vercel,cf-connecting-ipon Render (from the Cloudflare edge in front of it),fly-client-ipon Fly.io,x-nf-client-connection-ipon Netlify.TRUSTED_PROXY_HOPS=1behind Caddy with Docker Compose, and on a frontend's API, which only the frontend's server reaches.- Previews and
tryset them too, and the env file's settings replace both defaults.
- Docker Compose behind Caddy, with images on GHCR (#136):
deploywith the docker option now works for full-stack apps too, and writes:compose.yaml: each app's image (pulled fromIMAGE_PREFIXatTAG, or built with--build), behind Caddy, the only service that publishes ports, with automatic HTTPS forDOMAIN.- A
Caddyfile. .github/workflows/release-images.yml: each published release builds every app for linux/amd64 and linux/arm64 and pushes it to the repository's container registry, tagged with the version,<major>.<minor>, andlatest.- Running
deployagain writes only the files that are missing and never overwrites one you changed. A frontend and API'scompose.yamlfrom an earlier deploy stops it until you move that file away.
upgradekeeps the blank line after a section the Starter adds to the local env file between two others (#138).
Full changelog: v0.41.1...v0.42.0
- Mobile apps with Capacitor: default to Starter
-
Clubedge Starter v0.27.0
starter githubMobile apps with Capacitor
--shell capacitorpackages the React + Vite frontend as an Android and iOS app with Capacitor 8, inapps/shell. It needs a Hono or FastAPI API. Next.js and TanStack Start render on their own server and cannot be packaged.- Running it:
- The app's pages load from the device and call the API through your website (
WEB_URL), whose server answers the app's origins (MOBILE_ORIGINS). pnpm androidandpnpm ioscreate the native project on first use and open Android Studio or Xcode. The project ownsandroid/andios/.
- The app's pages load from the device and call the API through your website (
- Sessions use tokens:
- Better Auth: its bearer plugin, with the token kept on the device.
- Supabase: keeps its session in device storage.
- Firebase: keeps its session in IndexedDB.
- Appwrite: needs a
localhostplatform.
- What the app doesn't do:
- Emailed links open the website.
- The app shows no billing, following the app stores' payment rules.
- Update notice: at startup, the app compares its version with
GET /api/app-version.- Below
APP_MINIMUM_VERSION, it shows a blocking update screen. - Below
APP_LATEST_VERSION, it shows a notice. - Both link to
APP_UPDATE_URL.
- Below
- Demo: a demo build has sample data and needs no server. Try it on Android:
clubedge-demo.apkis attached to this release, and to every release from now on. - CI: a generated project's CI builds a debug APK.
Mobile projects need create-clubedge-app 0.42.0 or newer: this Starter uses template schema 5.
Contract changes installed apps survive
Apps stay installed for months and keep calling the contract they shipped with.
GET /api/app-version: both APIs answer it, and the conformance suite checks it.- Contract check: a
contractCI job compares each pull request'sopenapi.yamlwith its base and fails on changes that break existing clients. - Deliberate breaks: label the pull request
breaking-contract.
Client addresses for rate limits
Rate limits no longer trust the first
X-Forwarded-Forentry, which a client chooses (#94). Every server reads one of two settings:-
CLIENT_IP_HEADER: the header your host sets to the client's address.Host Value Railway, Vercel x-real-ipRender cf-connecting-ipFly.io fly-client-ipNetlify x-nf-client-connection-ip -
TRUSTED_PROXY_HOPS: the number of proxies you run in front, such as Caddy. -
The Vite frontend's server sends the API the one address it found, and the API behind it uses
TRUSTED_PROXY_HOPS=1. -
Bad values: a value that cannot be right stops the server at startup.
Docker
- Production files: with create-clubedge-app 0.42.0,
pnpm clubedge deploywrites:compose.yaml: the apps behind Caddy, with automatic HTTPS;- a
Caddyfile; .github/workflows/release-images.yml, which publishes multi-architecture images to GitHub's registry on each release.
deploy.yml: Docker projects no longer get one. Its image job is replaced by that workflow.pnpm docker:dev: namesdocker-compose.yml, so acompose.yamlfrom deploy never takes its place.
Upgrading
- Set the client address setting for your host from the table above.
clubedge deploysets it with CLI 0.42.0. Without it:- Next.js reads the last
X-Forwarded-Forentry. - Other servers take the connection's address, so behind a proxy every client shares one count.
- Next.js reads the last
- An API reached only through the Vite frontend's server needs
TRUSTED_PROXY_HOPS=1. - Docker projects that used the
deploy.ymlimage job: runpnpm clubedge deployfor the release workflow.
- Running it:
-
- Default to Starter
v0.26.1(#130): new projects' weekly upgrade workflow opens its pull request when the upgrade leaves conflict markers in apackage.json, listing them, instead of stopping without one. It runsupgrade --detailed-exit-code, from 0.41.0. Existing projects get the workflow through their next upgrade pull request.
Full changelog: v0.41.0...v0.41.1
- Default to Starter
-
Clubedge Starter v0.26.1
starter githubThe upgrade pull request opens when package.json has conflicts
The weekly upgrade workflow (
.github/workflows/clubedge-upgrade.yml) now opens its pull request when the upgrade leaves conflict markers in apackage.json(#96, by @NishilRathod; create-clubedge-app#111). Before, it stopped right after the upgrade, because Node and pnpm cannot read such a file, and no pull request was opened.- It reads the Starter release from
package.jsonwithfs, falling back to the Starter's version in.clubedge/incoming, and runs the upgrade with--detailed-exit-code: a conflicted upgrade opens the pull request, listing the files to resolve, and any other failure stops the run. - While a
package.jsonhas conflict markers,pnpm installwaits, and the pull request says to resolve them, then runpnpm installand commitpnpm-lock.yaml. - The pull request's text is written before anything is pushed, and if it cannot be opened, the pushed branch is deleted so the next run tries again instead of skipping the release.
The workflow needs create-clubedge-app 0.41.0 or newer, which it runs as
@latest. Projects get it through their next upgrade pull request: with create-clubedge-app 0.41.0, a project's ownversionno longer conflicts, so that pull request can open. - It reads the Starter release from
-
- A
package.jsonwith conflict markers no longer breaks the next commands (#122, by @NishilRathod; issue #111):- After
add,remove, orupgradeleaves markers in apackage.json,pnpm installis skipped with the reason: pnpm cannot read the file, so resolve it, then runpnpm install. The conflict report always prints, even when the install fails. - pnpm is found from outside the project, so a broken
package.jsonis no longer reported as "pnpm was not found", and an installed pnpm that fails says why. status,doctor,add,remove,upgrade,deploy,neon, andtryname the unreadablepackage.jsoninstead of printing a JSON parse error, and point togit diff --no-indexagainst the Starter's version in.clubedge/incoming.--detailed-exit-codeforadd,remove, andupgrade: exit 2 when the change left conflicts to resolve, 0 when it was clean. Without it, conflicts still exit 0, as existing projects' upgrade workflow expects. The next Starter release's workflow uses it to open the upgrade pull request even whenpackage.jsonconflicts.
- After
doctorfails on unresolved conflict markers in the project's files, listing them with their block counts (#123, by @ahmed-husssain; issue #109).- Projects own their version and README (#125, by @ahmed-husssain; issue #124):
- New projects start at version
0.1.0, andadd,remove, andupgradekeep the project's own version, so the rootpackage.jsonno longer conflicts on it with every Starter release. - A README the project replaced (without the generated
## Generated fromsection) is kept as it is; the Starter's new README goes to.clubedge/incoming/README.mdto compare.
- New projects start at version
- CI covers these cases end to end on Linux and Windows (#128).
- Still on Starter
v0.26.0.
Full changelog: v0.40.0...v0.41.0
- A
-
- Every module on React + Vite with FastAPI: default to Starter
v0.26.0(#126).--framework vite --api fastapinow offers the module options Hono got in 0.39.0, each written in Python:--storage s3(or a local folder with--infra local) and--storage supabase.--cache redis, for the rate limits and cache.--email smtpand--email resend.--observability oteland--observability sentry, with browser error reporting.--payments stripe, on the same tables as the Hono API.--jobs bullmqand--jobs inngest.--jobs pg-bossis still refused for FastAPI: pg-boss has no Python version.- The account settings page in full: display name, password change, and account deletion.
- New Vite + FastAPI projects get the same defaults as the other stacks: S3 storage, Redis cache, and SMTP email.
- Each module has its own uv dependency group: every project keeps the same
uv.lock, and its production image installs only the selected modules' libraries.
- Rendered Python files keep the two blank lines PEP 8 and
ruff formatwant between top-level definitions when a conditional block is removed (#121). Generating FastAPI projects from Starterv0.26.0needs this release. - The README says the decoupled stacks with Hono support every module (#120).
Full changelog: v0.39.0...v0.40.0
- Every module on React + Vite with FastAPI: default to Starter
-
Clubedge Starter v0.26.0
starter githubEvery module on React + Vite with FastAPI
The FastAPI API now has the app modules the Hono API got in v0.25.0, each written in Python and checked against the same contract as Hono:
Module Options File storage S3-compatible (or a local folder with --infra local), Supabase StorageCache and rate limits Redis, memory Email SMTP, Resend Observability OpenTelemetry, Sentry, plus browser error reporting Payments Stripe: billing card, Checkout, customer portal, and verified webhooks, on the same tables as the Hono API Background jobs BullMQ, Inngest, with the worker inside the API and a jobs card on the dashboard pg-boss is the one exception: it has no Python version, so
--jobs pg-bossstays a Hono and full-stack option.React + Vite projects with FastAPI also get the full account settings page: display name, password change, and account deletion, which is blocked while a subscription is active.
New projects with
--framework vite --api fastapiget the same defaults as the other stacks: S3 storage, Redis cache, and SMTP email.Python dependencies per module
Each module option has its own uv dependency group. Every project keeps the same
uv.lock, souv sync --lockedalways passes; development installs every group, and the production image installs only the selected modules' libraries.Fixes
- Inngest on FastAPI sends events with the Dev Server's key when the project sets none (the empty
INNGEST_EVENT_KEYblocked every event). - Sentry on FastAPI filters forwarding and address headers and leaves database query data and queue payloads out.
- Shutdown waits at most 25 seconds for running BullMQ jobs; BullMQ retries the rest.
Generating FastAPI projects needs create-clubedge-app 0.40.0 or newer, which keeps the blank lines Python's formatter requires in rendered files.
- Inngest on FastAPI sends events with the Dev Server's key when the project sets none (the empty
-
- Every module on React + Vite with Hono: default to Starter
v0.25.0(#118).--framework vite --api hononow offers every module option the full-stack apps have, each running in the API with the matching UI in the frontend:--storage s3(or a local folder with--infra local) and--storage supabase.--cache redis, for the rate limits and cache.--email smtpand--email resend; Better Auth's emails in the frontend's server use them too.--observability oteland--observability sentry, with browser error reporting.--payments stripe: the billing card, Checkout, the customer portal, and webhooks through the frontend.--jobs pg-boss,--jobs bullmq, and--jobs inngest, with the worker inside the API and a jobs card on the dashboard.- New Vite + Hono projects get the same defaults as the full-stack apps: S3 storage, Redis cache, and SMTP email.
deployneeds no change: Railway and Docker Compose already send each variable to the service that reads it.
- Account settings on React + Vite: projects with authentication get the settings page (display name, password change, account deletion). With FastAPI it offers the password change.
- FastAPI is unchanged: the CLI still refuses the module options it doesn't implement, with the message that names them.
- Generated React + Vite projects' own CI builds and checks the API's image too.
Full changelog: v0.38.0...v0.39.0
- Every module on React + Vite with Hono: default to Starter
-
Clubedge Starter v0.25.0
starter githubEvery module on React + Vite with Hono
A React + Vite frontend with the Hono API now has every module the full-stack apps have. Each one runs in the API, with the matching UI in the frontend:
Module Options File storage S3-compatible (or a local folder with --infra local), Supabase StorageCache and rate limits Redis, memory Email SMTP, Resend; Better Auth's emails in the frontend's server use it too Observability OpenTelemetry, Sentry, plus browser error reporting Payments Stripe: billing card, Checkout, customer portal, and verified webhooks Background jobs pg-boss, BullMQ, Inngest, with the worker inside the API and a jobs card on the dashboard The frontend forwards only the selected modules' routes to the private API, including Stripe's webhook and Inngest's calls.
pnpm startnow runs that same server instead ofvite preview.New projects with
--framework vite --api honoget the same defaults as the full-stack apps: S3 storage, Redis cache, and SMTP email.Account settings on React + Vite
Projects with authentication get an account settings page on React + Vite: display name, password change, and account deletion, which is blocked while a subscription is active. With FastAPI the page offers the password change. Signing up with required email confirmation now lands on a "check your email" screen.
FastAPI
Unchanged. The CLI still refuses the module options it doesn't implement, and it passes the contract as before: a module that is absent answers 404 on its endpoints.
Fixes
- Hono images with Sentry no longer crash at startup.
- Generated React + Vite projects' own CI builds and checks the API image as well as the frontend's.
undiciis overridden to 6.29.1 for a high-severity denial of service advisory (GHSA-xjj6-f33q-929c).- Better Auth on React + Vite keys its rate limits per client address.
-
- Security: default to Starter
v0.24.2(#116). It updates Next.js to 16.4.3: 16.0.0 to 16.4.0 have two critical unauthenticated remote code execution advisories and a high denial of service (GHSA-p3m5-59mp-jv5r and related). It also updates Zod to 4.6.7 (GHSA-mrhx-c7xc-m3w5). Every Next.js project from an earlier Starter should runpnpm clubedge upgrade, or raisenextto^16.4.3inapps/web/package.jsonand runpnpm install. The Starter release also:- gives a separate API the database URL of its
--infra(it always pointed at127.0.0.1:5432/postgres, wrong for supabase, local, and docker); - passes the Vite frontend's
VITE_*build arguments indocker-compose.yml, and runs the Vite image as an unprivileged user; - lists the Firebase, Appwrite, Inngest, Supabase, OpenTelemetry, and Sentry variables in
render.yaml.
- gives a separate API the database URL of its
- Fixes for a frontend and its API (#115):
- The database URLs go to
apps/api/.env.local, the API's, with--infra neon,neon create|claim|status,add infra neon,try, anddoctor. Apps that also declareDATABASE_URL(Better Auth on the Vite frontend) get the same URLs. deploywith Docker:compose.yamlpasses the frontend'sVITE_*build arguments for every auth provider, not only Supabase. With Better Auth, the frontend gets its auth server's variables.deployon Railway: with Better Auth, the frontend service gets the API'sDATABASE_URL,BETTER_AUTH_URL, and a secret. Each service lists its own unset variables.deploy --previewrefuses a frontend and its API with a clear message: it deploys one app.- MCP: with
infra: neon,create_projectwarns andplan_projectreturnsnextStepssaying to runpnpm clubedge neon create.
- The database URLs go to
- The README, roadmap, and 0.35.0–0.37.0 changelog entries describe what shipped;
pnpm releaseleaves dependency bumps out of the release tables (#114).
Full changelog: v0.37.0...v0.38.0
- Security: default to Starter
-
Clubedge Starter v0.24.2
starter githubSecurity update
- Next.js 16.4.3: Next.js 16.0.0 to 16.4.0 have two critical unauthenticated remote code execution advisories and a high denial of service (GHSA-p3m5-59mp-jv5r and related). Every Next.js project from an earlier Starter is affected: run
pnpm clubedge upgrade, or raisenextto^16.4.3inapps/web/package.jsonand runpnpm install. - Zod 4.6.7: before 4.6.6, validation can exhaust memory on oversized collections (GHSA-mrhx-c7xc-m3w5).
A frontend and its API
- The API's
.env.example(Hono and FastAPI) and Better Auth'sDATABASE_URLon the Vite frontend now hold the URL for the chosen infrastructure. Before, they always pointed at127.0.0.1:5432/postgres, which was wrong for--infra supabase(port 54322),local(5433), anddocker(theappdatabase). docker-compose.ymlpasses the frontend'sVITE_*build arguments for the selected auth provider..envfiles stay out of the image, so nothing was compiled in before.- The Vite frontend's image runs as an unprivileged user, like the other images.
Deploy
render.yamllists the variablescheck:envrequires for Firebase, Appwrite, and Inngest, plusSUPABASE_SECRET_KEY, OpenTelemetry, and Sentry, each with its module.
Docs and cleanup
- FastAPI's image bundles the Node migrator:
SETUP.mdand its Dockerfile say to runnode migrate.mjs, notpnpm db:migrate. - Removed
apps/vite/Caddyfile, unused since v0.24.0.
- Next.js 16.4.3: Next.js 16.0.0 to 16.4.0 have two critical unauthenticated remote code execution advisories and a high denial of service (GHSA-p3m5-59mp-jv5r and related). Every Next.js project from an earlier Starter is affected: run
-
- Add MCP server and agent skill (#110).
- Still on Starter
v0.24.1.
Full changelog: v0.36.0...v0.37.0
-
- Bump vitest from 5.0.3 to 5.0.5 in the minor-and-patch group (#104).
- Bump giget from 2.0.0 to 3.3.1 (#69).
- Bump @types/node from 22.20.5 to 26.6.5 (#68).
- Default to Starter
v0.24.1(#107).
Full changelog: v0.35.0...v0.36.0
-
Clubedge Starter v0.24.1
starter githubSecurity update
- Updates FastAPI's locked
certifidependency to 2026.10.19, addressing the critical GHSA-6q48-6c7w-9gw2 advisory.
Preview workflow
- Skips secret-backed preview deployments for Dependabot pull requests, so dependency update checks can run without unavailable repository secrets.
- Updates FastAPI's locked
-
- Deploy a frontend and its separate API (#103):
--deploy dockergenerates a Compose setup with the Vite frontend and API as separate services. The frontend is public; the API stays on the internal network, and the generated configuration includes each service's port and health check.--deploy railwayprovisions the frontend and API services, wires the frontend to the private API URL, configures service variables, and runs database migrations before releasing the API.- Deployment capabilities now live in each stack's descriptor, including supported platforms, ports, and health checks. See docs/stack-packs.md.
- Default to Starter
v0.24.0(#105), which brings all four auth providers to React + Vite with either Hono or FastAPI:- Supabase, Better Auth, Firebase, and Appwrite each have frontend flows and API-side token or session verification.
- Generated-project and auth-flow CI covers every provider with both APIs; Docker and Railway deploy configuration is checked for both combinations.
- FastAPI now has a committed
uv.lockfor reproducible Python installs. Pull request previews can also deploy the Vite frontend and API as separate Render services.
Full changelog: v0.34.0...v0.35.0
- Deploy a frontend and its separate API (#103):
-
Clubedge Starter v0.24.0
starter githubAuthentication for decoupled stacks
React + Vite projects can now use Supabase, Better Auth, Firebase, or Appwrite with either the Hono TypeScript API or the FastAPI Python API. Each provider has frontend auth flows and API-side token or session verification.
Generated project coverage
The CI matrix exercises both API stacks with all four auth providers, including generated-project checks and auth flows. Deploy configuration checks cover Docker and Railway for the Vite/API combinations.
Stack pull request previews
Pull requests can generate and deploy the React + Vite frontend and API as separate Render services. The preview workflow handles existing services and queued Render deployments, and cleans up services when the pull request closes.
Reproducible FastAPI setup
The FastAPI app now includes a committed
uv.lockso Python dependencies can be installed reproducibly. -
- A FastAPI API: default to Starter
v0.23.0(#101).--framework vite --api fastapicreates the React + Vite frontend with an API in Python, managed with uv:- The Starter added it as one folder that describes itself, and this CLI generates it without a code change: the API lands in
apps/apias@clubedge/api, and the CLI runsuv syncafterpnpm install. - Its
package.jsonscripts call uv, ruff, mypy, and pytest, sopnpm dev,pnpm lint,pnpm typecheck, andpnpm testrun it like the other apps.pnpm lintandpnpm testnow also run each app's own scripts, so apps in other languages are always checked. - It passes the same contract suite as the Hono API, against the live server, through
clubedge-contract-check. - A first version: the app modules are
none(cache: memory, deploy: Docker). Install uv first.
- The Starter added it as one folder that describes itself, and this CLI generates it without a code change: the API lands in
- CI generates the pair from the packed CLI. The smoke check waits for a separate API that starts after its frontend (#100).
Full changelog: v0.33.0...v0.34.0
- A FastAPI API: default to Starter
-
Clubedge Starter v0.23.0
starter githubA FastAPI API
--framework vite --api fastapigenerates the React + Vite frontend with an API in Python (#69). It is the second API stack, and the test of stack packs: create-clubedge-app needed no change to generate it, because the stack is one folder (apps/api-fastapi) that describes itself.- The app: FastAPI on uvicorn, managed with uv. It answers
/api/health,/api/ready(PostgreSQL through psycopg) and/api/session, and returns JSONnot_founderrors, aspackages/contract/openapi.yamldescribes. Like the Hono API,app.pyholds the routes andserver.pyis the only place that reads the environment. - Runs like every app: its
package.jsonscripts call uv, ruff, mypy (strict), and pytest, sopnpm dev,pnpm lint,pnpm typecheck,pnpm test, andpnpm startinclude it. In generated projects it lives inapps/apias@clubedge/api, and the frontend forwards/apito it. - Proven against the contract: its tests run the shared conformance suite against the live server, the same suite the Hono API passes.
- Production: a
python:3.12-slimimage with uv. The schema and migrations stay inpackages/db: runpnpm db:migratebefore a new version starts. - A first version: like Hono, the app modules are
none(cache: memory, deploy: Docker).
For every language
clubedge-contract-check(@clubedge/contract): starts an API from any command on a spare port, waits for/api/health, runs the conformance suite over HTTP, and stops it.pnpm lintandpnpm testalso run each app's ownlintandtestscripts through turbo, so apps in other languages are always checked.- CI sets up uv when an app has a
pyproject.toml.
- The app: FastAPI on uvicorn, managed with uv. It answers
-
- A frontend and a separate API: default to Starter
v0.22.0(#98).--framework vite --api honocreates a React + Vite frontend inapps/weband a Hono API inapps/api, joined by one HTTP contract:packages/contract/openapi.yamlis the contract. The frontend calls the API only through the client generated from it, and@clubedge/contract/conformanceis the test suite every API passes, in process or over HTTP against any running API.pnpm devandpnpm startrun both, and the frontend forwards/apito the API, so the browser sees one origin.docker compose up --buildruns both images.- A first version: on these stacks the modules are
none(cache: memory, deploy: Docker).deployexplains that it sets up one app and doesn't deploy the pair yet (#96). - CI generates the pair from the packed CLI and runs its full pipeline; the smoke check accepts a single-page app's shell for a missing page (#97).
- Stack packs (template schema 4, #95): a Starter describes each app in its own
clubedge.stack.jsonand each module inclubedge/modules/<id>.json, so adding a stack adds a folder and changes nothing shared. See docs/stack-packs.md.- Slots place apps in generated projects:
--frameworkfor the web app and--apifor a separate API. A frontend needs an API, and a full-stack app takes none. - The CLI checks that the selected stacks implement each chosen module option, and only offers those options in prompts and
add. - Stacks outside Node.js declare a toolchain, such as uv, whose install runs after
pnpm install. - A slot can name packages only its apps use, left out when it is empty, and its own site config, named after the project (#96).
- Starters with schema 1 to 3 are read into the same model, so projects created from them still add, remove, and upgrade. Projects generated from the same selection are byte-identical to 0.32.0.
- Slots place apps in generated projects:
Full changelog: v0.32.0...v0.33.0
- A frontend and a separate API: default to Starter
-
Clubedge Starter v0.22.0
starter githubStack packs
The Starter now describes itself in packs (template schema 4), so each part is described in one place (#65):
File Describes clubedge.template.jsonthe slots apps land in, the module order, shared files clubedge/modules/<id>.jsona module: its options, packages, scripts, and shared files apps/<name>/clubedge.stack.jsonan app (a stack): its role, and its own files for each option Adding a stack, in any language, adds a folder; nothing shared changes. Projects generated from the same selection are byte-identical to v0.21.0. Needs create-clubedge-app with schema 4 support.
A frontend and a separate API
--framework vite --api honogenerates a React + Vite frontend and a Hono API that meet at one HTTP contract (#66, #67):packages/contract:openapi.yaml(health, readiness, session, and a JSON error shape), the TypeScript client generated from it, and@clubedge/contract/conformance, the suite every API passes, in process or over HTTP against any running API (API_URL). The contract is left out of projects without a separate API.apps/vite(frontend): React with TanStack Router as a single-page app, with the same landing page and dashboard as the other apps./apigoes to the API through Vite in development and through Caddy in its production image, so the browser sees one origin and cookies stay first-party.apps/api(API): Hono on Node, reusing@clubedge/coreand@clubedge/db, bundled with esbuild; its image includes the migrator.pnpm devandpnpm startrun the API alongside the frontend,docker compose up --buildruns both, and SETUP.md describes the pair.
This first version is a thin slice: on these stacks, the app modules are
none(cache: memory, deploy: Docker). Modules come to them one at a time.Other changes
deployis an app module: each stack lists the platforms it supports.pnpm startruns through turbo, passing the environment through; database commands also readapps/api/.env.local.- The browser suite starts a frontend's API as its own server.
-
- Pluggable authentication: default to Starter
v0.21.0(#93). Authentication now has four providers behind one interface, so the pages, settings, payments, and jobs stay the same whichever signs users in:--auth supabaseand--auth better-auth, as before.--auth firebase(new): Firebase Authentication from the server, with session cookies.pnpm auth:devstarts the Auth Emulator, so development needs no Firebase account. Reset and confirmation emails go through the app's email module.--auth appwrite(new): Appwrite accounts on Appwrite Cloud or your own server, with session cookies and an API key. Appwrite sends its own emails.@clubedge/auth/conformanceis one test suite every auth provider passes: sign-up and sign-in, sign-out, reset through the emailed link, password changes that sign out other sessions, and account deletion. The Starter's CI runs it against all four, including Appwrite Cloud.- Stripe payments work with every provider.
- Switch an existing project with
pnpm clubedge add auth firebaseorpnpm clubedge add auth appwrite. Afterpnpm clubedge upgrade, runpnpm db:migrate:users.auth_user_idbecomes text, since Firebase's and Appwrite's user ids aren't UUIDs.
Full changelog: v0.31.0...v0.32.0
- Pluggable authentication: default to Starter
-
Clubedge Starter v0.21.0
starter githubPluggable authentication
Authentication now has four providers behind the same
AuthProviderinterface, and a conformance suite that proves each one (#63). The pages, the settings page, payments, and jobs work the same whichever provider signs users in; switch withpnpm clubedge add auth <provider>.Provider Where accounts live Emails supabaseSupabase Auth Supabase sends them better-authyour own PostgreSQL through the app's email module firebase(new)Firebase Authentication; the Auth Emulator in development ( pnpm auth:dev)Firebase generates the links, the app's email module sends them appwrite(new)Appwrite Cloud or your own Appwrite server Appwrite sends them - Firebase:
- Sessions: run from the server, with HTTP-only session cookies checked for revocation on each request.
- Development: the Auth Emulator, with no Firebase account.
- Production: set the project, its Web API key, and a service account;
pnpm check:envrequires them and refuses the emulator.
- Appwrite:
- Sessions: run from the server with an API key (
sessions.write,users.read,users.write), and the session's secret in an HTTP-only cookie. - Setup: register the app's hostname as a Web platform in the project.
- Sessions: run from the server with an API key (
- With every provider: changing or resetting a password signs out every other session, and Stripe payments work.
A conformance suite for every provider
@clubedge/auth/conformanceholds 11 tests for the behaviour every auth provider must have:- sign-up and sign-in;
- one answer for a wrong password and an unknown address;
- sign-out;
- a reset through the emailed link, once;
- password changes that sign out other sessions;
- account deletion after
beforeDelete; - no account settings without a session.
The Starter's CI runs it against Better Auth, the local Supabase stack, Firebase's Auth Emulator, and Appwrite Cloud. To add your own provider, implement
AuthProviderand run the suite against it.Upgrading
- Run
pnpm db:migrate. Migration0001changesusers.auth_user_idtotext, since Firebase's and Appwrite's user ids aren't UUIDs. Existing UUIDs convert to their text form. - The reset page and auth callback read every provider's links, and the auth email types and templates live in
@clubedge/auth. - A
fast-xml-parseroverride fixes a high-severity advisory in a firebase-admin dependency. - The local Supabase stack allows 100 emails an hour.
Create a project with it using the CLI release that moves to Starter
v0.21.0. - Firebase:
-
- Pluggable background jobs: default to Starter
v0.20.0(#91). The jobs module now has three providers behind one interface, so job definitions, routes, and the dashboard's jobs card stay the same whichever runs them:--jobs pg-boss: jobs in your PostgreSQL, run by a worker in the app server.--jobs bullmq(new): jobs in Redis through BullMQ 6, run by a worker in the app server. It needs--cache redis, sodeploycreates Railway's Redis with it.--jobs inngest(new): Inngest calls the app's/api/inngestto run each job, so serverless hosts need no cron.pnpm jobs:devstarts its Dev Server, andcheck:envrequiresINNGEST_EVENT_KEYandINNGEST_SIGNING_KEYin production.@clubedge/jobs/conformanceis one test suite every provider passes: retries, delays, throttling, timeouts, history, and the worker. SETUP.md shows how to add your own provider with it.runDue'sfailednow counts every failed attempt, retries included, for every provider.- Switch an existing project with
pnpm clubedge add jobs bullmqorpnpm clubedge add jobs inngest.
- The showcase's SaaS walkthrough waits for Stripe's billing portal to be on screen before moving on (#90). Stripe renders the portal's text under a spinner and fades it in, which Playwright counted as visible.
Full changelog: v0.30.1...v0.31.0
- Pluggable background jobs: default to Starter
-
Clubedge Starter v0.20.0
starter githubPluggable background jobs
The jobs module now has three providers behind the same interface, and a conformance suite that proves each one (#61). Job definitions, routes, and the dashboard's jobs card are the same whichever provider runs them; switch with
pnpm clubedge add jobs <provider>.Provider Where jobs live and run Best for pg-bossYour PostgreSQL, run by a worker in the app server One database to run, any host bullmq(new)Redis, through BullMQ 6, run by a worker in the app server; requires --cache redisLong-running hosts that already run Redis (Railway, Fly.io, Docker) inngest(new)Inngest, which calls the app's /api/inngestto run each jobServerless hosts (Vercel, Netlify), with no cron to set up - BullMQ:
- Retries: fixed or exponential backoff.
- Throttling: through deduplication with a TTL.
- Schedules: cron, as job schedulers.
- Where no worker runs: the same
/api/jobs/runroute as pg-boss, called by a scheduler withCRON_SECRET.
- Inngest:
- Local development:
pnpm jobs:devstarts its Dev Server; open http://localhost:8288 to see every run. - Production: set
INNGEST_EVENT_KEYandINNGEST_SIGNING_KEY.pnpm check:envrequires them and refusesINNGEST_DEV. - Job history: the jobs card reads it from Inngest's API.
- Local development:
A conformance suite for every provider
@clubedge/jobs/conformanceholds ten tests for the behaviour everyJobQueueprovider must have:- output and attempts;
- the id and attempt number passed to
run; - retries until
retryLimit; delaySeconds;- throttling by key;
- the order and filters of
recent(); - timeouts that abort the job's signal;
- a worker;
- refusing jobs that aren't defined.
The in-memory queue, pg-boss, and BullMQ run them. To add your own provider, implement
JobQueueand run the suite against it; SETUP.md shows how.Also
- Behaviour change:
runDue'sfailedcounts every failed attempt, retries included, for every provider. pg-boss already did; the in-memory test queue counted jobs. - TanStack Start: the CSRF check lets Inngest's signed calls reach
/api/inngest, as it does webhooks. - CI: the generated-project flow runs with BullMQ (Next.js) and Inngest through its real Dev Server (TanStack Start), and a Redis service runs BullMQ's conformance tests.
Create a project with it using the CLI release that moves to Starter
v0.20.0. - BullMQ:
-
Railway previews, fixed after running them for real on the Starter's own pull requests.
deploy --previewsetsPORTon the Railway preview environment (#87). The preview's domain sends traffic to port 3000, but a production service withoutPORTgave the copied environment none: Railway assigned its own port, and the app answered 502.- Default to Starter
v0.19.1(#88), which fixes the Railway step of.github/workflows/preview.yml:- It works with a workspace token as well as an account token: it no longer runs
railway link, which needs an account token, since the Railway CLI targets the project fromRAILWAY_PROJECT_ID. - It sets
PORT=3000on the pull request's environment, for the same reason as above. - The pull request comment lists the Vercel and Railway apps separately when both deploy.
- Tested on the Starter's pull requests: a Neon branch with the migrations, a Vercel and a Railway preview each answering
/api/ready, and cleanup of the branch and the Railway environment on merge.
- It works with a workspace token as well as an account token: it no longer runs
- If your project deploys previews to Railway, run
pnpm clubedge upgradeto get the fixedpreview.yml.
Full changelog: v0.30.0...v0.30.1
-
Clubedge Starter v0.19.1
starter githubRailway previews work
Fixes for the Railway step of
.github/workflows/preview.yml, found by running it for real on the Starter's own pull requests (#59).- Workspace tokens work: the step no longer runs
railway link, which needs an account token and failed with "Unauthorized" for a workspace token. The Railway CLI targets the project fromRAILWAY_PROJECT_ID, which the step already sets. Account tokens still work. - The preview answers: the step sets
PORT=3000on the pull request's environment, the port its domain targets. Before, a production service withoutPORTgave the copy none, Railway assigned its own port, and the app answered 502. - Both URLs in the comment: when Vercel and Railway both deploy, the pull request comment lists each app instead of only the first.
Tested on #59: a Neon branch with the migrations, a Vercel and a Railway preview, each with
/api/readyreturning ok, and cleanup of the branch and the Railway environment on merge.If you deploy previews to Railway
Run
pnpm clubedge upgradeto get the fixedpreview.yml. Create a project with these fixes using the CLI release that moves to Starterv0.19.1. - Workspace tokens work: the step no longer runs
-
--infra neongives a project a hosted Neon database with nothing to install and no account (#84):- The CLI creates a free database through Neon's claimable Postgres. It writes the pooled
DATABASE_URLand the directDATABASE_URL_DIRECTintoapps/web/.env.local, and the next steps includepnpm db:migrate. - Neon keeps an unclaimed database for 72 hours.
--no-neoncreates nothing, and a project is still created when Neon can't be reached. pnpm clubedge add infra neonswitches an existing project and creates a database whenDATABASE_URLstill held the old infrastructure's example value.
- The CLI creates a free database through Neon's claimable Postgres. It writes the pooled
pnpm clubedge neonshows the database's status and hours left (#84):neon claimopens Neon's page that moves it into your free Neon account. Claiming resets the password, and the CLI says where to copy the new connection strings from.neon createmakes a new database, for example after one expired.
doctorchecks the database URLs (#84): pooled for the app, direct without-pooler, both for the same database. It also warns when a free database has less than a day left.deploysendsDATABASE_URL_DIRECTwith aDATABASE_URLfrom the env file, and derives it from a pooled Neon URL when the file has none. It never sends one next to the platform's own database, repoints one left from an earlier database, and warns before deploying a database that is still unclaimed (#84).deploy --previewdeploys the current Git branch next to production on Vercel (a preview deployment) or Railway (an environment copied from production) (#84):- With
NEON_API_KEYandNEON_PROJECT_ID, the preview gets its own Neon branch,preview/<git branch>, with this branch's migrations applied. - On Vercel, the branch's URLs are set as Preview variables of the Git branch, which needs the Vercel project connected to its Git repository.
- With
try --infra neoncreates the database on your machine and migrates it on the VM. An uploaded Neon project sends its two URLs (#84).- Default to Starter
v0.19.0(#85). It addsinfra neon, the optionalDATABASE_URL_DIRECTthat migrations and the jobs worker use, and a preview environment with its own Neon branch for each pull request.
Full changelog: v0.29.0...v0.30.0
-
Clubedge Starter v0.19.0
starter githubNeon, with nothing to install
infra neonis a new database option: PostgreSQL hosted on Neon, with no Docker and no account to start (#55).- A free database at creation: create-clubedge-app creates one through Neon's claimable Postgres and writes its URLs into
apps/web/.env.local. It lasts 72 hours unless you claim it into a free Neon account withpnpm clubedge neon claim. The data stays, but the password is reset, so copy the new connection strings from the Neon console afterward. - Your own Neon project: paste its pooled and direct connection strings instead.
- README and SETUP explain claiming, starting over (
pnpm clubedge neon create), and the limits of an unclaimed database (100 MB).
A direct URL for migrations and jobs
DATABASE_URL_DIRECTis a new, optional variable for every project (#55). A transaction pooler, such as Neon's-poolerhost or Supabase's port 6543, can break migrations and the session state the jobs worker relies on.- When
DATABASE_URL_DIRECTis set,pnpm db:migrate, Drizzle Kit, the production migrator, and the background jobs worker use it. The app and processes that only enqueue jobs stay on the pooledDATABASE_URL. Without it, nothing changes. pnpm check:envrefuses a direct URL that is local, isn't apostgresql://URL, or points at Neon's pooler.pnpm check:servicesconnects through it.
A preview environment for each pull request
Projects with
infra neonget.github/workflows/preview.yml(#55). For each pull request it:- creates a Neon branch,
preview/pr-<number>: a copy of the database made in seconds that shares storage until it changes; - applies the pull request's migrations to it, and comments the schema diff on the pull request;
- deploys a Vercel preview, or a Railway environment copied from production, against the branch, once that platform's token is set;
- deletes the branch and the Railway environment when the pull request closes.
It runs once the repository has the
NEON_API_KEYsecret and theNEON_PROJECT_IDvariable; SETUP.md lists the rest. It was tested on this release's own pull requests: a branch per pull request, migrations, the diff comment, and cleanup on merge.Also
- The Starter's CI runs the generated-project flow against a real Neon database for both frameworks: migrations, service checks, sign-up and sign-in, settings, readiness, and a background job. It needs no secret.
To use it
Create a project with
--infra neon, or switch one withpnpm clubedge add infra neon. Either way, use the CLI release that moves to Starterv0.19.0. To add a direct URL to an existing project, runpnpm clubedge upgrade, then setDATABASE_URL_DIRECT. - A free database at creation: create-clubedge-app creates one through Neon's claimable Postgres and writes its URLs into
-
pnpm clubedge deploydeploys to Netlify and Render (experimental) (#82), so it now covers Railway, Fly.io, Vercel, Netlify, and Render:- Netlify: it signs in with
netlify login, creates or reuses the site withapps/webas its base directory, imports the production variables from.env.production, the site URL, and a generatedBETTER_AUTH_SECRET, then runsnetlify deploy --build --prod. The build runs on your machine with the site's variables. - Render: it signs in with an API key (
RENDER_API_KEY, or pasted from the dashboard page it opens) and builds from your pushed Git branch. It creates or reuses a Docker web service that runs the migrations before each release and checks/api/health, asrender.yamldoes, on a starter instance, since pre-deploy commands need a paid type. It sets the variables and waits until the deploy is live. - On both,
DATABASE_URLcomes from your provider (Neon, Supabase, ...).
- Netlify: it signs in with
- Still on Starter
v0.18.0.
Full changelog: v0.28.0...v0.29.0
-
pnpm clubedge deploydeploys to Vercel (experimental) (#80), in projects created with--deploy vercel:- It signs in with
vercel loginwhen you are signed out, then creates or reuses the project withapps/webas its Root Directory and writes.vercelignoreso.envfiles stay on your machine. - It sets the production variables from
.env.production(or--env-file), the public URL, and a generatedBETTER_AUTH_SECRET, then runsvercel deploy --prod.DATABASE_URLmust point at your provider (Neon, Supabase, ...), since Vercel only runs the app. - When Vercel names the app something other than
<project>.vercel.app, it sets that URL and deploys again, since the build compiles it in.
- It signs in with
- The README opens with the banner the CLI prints (#79).
- Still on Starter
v0.18.0.
Full changelog: v0.27.0...v0.28.0
-
- Default to Starter
v0.18.0(#77), which stops Vercel and Netlify builds when a production variable is missing:- On those hosts the platform only runs the app, and the database, Redis, storage, and email come from your providers.
pnpm check:envnow runs first in the build command ofvercel.jsonandnetlify.toml, before migrations. - It lists each variable the project's modules need that is unset, points at
localhost, or isn't an absolute URL, and stops the build. That includes.env.example'sexample.comsender inEMAIL_FROM. - Generated projects check only their own modules.
SKIP_ENV_CHECK=1builds anyway.
- On those hosts the platform only runs the app, and the database, Redis, storage, and email come from your providers.
- If you deploy to Vercel or Netlify: run
pnpm clubedge upgrade, then set the variables for every environment you build (Production and Preview).
Full changelog: v0.26.0...v0.27.0
- Default to Starter
-
Clubedge Starter v0.18.0
starter githubVercel and Netlify stop on a missing production variable
On Vercel and Netlify, the platform only runs the app: the database, Redis, file storage, and email come from your providers (for example Supabase, Upstash, and Cloudflare R2). Until now, a missing key still built and deployed, and the app shipped with features that failed at runtime (#52).
pnpm check:envruns first in the build command ofvercel.jsonandnetlify.toml, before migrations. It stops the build and lists each variable the project's modules need that is unset, points atlocalhost, or isn't an absolute URL.- What it requires:
DATABASE_URLand the public URL (NEXT_PUBLIC_APP_URLorAPP_URL) always; then, per module, the Supabase Auth URL and key orBETTER_AUTH_SECRET(32+ characters),REDIS_URL, the storage bucket and access keys,SMTP_URLorRESEND_API_KEYwith anEMAIL_FROMthat isn't.env.example'sexample.complaceholder, the Stripe keys and price, andCRON_SECRETfor background jobs. - Only your modules: a generated project checks only the modules it uses.
- Escape hatch:
SKIP_ENV_CHECK=1builds anyway.
Other hosts are unchanged;
pnpm check:envworks anywhere to check an environment.Also
- Weekly Dependabot updates for the Starter, not passed on to generated projects (#51).
If you deploy to Vercel or Netlify
Run
pnpm clubedge upgrade, set the variables for every environment you build (Production and Preview on Vercel, production and deploy previews on Netlify), and deploy again.Create a project with it using the CLI release that moves to Starter
v0.18.0. -
deployuses your own databases when the env file has their URLs (#74). The platform hosts everything as before when it doesn't.- With
DATABASE_URLorREDIS_URLin the env file (Supabase, Neon, Upstash),deploycreates no Railway or Fly database for it, sets your URL, and the platform only runs the app. Each URL counts on its own, so onlyDATABASE_URLkeeps Redis on the platform. deployreads.env.productionfrom the project's root when there is one and no--env-fileis given. An--env-filethat doesn't exist is now a clear error.- URLs to
localhost(a development env file) are ignored with a warning. - A later run without the env file keeps the database URL the service already has, instead of creating the platform's database and switching the app over. On Railway,
deploystops before changing anything if it can't list an existing service's variables. On Fly, an existingDATABASE_URLsecret skips creating<app>-db. - When the app moves from Railway's database to its own,
deploynotes that the old one is unused; it never deletes it.
- With
- The showcase records a
trywalkthrough on a free Railway VM (#73). pnpm releasecounts squash-merged pull requests in the changelog draft (#75).- Still on Starter
v0.17.1.
Full changelog: v0.25.0...v0.26.0
-
deployfor Fly.io (experimental) (#71): in a project withdeploy fly,pnpm clubedge deployuses Fly's CLI and your Fly login.- It creates or reuses the app (
fly launch, which writes its name and region intofly.toml; commit it), an unmanaged Postgres app attached asDATABASE_URL(oneshared-cpu-1xmachine and a 1 GB volume), and Upstash Redis withcache redis. - It imports the secrets through stdin: the public URL
https://<app>.fly.dev, aBETTER_AUTH_SECRETkept on later runs, and--env-filevalues; the ones still unset are listed before the build. fly deploybuilds the Dockerfile withNEXT_PUBLIC_APP_URLas a build argument, runs the migrations as the release command, and waits for the health checks.- Fly's Managed Postgres (from $38/month) is a manual choice: create and attach it before deploying.
- It creates or reuses the app (
- Weekly Dependabot updates for the CLI's npm dependencies and GitHub Actions (#67). The Starter gets the same, without passing it on to generated projects, which receive updates as upgrade pull requests.
- Still on Starter
v0.17.1.
Full changelog: v0.24.1...v0.25.0
-
- Default to Starter
v0.17.1(#65), which fixes deployed Next.js apps sending sign-in email links and Stripe return URLs tohttp://localhost:3000: the Dockerfile now takesNEXT_PUBLIC_APP_URLas a build argument, which Railway and Render pass from the service's variables.pnpm clubedge deployalready sets it on Railway. deploylists the settings still unset before the build instead of after the release, and asks whether to deploy anyway (#64).- No more Node DEP0190 warning on Windows: commands that need the shell get one quoted command line (#64).
- The showcase is re-recorded after each release (#63).
Full changelog: v0.24.0...v0.24.1
- Default to Starter
-
Clubedge Starter v0.17.1
starter githubThe public URL in Next.js images
Deployed Next.js images sent sign-in email links and Stripe Checkout return URLs to
http://localhost:3000(#49). Next.js compilesNEXT_PUBLIC_*values into the build, server code included, and the Dockerfile built withoutNEXT_PUBLIC_APP_URL, so setting it on the platform at runtime changed nothing.- Dockerfile:
NEXT_PUBLIC_APP_URLis a build argument. Railway and Render pass it from the service's variables, so setting the variable there is enough. Unset, the app falls back tohttp://localhost:3000as before. - Fly.io: set it under
[build.args]infly.toml(an example is in the file). - Docker workflow: set the repository variable
NEXT_PUBLIC_APP_URL; the workflow passes it to the build. - Project CI: builds the image with a URL of its own and checks it reaches the compiled server code, so this can't regress unnoticed.
TanStack Start reads
APP_URLat runtime and was not affected.If you deploy a Next.js project
Run
pnpm clubedge upgrade, check thatNEXT_PUBLIC_APP_URLis set to your public URL where the image is built, and deploy again. Withpnpm clubedge deployon Railway, it is already set.Create a project with it using CLI 0.24.1 or later.
- Dockerfile:
-
- Default to Starter
v0.17.0(#61), which adds:- Railway configuration as code: projects that deploy to Railway get
.railway/railway.ts(the migrations before each release, the/api/healthcheck) instead ofrailway.json, which Railway stops reading on 2026-12-01. It names the service after the package, andpnpm clubedge deployapplies it before each release. - The deploy workflow on Railway CLI 5.
- Railway configuration as code: projects that deploy to Railway get
- If you deploy to Railway: run
pnpm clubedge upgrade, then deploy once withpnpm clubedge deploy(or runrailway config apply) before 2026-12-01.
Full changelog: v0.23.0...v0.24.0
- Default to Starter
-
Clubedge Starter v0.17.0
starter githubRailway configuration as code
Railway stops reading
railway.json(Config as Code) on 2026-12-01. Projects that deploy to Railway now get.railway/railway.tsinstead (#47), Railway's configuration as code:- The same settings: the migrations before each release (
node /app/migrate.mjs), so a failed migration stops it, and the/api/healthcheck before traffic switches. Railway builds the rootDockerfileby itself. - One file for every project: it names the service after the package, read from
package.jsonwhen Railway evaluates it, aspnpm clubedge deploycreates it. A service with another name: change it in the file. - Variables stay where they are:
variables: { managed: false }, so the file never touches whatdeploy,railway variable set, or the dashboard set.
Applying it
- With the CLI:
pnpm clubedge deploy(CLI 0.23.0 or later) applies the file before each release, and adds Railway's TypeScript SDK (railway) as a dev dependency the first time. - Another way:
pnpm add -D -w railway, thenrailway config applyonce, with Railway CLI 5.42.1 or newer.
The deploy workflow moves to Railway CLI 5.
If you deploy to Railway today
Run
pnpm clubedge upgrade: an unchangedrailway.jsonis removed and.railway/railway.tsadded. Then deploy once withpnpm clubedge deploy, or runrailway config apply, before 2026-12-01, so the service keeps its migrations and health check.Create a project with it using CLI 0.24.0 or later.
- The same settings: the migrations before each release (
-
deploymoves Railway projects to.railway/railway.ts, Railway's configuration as code, which replacesrailway.json: Railway stops readingrailway.jsonon 2026-12-01 (#59).- When the project has no Railway configuration file, it writes one with the project's own names: the migrations before each release and the
/api/healthcheck, as inrailway.json. Variables stay asdeployset them. - It adds Railway's TypeScript SDK (
railway) as a dev dependency, and applies the file withrailway config applybefore each release. Commit.railway/railway.ts,package.json, andpnpm-lock.yaml. - It needs Railway CLI 5.42.1 or newer: an installed
railway, else one npx already downloaded, and only then a download.
- When the project has no Railway configuration file, it writes one with the project's own names: the migrations before each release and the
- Still on Starter
v0.16.1.
Full changelog: v0.22.0...v0.23.0
-
- Add
deploy:pnpm clubedge deploydoes the first deploy of a project that usesdeploy railway, with Railway's CLI and your Railway login (#55).- It asks first, then creates or reuses the Railway project, Postgres (and Redis with
cache redis), the app's service, and a*.up.railway.appdomain. - It sets the variables it can: the database references,
APP_URLandNEXT_PUBLIC_APP_URL,PORT, and a generatedBETTER_AUTH_SECRETthat later runs keep.--env-file .env.productionadds your provider keys; the ones still unset are listed. - It follows the deployment until Railway's final status: the migrations run before the release and
/api/healthis checked. On a failure it names the logs commands. Running it again reuses everything. - Railway only for now;
--dry-runshows the plan.
- It asks first, then creates or reuses the Railway project, Postgres (and Redis with
- Default to Starter
v0.16.1(#57): both Dockerfiles install dependencies in the build stage, sonode_modulesis no longer copied between stages, which made builds slow and timed out a first build on Railway. - Release drafts list a Starter pin pull request once (#54).
Full changelog: v0.21.0...v0.22.0
- Add
-
Clubedge Starter v0.16.1
starter githubFaster Docker builds
Both Dockerfiles (
Dockerfilefor Next.js andapps/start/Dockerfilefor TanStack Start) now install dependencies in the build stage itself (#45). Before, a separate stage installed them and the wholenode_modulestree was copied into the build stage: hundreds of thousands of small files. On Railway's builder that copy alone took almost four minutes, and a first build ran past Railway's build deadline.node_modulesis no longer copied between stages, on every platform: Docker, Fly.io, Railway, and Render.- The install layer is still cached until a dependency changes.
- The production image is the same.
If you changed your Dockerfile
pnpm clubedge upgrademerges the change with your edits. If you added steps to thedepsstage, move them into thebuilderstage, afterpnpm install.Create a project with it using CLI 0.22.0 or later, and update an existing one with
pnpm clubedge upgrade(projects on Starter v0.16.0 get it as a pull request from the upgrade workflow). -
- Default to Starter
v0.16.0(#52), which adds:- Starter upgrades as pull requests: every project gets
.github/workflows/clubedge-upgrade.yml, which checks every Monday for a newer Starter release and opens a pull request withpnpm clubedge upgrade's result, the release notes, and anything left to resolve, so the project's own CI tests the upgrade before it is merged. - GitHub Actions on their Node 24 versions in
ci.ymlanddeploy.yml, with Linux jobs on Ubuntu 24.04. - Steadier tests: PGlite starts once per test file, with room for slow CI runners.
- Starter upgrades as pull requests: every project gets
- Release tooling for maintainers (#51):
pnpm release patch|minor|majoropens the release pull request with a drafted changelog,pnpm release tagpublishes it, and the Starter pin workflow opens a pull request when the Starter publishes a release. - CI names the generated project's failing check, in an annotation and the job summary (#50).
Full changelog: v0.20.0...v0.21.0
- Default to Starter
-
Clubedge Starter v0.16.0
starter githubStarter upgrades as pull requests
Every project now gets
.github/workflows/clubedge-upgrade.yml(#43). Each Monday, or when you run it from the Actions tab, it runspnpm clubedge upgradewith the newest CLI. When a newer Starter release is out, it opens a pull request:- What changed: the upgrade merged into your code, with the lockfile updated. Your edits are kept; files you never changed take the new version.
- What to look at: a link to the release notes, the files with conflict markers to resolve, and the upgrade output. The Starter's whole new version of each conflicted file is kept as the run's starter-versions artifact.
- Tested before you merge: your own CI runs on the pull request.
It opens one pull request per release, and never runs in this repository. Delete the file to turn it off.
One setting: Settings → Actions → General → Allow GitHub Actions to create and approve pull requests, or a
CLUBEDGE_UPGRADE_TOKENsecret (a fine-grained token with contents and pull requests write), which also lets the pull request start your CI by itself.Current GitHub Actions
ci.ymlanddeploy.ymluse the Node 24 versions of their actions (#43): checkout v7, setup-node v7, pnpm/action-setup v6, upload-artifact v7, and Docker's setup-buildx v4, login v4, metadata v6, build-push v7. Linux jobs run onubuntu-24.04, ahead ofubuntu-latestmoving to Ubuntu 26.Steadier tests
PGlite starts once per test file, with room for slow CI runners (#42). The payments and local database tests run in about half the time.
Create a project with it using CLI 0.21.0 or later, and update an existing one with
pnpm clubedge upgrade. From this release on, projects also get the next upgrades as pull requests. -
- Conflicts are easier to resolve after
add,remove, andupgrade:- The Starter's whole new version of each conflicted file is saved in
.clubedge/incoming/<file>, and the report prints agit diff --no-indexcommand to compare it with yours. Files left for you to check by hand get theirs too, when the Starter has one. Git ignores the folder; each change replaces the previous change's files. - Without a module on the command line, the
addandremovemenus pick several modules at once;addthen asks for each one's option, and the changes apply together.
- The Starter's whole new version of each conflicted file is saved in
- Sharing a
trypreview:- When the app is ready,
tryasks whether to share it. Claiming the VM, a free Railway sign-up, is what makes the URL work for anyone, so it opens the claim page.--claimdoes that without asking; scripts are never asked. - The closing message explains Railway's "Access denied" page and prints a port-forward command that opens the app at http://localhost:3000 from any network.
try --statusshows the last VM's preview, time left, and claim link. It connects only while the VM is running, so it never creates a new one.
- When the app is ready,
- Release workflow: GitHub Actions on their Node 24 versions, Linux jobs on Ubuntu 24.04, a sturdier wait for npm in the smoke tests, and GitHub Release pages created from this changelog.
- Still on Starter
v0.15.0.
Full changelog: v0.19.1...v0.20.0
- Conflicts are easier to resolve after
-
A patch release for
try. The default Starter stays atv0.15.0.Fixed
- Who can open the preview:
trynow says it as Railway does. Until you claim the VM, only the IP address that created it can open the preview. Another device on mobile data, a VPN, or anyone you send the link to gets Railway's "Access denied" page. Claiming makes the URL shareable.
Full changelog: v0.19.0...v0.19.1
- Who can open the preview:
-
Phase 16: try the project you're working on. The default Starter stays at
v0.15.0.What's new
pnpm clubedge tryinside a project: uploads the project to a free, temporary Railway VM and runs it there, so you can share work in progress without deploying.- Only what Git would commit is uploaded: tracked files, plus untracked ones that are not ignored.
.envfiles (other than examples),node_modulesand build output never leave your machine, and if Git cannot list a repository's files, nothing is uploaded.--dry-runlists the files. - Runs like a new project: on the VM, the env file is made from
.env.example, then the local database (infralocal), migrations and the app start behind the preview URL. Projects that need Docker or Supabase Auth are refused, with thepnpm clubedge addcommand that switches them. - The preview opens in your browser once the app is ready.
--no-openturns that off.
pnpm clubedge try # upload and run this project pnpm clubedge try --dry-run # list what would be uploaded
Full changelog: v0.18.0...v0.19.0
-
Phase 15: try a project without setting anything up. The default Starter stays at
v0.15.0.What's new
try(experimental): creates a new project on a free, temporary Railway VM instead of your machine, then prints its preview URL and the link to claim the VM. No Railway account, database, or Docker needed.- What runs there: the VM has no Docker, so the project uses
--infra local(PGlite) and Better Auth, with email off.--frameworkand other module flags apply as usual;--infraother thanlocaland--auth supabaseare rejected. - Safe by default: it asks before creating anything (
--yesagrees), keeps its own SSH key in the CLI's config directory apart from~/.ssh, and connects only to Railway's known host key. If Railway rotates it,CLUBEDGE_RAILWAY_HOST_KEYadds the new one. - The VM: lasts 60 minutes and can be claimed for 24 hours after, which moves it into a Railway account. Until then, the preview opens only from your network. Railway allows 3 free VMs per network per day, and can change or pause its free VM.
pnpm dlx @clubedge/create-clubedge-app try pnpm dlx @clubedge/create-clubedge-app try --framework tanstack-start
Full changelog: v0.17.0...v0.18.0
-
Phase 14: the default Starter moves to
v0.15.0. The CLI's own code is unchanged; everything new comes from the Starter.What's new in generated projects
- A docs-style dashboard in both Next.js and TanStack Start, with the layout and colors of the Clubedge docs.
- Sidebar: a section switcher (Dashboard, plus Settings when an auth provider is selected), the dashboard's sections with the one in view highlighted, links to the setup guide and the repository, and an account card with Settings and Sign out. It collapses with its button or Ctrl/⌘+B.
- The page in a rounded card that scrolls on its own, under a top bar with Home, GitHub, and a light and dark switch.
- Phones: a slim top bar opens the sidebar as a drawer from the right.
pnpm dlx @clubedge/create-clubedge-app my-app pnpm clubedge upgrade # existing projects -
Clubedge Starter v0.15.0
starter githubA docs-style dashboard
The dashboard in both apps now has the layout and colors of the Clubedge docs (#40):
- Layout. The sidebar sits on the page background, and the page sits beside it in a rounded card that scrolls on its own, with a thin scrollbar. The sidebar collapses with its button or Ctrl/⌘+B, and the dashboard remembers it.
- Sidebar. A section switcher at the top (Dashboard, plus Settings when an auth provider is selected), the dashboard's sections with the one in view highlighted as you scroll, links to the setup guide and the repository, and an account card at the bottom with the user's email and Settings and Sign out buttons.
- Top bar. Home and GitHub links, and a menu with a light and dark switch.
- Phones. A slim bar at the top opens the sidebar as a drawer from the right. The drawer closes by itself if the window grows to the desktop layout.
- Colors. The docs' neutral palette with the Clubedge blue, scoped to the dashboard:
apps/web/src/app/dashboard/_components/dashboard-palette.cssfor Next.js and the end ofapps/start/src/styles.cssfor TanStack Start. Other pages keep the@clubedge/uitheme, which is unchanged.
If you changed the dashboard
dashboard-shell.tsxreplacesapp-sidebar.tsxin both apps, andaccount-button.tsxis now the sidebar's account card.pnpm clubedge upgrademerges the new files with your edits and marks the lines both sides changed.- The dashboard page passes the switcher entries and the account card to the shell; edit them there.
Tests
- The settings browser test opens the settings page from the sidebar's account card.
Create a project with it using CLI 0.17.0 or later, and update an existing one with
pnpm clubedge upgrade. -
Phase 13: the default Starter moves to
v0.14.0. The CLI's own code is unchanged; everything new comes from the Starter's manifest.What's new in generated projects
- Account settings page at
/settingswhen an auth provider is selected. Users can set a display name, change their password, which signs out their other sessions, and delete their account. Deletion is blocked while a subscription is active. Supabase projects setSUPABASE_SECRET_KEYto allow deletion. - Browser error reporting with observability on. Uncaught errors, unhandled rejections, and render errors caught by the new error pages are all reported. With
otelthey go through/api/client-errors; withsentrythey go to Sentry's browser SDK, loaded only when a DSN is set. - Sentry source maps: builds with
SENTRY_AUTH_TOKEN,SENTRY_ORG, andSENTRY_PROJECTupload the browser source maps to Sentry, then delete them so they are never served. - Auth emails through the jobs queue when both email and background jobs are selected, with retries and backoff.
pnpm dlx @clubedge/create-clubedge-app my-app --auth better-auth --observability sentry pnpm clubedge upgrade # existing projects - Account settings page at
-
Clubedge Starter v0.14.0
starter githubAccount settings
A settings page at
/settings, linked from the dashboard, when an auth provider is selected (#38):- Profile. Users set or clear a display name.
- Password. Changing it needs the current password, and signs out the user's other sessions with both Better Auth and Supabase.
- Delete account. It needs the password, and removes the user's profile and the data that depends on it before the auth account goes. If that cleanup fails, the account is kept so the user can try again. With payments, an active subscription has to be cancelled first. Supabase needs its secret key for this: set
SUPABASE_SECRET_KEY. - Password checks are limited to 10 a minute per user, and are refused while the rate limiter is unavailable.
Browser errors and source maps
When observability is on, errors in the browser are reported like server errors (#37):
- What is reported. Uncaught errors, unhandled promise rejections, and render errors stopped by an error boundary. New error pages (
app/error.tsxfor Next.js, the root route'serrorComponentfor TanStack Start) show a "Try again" message and report the error. - Where it goes. With
otel, the browser posts reports to/api/client-errors, which keeps only the expected fields, drops query strings, caps their size, and rate-limits each address. Withsentry, the page loads Sentry's browser SDK only when a DSN is set; the settings are read at runtime, not baked into the build. - Source maps. Sentry builds with
SENTRY_AUTH_TOKEN,SENTRY_ORG, andSENTRY_PROJECTset make source maps for the browser bundle, upload them, and delete them so they are never served.
Auth emails through the jobs queue
With both email and background jobs selected, verification and password-reset emails are sent by a
send-emailjob with retries and backoff, so a slow or failing email provider never delays sign-up (#36).Tests
- Unit tests for the new auth provider methods (password change, account deletion), the profile helpers on PGlite, the client error report parser, the bounded request-body reader, and the source map upload.
- Browser tests for the settings page with Better Auth and Supabase, and for browser error reports reaching a fake collector.
- CI prints the page snapshot of a failed browser test and uploads its trace.
Also
- Pages hydrate in development on
127.0.0.1(allowedDevOrigins). - Links styled as buttons use
buttonVariants, as the shadcn docs recommend, instead ofButtonrendering a link.
Create a project with it using CLI 0.16.0 or later, and update an existing one with
pnpm clubedge upgrade. -
Phase 11: commands for living with a generated project. The default Starter stays
v0.13.1.What's new
statusshows the project's Starter release, framework, modules, and Git state, whether a newer Starter release exists, and the command to run next. It asks npm for the newest release and still works offline.doctorchecks Node.js and pnpm against the project's versions, installed dependencies, the lockfile, and the env file against the example. It then runspnpm check:services, and--no-servicesskips that. It exits with an error when a check fails, so it also works in CI.- Several modules in one change:
add email resend payments stripeandremove storage paymentsapply as one merge. Requirements are checked after every change, so related changes such as Supabase Auth with Supabase Storage work together. - Conflict summary: after a change, each conflicted file is listed with its number of conflict blocks.
- Upgrade summary:
upgradelists the Starter releases it crosses, with the sections of their release notes, before merging.
Fixes
- A finished command no longer exits with an error when Windows briefly locks the downloaded Starter's temporary folder.
CI
- Generated projects are tested on macOS as well as Linux and Windows.
- The release workflow waits up to 15 minutes for npm to serve a new version.
pnpm clubedge status pnpm clubedge doctor pnpm clubedge add email resend payments stripe
-
Patch release. Defaults to Starter
v0.13.1.Fix
- In projects with background jobs or observability, a configuration error at startup, such as a missing
DATABASE_URL, no longer stops the server. Pages that need no database keep working, and the error is reported once.
Existing projects can pick up the fix with:
pnpm clubedge upgrade
- In projects with background jobs or observability, a configuration error at startup, such as a missing
-
Clubedge Starter v0.13.1
starter githubFix
- In projects with background jobs or observability, a configuration error at startup, such as a missing or invalid
DATABASE_URLor an invalidOTEL_*orSENTRY_*value, no longer stops the server. Before, every page answered "Internal Server Error", the landing page and/api/healthincluded. Now the error is reported once, the jobs worker or observability stays off, and pages that need no database keep working. (#33)
Tests
- Unit tests for the jobs and observability startup hooks with invalid settings.
- CI now starts every generated project with an empty
DATABASE_URLand requires/api/healthand the landing page to answer.
Existing projects get the fix with
pnpm clubedge upgradeonce CLI 0.14.1 is published. - In projects with background jobs or observability, a configuration error at startup, such as a missing or invalid
-
Defaults to Starter
v0.13.0, which adds observability.What's new
- Observability (
--observability otel|sentry).- Every request is traced, along with calls through the email, storage, and payments composition roots.
- Server errors and failed background jobs are reported once each, with the request's method and path.
otelexports over OTLP to any collector or vendor;sentryuses Sentry's Node.js SDK.- Nothing is sent until
OTEL_EXPORTER_OTLP_ENDPOINTorSENTRY_DSNis set. - The rest of the app only calls small hooks in
@clubedge/core, so the vendor SDK stays in one package.
--observabilityneeds no CLI code: the flag, help text, and prompt come from the Starter's manifest.
Tests
- CI generates an observability project, and the change-modules job adds the observability module to an existing project.
- The release smoke test includes
--observability otel.
pnpm dlx @clubedge/create-clubedge-app my-app --observability otel
Existing projects can add it with
pnpm clubedge add observability otelorpnpm clubedge add observability sentry. - Observability (
-
Clubedge Starter v0.13.0
starter githubObservability
A new optional module,
observability, with the optionsotel,sentry, andnone(default):- Hooks in
@clubedge/core.reportError,traced, andwithSpanshave no dependencies and default to the console. The rest of the app calls only these, so the vendor SDK stays in its provider package, andnoneremoves it completely. - Two providers.
otel: OpenTelemetry over OTLP/HTTP to any collector or vendor. Traces go to/v1/traces, and errors go to/v1/logsas ERROR log records and are recorded on their span.sentry:@sentry/node11. Spans from Next.js and pg-boss become Sentry spans, and no user details, cookies, query strings, or request bodies are sent.
- What is traced and reported.
- Every request, plus calls through the email, storage, and payments composition roots (
email.send,storage.upload, and so on). - Server errors from pages, routes, server actions, and server functions, along with handled errors and failed background jobs. Each error is reported once, with the request's method and path.
- Every request, plus calls through the email, storage, and payments composition roots (
- Startup. Next.js uses
instrumentation.tswithonRequestError. TanStack Start uses a Nitro plugin plus request and server-function middleware. - Nothing is sent until configured: set
OTEL_EXPORTER_OTLP_ENDPOINTorSENTRY_DSN.
Tests
- Unit tests use in-memory exporters for OpenTelemetry and an in-memory transport for Sentry.
- A browser test checks that request traces reach a fake collector and a fake Sentry, for both frameworks.
Also
- Existing
console.errorcalls in the apps and in Better Auth now go throughreportError, and failed job attempts are reported with the job's name.
Not yet included: browser error reporting, and Sentry source maps.
Create a project with it using CLI 0.14.0 or later:
pnpm dlx @clubedge/create-clubedge-app my-app --observability otel. - Hooks in
-
Defaults to Starter
v0.12.0, which adds background jobs.What's new
- Background jobs (
--jobs pg-boss). Jobs are stored in the project's PostgreSQL by pg-boss and run by a worker inside the app server, with retries, timeouts, and cron schedules. On Vercel and Netlify, where no server keeps running, a scheduler calls/api/jobs/runinstead. Job code depends on a provider-neutralJobQueueinterface. --jobsneeds no CLI code: the flag, help text, and prompt come from the Starter's manifest.
Fixes
- Generated lockfiles are no longer rejected as broken when pruning an optional peer leaves a package with no dependencies, such as
pg-pooloncepgis pruned for--jobs none. Such entries are now written as{}, the way pnpm writes them.
Tests
- CI generates a jobs project, and the change-modules job adds the jobs module to an existing project.
- The release smoke test includes
--jobs pg-boss.
pnpm dlx @clubedge/create-clubedge-app my-app --jobs pg-boss
Existing projects can add it with
pnpm clubedge add jobs pg-boss. - Background jobs (
-
Clubedge Starter v0.12.0
starter githubBackground jobs
A new optional module,
jobs, with the optionspg-bossandnone(default):- Jobs in your PostgreSQL. pg-boss stores jobs in the project's own database and manages its tables in the
pgbossschema, so there is no new service. - A worker inside the app server.
instrumentation.tsstarts it in Next.js, and a Nitro plugin starts it in TanStack Start, inpnpm devand in production. No deploy target needs a second process. - Retries, timeouts, and schedules come from each job's definition (
defineJob), with backoff and cron expressions. - Serverless hosts. On Vercel and Netlify the worker is off, and a scheduler calls
GET /api/jobs/runwithCRON_SECRETto run the jobs that are due. - Dashboard card. Queues a sample job and lists the user's recent runs.
- Provider-neutral. Job definitions, routes, and the card depend on the
JobQueueinterface in@clubedge/jobs, so another queue can be added without a refactor.
Tests
- Unit tests run pg-boss's real SQL against PGlite.
- A browser test queues the sample job and waits for the worker, against Docker, the Supabase stack, and the no-Docker PGlite server, for both frameworks.
Also
- TanStack Start's
vite.config.tssets Nitro'sserverDirto./src/nitro, so Nitro runs any plugins insrc/nitro/pluginsat startup. - ROADMAP.md marks phases 7 to 9 done and splits Phase 10 into 10.1 (jobs) and 10.2 (observability).
Create a project with it using CLI 0.13.0 or later:
pnpm dlx @clubedge/create-clubedge-app my-app --jobs pg-boss. - Jobs in your PostgreSQL. pg-boss stores jobs in the project's own database and manages its tables in the
-
Defaults to Starter
v0.11.0, which adds payments.What's new
- Payments (
--payments stripe): Stripe Checkout, the customer portal, and verified webhooks that keep asubscriptionstable in sync. Billing code depends on a provider-neutralPaymentProviderinterface, so other providers can be added without a refactor. Requires--auth supabaseor--auth better-auth. --paymentsneeds no CLI code: the flag, help text, and prompt come from the Starter's manifest.- CI and the release smoke test now generate and check payments projects, and the change-modules job adds the payments module to an existing project.
pnpm dlx @clubedge/create-clubedge-app my-app --auth better-auth --payments stripe
Existing projects can add it with
pnpm clubedge add payments stripe. - Payments (
-
Clubedge Starter v0.11.0
starter githubHighlights
-
Payments.
create-clubedge-app0.12.0 adds--payments stripe(it needs an auth module), andpnpm clubedge add payments stripeadds it to an existing project:- A billing card on the dashboard: checkout for each plan, then the plan, its status, and its renewal date, and "Manage billing" opens Stripe's customer portal.
/api/webhooks/payments: verifies every webhook's signature, applies each event once, and reads the subscription's current state from Stripe. Retried and out-of-order deliveries are safe.- Plans are defined in
src/config/plans.tswith the app's own ids, and each maps to a Stripe price (STRIPE_PRICE_<PLAN>). - Access checks: server code calls
getBilling().subscriptionFor(userId)andisEntitled.
-
Provider-neutral by design.
@clubedge/paymentsholds thePaymentProviderinterface, the billing logic, and thesubscriptionsandpayment_eventstables, with their own migrations. Every row records its provider.@clubedge/payments-stripeis the only Stripe code, and each app'ssrc/server/payments.tsis the only file that names it. Another provider is a new package implementing the interface; billing logic, tables, routes, and pages stay the same. -
Tested end to end. CI runs the whole flow in both frameworks with a real database:
- sign up and start checkout;
- a signed webhook is applied once, a duplicate changes nothing, and a forged one is refused;
- the dashboard shows the plan;
- the billing portal opens.
It uses a stand-in for Stripe's API, with webhooks signed exactly as Stripe signs them.
Other changes
upsertUserProfilereturns the user's id, andensureUserIdreads before writing.- TanStack Start's cross-site check skips
/api/webhooks/, whose handlers verify signatures. check:serviceschecks the Stripe key with a read-only request.- The production migrator from v0.10.0 applies the payment migrations automatically.
Compatibility
Use
create-clubedge-app0.12.0 or newer to scaffold this release. -
-
Highlights
-
Deployment. Defaults to Starter
v0.10.0(commit9d8fec71):pnpm dlx @clubedge/create-clubedge-app my-app --deploy fly # or railway, render, vercel, netlify pnpm clubedge add deploy vercel # in an existing project
--deploy docker|fly|railway|render|vercel|netlify: each option adds that platform's config. Migrations run before release where the platform supports it, and during the build on Vercel and Netlify.- A migrator in the production image:
node /app/migrate.mjs, for release and pre-deploy commands. - A manual deploy workflow: with
docker, it publishes the image to your repository's GitHub Container Registry. - A readiness endpoint:
/api/readychecks the database, next to/api/health.
--deploycomes from the Starter's manifest; the CLI has no deploy-specific code. -
Tested: CI generates Fly.io and Vercel projects, and the release smoke test generates a Netlify one.
-
-
Clubedge Starter v0.10.0
starter githubHighlights
-
Deployment module.
create-clubedge-app0.11.0 adds--deploy(also available later withpnpm clubedge add deploy <option>):Option Adds Migrations docker(default)The production image, for any container host A one-off node /app/migrate.mjstask before rolloutflyfly.tomlThe release command, before the new version replaces the old railwayrailway.jsonThe pre-deploy command renderA render.yamlBlueprint listing the project's variablesThe pre-deploy command (paid instance types) vercelapps/web/vercel.jsonDuring the build netlifyapps/web/netlify.tomlDuring the build TanStack Start builds for Vercel and Netlify without code changes, because its build detects the platform. SETUP has a guide per platform and a production variable list matching the project's modules.
-
A migrator in the production image.
node /app/migrate.mjsapplies every package's migrations with onlyDATABASE_URL, so platforms can migrate before a release goes live. It includes only the migrations of the project's modules, and skips migrations already applied. -
A manual deploy workflow.
.github/workflows/deploy.ymldeploys on demand with the chosen platform's tooling. Withdocker, it publishes the image to the repository's GitHub Container Registry (ghcr.io/<owner>/<repository>), without any secret. -
Readiness endpoint.
/api/readyreturns 200 when the database answers and 503 otherwise./api/healthstays the liveness check, so a database blip doesn't restart the app.
Tested
CI runs the image's migrator twice against PostgreSQL. It also checks each platform's config, builds TanStack Start with the Vercel and Netlify presets, lints every platform's deploy workflow with actionlint, and checks
/api/readywith and without a database.Compatibility
Use
create-clubedge-app0.11.0 or newer to scaffold this release. -
-
Highlights
-
Email, password reset, and email verification. Defaults to Starter
v0.9.0(commite858d0b5):pnpm dlx @clubedge/create-clubedge-app my-app # --email smtp is the default pnpm dlx @clubedge/create-clubedge-app my-app --email resend pnpm clubedge add email resend # in an existing project
- Email module:
--email smtp|resend|none. Local projects use Mailpit or the Supabase inbox, and without a provider, emails are printed to the log in development. - Password reset: "Forgot password?" for both Supabase Auth and Better Auth.
- Email verification: for Better Auth, optionally required before sign-in.
- Email module:
-
Modules come from the Starter. Any
--<module> <option>flag is validated against the Starter's manifest, and the help text and the customize prompt list the Starter's own modules.--emailis the first module to use this: the CLI has no email-specific code.
Fixes
- Switching between modules that use different environment variables (for example
smtptoresend) no longer leaves a doubled blank line in.env.local.
-
-
Clubedge Starter v0.9.0
starter githubHighlights
-
Email module.
create-clubedge-app0.10.0 adds--email:Option What the project gets smtp(default)Any provider's SMTP endpoint ( SMTP_URL), or a local inboxresendResend's HTTP API ( RESEND_API_KEY), without an SDKnoneNo email packages, files, or variables Server code calls
email.send({ to, subject, text, html })from@/server/email.- Without a provider configured: development prints emails, links included, to the server log, and production refuses to send.
- Local inboxes:
--infra dockeradds Mailpit (inbox at http://localhost:8025), and--infra supabaseroutes the app's email to the stack's inbox. pnpm check:services: verifies SMTP or the Resend key without sending anything.
-
Password reset. "Forgot password?" works with both auth providers:
- Better Auth emails a one-hour, single-use link through the email module.
- Supabase sends its own email.
- The form answers the same way for every address, and response times don't reveal whether an account exists.
-
Email verification for Better Auth. New accounts get a confirmation link.
BETTER_AUTH_REQUIRE_EMAIL_VERIFICATION=truerefuses sign-in until the link is opened. -
Tested with real emails. CI reads the messages from Mailpit and from the Supabase inbox, then runs password reset (and required verification for Better Auth) in the browser for both frameworks.
Fixes
- Session lost after the auth callback (Next.js). The callback redirected to a URL built from
request.url, which can name a different host than the browser used (for examplelocalhostfor127.0.0.1in development). The session cookies it had just set didn't reach that host, so Supabase confirmation and reset links lost their session. The callback now redirects with a relative path.
Compatibility
Use
create-clubedge-app0.10.0 or newer to scaffold this release. It reads--emailfrom this Starter's manifest. -
-
Highlights
-
pnpm clubedgein every new project. Defaults to Starterv0.8.0(commit0b77577a), whose projects have aclubedgescript:pnpm clubedge add # choose a module and option from a list pnpm clubedge add auth better-auth pnpm clubedge remove storage pnpm clubedge upgrade -
Menus for
addandremove. Without a module or option, they ask for them. Each module shows its current option, and only options the project can use are offered (for example, Supabase Storage only with Supabase Auth). Without a terminal, missing arguments remain an error. -
Shorter suggestions. Messages suggest
pnpm clubedge ...in projects that have the script, and the screen after creating a project points to it. -
Tested on Windows. CI runs the CLI's checks and tests on Windows. It also generates projects there, changes a module, requires an exact match with a fresh project, and installs, lints, typechecks, tests, and builds them.
-
-
Clubedge Starter v0.8.0
starter githubHighlights
-
pnpm clubedgein every project. A root script runs the latestcreate-clubedge-appinside the project:pnpm clubedge add # choose a module and option from a list pnpm clubedge add auth better-auth # add a module or switch its option pnpm clubedge remove storage pnpm clubedge upgrade # move to the newest Starter release
These commands merge the change into your code instead of overwriting it. Files you never touched are updated, your edits are kept, and lines you both changed get conflict markers. They need a clean Git tree, so
git diffshows the result. The README's command section describes them. -
Windows unit tests. The maintainer workflow runs the typecheck and unit tests on Windows, covering the local PGlite server, folder storage, and scripts.
Compatibility
Use
create-clubedge-app0.9.0 or newer to scaffold this release. The script calls@latest, so a project'spnpm clubedgealso uses the newest CLI. -
-
Highlights
Change a project after creating it, and keep it current with the Starter. Your own edits are merged, not overwritten.
cd my-app pnpm dlx @clubedge/create-clubedge-app add auth better-auth # add a module, or switch an option pnpm dlx @clubedge/create-clubedge-app remove storage pnpm dlx @clubedge/create-clubedge-app@latest upgrade # move to the newest Starter release pnpm dlx @clubedge/create-clubedge-app upgrade --ref v0.8.0 # or a specific tag, branch, or commit
add/removechange one module.upgrademoves the project to a newer Starter release with the same modules, and records the new version.- How the merge works: the CLI renders your project as it was generated (from the Starter commit and modules recorded in
package.json) and as it would be after the change, then merges the difference into your code:- Files you never touched are updated, added, or deleted.
- Files you edited keep your edits. Lines that both sides changed get
<<<<<<< yours/>>>>>>> clubedgemarkers. - Your own files are never touched.
.env.localkeeps your values. Generated defaults follow the change (for exampleDATABASE_URLwhen switching to--infra local), unused defaults are removed, and new variables are added in place.- Safe by default: the project must be committed first, so
git diffshows the result and you can undo it.--dry-runpreviews the change, and--forceskips the check. - Upgrades never add services: modules a newer Starter introduces start as
nonewhere possible.
Fixes
- A Starter fetched with
--refnow records its commit, so those projects can be changed and upgraded later. - Creating a project directly under a Windows drive root (
D:\my-app) no longer fails with EPERM.
Defaults to Starter
v0.7.0(commit3b811476). -
Highlights
-
No-Docker local mode with
--infra local.pnpm devalso starts PostgreSQL (PGlite, PostgreSQL compiled to WebAssembly) and applies the migrations, and files go to a local folder, so a new project runs with nothing installed:pnpm dlx @clubedge/create-clubedge-app my-app --infra local --auth better-auth cd my-app pnpm dev
--infraLocal services docker(default)Docker Compose: PostgreSQL, plus Redis and S3-compatible storage supabaseThe Supabase CLI's local stack localNo Docker: PGlite and a local folder noneYour own or hosted services -
Smaller installs. Optional peer links to packages that only left-out modules installed are removed from the generated lockfile. Projects without
--infra localdon't download PGlite, and projects without Better Auth don't install its optional peers. -
Defaults to Starter
v0.7.0(commit3b811476).
-
-
Clubedge Starter v0.7.0
starter githubHighlights
-
No-Docker local mode.
create-clubedge-app0.7.0 adds--infra local, so a project runs its development services with nothing installed:pnpm dlx @clubedge/create-clubedge-app my-app --infra local --auth better-auth cd my-app pnpm dev # starts the app and a local PostgreSQL, and applies the migrations
Service Local mode PostgreSQL packages/local-dbruns PGlite, PostgreSQL compiled to WebAssembly, and serves it over the PostgreSQL protocol on127.0.0.1:5433. The app, migrations, and Drizzle Kit keep usingDATABASE_URL. Data is kept in.data/pglite.File storage Uploads go to .data/storagewhileSTORAGE_DIRECTORYis set (@clubedge/storage/file-system).Cache Process memory. pnpm infra:upruns the database on its own, andpnpm infra:resetdeletes.data/.pnpm check:serviceschecks the database and the folder. Better Auth works fully offline; Supabase Auth and Supabase Storage still need a Supabase project. -
Safe with several connections. PGlite has a single session, so the local server makes clients take turns: a client keeps the session for a whole request (through Sync, including across Flush) and while its transaction is open. A client that disconnects mid-transaction has it rolled back. The off-the-shelf PGlite socket server can mix up statements from concurrent connections, so the Starter ships its own small server, tested against postgres.js.
-
Tested end to end in CI. For both frameworks, local-mode projects start the database, migrate, pass
check:services, and complete a Better Auth sign-up, sign-out, and sign-in in the browser. A restart then confirms that the data was kept.
Changes
- Folder storage safety. Uploads stream to a temporary file and are renamed when complete, and keys that would leave the folder (including through symbolic links) are rejected.
- Every infra option sets
dev. A manifest test guards core scripts against removal by the CLI.
Compatibility
Use
create-clubedge-app0.7.0 or newer to scaffold this release. Older CLIs don't offer--infra local, and without 0.7.0's lockfile pruning every generated project would also download PGlite. -
-
Highlights
-
Local services with
--infra. Choose how a new project runs its services on your machine. The environment examples point at them, so the app works right afterpnpm infra:upandpnpm db:migrate.Option What the project gets docker(default)docker-compose.dev.ymlwith PostgreSQL, plus Redis and S3-compatible storage when those modules are selected. Scripts:infra:up,infra:down,infra:reset,infra:logssupabasesupabase/config.tomlfor the Supabase CLI's local stack (PostgreSQL, Auth, Storage, Studio). Scripts:infra:up,infra:down,infra:reset,infra:statusnoneNo local service files or scripts pnpm dlx @clubedge/create-clubedge-app my-app cd my-app pnpm infra:up && pnpm db:migrate && pnpm check:services && pnpm dev
-
pnpm check:servicesin every project checks each configured service with a real round trip. -
Module-defined scripts. Module options can set root
package.jsonscripts. Scripts that only belong to options you left out are removed. -
Defaults to Starter
v0.6.0(commitbf5a5e80).
Fixes
- Tag verification on Windows. Scaffolding a downloaded Starter release failed on Windows, because the annotated tag resolved to the tag object instead of its commit. The default scaffold from the bundled Starter was not affected.
-
-
Clubedge Starter v0.6.0
starter githubHighlights
-
Local infrastructure as a module.
create-clubedge-app0.6.0 adds--infrato choose how a new project runs its services on your machine. The environment examples point at the chosen services, so a project works right afterpnpm infra:upandpnpm db:migrate.Option What the project gets docker(default)docker-compose.dev.ymlwith PostgreSQL 17, plus Redis withcache=redisand S3-compatible storage (adobe/s3mock, bucketapp) withstorage=s3. Ports listen on 127.0.0.1 only, and health checks makeinfra:upwait until the services are ready. Scripts:infra:up,infra:down,infra:reset,infra:logs.supabasesupabase/config.tomlfor the Supabase CLI's local stack: PostgreSQL, Auth, Storage, Studio, and an inbox that captures email. Email confirmation is off locally, and theappbucket is created when Supabase Storage is selected. Scripts:infra:up,infra:down,infra:reset,infra:status.noneNo service definitions or infra:*scripts. Bring your own or hosted services. -
pnpm check:services. Checks every configured service with a real round trip: a PostgreSQL query (plus Better Auth's tables when used), a Redis write and read, and an S3 upload, download, and delete. It retries for 30 seconds while services start and exits non-zero on failure. -
Tested with real services in CI. For both frameworks:
- Docker projects start their services, migrate, pass
check:services, and complete a Better Auth sign-up, sign-out, and sign-in in the browser. - Supabase projects start the local Supabase stack, then complete the same flow with Supabase Auth, which is now tested end to end for the first time.
- Docker projects start their services, migrate, pass
Changes
- Path-style S3 with a custom endpoint.
storage-s3uses path-style addressing by default when a custom endpoint is set (s3mock, MinIO, R2). PassforcePathStyle: falseto turn it off. - Playwright database. Playwright uses an explicitly set
DATABASE_URLinstead of always replacing it. - Documentation. README and SETUP have a "Local services" section matching the chosen option.
- No MinIO. Local S3 storage uses
adobe/s3mock, because MinIO no longer publishes free community Docker images.
Compatibility
Use
create-clubedge-app0.6.0 or newer to scaffold this release. Module-defined scripts such asinfra:upare new in 0.6.0, and older CLIs do not apply them. -
-
Highlights
-
Choose your services.
--auth,--storage, and--cacheselect modules, and interactive runs offer to customize them after the framework question. Anything left out is removed completely: its package, provider SDK, environment variables, documentation, and lockfile entries.Flag Options --authsupabase(default),better-auth,none--storages3(default),supabase(needs Supabase Auth),none--cacheredis(default; memory withoutREDIS_URL),memorypnpm dlx @clubedge/create-clubedge-app my-app --auth none --storage none --cache memory
-
Better Auth.
--auth better-authkeeps users and sessions in your own PostgreSQL. -
Invalid combinations fail before anything is written, with an explanation such as "Supabase Storage needs Supabase Auth (--auth supabase)."
-
Docs that match the project. README, SETUP, AGENTS, env examples, and CI keep only the sections for the chosen framework and modules.
-
Provenance records the modules in
package.jsonand the README. -
Defaults to Starter
v0.5.0(commitd9375c2c).
Compatibility
- Reads template schemas 1 to 3. Starter releases before
v0.5.0offer no module choices. - Older CLI versions cannot scaffold Starter
v0.5.0or newer; they stop with a request to update.
Verification
The published package generated four projects, each verified for its recorded framework, Starter pin, and auth module, then installed, typechecked, tested, and built: Next.js and TanStack Start with the defaults, minimal Next.js (
--auth none --storage none --cache memory), and TanStack Start with Better Auth. -
-
Clubedge Starter v0.5.0
starter githubHighlights
-
Optional modules. Template schema 3 describes authentication, file storage, and caching as modules.
create-clubedge-app0.5.0 uses it for--auth,--storage, and--cache; anything left out is removed completely, including its package, provider SDK, environment variables, documentation, and lockfile entries.Module Options authsupabase(default),better-auth,nonestorages3(default),supabase(needs Supabase Auth),nonecacheredis(default; memory withoutREDIS_URL),memory -
Better Auth.
packages/auth-better-authkeeps users and sessions in your own PostgreSQL, inauth_*tables with their own migrations. It has the same behavior as Supabase Auth: rate-limited sign-in, profile sync, and a protected dashboard. -
One package per provider.
auth-supabase,auth-better-auth,storage-s3,storage-supabase, andcache-redishold the provider SDKs;auth,storage, andcachekeep only interfaces and in-memory implementations. -
Documentation that matches the project. README, SETUP, AGENTS, the env examples, and CI keep only the sections for the chosen framework and modules.
Fixes
- Dashboard protection with run-time configuration (Next.js). Auth settings were inlined at build time, so an image built without them but run with them served a prerendered dashboard without an auth check. Settings are now read at run time, and the dashboard always renders per request (#8).
- Generated projects' CI. Since v0.4.0, generated projects inherited CI jobs for both apps and failed.
ci.ymlnow covers the project's single app; the Starter's two-framework and module checks live in a maintainer-only workflow (#9). - Cache helpers without Redis.
cacheGetandcacheSetnow use process memory whenREDIS_URLis unset; previously they silently did nothing (#8).
Breaking changes for forks
- Provider imports moved:
@clubedge/auth/supabaseis now@clubedge/auth-supabase;@clubedge/storage/s3is now@clubedge/storage-s3;@clubedge/storage/supabaseis now@clubedge/storage-supabase; the Redis helpers moved to@clubedge/cache-redis. STORAGE_PROVIDERis removed. A project uses one storage provider, chosen when it is created.- Each provider module validates its own environment variables (
parseEnv);src/env/server.tskeeps only the core variables.isAuthConfiguredin the Next.js app is now a function. - The TanStack Start route tree (
routeTree.gen.ts) is generated, no longer committed. db:generate,db:migrate, anddb:checkrun in every package with migrations.
Compatibility
Scaffolding this release needs
create-clubedge-app0.5.0 or newer, because the manifest uses schema 3. -
-
Highlights
- Choose your framework.
--framework next|tanstack-startscaffolds the Starter as a Next.js or TanStack Start app. Interactive runs ask which one to use; Next.js stays the default. - Same layout either way. The chosen app lives in
apps/webas@clubedge/web, with its environment example and Dockerfile at the project root, so root scripts, Docker commands, and browser tests work the same for both frameworks. - Frozen installs keep working.
pnpm-lock.yamlis updated to match the chosen app. - Provenance now records the framework in the generated
package.jsonand README. - Defaults to Starter
v0.4.0(commitfc01d33b), which adds the TanStack Start app and template schema 2.
Compatibility
- Reads template schema 1 and 2. Starter releases before
v0.4.0offer onlynext. - Older CLI versions cannot scaffold Starter
v0.4.0or newer; they stop with a request to update.
Verification
The published package generated a Next.js and a TanStack Start project, verified the recorded framework and Starter pin, and installed, typechecked, tested, and built both.
- Choose your framework.
-
Clubedge Starter v0.4.0
starter githubHighlights
- TanStack Start version of the starter.
apps/startis the same application asapps/web(Next.js), built on the same packages with no changes to them: landing page, login, dashboard guard, rate-limited sign-in and sign-up, user profile sync, security headers, and/api/health.- Auth forms post to server routes that answer with 303 redirects, so they work without JavaScript.
- Request middleware refreshes sessions, rejects cross-site requests, and sets security headers.
- Production output is a self-contained Nitro bundle, with its own Dockerfile.
- Template schema 2.
clubedge.template.jsonlists every framework's app, env example, and Dockerfile.create-clubedge-app0.4.0 uses it for--framework next|tanstack-start. Generated projects always get the chosen app inapps/webas@clubedge/web. - One browser suite for both apps. The Playwright tests moved to
e2e/;E2E_APP=start pnpm test:e2eruns them against the TanStack app. - CI covers both apps: E2E, Docker build and health check, and production builds made with the env examples copied into place, as in generated projects.
Breaking changes for forks
scripts/start-standalone.mjsmoved toapps/web/scripts/start-standalone.mjs.- Browser tests moved from
apps/web/e2e/toe2e/. pnpm buildrunsturbo run buildfor every app, andpnpm startdelegates to@clubedge/web'sstartscript.
Fixes
- The TanStack Start env example no longer sets
NODE_ENV, which madevite buildemit development JSX when the example was copied into place (#6).
Compatibility
Scaffold this release with
create-clubedge-app0.4.0 or newer. Older CLI versions stop with a request to update, because the manifest uses schema 2. - TanStack Start version of the starter.
-
Highlights
- Defaults to Clubedge Starter
v0.3.0(60f16919), which adds theclubedge.template.jsontemplate manifest. - Rewritten in TypeScript, organized into argument parsing, planning, execution, and steps.
- The pinned Starter is bundled into the package, so the default scaffold no longer downloads from GitHub or requires Git.
- Reads the Starter's template manifest and refuses Starters with a newer template schema, with guidance to update the CLI.
- New options:
--dry-run,--yes, and--template-dir. - Removes everything it wrote when scaffolding fails, instead of leaving a partial project.
- Checks the Node.js version up front and falls back to
corepack pnpmwhenpnpmis not on the path. - Never copies local environment files, dependencies, or build output from a template directory.
Install
pnpm dlx @clubedge/create-clubedge-app@0.3.0 my-app
- Defaults to Clubedge Starter
-
Highlights
- Adds
clubedge.template.json, a versioned template manifest (schema version 1) that tellscreate-clubedge-appwhere the app, site config, env example, and Docker image live, and which files stay out of generated projects. - Adds a manifest test that fails when a referenced path is missing or the Docker image name drifts from the package scripts.
- Updates the contributing conventions for the manifest.
Compatibility
Generated with
create-clubedge-app0.3.0 or newer. Older CLI versions still scaffold this release through their legacy path. - Adds
-
Tested against Clubedge Starter v0.2.0 (commit db15901d).
- Publish the default Starter pin in the
clubedgefield ofpackage.json. The CLI and release workflow read it from there, and the npm registry exposes it so the website always shows the Starter each CLI version scaffolds. - Optionally trigger a website rebuild after a release when the
SITE_DEPLOY_HOOKsecret is configured.
pnpm dlx @clubedge/create-clubedge-app my-app
- Publish the default Starter pin in the
-
Tested against Clubedge Starter v0.2.0 (commit db15901d).
- Default to Starter v0.2.0: project identity in
site.json, dashboard protection, rate-limited sign-in and sign-up, and lazy environment validation. - Write the project name to
apps/web/src/config/site.jsoninstead of replacing strings in source files. Starterv0.1.xrefs keep the previous behavior.
pnpm dlx @clubedge/create-clubedge-app my-app
- Default to Starter v0.2.0: project identity in
-
Added
- Project identity in
apps/web/src/config/site.json(name, description, service id, links). /dashboardprotection withgetPageUser()and sign-out controls.- Rate limiting for sign-in and sign-up, with an in-memory fallback when Redis is not configured.
- Same-origin validation for post-login redirects;
nextis preserved through the auth flow. usersprofile sync on sign-in, sign-up, and email callback.
Changed
- Server environment is validated on first use; the app builds without
DATABASE_URL. requireUser()throws a 401AppError.- Default post-login destination is
/dashboard.
Breaking changes for forks
envfrom@/env/server→getServerEnv()dbfrom@/db→getDb()createRateLimiter()no longer returnsnull
Generate a project
pnpm dlx @clubedge/create-clubedge-app my-app --ref v0.2.0
- Project identity in
-
Bump CLI version to 0.1.13. Tested against Clubedge Starter v0.1.1 (commit 0be0c18d).
-
Full Changelog: v0.1.11...v0.1.12
-
Full Changelog: v0.1.10...v0.1.11
-
Full Changelog: v0.1.9...v0.1.10
-
Full Changelog: v0.1.8...v0.1.9
-
Verify the default Starter tag resolves to commit 4334121e4ce46a331d7c542c6025fdfe2b8c0657, record Starter provenance in generated projects, and smoke-test the published npm package after release.
-
Use the tested Clubedge Starter v0.1.0 release by default. Generated projects record CLI and Starter provenance. CI validates the pinned release and performs scheduled compatibility checks against Starter main.
-
First versioned Clubedge Starter release. This release is the tested default reference for create-clubedge-app 0.1.4.