htmx gives you access to AJAX, CSS Transitions, WebSockets and Server Sent Events directly in HTML, using attributes, so you can build modern user interfaces with the simplicity and power of hypertext
I'm probably misunderstanding though, to research.
via https://edofic.com/posts/2022-01-28-low-js/, though I've seen it before
In recent years, a few mavericks and renegades have started to turn away from the world of JS frameworks and the inevitable bloated node_modules folders. But what if you want a smooth single-page app experience, rather than waiting for the whole page to render every time you click a button? Of course, nobody wants to write a load of boilerplate JS for every little interaction. This is where hypermedia in the form of htmx and hyperscript come in.
Following the REST notion of architectural constraints, two such constraints characterize the HDA (Hypermedia-Driven Architecture) architecture:
- An HDA uses declarative, HTML-embedded syntax rather than imperative scripting to achieve better front-end interactivity
- An HDA interacts with the server in terms of hypermedia (i.e. HTML) rather than a non-hypermedia format (e.g. JSON)
By adopting these two constraints, the HDA architecture stays within the original REST-ful architecture of the web in a way that the SPA architecture does not.
In particular, HDAs continue to use Hypermedia As The Engine of Application State (HATEOAS), whereas most SPAs abandon HATEOAS in favor of a client-side model and data (rather than hypermedia) APIs.
Essay on the proper use, application, and aesthetics of, HDA applications
Has useful code examples