The Read-Only Blogread-only
All posts

Shipping a React SPA Inside a Go Binary

Josh · April 2, 2026

The frontend is a Vite + React single-page app styled with shadcn/ui and linted with Biome.

At build time it is compiled to static assets, which Go embeds directly into the server binary with //go:embed. The result is a single self-contained executable: run it and you get both the JSON API and the web UI, with no separate web server to deploy.