HTMX

HTMX

HTMX is a lightweight JavaScript library that gives HTML superpowers for interactivity directly from the server - without writing custom JavaScript.

About HTMX

HTMX is a handy tool for making web pages more interactive using HTML attributes: send GET/POST requests, swap parts of the page, handle WebSockets, and more - all without writing client-side JavaScript.

It was built to make HTML "hypertext complete" and takes inspiration from intercooler.js but is standalone and jQuery‑free. It’s ideal when you want interactivity without pulling in heavy JS frameworks.

HTMX strikes a balance between clean server-rendered pages and full single-page apps. Keep your backend logic and HTML templates and update small fragments of the page dynamically. No large bundles, no complex client-side state management - just HTML fragments that update when needed.

HTMX is included as part of