Hacker News new | past | comments | ask | show | jobs | submit login

I don't love the idea of implementing common app state logic via attributes. It probably works a lot better than I'm assuming, but it feels hacky to me. Like it can't solve every problem you'd actually encounter when making a complex app, so eventually you'll need to fall back to using javascript, and possibly a framework or three...on top of htmx.

But it does seem like this would be fun to play around with using PHP as your backend. No more JSON, or GraphQL, or bloated frameworks, just intermixed code and markup in the same PHP file...just like the good ol' days! For the situations where it does work, this could simplify the architecture of an app significantly.

Also, 10/10 meme page.

EDIT: are there any large and complex projects using this that are publicly accessible?




I'm using htmx for my SaaS web app. It has a lot of spreadsheets. User can filter, sort, highlight with color, etc. It's for PPC managers, they work a lot with spreadsheets. So I'm making a specialized version of that. First two weeks was tough, but after I adapted and found htmx idiomatic recipes to common tasks, it is crazy productive. I can show, if you are curious hit me at twitter @alexblearns.

PS. I just believe people have to try it, because it's so much easier to do web apps this way.


Sounds like you should be writing some blog posts about writing complex applications with this stuff


I recorded a short video about it here https://youtu.be/JE3zQpEAaxk


I've used HTMX on several projects (Django) and it's truly a great add in. You can basically build a "React" style app with Django. I can't praise it enough.


htmx uses the original state model of the web, Hypermedia As The Engine Of Application State (HATEOAS):

https://htmx.org/essays/hateoas/

it really tries to focus on extending HTML & the original model of the web, rather than replacing it w/something else

good for some stuff, not good for other stuff

i like using events when I need to tie things together with some scripting:

https://htmx.org/essays/hypermedia-friendly-scripting/


For something between static html pages (good for information websites no need for HTMX) and SPA (good for complex SaaS services outgrown HTMX).


I screwed around for hours trying to get my first JS fetch code implemented recently.

I found HTMX a few months after, and had it doing AJAX in probably 10 minutes. It has been unbelievably easy to use and helpful.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: