Repository navigation
Releases
v4.0.2
In short: goilerplate needs no mail address any more. Support happens on GitHub.
Changed
- Commits from the CLI:
goilerplate newandgoilerplate updatecommit asgoilerplatewith no email address. - Support on GitHub: questions and bugs go to GitHub Issues. Security reports go through GitHub's private reporting.
Upgrade
Install the new CLI: go install github.com/axadrn/goilerplate/v4/cmd/goilerplate@latest.
v4.0.1
v4.0.0
In short: goilerplate is free and open source: the CLI, the generator with every module, the docs and this website, in one public repository. No license, no account, no server.
Why
A few days ago I ended the Free edition, because AI changed how people build apps: an agent writes login, billing and a dashboard in an afternoon. The numbers since then said the same thing. Selling a boilerplate no longer makes sense.
So I am following that thought to its end instead of going back and forth. goilerplate is free and open source, like shadcn-templ. I no longer sell code. I build ops, which deploys and backs up the apps goilerplate makes, on your own servers. Code is free, running it is the business.
If you bought goilerplate or templUI Pro: thank you. Everything you generated keeps working, and you get ops Hosted at half price for as long as you use it.
Changed
goilerplate newworks offline: it renders the project on your machine, with no login and no network.goilerplate updatedownloads the template your project was made with from the Go module proxy and merges with Git on your machine, as before. It works for projects made with v4 or newer; projects made with v3 keep working, but do not update to v4.- Licenses: the CLI is MIT. The template and every generated project are 0BSD, with no notice to keep. New projects ship without a LICENSE file, so you pick your own.
- The module path ends in
/v4.
Removed
login,logout,whoami,claim,licenseandaccount: there is nothing to sign in to any more.
Upgrade
Install the new CLI: go install github.com/axadrn/goilerplate/v4/cmd/goilerplate@latest.
v3.2.3
In short: goilerplate update says clearly when your Git is too old.
Fixed
- Git version check:
goilerplate updateneeds Git 2.38 or newer. With an older Git it printed only a crypticgit merge-treeusage line; now it names the required and the installed version before downloading anything.
Upgrade
Update the CLI with go install github.com/axadrn/goilerplate/v3/cmd/goilerplate@latest or the binary from the release, then run goilerplate update.
v3.2.2
In short: Short workspace URLs, like /app/acme/….
New
- Short workspace URLs: a new workspace gets the slug of its name,
/app/acme/…instead of/app/acme-s-workspace-1a2b3c4d/…. The workspace from sign-up takes the person's name,/app/ada-lovelace/…. - A number only when needed:
acme-2when the slug is taken. The unique index decides, so two workspaces created at the same moment never get the same one. - Plain letters: accented letters become plain ones (
Ärzte Zürichisarzte-zurich), and names of app pages such assettingsoradminare reserved.
Fixed
- Workspace switcher: it shows the first letter of a name that starts with a non-ASCII letter, such as
Ä, instead of a broken character. - Docs table of contents: it marks the last headings of short pages as you reach them.
Upgrade
Commit your work, run goilerplate update, switch to the goilerplate-update-v3.2.2 branch and run go tool templ generate. Existing workspaces keep their slug, so no link breaks; there is no migration.
v3.2.1
In short: Two fixes for the new CLI wizard and its help.
Fixed
- Wizard focus:
goilerplate newwithout options lets you type the project directory again. The first step was not focused since v3.2.0. - Help:
goilerplate help newlists every option, starting with the required--module.
Upgrade
go install github.com/axadrn/goilerplate/v3/cmd/goilerplate@latest.
v3.2.0
In short: One product, no Free edition. AI made a free starter pointless: anyone can generate the easy 80% in an afternoon. What takes weeks is the last 20%: billing that survives webhooks, tenant isolation, admin tools, and updates that keep coming.
New
- shadcn-templ v2.0.0 is stable.
Changed
goilerplate newneeds a license and has no--editionflag. The wizard starts at the project directory and asks every module question;--paymentisstripeorpolar.- Every account from before today got the full license, for free.
goilerplate doctorshows only the template version.goilerplate new --helpprints the help fornew.- The price goes from $99 to $149 on December 1, 2026. Every license bought before keeps lifetime updates.
Removed
- The Free edition. Projects generated with it cannot run
goilerplate update, because there is no Free template to update to: generate a new project withgoilerplate newand move your code over.
Upgrade
- Install the CLI v3.2.0:
go install github.com/axadrn/goilerplate/v3/cmd/goilerplate@latest. Older CLIs default to the Free edition, which the server now refuses. - Commit your work, run
goilerplate update, then switch to thegoilerplate-update-v3.2.0branch. - Run
go tool templ generateandgo mod tidy, then build and test.
v3.1.1
In short: A security fix: templ v0.3.1100, which needs Go 1.26.
Fixed
- templ v0.3.1100: code generated by earlier versions does not sanitize spread attributes such as
{ attrs... }, or URLs in attributes such as<iframe src>. Every vendored component passesAttributesthrough a spread, so every project with an htmx or Datastar frontend was affected. Headless and SvelteKit projects have no templ code. - goldmark v1.8.6 for docs and blog content (CVE-2026-5160).
- Docker images on
alpine:3.24instead ofalpine:3.20.2, which no longer gets security updates. golang.org/x/cryptov0.57.0,golang.org/x/netv0.59.0 and the othergolang.org/xmodules templ pulls in.
Changed
- Go 1.26: generated projects say
go 1.26.0and build ongolang:1.26.goilerplate doctorreads the version from yourgo.modand asks for Go 1.26. - shadcn-templ v2.0.0-beta.16 in
AGENTS.md. The vendored components are unchanged.
Upgrade
- Install Go 1.26 or newer.
- Commit your work, run
goilerplate update, then switch to thegoilerplate-update-v3.1.1branch. By hand instead:go get github.com/a-h/templ@v0.3.1100 github.com/yuin/goldmark@v1.8.6,go mod edit -go=1.26.0, andgolang:1.26andalpine:3.24in yourDockerfile. - Run
go tool templ generateandgo mod tidy, then build and test. Code generated by an older templ no longer compiles against v0.3.1100, so regenerating is required.
v3.1.0
In short: One Go backend, every way to talk to it: HTML, a JSON API, MCP and SvelteKit. Services still own the rules; the new transports are thin and call the same methods as your htmx or Datastar handlers.
New
- JSON API (
--api):/api/v1next to your htmx or Datastar app, from the same binary. Free covers auth, account and sessions; Paid adds billing, admin, workspaces, members, invitations, activity and avatars. - API details: the login session doubles as the credential,
Authorization: Bearer <token>; cookie sessions keep working withX-CSRF-TokenfromGET /api/v1/csrf. One error envelope, snake case JSON, cursor pagination for activity, 415 for anything that is notapplication/json, a 1 MiB body limit. - OpenAPI: a hand-written OpenAPI 3.1 document at
/api/v1/openapi.yaml, with a test that fails when a route and the document drift apart. - CORS for listed origins through
CORS_ALLOWED_ORIGINS; OAuth callbacks can use a separateAPI_URL. - Headless (
--headless): the Go backend with the JSON API and no native frontend, no templ, Tailwind or assets.GET /answers JSON and the Docker image is about 51 MB. - Personal API tokens (
pat_...) with read or read and write scope, bound to one workspace, stored as hashes, shown once, created and revoked under Settings, Security. New routes are closed to tokens until they opt in; tokens never manage people, credentials or billing. They end when the password is reset or changed and when an admin revokes a user's sessions. - MCP server (
--mcp) at/mcp, built on the official Go SDK, so your customers connect Claude, Cursor or VS Code with a token. Free shipswhoami; Paid addsget_billing; Workspaces addlist_workspaces,get_workspace,list_activity,invite_memberandrename_workspace.AGENTS.mdshows how to add your own tool in under 20 lines. - SvelteKit (
--framework svelte): a SvelteKit 3 app with Svelte 5 and shadcn-svelte on the Headless backend, embedded into the Go binary: one origin, one deploy, about 53 MB. Same look and pages as the templ app, cookie sign-in with CSRF, a strict CSP. Needs Node.js 22.17 or newer and pnpm;goilerplate doctorchecks both. htmx and Datastar stay the recommendation. - The CLI has
--api,--headless,--mcpand--framework svelte, and the wizard asks for them.
Changed
- shadcn-templ v2.0.0-beta.13: Base UI behavior across components, a minified bundle from
/assets/jsand gzip for text assets. The bundle goes from 613 KB to about 77 KB on the wire. - Safer by default: OAuth refuses provider accounts without a verified email, payment webhooks reject bodies over 1 MiB, the invitation limit is shared across web, API and MCP, and invitation tokens no longer show up in request logs.
Fixed
- UI: select triggers show their labels again, the mobile sidebar closes on the first Escape, and Back and Forward work after docs navigation in htmx and Datastar.
- Datastar settings: Sign Out Everywhere, Remove Password and remove avatar no longer stay disabled.
- Forms show their red border on errors.
- Account deletion: a refused deletion no longer deletes the user's files first.
- A data race in the first concurrent page renders is gone.
Upgrade
- Install the goilerplate CLI v3.1.0. The v3.0.x CLI can run this update, but it cannot read locks written by v3.1.0.
- Commit your work, run
goilerplate update, then switch to thegoilerplate-update-v3.1.0branch. - If
internal/routes/routes.goconflicts, keep the newmiddleware.Gzip(assetHandler)line and deletemux.Handle("GET /components/{bundle}", components.ScriptsHandler()). Vendored components you edited may also conflict. - If you edited component JavaScript or added components the template does not ship, re-add them with
go run github.com/axadrn/shadcn-templ/v2/cmd/shadcn-templ@v2.0.0-beta.13 add <name> --overwrite, run the same command withbundle, and commitassets/js/shadcn-templ-*.jsandinternal/ui/components/scripts_bundle.go. - In your own templates, JavaScript and CSS, replace
data-tui-*withdata-slot(for example[data-slot=dialog-content]), open state withdata-openanddata-closed, andwindow.tuiwithwindow.templ. Nothing fails to compile here, so search fordata-tuiandwindow.tui. API_URLis new and optional; it defaults toAPP_URL.- Run
go tool templ generateandgo mod tidy, then build and test.
Adding the JSON API, MCP or SvelteKit to an existing project is a new generation with the same answers plus the new flags; goilerplate update keeps your current selection.
v3.0.3
In short: The Admin link is back in Paid projects without Workspaces.
Fixed
- Admin link: Paid projects without Workspaces show the Admin menu link again.
Upgrade
Run goilerplate update.