htmx
High power tools for HTML
High power tools for HTML. Access AJAX, CSS Transitions, WebSockets, and Server Sent Events directly in HTML using attributes for modern UIs with the simplicity of hypertext.
40K
GitHub Stars
supported
TypeScript
easy
Learning Curve
4.7
DX Score
Pricing
Model
free
Free Tier
BSD-2-Clause licensed, fully open source
Features
- ✓ AJAX from any element
- ✓ Any HTTP method
- ✓ Partial page updates
- ✓ WebSocket support
- ✓ Server Sent Events
- ✓ CSS transitions
- ✓ No build step
- ✓ Dependency-free
- ✓ 16KB minified/gzipped
Pros
- + Server-centric simplicity
- + No JavaScript required
- + Works with any backend
- + 67% less code than React
- + Progressive enhancement
Cons
- - Not for complex client state
- - Backend does more work
- - Limited offline support
- - Different mental model
Best For
indie hacker hobbyist startup
Alternatives
hypermedia server-driven no-build progressive-enhancement ajax