Stimulus VS hotwire-rails

Compare Stimulus vs hotwire-rails and see what are their differences.

Stimulus

A modest JavaScript framework for the HTML you already have (by hotwired)
Our great sponsors
  • Nanos - Run Linux Software Faster and Safer than Linux with Unikernels
  • Scout APM - A developer's best friend. Try free for 14-days
  • SaaSHub - Software Alternatives and Reviews
Stimulus hotwire-rails
44 87
10,991 939
1.1% 7.8%
8.6 3.5
6 days ago 2 months ago
TypeScript Ruby
MIT License MIT License
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.

Stimulus

Posts with mentions or reviews of Stimulus. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2021-11-22.
  • Stimulus VS ovee - a user suggested alternative
    2 projects | 22 Nov 2021
  • Requesting early feedback on goliveview(a library to build reactive user interfaces using go, html/template & stimulusjs)
    4 projects | reddit.com/r/golang | 11 Nov 2021
    Low learning curve: For a Go user the only new thing to learn would be https://stimulus.hotwired.dev/
  • Customize Stimulus Attributes, Avoid Conflicts
    1 project | dev.to | 10 Nov 2021
    Stimulus is all about giving you front-end functionality with minimal JavaScript fuss and weight, but in certain cases, its data attributes can run into conflict with other libraries. I've recently made a pull request to add this to their docs, but for anyone else who's encountered this conflict, a little reconfiguration of the library's schema can keep your Stimulus implementation conflict-free.
  • Time Based Greeting With React And Bridgetown
    1 project | dev.to | 10 Nov 2021
    I really like how many of the new JavaScript frameworks encapusalate scripts into components for specific use-cases. Another awesome library that does this is StimulusJS, but let's finish up and put the rest of the pieces together.
  • Upgrade to Stimulus 3, say bye to IE11, and celebrate 🎉
    4 projects | dev.to | 19 Oct 2021
    Most of our application JavaScript code is already written as Stimulus controllers, the rest being slowly assimilated or removed. Recently, we wanted to upgrade the Stimulus framework to version 3 to gain access to the new cool features, such as:
    4 projects | dev.to | 19 Oct 2021
    To our surprise, we hit a weird and at first confusing error during the Stimulus upgrade process: Uncaught (in promise) TypeError: class constructors must be invoked with 'new'". No controllers worked at all. We double-, triple-checked the configs and all seemed OK. The solution clicked after we read this response on Stack Overflow. Our JS code was transpiled to ES5 but Stimulus itself now uses ES6 as the compile target. So our ES5 controllers could not extend ES6 Stimulus classes.
  • Lazy Load Content in Rails from Scratch
    1 project | dev.to | 17 Oct 2021
    We could just use vanilla JavaScript instead of Stimulus, but Stimulus pairs nicely with Rails and will make it easy to get up and running with this feature quickly.
  • Turbo Frames on Rails
    3 projects | dev.to | 9 Oct 2021
    These events (added in Turbo 7.0.0-rc2) fire each time a frame is loaded or reloaded. Developers can use these events to attach behavior to an element within a frame or animate the entry of a frame element, and they pair nicely with Stimulus.
  • Stimulus.js 3.0
    2 projects | news.ycombinator.com | 26 Sep 2021
    I wish they would change the default font on the Hotwire/Stimulus Reference pages from "Bitter" to something a bit darker, e.g., "Jost".

    https://stimulus.hotwired.dev/

  • We Got to LiveView
    19 projects | news.ycombinator.com | 22 Sep 2021

hotwire-rails

Posts with mentions or reviews of hotwire-rails. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2021-11-12.

What are some alternatives?

When comparing Stimulus and hotwire-rails you can also consider the following projects:

SvelteKit - The fastest way to build Svelte apps

Alpine.js - A rugged, minimal framework for composing JavaScript behavior in your markup.

stimulus_reflex - Build reactive applications with the Rails tooling you already know and love.

inertia-laravel - The Laravel adapter for Inertia.js.

phoenix_live_view - Rich, real-time user experiences with server-rendered HTML

turbo-rails - Use Turbo in your Ruby on Rails app

Svelte - Cybernetically enhanced web apps

htmx - </> htmx - high power tools for HTML

Phoenix - Peace of mind from prototype to production

turbo - The speed of a single-page web application without having to write any JavaScript

hotwire-django - Meta package to combine turbo-django and stimulus-django