htmx 4.0 ships fetch, streaming, hx-live
htmx 4.0.0 is now available after eight months of development, replacing XMLHttpRequest with fetch and adding morph swaps, streaming extensions, and the hx-live scripting layer. The release preserves htmx’s HTML-first model while introducing explicit inheritance and other migration-sensitive changes.
htmx 4 is a meaningful evolution of server-driven UI, but its biggest win is architectural cleanup rather than flashy new capability.
- –fetch-based internals make streaming, downloads, WebSockets, and multipart responses more coherent
- –Explicit attribute inheritance should reduce surprising DOM behavior, though it creates real upgrade work
- –Built-in morph swaps and hx-partial improve complex partial-page updates without requiring a SPA framework
- –hx-live gives htmx users a lightweight alternative for client-side reactivity alongside Alpine.js
- –npm keeps htmx 2.x as latest until 2027, reducing accidental upgrades for unpinned CDN users
DISCOVERED
58m ago
2026-08-30
PUBLISHED
58m ago
2026-08-30
RELEVANCE