7 ms·
I also prefer Datastar but the new features coming in HTMX4 closes the gap more. Happy to see the ecosystem converging on good patterns.
by lazypenguin 2mo ago
I also prefer Datastar but the new features coming in HTMX4 closes the gap more. Happy to see the ecosystem converging on good patterns.
- nchmy 2mo agoBut the point is that Datastar only exists because htmx rejected all of those ideas. Now it's becoming a cheap, more complex, less powerful, heavier copy of Datastar. Just use the genuine article.
- yawaramin 2mo agoLast I checked Datastar doesn't support progressive enhancement. I like using <a href hx-boost=true> and <form method action hx-boost=true> so almost all my functionality works even without JavaScript. 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...
- nchmy 2mo agoIts not evident to me that that is really a concern when datastar is so small, and most of the js is written inline. Moreover, htmx can only do a fraction of what datastar does - you'd need to add on something like alpinejs to be able to try to fill the gaps. Both combined are much larger than datastar, and not nearly as integrated.
- yawaramin 2mo agoIt’s a concern because I use htmx for loading and updating resources and I want those operations to work as well as possible even without JavaScript. I’ve never felt the need for Alpine.js, I have very little I need to do with custom JS, and it’s trivial to maintain that by hand.
- lenkite 2mo agoI would just go all the way to using https://unpoly.com/ https://unpoly.com/ if I wanted the full-bang whiz.
- devnull3 2mo agoDatastar has evolved into a suite of tools [1]. If anything the gap has widened. Off-course these additional tools are not free [2]. [1] Rocket for WebComponents, Stellar for CSS [2] Nothing wrong in charging but $349 is a tad too expensive for me. I will happily pay if it was in double digits.