What problem does it solve?
Hotwire provides a way to build modern, reactive Rails frontends without relying on heavy JavaScript frameworks by delivering HTML over the wire and orchestrating client behavior with Turbo and Stimulus.
Core Features & Use Cases
- Turbo Drive accelerates navigation by fetching and replacing the body while preserving the head, enabling SPA-like speed without a full page reload.
- Turbo Frames decompose pages into independently updatable sections, reducing complexity and improving perceived performance.
- Turbo Streams deliver live partial updates via WebSocket, SSE, or HTTP to keep pages in sync with server state.
- Stimulus provides a lightweight JavaScript framework to sprinkle behavior on server-rendered HTML.
Use cases include real-time comments, dashboards, and progressive enhancement of Rails applications with minimal JS.
Quick Start
Install Rails 7+ and Hotwire, then scaffold a simple page to observe Turbo Drive, Turbo Frames, Turbo Streams, and Stimulus in action.