GOTTH+
GitHub

GOTTH+

Go, Templ, Tailwind and HTMX, ready for production.

A secure, opinionated starting point for server-rendered web apps. No Node, no npm and no bundler. The server owns the state and sends HTML; the browser does only what HTML cannot.

Try it / Server interaction

Start a project in one command

Choose a name and a database. The server checks your choices and returns the command that creates the project with create-gotth-plus-app.

Your command will appear here.

01 / Server

Plain Go, no framework

net/http with Go 1.22 routing, server timeouts, graceful shutdown and structured logs that carry a request ID.

02 / Views

Type-safe HTML

Templ components are compiled Go. Output is escaped by context, so hostile input is shown as text, never run.

03 / Interaction

htmx first

Forms and navigation swap fragments from the server. Failures show a toast, never silence, and links preload on hover.

04 / Client state

A little Alpine

Alpine's CSP build keeps client-only state, such as a copy button, without eval or inline scripts.

05 / Security

Secure by default

A strict Content-Security-Policy, CSRF tokens, cross-origin checks, per-client rate limits and body caps, with HSTS in production.

06 / Quality

Tested at every layer

Unit tests, integration tests through the real middleware, and browser tests for focus rings, toasts, phone layouts and the site's own flows.

Built with GOTTH+, and running on it

This site is built with the stack it describes. Nothing here is a static export: the Go server renders every page, and the command builder and the feedback vote are live.

Go
Routes, handlers and the middleware chain.
Templ
Every page, section and fragment on this site.
htmx
The command builder, the feedback vote and boosted navigation.
Alpine.js
The copy button and the mobile docs menu.
Tailwind CSS
The styles, built by the standalone CLI.
SQLite and GORM
Vote counts on each docs page, migrated by cmd/migrate.