Hacker News new | ask | show | jobs
by nchmy 343 days ago
Htmx is just a js library that helps with Ajax. Astro runs on your server to largely do static site generation, and also has htmx-like capabilities.

I prefer htmx and, better yet, datastar as they're backend-agnostic.

1 comments

Why do you prefer datastar vs htmx? Afaik htmx tends to allow progressive enhancement without JS, while datastar requires JS to work.
Htmx IS JavaScript...

Datastar does everything htmx does and much more. And, iirc, is also smaller. Just explore their site, docs, essays etc

Oh okay. While Htmx-the-lib is JS, the standard practice is to make the site progressively enhanced by Htmx such that it still works without JS and improves accessibility for screen readers. While this could be possible with Datastar, I've read that it's generally more work to enable progressive enhancement, but maybe that's not a goal.
Again, datastar does everything htmx does out of the box, and far more.