| CARVIEW |
Select Language
HTTP/2 200
server: GitHub.com
content-type: text/html; charset=utf-8
last-modified: Tue, 29 Apr 2025 09:19:01 GMT
access-control-allow-origin: *
etag: W/"68109985-4f6a"
expires: Fri, 26 Dec 2025 23:33:46 GMT
cache-control: max-age=600
content-encoding: gzip
x-proxy-cache: MISS
x-github-request-id: 6908:318CF6:5BC318:668C42:694F1901
accept-ranges: bytes
age: 0
date: Fri, 26 Dec 2025 23:23:46 GMT
via: 1.1 varnish
x-served-by: cache-bom-vanm7210045-BOM
x-cache: MISS
x-cache-hits: 0
x-timer: S1766791426.263725,VS0,VE203
vary: Accept-Encoding
x-fastly-request-id: 1fa5d9dbecb6c1cfbeda73880ff6024735057b20
content-length: 6497
Stimulus: A modest JavaScript framework for the HTML you already have.
Skip to content
A modest JavaScript framework for the HTML you already have.
Sprinkle your HTML with controller, target, and action attributes:
<!--HTML from anywhere-->
<div data-controller="hello">
<input data-hello-target="name" type="text">
<button data-action="click->hello#greet">
Greet
</button>
<span data-hello-target="output">
</span>
</div>
Write a compatible controller and watch Stimulus bring it to life:
// hello_controller.js
import { Controller } from "stimulus"
export default class extends Controller {
static targets = [ "name", "output" ]
greet() {
this.outputTarget.textContent =
`Hello, ${this.nameTarget.value}!`
}
}
Current version: 3.2.2 — released August 7th 2023
Stimulus is a JavaScript framework with modest ambitions. It doesn’t seek to take over your entire front-end—in fact, it’s not concerned with rendering HTML at all. Instead, it’s designed to augment your HTML with just enough behavior to make it shine. Stimulus pairs beautifully with Turbo to provide a complete solution for fast, compelling applications with a minimal amount of effort.