Lessons from building web apps with Go and HTMX, using Banter Bus and LettuceGo as examples. I show how HTML attributes and server-rendered fragments handle interactions while keeping application state on the backend.
Takeaways
- Use server-rendered fragments when an interaction needs fresh data. For UI that doesn’t need the server, keep it local; the slides show where AlpineJS fits alongside HTMX.
- This isn’t an all-or-nothing choice. If an interaction needs a lot of client-side state or needs to work offline, returning server-rendered HTML for every update may not be the best fit.
Further reading
- Setting a dynamic URL with HTMX and AlpineJS is a small example of the two libraries working together.
- The GoLab version spends more time on how Banter Bus handles multiplayer updates.
Resources
TALK RECORDING
Photo from conference

