Go + HTMX + Templ

A production-ready template for building server-driven hypermedia applications. Write Go, return HTML fragments, let HTMX handle the rest.

Go + Echo

Type-safe HTTP handlers with Echo. Struct-based routing, middleware, and context propagation.

echo.HandlerFunc

HTMX

Swap HTML fragments from the server. No client-side JS framework needed. Progressive enhancement built in.

hx-get hx-swap hx-target

Templ

Compile-time type-safe HTML templates in Go. Components, layouts, and fragments with full IDE support.

templ Component

Composable SQL Fragments

Write real SQL with dialect-aware helpers. Switch between SQLite and MSSQL with one environment variable. No ORM magic.

DB_ENGINE=sqlite
DB_PATH=db/app.db

Hypermedia Controls

Server-driven UI controls: buttons, filters, tables, pagination, error recovery. The server decides what the client can do next.

Controls FilterBar Table ErrorStatus

DaisyUI + Tailwind

Production styling out of the box. Light and dark themes, responsive layouts, semantic component classes.

Light Dark Responsive

Feature Flags at Build Time

Template setup strips unused features. Auth, SSE, MSSQL, demo content, each opt-in. Ship only what you need.

auth mssql sse demo

Quick Start

git clone <this-repo> my-app && cd my-app
mage setup              # configure app name, ports, features
mage dev                # air + templ watch + tailwind watch