frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Open in hackernews

How I use HTMX with Go

https://www.alexedwards.net/blog/how-i-use-htmx-with-go
61•gnabgib•3h ago

Comments

xp84•58m ago
I used HTMX on a recent project and really enjoyed it. As a person who knows how the Web worked before the invention of AngularJS and React, I deeply appreciate being able to build actual pages and minimize the amount of JS that has to exist. Vanilla JS works fine, but HTMX basically just substitutes for a lot of boilerplate that you'd otherwise have to create just to do the same event handler stuff over and over.

If you're curious, and you too aren't in love with the "Modern frontend" philosophy, I would recommend trying out HTMX. Of note, the first examples of HTMX on the HTMX site are really basic, but it's much more powerful with a bit more learning.

wasmperson•34m ago
> If you're curious, and you too aren't in love with the "Modern frontend" philosophy

I'm also going to hesitantly mention sveltekit. From the outside it looks like yet another JS front-end framework but having been forced to use it recently I've learned it actually has great support for the more hypertext-focused design philosophy promoted by HTMX and friends.

nzoschke•51m ago
Love Go + HTMX. I pair it with a-h/templ for a bit more type safety on the template, components and partials.

I just shared my whole toolkit too [1], I call it the "GUS stack" -- Go, Unix, SQLite. Inspired heavily by the exe.dev "GUTS" stack [2] but with HTMX instead of Typescript.

Some other Go components in the kit...

- cockroachdb/errors for errors with stack traces

- templ for type-safe HTML templates (with htmx for reactivity and tailwindcss for CSS)

- fuego for an OpenAPI spec generated from web handlers

- sqlc for type-safe code generated from SQL

- modernc.org/sqlite for a pure Go sqlite library

- goose for SQL and Go migrations

- dbos for durable workflows in SQLite

- rod for Chrome / CDP testing and automation

Feels so productive coding, agentic coding, and building and deploying binaries with this stack.

[1] https://housecat.com/blog/the-gus-stack-go-unix-sqlite

[2] https://exe.dev/docs/guts

nzoschke•22m ago
Could rebrand to the HUGS stack -- HTMX, Unix, Go, SQLite
androiddrew•40m ago
I love Alex Edwards. His books and Learn go with tests were my first introduction to the language. Still recommend to this day.

I'm feel inspired to convert some old stuff to HTMX

bbg2401•23m ago
Seconded on the Alex Edwards adoration. Anyone with the slightest interest in learning Go for web development should pick up both Let's Go and Let's Go Further. They are two of the most approachable, enjoyable and practical introductions to a programming language I've read.
_superposition_•33m ago
Nice post. Gotta love the GOTH stack
defrost•27m ago
There's no other tool for extracting wasps from stings in flight.
pbjerkeseth•27m ago
HTMX is excellent. We made it a long way at Convictional[1] with HTMX + AlpineJS, but the eventual transition of our product into lots of live collaborative surfaces had us feeling like we had pushed the envelope as far as we could under modern startup constraints. Unfortunately, frontier models have really hurt development with budding tech that doesn't have the training data presence of things like React.

[1] https://get.convictional.com/

sethops1•15m ago
We use this[1] little package, which enables chaining together HTMX responses that can be based on an HTML template file, an HTML raw string, or plain text. All but the first being OOB targets. Real example:

  return htmx.Write(w,

    &htmx.Template{
      FS:       htmx.FS(ui.HTMX, "parts"),
      Filename: "arrows.html",
      Fields:   []any{thread, up},
    },

    &htmx.Component{
      HTML: `
        <div {{$count := index . 0 -}} {{- $thread := index . 1 -}}
          hx-swap-oob=true
          id="points-{{$thread}}"
          class="points">{{$count}} points</div>`,
      Fields: []any{count, thread},
    },

  )
[1] https://github.com/cattlecloud/webtools/tree/main/htmx

Bonsai 27B: A 27B-Class model that runs on a phone

https://prismml.com/news/bonsai-27b
339•xenova•5h ago•122 comments

Dependabot version updates introduce default package cooldown

https://github.blog/changelog/2026-07-14-dependabot-version-updates-introduce-default-package-coo...
45•woodruffw•1h ago•29 comments

Financing the AI boom: from cash flows to debt [pdf]

https://www.bis.org/publ/bisbull120.pdf
32•1vuio0pswjnm7•1h ago•2 comments

The Tower Keeps Rising

https://lucumr.pocoo.org/2026/7/13/the-tower-keeps-rising/
296•cdrnsf•6h ago•150 comments

Cursor 0day: When Full Disclosure Becomes the Only Protection Left

https://mindgard.ai/blog/cursor-0day-when-full-disclosure-becomes-the-only-protection-left
185•Synthetic7346•5h ago•75 comments

How I use HTMX with Go

https://www.alexedwards.net/blog/how-i-use-htmx-with-go
63•gnabgib•3h ago•10 comments

Your 'app' could have been a webpage (so I fixed it for you)

https://danq.me/2026/07/09/your-app-could-have-been-a-webpage/
667•MrVandemar•3d ago•419 comments

The largest available Minecraft world, totalling 15 TB

https://2b2t.place/1million
132•_____k•3d ago•39 comments

The Estranged Worlds of J. G. Ballard

https://lareviewofbooks.org/article/jg-ballard-illuminated-man-christopher-priest-nina-allan/
21•Caiero•1d ago•4 comments

Guardian Angels: LLM Personalization for Productivity and Security

https://gwern.net/guardian-angel
46•andsoitis•10h ago•3 comments

How to stop Claude from saying load-bearing

https://jola.dev/posts/how-to-stop-claude-from-saying-load-bearing
397•shintoist•11h ago•455 comments

Microsoft Deletes User's 25-Year-Old Account with Thousands Spent on Games

https://xcancel.com/JoshuaKhane/status/2076918699248803977
76•HelloUsername•1h ago•24 comments

Mathematical texts from a Maya site in Guatemala identify an ancient astronomer

https://www.nature.com/articles/d41586-026-02170-8
5•homarp•11h ago•0 comments

I'm a USB-C Maximalist

https://shkspr.mobi/blog/2026/07/im-a-usb-c-maximalist/
121•speckx•7h ago•217 comments

The zero-cost fallacy: open-source software in the agentic era

https://www.thoughtworks.com/insights/blog/open-source/zero-cost-fallacy-open-source-agentic-era
90•backlit4034•4d ago•70 comments

The Second Life of Sanskrit

https://openthemagazine.com/india/the-second-life-of-sanskrit
41•bookofjoe•3d ago•28 comments

QR-Swastika-Avoider

https://crates.io/crates/qr-swastika-avoider
3•gregsadetsky•22m ago•1 comments

Kontigo (YC S24) Is Hiring (Head of Security)

https://www.ycombinator.com/companies/kontigo/jobs/uNttrlv-head-of-security
1•jecastillof•6h ago

Banter

https://homosabiens.substack.com/p/banter
10•surprisetalk•4d ago•1 comments

Are we offloading too much of our thinking to AI?

https://www.artfish.ai/p/offloading-thinking-to-ai
345•yenniejun111•7h ago•343 comments

Launch HN: Agnost AI (YC S26) – Extract user feedback from agent conversations

https://agnost.ai
37•laalshaitaan•7h ago•22 comments

Show HN: Opening lines of famous literary works

https://www.verbaprima.com/
135•plicerin•7h ago•78 comments

Human Canaries: Remembering the Munitionettes

https://www.historytoday.com/archive/great-debates/human-canaries-remembering-munitionettes
8•Thevet•23h ago•0 comments

Accretive Editing

https://justindfuller.com/programming/accretive-editing
13•iamjfu•4d ago•4 comments

LeMario: Training a JEPA World Model on Super Mario Bros

https://www.benjamin-bai.com/projects/lemario
3•kevinjosethomas•38m ago•0 comments

Measuring Input Latency on Linux: X11 vs. Wayland, VRR, and DXVK

https://marco-nett.de/blog/measuring-input-latency-on-linux-x11-vs-wayland-vrr-dxvk/
333•hoechst•6h ago•209 comments

Show HN: Juggler – an open-source GUI coding agent, by the creator of JUCE

https://github.com/juggler-ai/juggler
155•julesrms•2d ago•77 comments

StubHub, CEO hit with ‘deceptive practices’ class action over mass scalping

https://www.cbc.ca/news/world/stubhub-ceo-class-action-scalping-9.7268987
81•b112•3h ago•41 comments

Demis Hassabis has a plan to harness AI safely

https://twitter.com/demishassabis/status/2076957440109625718
130•asiergoni•13h ago•171 comments

The Agentic Loop: Three loops in a trench coat

https://www.bobbytables.io/p/the-agentic-loop-three-loops-in-a
67•btables•8h ago•15 comments