Htmx 4.0
- dec0dedab0de - 36582 sekunder sedanI 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
- nzoschke - 48548 sekunder sedanCongrats 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-...
- rednb - 27927 sekunder sedanMaybe a contrarian view, but as someone very knowledgeable about .NET API backends + angular on the frontend, I've found that HTMX made things more difficult as it required me to move back to mixing presentation concerns with business-logic and data concerns (basically have the backend produce the UI, which is whole point of HTMX).
This is not a criticism but I suspect that the people enjoying HTMX are either people preferring old-school server-side rendering or react users.
Just sharing my experience, because HTMX is the absolute darling of hacker news.
Since i mainly develop real SPA, i found that is more complex than just using typscrpit if you build something non-trivial as managing state on the server is not fun at all.
In my opinion if you are happy using angular, you'll find that HTMX is a step backward in terms for dev experience. Can't speak about react, but since it is not a battery included stack unlike Angular, i can understand why many people find they'd be better off moving things server-side instead of messing around with 15 third-party libraries. My 2 cents
- james2doyle - 44782 sekunder sedan> `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
- threesmegiste - 27620 sekunder sedanA thoughtful, clean, and useful library that wasn't built to climb the corporate ladder. It grew organically. I think it became a cry of relief for those annoyed by unnecessary complexity, which also boosted its recognition. It served as a starting point for things like Datastar, too. I believe it brought a refreshing breath of air to the frontend landscape.
- miguel-muniz - 27958 sekunder sedanAs the CEO of HTMX, I've never used HTMX but I've been keeping an eye on the releases, essays, and talks. Congratulations to the team.
- havaloc - 46452 sekunder sedanBefore 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.
- Baguette5242 - 49513 sekunder sedanAs CEO of HTMX, I am very proud of the work achieved by the team.
- bluesnowmonkey - 31000 sekunder sedanI found Htmx to be a great combo with agent driven development. It lets you end-to-end test the UI without a full headless browser by just examing the HTML, which means UI tests are cheap and fast, which means you can have tons of them. And coding agents are exactly as good as your test coverage. So with Htmx they're great.
- hmokiguess - 32386 sekunder sedanFor those wondering, here's how you can join me, the CEO of HTMX, as CEO of HTMX: https://htmx.ceo/
- fionic - 13870 sekunder sedanThe site is very broken on my iPhone safari. If I click an an anchor reference at the very top (“LLM” let’s say) and try to scroll down because it doesnt link me to the content, it keeps snapping me back to the top after a second.
- alkonaut - 26369 sekunder sedanAs the CEO of HTMX I find it disturbing that we have more CEO’s than users.
- praseodym - 49591 sekunder sedanIs it just a coincidence that the image for this release is the same as for Omarchy Quattro? https://youtu.be/F7fe9pa8OeE
- ryanisnan - 46726 sekunder sedanCongratulations 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.
- dajonker - 33082 sekunder sedanCheers! We've been running the various betas in production for a couple of months now. For our Rails app we replaced most of our Hotwired/Turbo with HTMX. For me at least, HTMX just makes more sense: you control the flow of content from the client, not from the server as you do with Turbo.
For pushing updates, we use ActionCable, but we do it in a different way from what we used to do with Turbo Streams: when a record is updated, instead of sending HTML from the server to the client with instructions on what to replace, we only send a small JSON payload with the ID of the element that was updated. On the client side, an event is dispatched that any DOM element with <hx-trigger="<resource-id>:updated from:body"> will trigger on. For the rest it's just basic HTMX, only the trigger is "custom".
- replwoacause - 46669 sekunder sedanI'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.
- avarun - 47306 sekunder sedanWhy did they skip version 3?
- kayson - 46605 sekunder sedanI'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?
- tdhz77 - 3230 sekunder sedanHtmx. And then what’s your mobile strat?
- tflinton - 18520 sekunder sedanI just discovered this and it’s exactly what I’ve been hoping for since 2016. I’m just sorry I’m JUST finding out about it.
- arjie - 48632 sekunder sedanGreat 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.
- cui - 36806 sekunder sedanIt seems this version is also adding hx-live. Anyone used it before? How does it compare against Alpine.js?
- hollowturtle - 35686 sekunder sedan"On this page" anchor navigation doesn't work for me :( Mobile Safari
- flossly - 44159 sekunder sedanI'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.
- jamesforestwest - 33387 sekunder sedanCool to see htmx alive and evolving. This update was long overdue. The change to attribute inheritance seems a bit debatable to me but maybe it'll actually make the code easier to understand
- orsenthil - 34290 sekunder sedanStrange. The picture of the jeep looks similar to the Omarchy Quatro Desktop wallpaper. Is there a connection? How come both look so similar?
- prologic - 33631 sekunder sedanHTMX Rocks!
- jorelfermin - 31548 sekunder sedanGreat to see progress continues and the CEOs continue to grow.
- alsanan - 27394 sekunder sedandisappointing: not a mention to "fixi" in any comment. Fixi is the reason htmx 4.0 has come. Fixi is extremately simple but extremately powerful at a time. http://fixiproject.org/
Better than htmx IMO.. Same author.
- nothrowaways - 32051 sekunder sedanThat's a great-looking Toyota. What model is it?
- StrangeSound - 48704 sekunder sedan> Note that attributes like hx-disinherit
Looks like some copy is missing here
- teknico - 31316 sekunder sedanCongrats. Relatedly, see also https://data-star.dev/
- - 48161 sekunder sedan
- philipwhiuk - 33995 sekunder sedanThe game page is pretty broken...
- cubefox - 42497 sekunder sedanThe anchor links in the "on this page section" don't work for me (Android Firefox/Chrome).
- metrofun - 21348 sekunder sedanF
- seabre - 33259 sekunder sedanCan we get a Mitsubishi Delica for the next announcement? Thanks.
- fatplexer - 23625 sekunder sedanE
- Foobarsrules - 23665 sekunder sedanE
- 93po - 32770 sekunder sedani'd avoid imo, i'm an intern that got fired from htmx and the ceo was a jerk
- sehw - 37729 sekunder sedan[dead]
Nördnytt! 🤓