Skip to content

feat: add npm create radi with SPA, SSR, SSG, and Go starters - #68

Merged
Marcisbee merged 2 commits into
masterfrom
kode/uXtHxdJ6-create-radi-starter-templates
Oct 23, 2026
Merged

Marcisbee merged 2 commits into
masterfrom
kode/uXtHxdJ6-create-radi-starter-templates

Conversation

@Marcisbee

@Marcisbee Marcisbee commented Oct 23, 2026 •

Copy link
Copy Markdown
Owner

Create a runnable Radi project with npm create radi@latest -- my-app --template spa, choosing spa, ssr, ssg, or go. The dedicated create-radi package contains the initializer and templates. It refuses nonempty destinations and pins generated npm and Go dependencies to the matching Radi release.

Templates include build/run commands, TypeScript configuration, and deployment instructions. SPA demonstrates a reactive counter, Node SSR renders per request, SSG generates two static pages, and Go embeds TSX in its server binary. Go requires Linux amd64, Go 1.26.10, Clang 21, and CGO.

Validation: built both npm packages, packed and locally installed create-radi, invoked the real npm create radi command for all four templates, then installed the runtime tarball, built, and served every generated app. Chromium verified the SPA counter; HTTP checks covered SSR, both static pages, and Go rendering. Invalid templates and occupied destinations are rejected. Release tooling tests pass. CI runs the generated-project checks in the npm and Go workflows.

Release setup: create-radi is a new npm package and needs an initial authenticated publish plus its own trusted publisher for Marcisbee/radi, publish-npm.yml. Instructions are in .github/RELEASING.md. Subsequent releases publish the initializer in a separate retryable job after the matching runtime succeeds. No npm package has been published by this PR.

@Marcisbee
Marcisbee marked this pull request as ready for review October 23, 2026 14:47
@Marcisbee Marcisbee changed the title feat: add SPA, SSR, SSG, and Go starter generator feat: add npm create radi with SPA, SSR, SSG, and Go starters Oct 23, 2026
@Marcisbee
Marcisbee marked this pull request as draft October 23, 2026 15:20
@Marcisbee
Marcisbee marked this pull request as ready for review October 23, 2026 15:22
@Marcisbee
Marcisbee merged commit 3e7dcf5 into master Oct 23, 2026
6 of 7 checks passed
@Marcisbee
Marcisbee deleted the kode/uXtHxdJ6-create-radi-starter-templates branch October 23, 2026 20:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant