Ir para o conteúdo 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

Preços

Model
free
Plano Gratuito
BSD-2-Clause licensed, fully open source

Recursos

  • 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

Prós

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

Contras

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

Melhor Para

indie hacker hobbyist startup

Alternativas

hypermedia server-driven no-build progressive-enhancement ajax