HTMX
Definitions
A JavaScript library that extends HTML with attributes for making AJAX requests, handling WebSocket connections, and performing CSS transitions directly from markup. HTMX lets developers build dynamic, interactive web applications by adding attributes like hx-get, hx-post, and hx-swap to HTML elements, eliminating the need for a JavaScript framework for many common interactions. It champions the hypermedia-driven approach where the server returns HTML fragments rather than JSON, and the client swaps them into the page. HTMX became the mascot of the 'JavaScript fatigue' countermovement, proving that you can build sophisticated UIs with server-rendered HTML and minimal client-side code. Its creator, Carson Gross, wrote extensively about hypermedia as a legitimate alternative to SPA architectures.
In plain English: A tiny library that lets you build interactive websites by adding special attributes to your HTML instead of writing complex JavaScript. Your server sends back HTML snippets and HTMX swaps them into the page.
Example: We replaced our React search component with three lines of HTMX attributes. The server renders the results and HTMX swaps them in.