Description
htmgo is a lightweight Go framework for building interactive websites and web applications with htmx, without writing JavaScript. Pages are written as Go functions that build HTML with helper calls such as Div, Class and TextF, and the result is compiled into a single deployable binary. Its core features include live reload, which rebuilds the CSS, Go code, Ent schemas and routes when a file changes, and automatic page and partial registration based on file paths. Tailwind CSS support is built in and needs no configuration by default, and custom htmx extensions are provided to reduce boilerplate for common tasks. The site says most web applications can be built this way, including business CRUD apps, blogs, documentation sites, consumer sites and internal tools. The approach follows hypermedia-driven design, where the server returns HTML fragments and htmx swaps them into the page. The documentation has a getting started guide, examples and a Convert HTML tool, and the project is open source on GitHub under maddalax/htmgo.…
Highlights
- Build pages in pure Go with htmx for interactivity
- Compiles to a single deployable binary
- Live reload for CSS, Go code, schemas and routes
- Built-in Tailwind CSS support
Ratings & Reviews
No ratings yet
Be the first to rate htmgo.
People also visit
htmgo FAQ
What is htmgo?
A lightweight Go framework for building interactive web apps with htmx, so you can avoid writing JavaScript.
How is an app deployed?
As a single binary, according to the site, which is compiled from the Go code.
Does it include CSS tooling?
Yes. Tailwind CSS support is built in and needs no configuration by default, and live reload rebuilds the CSS on change.
What can I build with it?
The site lists CRUD business applications, blogs, documentation sites, consumer websites and internal tools.
Is it free?
Yes. The source is public on GitHub, so it is open source.
What are the best htmgo alternatives?
Popular alternatives to htmgo include hop. See all htmgo alternatives





