htmx

A small library that adds AJAX, partial page swaps and server-sent events to plain HTML through attributes.

htmx lets any element issue HTTP requests and swap returned HTML fragments into the page using attributes like hx-get and hx-target. This hypermedia-driven approach keeps most logic on the server, so teams using Django, Rails, Go or Laravel can build dynamic UIs without a SPA framework. It is dependency-free and tiny.

Type
Library
Category
Web
Maintainer
Big Sky Software (Carson Gross)
First released
2020
License
Open source (0BSD)
Pricing
Open source
Level
Beginner
Technologies
htmx, html, javascript
GitHub stars
49,672
Weekly downloads
697,330 (npm)
Latest release
[object Object]
Last verified
26 Nov 2026

What htmx is used for

  • Adding interactivity to server-rendered apps
  • Admin tools and CRUD apps
  • Replacing small SPA front ends

Strengths

  • Very little JavaScript to write
  • Works with any back-end language
  • Simple mental model

Limitations

  • Less suited to offline or highly stateful client UIs
  • Fewer component libraries than SPA frameworks

htmx alternatives

How it relates to other tools

Built with the same technologies

Learn htmx

Official links

Sources

Explore