4 ms·
Htmx: High Power Tools for HTML
- colecut 10mo agoA Hacker News search for "htmx" returns 5,194,298 results
- oneeyedpigeon 10mo agoThat's gone up by 9,561 results since your comment!
- rfmc 10mo agoDid you actually used the double quotes to search? Because that narrows down to 570 on my end. The search is including HTML on the result count.
- hliyan 10mo agoHTMX seems mature enough for prime time, but for some reason, not yet popular enough that a subset of HN users seem to discover it anew 1-2 times each year: https://hn.algolia.com/?q=htmx https://hn.algolia.com/?q=htmx
- b40d-48b2-979e 10mo agoI think it's less "discovered" and people finally try it out? I know at my job, it's basically mandated you're using React (and this has been my experience since ~2018 in a few different companies), so why would you spend your time with a tool you never get to use?
- moebrowne 10mo agoPerhaps people seeing the "Please just try HTMX" post a couple of weeks ago: https://news.ycombinator.com/item?id=46312973 https://news.ycombinator.com/item?id=46312973
- iammrpayments 10mo agoUnfortunately using React will always be more attractive if you want be paid to work to someone.
- thm 10mo agoEternal HTMX September.
- sixhobbits 10mo agoI tried HTMx a while ago and felt like I hit a limit pretty quickly where things were getting buggy and it was hard to track down why. Now I'm building a linear.app replacement with Claude and Codex working on Django + HTMx + Alpine.js and its going great. Feels a lot more 'snappy' than the default UIs they build with React and so far they've been able to fix every bug and implement some pretty complex drag-drop stuff and other UI niceness that seems pretty stable. Still have to see if it collapses in a pile of slop at some point / size or if this is how to build software now.
- foobarbecue 10mo agoWhat does "linear" mean in this context?
- sixhobbits 10mo agolinear.app - popular kanban / pm software [edited original to be less ambiguous]
- foobarbecue 10mo agothanks
- PedroBatista 10mo agoAs CEO of Htmx, I would like to express my gratitude for your ongoing support as we continue our journey of strategic execution and operational excellence. I remain steadfast in my commitment to delivering incremental yet impactful value to our stakeholders, optimizing synergies where possible, and increasing market share in a manner that will look excellent in future investor updates. Can't wait for all the profound and fulfilling work ahead of us in 2026! Go team!
- CodeCompost 10mo agoWhat's holding me back from trying out HTMX is that people seem to be hitting roadblocks with it when it comes to larger or more complex codebases. Is HTMX suitable for larger enterprise applications? Or is it, as some people have suggested - perhaps cynically - a simple lightweight replacement of jQuery?
- yashasolutions 10mo agoI have seen people rewrite entire application from React to htmx. It works. But the architecture required is a tad different. Also you need Alpine as a complementary library for the reactive parts. (I mean you could do a lot just with htmx but I find Alpine more convenient in many places when I need to work with json - since I don't control all backend and json isn't really a first class citizen of htmx)
- jazzypants 10mo agoSo, instead of using one JavaScript library with an entire ecosystem of tools that work together, you use two separate uncoordinated JavaScript libraries? Why do you think that's better?
- cies 10mo ago> instead of using one JavaScript library One never uses just one JS lib :) The JS ecosystem always comes with lost of tools, and libs, and bells, and whistles. I like Elm for this reason. Less choices. Zero runtime errors (I know it is possible in contrived examples, but I've seen and many teams have said the promise holds true after many years of using in production).
- prokopton 10mo agoIf I had a nickel for every time Htmx popped up on HN…
- onionisafruit 10mo agoyou would have over $25k according to another thread here
- forgotpwd16 10mo agoSeems bumped it ~1e3 times up. 570 threads = 570 nickels ~= $29. Even if consider mentioning comments alongside threads it's ~= 8k nickels = $400.
- onionisafruit 10mo agoYou’re now the leading candidate to be OP’s nickel accountant
- JodieBenitez 10mo agoand another one for Rust, or React, or...
- deleted 10mo ago[deleted]
- recursivedoubts 10mo agofrom your fingers to God's ear...
- jadbox 10mo agoMy main headache is how LLMs are having a hard time with using HtmX as v1, v2, and v4 alpha are all different enough to make debugging hard.
- bramhaag 10mo agoOne could of course write and debug the code themselves
- superkuh 10mo agoHtmx is not for HTML. Htmx is for javascript. Htmx without javascript is nothing.
- forgotpwd16 10mo agoIt's for HTML in sense that your interaction with htmx is through HTML attributes. It's JS-powered but that is of no concern to your usage.
- kylecazar 10mo ago...htmx is javascript that allows you to use less javascript.
- superkuh 10mo agoSure. There's that. But it doesn't progressively enhance. It doesn't even fail gracefully. It's just... nothing without JS. That's bad accessibility. For for-profit and institutional use cases that's fine. But if you're a human person and want to make a website that all human persons around the world can read, it's a bad fit.
- yawaramin 10mo agoThat's incorrect. Htmx actually works really well with progressive enhancement, thanks to hx-boost. See https://dev.to/yawaramin/why-hx-boost-is-actually-the-most-important-feature-of-htmx-3nc0 https://dev.to/yawaramin/why-hx-boost-is-actually-the-most-i... If you stick to GET and POST requests, you can ensure your app works almost exactly the same with or without JavaScript.
- superkuh 10mo agoThanks for pointing out a mitigation. I'm confused though. How does "htmx sends a request header HX-Request: true with every request." happen without javascript? And does this imply you need a backend server that understands whatever this header is for the graceful fallback? Ie, it wouldn't work with just nginx...
- recursivedoubts 10mo agoHello all again, not sure why htmx is on HN right now, but happy to answer questions. You might be interested in our essays on hypermedia: https://htmx.org/essays https://htmx.org/essays or our book (free to read online): https://hypermedia.systems https://hypermedia.systems Also we are working on a version 4 for release later this year: https://four.htmx.org https://four.htmx.org
- sgt 10mo agoI've used htmx on several projects in the last 3-4 years and it's a success story. The only issue I've had is when onboarding other developers who don't understand the htmx mindset or wanting to strive for simplicity.
- recursivedoubts 10mo agodefinitely a different approach & mindset, with its own tradeoffs & feel i think we've done a decent job of getting it back into the zeitgeist though, so hopefully increasingly easy for people to at least consider nowadays
- sgt 10mo agoThanks, it's a brilliant little library. What can you tell us about version 4? I looked at the page but it's not completely clear to me.
- recursivedoubts 10mo agoThis post outlines what's going on (although it's a little out of date): https://htmx.org/essays/the-fetchening/ https://htmx.org/essays/the-fetchening/ Basically the core API will remain nearly identical, but we're moving the internals to fetch() which will allow us to support streaming responses, take advantage of the async infrastructure in JS to simplify things, etc. Hopefully most htmx users won't notice much different when they upgrade.
- librasteve 10mo agoI made a website in HTMX (https://raku.org https://raku.org) to celebrate that I can use my preferred language on the server side. It’s no frills, generally static and HTMX is just to goose up some of the UX dynamism. It was a very nice experience and I recommend https://htmx.org/examples https://htmx.org/examples for the kind of cool things you can do. otoh, I would not build Google Maps with this tool :-)
- recursivedoubts 10mo agohell yes
- sgt 10mo agoAnd most users will have no idea. They just know that it's a super clean, easy to read page that conveys the message you have about Raku. Yet the biggest benefit is for you; in 3 months or 3 years you'll return to this web site and make some changes, and you'll instantly know what's up. No super complex React / TypeScript / Node app that won't even build.
- the_mitsuhiko 10mo agoI would probably not build an actual app with HTMX but I found it to be excellent for just making a completely static page feel more dynamic. I'm using it on my two blogs and it makes the whole experience feel much snappier and allows me to carry through an animation from page to page. The amount of custom stuff I needed to add was minimal (just mostly ensuring that if network is gone, it falls back to native navigation to error out). Examples: https://lucumr.pocoo.org/ https://lucumr.pocoo.org/ and https://dark.ronacher.eu/ https://dark.ronacher.eu/ I also found Claude to be excellent at understanding HTMX so that definitely helps.
- ecshafer 10mo agoI just cant say enough how much I love HTMX. I got my feet wet doing hotwire/turbo in rails, and htmx is really just such a wonderful expansion of thise ideas. Making reactive app experiences on the web with a tiny js bundle and just writing html feels how web programming should be. I am writing a UI with Spring Boot + Thymleaf + HTMX and Alpine JS, and its the smoothest java based web dev experience ive had in so long. I can look at a page I write in HTMX, and I KNOW if I wrote that in react or angular or vue it would be 50x more complex.
- MajidAliSyncOps 10mo agoI’ve had a similar experience. HTMX really shifts the complexity back to the server in a way that feels more honest and easier to reason about. For many apps, especially CRUD-style or internal tools, it removes a lot of accidental complexity without giving up interactivity. The trade-off seems worth it unless you truly need a highly stateful client.
- ChrisArchitect 10mo agoRelated just a few weeks ago: Please just try HTMX https://news.ycombinator.com/item?id=46312973 https://news.ycombinator.com/item?id=46312973
- dvorak007 10mo agoI have nothing but good things to say about htmx, both at work and on several personal projects. It really does boost productivity!