htmgo - build simple and scalable systems with golang + htmx
Hey all, I just wanted to share a project I've been working on for the past month. After years of heavy frameworks, I really like the idea of using htmx, but it’s a little too low level for me and needs a thin layer above it to facilitate things like components, better syntax with complex JS inside of an attribute, etc To try and solve this problem with a very minimal stack (golang + htmx) that I've been really enjoying, I'm building this project to cater to my needs and was thinking it would be useful for other developers.
htmgo - build simple and scalable systems with golang + htmx launched on September 28, 2024 with 166 votes, #370 of 5,281 launches that month and more than 95% of that year's launches. The site was still online in September 2026, 2 years on.
In plain words
htmgo is a Go framework that adds a lightweight abstraction layer on top of htmx for building web applications. It provides component-based syntax and simplifies JavaScript handling in htmx attributes, bridging the gap between htmx's low-level approach and traditional heavy frameworks. Designed for developers seeking a minimal stack alternative, htmgo combines Go backend simplicity with htmx's interactivity to streamline building scalable systems without framework complexity.
written from the facts on this page · September 2026
From the sources
build simple and scalable systems with go + htmx
htmgo is a lightweight pure go way to build interactive websites / web applications using go & htmx. By combining the speed & simplicity of go + hypermedia attributes ( htmx ) to add interactivity to websites, all conveniently wrapped in pure go, you can build simple, fast, interactive websites without touching javascript. All compiled to a single deployable binary . For a more detailed overview of when you should use hypermedia to build web applications, see when-to-use-hypermedia fromfrom htmgo.dev
Does a similar job
all alternatives →
htmz – a low power tool for HTML2024 · leanrada.com · ▲1,020
I made a HTMX Playground 100% in the browser2024 · lassebomh.github.io · ▲482I recently dug up an old project in an attempt to improve on it. It's a code sandbox for playing around with HTMX in the browser, that runs a mock server within the sandbox iframe. The server "framework" is loosely based on Django, so if you're familiar with Django, you'll immediately understand what's going on. I recommend clicking through the examples. Github repo: https://github.com/lassebomh/htmx-playground Probably my favorite part is the lack of HTMX specific code. It's designed to mimic the client and server, but really nothing else. In principle, this means that…
- UGUse Go's HTML/template to write React-like code2024 · ▲106
Hi all, I'm currently working on my hobby project, and one of the fun constraints I put in was to build using as less dependencies as possible. I chose Go as it has a really good standard library, and all went well for building backend. But for frontend, I was wondering whether I should break the constraint and go for React. I tried options like Web Components, but I really didn't like the ergonomics and I didn't want to use jQuery either. Out of curiosity, I was exploring Go's html/template package to see if I can write UIs in a React-like manner. I found most of the online docs using…
Gomponents, HTML components in pure Go2024 · gomponents.com · ▲113Hey everyone! I just released v1.0.0 of gomponents last week. It's an HTML component builder in pure Go, with a DSL-like HTML syntax. It's been 4 years in the making, and makes it really easy to build HTML in your web apps.
HMPLDec 2025 · hmpl-lang.dev · ▲200HMPL.js is a lightweight server-oriented template language for JavaScript. Fetch HTML, render it safely, and keep apps dynamic, modern, and small. Alternative to HTMX and Alpine.js.
µJS, a 5KB alternative to Htmx and Turbo with zero dependenciesMar 2026 · mujs.org · ▲161I built µJS because I wanted AJAX navigation without the verbosity of HTMX or the overhead of Turbo. It intercepts links and form submissions, fetches pages via AJAX, and swaps fragments of the DOM. Single tag, one call to `mu.init()`. No build step, no dependencies. Key features: patch mode (update multiple fragments in one request), SSE support, DOM morphing via idiomorph, View Transitions, prefetch on hover, polling, and full HTTP verb support on any element. At ~5KB gzipped, it's smaller than HTMX (16KB) and Turbo (25KB), and works with any backend: PHP, Python, Go, Ruby, whatever.…
More work this month
the category →
Endless lofi beats composed live in your browser, over pixel-art nights in Paris, Tokyo, New York, Hong Kong, Sydney, San Francisco and more. Free, no sign-up.
Work · 26d ago · loficities.com
Smooth Recorder▲257Mac screen recordings that look edited when you hit stop
Work · 20d ago · smoothrecorder.com


Work · 14d ago · readrare.com
Source: Show HN post ↗
Launched alongside, September 2024
the whole month →

BeforeSunset AI 2.0▲1,267Personalized AI daily planning that suits your life
AI · 2024 · beforesunset.ai


