What problem does it solve?
Hotwire simplifies building interactive, responsive Rails user interfaces by minimizing custom JavaScript and replacing full page reloads with server-driven updates, saving development time and reducing client-side complexity.
Core Features & Use Cases
- Turbo Drive: Faster navigation by converting link clicks and form submissions into AJAX-style partial updates.
- Turbo Frames: Scope navigation and form submission to independent page regions for modular UI components like modals and inline editors.
- Turbo Streams: Push real-time changes to multiple parts of the page using server broadcasts for feeds, notifications, and collaborative interfaces.
- Stimulus: Add targeted JavaScript behavior with small controllers for clipboard actions, autosave, toggles, and form enhancements.
- Use Case: Convert a classic Rails scaffold into a responsive interface with lazy-loaded frames, inline editing, and broadcasted updates for live lists.
Quick Start
Load the rails-hotwire skill and ask it to convert a standard Rails scaffold into Turbo Frames, Turbo Streams, and Stimulus controllers for an interactive UI.