Aller au contenu principal
htmx logo

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

Tarification

Model
free
Offre Gratuite
BSD-2-Clause licensed, fully open source

Fonctionnalités

  • 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

Avantages

  • + Server-centric simplicity
  • + No JavaScript required
  • + Works with any backend
  • + 67% less code than React
  • + Progressive enhancement

Inconvénients

  • - Not for complex client state
  • - Backend does more work
  • - Limited offline support
  • - Different mental model

Idéal Pour

indie hacker hobbyist startup

Alternatives

hypermedia server-driven no-build progressive-enhancement ajax