logoalt Hacker News

Htmx 4.0

316 pointsby rmsaksidatoday at 1:28 PM72 commentsview on HN

Comments

dec0dedab0detoday at 7:30 PM

I really like htmx, and intercooler.js before it. It's been a while since I tried to convince a co-worker to use it, it might be time to try again. Either way I can't wait to try out the new version.

Full Disclosure, I am CEO of HTMX

show 1 reply
nzoschketoday at 4:10 PM

Congrats and thanks! htmx brings me joy.

Pretty much every experiment I build now starts with Go, htmx, and SQLite to keep things simple and fast but still responsive.

I put a few more thoughts about this here:

https://housecat.com/blog/the-hugs-stack-hypermedia-unix-go-...

show 3 replies
james2doyletoday at 5:13 PM

> `hx-alpine-compat` - smooths over compatibility issues between htmx and Alpine.js

I looked into this when I tried HTMX 4 on a project earlier this year. I actually found that https://alpine-ajax.js.org/ was smaller than HTMX while providing all the features I needed. It is one of the sanctioned projects they link to so I felt good using it

show 1 reply
havaloctoday at 4:45 PM

Before vibe coding was a thing, HTMX made it super easy for me to implement Ajax like features. It was the most approachable library I've ever seen, and I'll always be grateful for it.

Baguette5242today at 3:54 PM

As CEO of HTMX, I am very proud of the work achieved by the team.

show 2 replies
hollowturtletoday at 7:45 PM

"On this page" anchor navigation doesn't work for me :( Mobile Safari

cuitoday at 7:26 PM

It seems this version is also adding hx-live. Anyone used it before? How does it compare against Alpine.js?

praseodymtoday at 3:53 PM

Is it just a coincidence that the image for this release is the same as for Omarchy Quattro? https://youtu.be/F7fe9pa8OeE

show 2 replies
ryanisnantoday at 4:41 PM

Congratulations on the release!

I have enjoyed working with htmx very much.

I'm still skeptical of htmx being the foundation for a 100-year web service, but I think this is a really worthwhile goal. I'll add that aside from static HTML, I don't have a better option.

show 1 reply
arjietoday at 4:09 PM

Great library. Really enjoy using it. Agents work really well with the kind of site you build with it and it’s very easy to build. Thanks for the upgrade skills.

replwoacausetoday at 4:42 PM

I've always been a fan and supporter of HTMX, but lately I've wondered how beneficial it is now that LLMs can generate JavaScript for us. HTMX was especially useful when I wrote JavaScript by hand because I appreciated its higher level of abstraction and simplicity. I also struggled to make it work with AlpineJS and eventually had to resort to plain JavaScript, which gave me finer control. Normally, switching to JavaScript would have been a hassle but since an LLM can produce it as easily as any other text, I’m less clear on HTMX’s advantage. I’ve been getting along fine without it. If computers didn’t write code for us, I would still choose HTMX, but now I find it hard to justify the trade‑off.

show 5 replies
flosslytoday at 5:23 PM

I'm glad I'm not using this. It's the opposite of how I like to build web apps (which is either SSR with tiny bits of JS on top that I like to use Alpine.js for; or a JS-app that I like to use Elm for as life is too short runtime errors).

Nonetheless I hope all who do use Htmx, enjoy using it.

show 2 replies
kaysontoday at 4:43 PM

I'm not very familiar with htmx but at first glance it seems similar to Angular. I thought Angular lost favor because of all the extra attributes and boilerplate. What makes htmx different?

show 3 replies
avaruntoday at 4:31 PM

Why did they skip version 3?

show 2 replies
StrangeSoundtoday at 4:08 PM

> Note that attributes like hx-disinherit

Looks like some copy is missing here

show 1 reply
cubefoxtoday at 5:51 PM

The anchor links in the "on this page section" don't work for me (Android Firefox/Chrome).

sehwtoday at 7:11 PM

[dead]