Softwr
Stimulus logo

Stimulus

Small JavaScript framework that adds behaviour to existing server rendered HTML

As of 24 November 2026, Stimulus is free to use. Stimulus is an MIT licensed JavaScript framework from 37signals that attaches controllers to existing HTML through data attributes, part of Hotwire. Softwr lists it under Web Development. Stimulus is made by 37signals, launched in 1999, available on Web.

Overview

What is Stimulus?

Stimulus is a JavaScript framework for adding behaviour to HTML that a server has already rendered. It is described by its maintainers as a modest framework for the HTML you already have. Developers annotate elements with a data-controller attribute, and Stimulus finds the matching controller class, creates an instance and connects it to the element. Three further concepts complete the model: actions connect controller methods to DOM events through data-action attributes, targets locate important elements inside a controller, and values read, write and observe data attributes. State lives in the HTML rather than in a client side store. The project came out of Basecamp at 37signals, where it replaced a mix of jQuery, vanilla JavaScript and ad hoc object oriented code, and it is designed to be used alongside Turbo within the Hotwire family. It suits teams building server rendered applications, for example with Ruby on Rails, who want light interactivity without a single page application stack. It is free and released under the MIT licence, so there are no plans or fees. Stimulus does not render templates, manage routing or provide client side data fetching and state management, so applications that need a component based user interface, server side rendering of JavaScript components or heavy client state will need a different tool or additional libraries.

What people use it for

  • Adding small interactions to Rails views
  • Progressive enhancement of server rendered pages
  • Pairing with Turbo for fast page updates
  • Replacing scattered jQuery code
  • Form and widget behaviour on existing HTML

The honest half

Where does Stimulus fall short?

The limits buyers hit most with Stimulus: does not render templates, so HTML must come from the server or another tool; and no built in routing, data fetching or client side state management. Each is concrete and checkable: the half of a review a vendor will not write.

  • Does not render templates, so HTML must come from the server or another tool
  • No built in routing, data fetching or client side state management
  • Behaviour is tied to data attributes in markup, which some teams find harder to trace
  • Not a component framework, so large interactive interfaces need other libraries

Cross-shopped

What are the alternatives to Stimulus?

The closest alternatives to Stimulus are Alpine.js, HTMX and Vue.js. Each is a tool buyers genuinely weigh against it, with the reason why.

  • Stimulus vs Alpine.js

    Alpine.js: Declares behaviour inline in HTML with a small footprint, an alternative for light interactivity

  • Stimulus vs HTMX

    HTMX: Handles server driven updates through HTML attributes with little custom JavaScript

  • Stimulus vs Vue.js

    Vue.js: Component framework that can be added progressively to existing pages when more structure is needed

  • Stimulus vs Svelte

    Svelte: Compiler based component framework for interfaces that outgrow attribute driven controllers

  • Stimulus vs React

    React: Component library for client rendered interfaces and large interactive applications

Capabilities

What can Stimulus do?

Stimulus lists 7 features, including works with server rendered HTML, designed to pair with Turbo in Hotwire and MIT licensed open source.

  • Controllers attached through data-controller

  • Actions that bind DOM events to controller methods

  • Targets for locating elements inside a controller

  • Values that read, write and observe data attributes

  • Works with server rendered HTML

  • Designed to pair with Turbo in Hotwire

  • MIT licensed open source

Answered, with sources

Questions people ask

Each answer names the page it came from, so you can check it rather than take our word for it.

What is Stimulus used for?

Stimulus enhances HTML that already exists on the page by connecting JavaScript controllers to elements through data attributes. It does not generate the HTML itself.

Source
What are the core concepts in Stimulus?

Controllers are the main unit, and they are joined by actions, targets and values. Actions link events to methods, targets find elements and values store state in data attributes.

Source
What licence does Stimulus use?

The GitHub repository states that Stimulus is released under the MIT licence. It is free to use.

Source
Why was Stimulus created?

According to the project's origin page, Basecamp used a mix of jQuery, vanilla JavaScript and object oriented subsystems that were hard to reuse and learn. Stimulus condensed those patterns into a small, consistent framework.

Source

Behind it

Who makes Stimulus?

Stimulus is made by 37signals, founded in 1999 and based in Chicago, United States.

Company
37signals
Based in
Chicago, United States

Checked against

Sources

The pages the facts above were read from. Prices and limits change, so the vendor's own page is the final word.

Share

Keep looking

Where to go from Stimulus

Best Web Development software for

Compare Stimulus with

Other Web Development software

  • The Progressive JavaScript Framework

    Free plan12 researched notes
  • A JavaScript library for building user interfaces

    Free plan14 researched notes
  • Lightweight JavaScript framework for composing dynamic behavior in HTML

    Free plan12 researched notes
  • Lightweight JavaScript library enabling AJAX, WebSockets, and server-sent events in HTML

    Free plan10 researched notes
  • A love letter to web development

    Free plan10 researched notes
  • React component library implementing Material Design

    Free plan11 researched notes
  • 3kB alternative to React with the same modern API

    Open source11 researched notes
  • Reactive JavaScript framework with no virtual DOM

    Open source11 researched notes
  • The original CSS framework for responsive, mobile-first sites

    Open source10 researched notes
  • Lightweight library for building Web Components

    Free plan10 researched notes
  • Google's TypeScript framework for building web applications

    Free plan12 researched notes
  • Unstyled, accessible React component primitives

    Open source11 researched notes
  • The React framework for the web

    Free plan16 researched notes
  • Static site generator from Meta for documentation sites

    Open source13 researched notes
  • Drag-and-drop website builder with hosting, e-commerce and marketing bundled into one subscription

    Free, then $17/mo14 researched notes
  • The web framework for perfectionists with deadlines

    Free plan12 researched notes
  • Web framework for content-driven sites shipping minimal JavaScript by default

    Free plan12 researched notes
  • Open-source CMS for complex, structured content sites

    Open source8 researched notes

Softwr does not host reviews and shows no star rating for Stimulus, because a rating we did not collect is not ours to publish. What is here is the pricing and platform detail from the vendor’s own pages, limitations we could state concretely, and alternatives a reviewer confirmed people weigh against it. Tell us if any of it is wrong.

More on Stimulus

Best Web Development software alternatives

Free PHP web application framework and set of reusable PHP components

open-source

JavaScript static site generator that builds directories of templates into HTML

open-source

Open source JavaScript compiler that converts newer syntax to browser-compatible code

open-source

Open source JavaScript library for DOM traversal, events, animation and Ajax

open-source

Free open source PHP content management system for websites and applications

open-source

Open source Ruby static site generator that powers GitHub Pages

open-source

Open-source React framework for building websites and apps

open-source

Open-source application framework built on Svelte

open-source

Compare Stimulus with alternatives