The stack
- Astro builds the portfolio and the learn site as static HTML, from one
content/folder. - A Go API with SQLite handles sign-in (OAuth / OpenID Connect), saved progress, the coin shop, live presence over WebSockets and the admin endpoints.
- Caddy serves everything from one always-free Oracle Cloud VM with automatic HTTPS.
- GitHub Actions runs unit tests, Go tests and a browser test suite against the real API binary, then deploys over SSH with a key restricted to rsync.
Clean URLs with themes
URLs never contain the theme. Each theme is built separately, the visitor's choice lives in a cookie, and Caddy serves the matching build for the same path.
Trusting points from a browser
Clients can send anything, so the API only accepts events listed in a game catalog generated from the content at build time. Points come from the catalog, never from the browser, and the site and API are built from the same commit so they always agree.
Content as code
The admin panel commits through the GitHub API. An invalid edit fails the build instead of breaking the live site, and every change is versioned.