Htmx

htmx
Developer(s)Carson Gross
Initial releaseNovember 24, 2020; 3 years ago (2020-11-24)[1]
Stable release
2.0.2[2] / August 12, 2024; 2 months ago (2024-08-12)
Repositorygithub.com/bigskysoftware/htmx
Written inJavaScript
LicenseBSD 0-clause[3]
Websitehtmx.org

htmx (also stylized as HTMX) is an open-source front-end JavaScript library that extends HTML with custom attributes that enable the use of AJAX directly in HTML and with a hypermedia-driven approach. These attributes allow for the dynamic definition of a web page directly in HTML and CSS, without the need for writing additional JavaScript. These attributes allows tasks that traditionally required writing JavaScript to be done completely with HTML. The library was created by Carson Gross as a new version of intercooler.js.

The library supports communication with the server using standard HTTP methods and simplifies inserting server responses (usually text or HTML fragments) into designated parts of the web page without having to redraw the entire page. This in turn allows for similar behavior to what can be achieved with reconciliation behavior in virtual DOMs.

  1. ^ "Release v1.0.0 - HTMX". GitHub.
  2. ^ "Releases - HTMX". GitHub.
  3. ^ "htmx/LICENSE". HTMX. Retrieved 2024-04-30 – via GitHub.