Repository navigation
feat: add npm create radi with SPA, SSR, SSG, and Go starters - #68
Merged
Merged
Conversation
Marcisbee
marked this pull request as ready for review
October 23, 2026 14:47
Marcisbee
marked this pull request as draft
October 23, 2026 15:20
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Create a runnable Radi project with
npm create radi@latest -- my-app --template spa, choosingspa,ssr,ssg, orgo. The dedicatedcreate-radipackage 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 radicommand 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.