Zum Hauptinhalt springen
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

Preise

Model
free
Kostenlose Stufe
BSD-2-Clause licensed, fully open source

Funktionen

  • 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

Vorteile

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

Nachteile

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

Am besten für

indie hacker hobbyist startup

Alternativen

hypermedia server-driven no-build progressive-enhancement ajax