Gathering detailed insights and metrics for @stimulus/webpack-helpers
Gathering detailed insights and metrics for @stimulus/webpack-helpers
Gathering detailed insights and metrics for @stimulus/webpack-helpers
Gathering detailed insights and metrics for @stimulus/webpack-helpers
A modest JavaScript framework for the HTML you already have
npm install @stimulus/webpack-helpers
Module System
Min. Node Version
Typescript Support
Node Version
NPM Version
12,734 Stars
1,127 Commits
426 Forks
198 Watching
14 Branches
92 Contributors
Updated on 28 Nov 2024
TypeScript (98.03%)
JavaScript (1.97%)
Cumulative downloads
Total Downloads
Last day
-20.4%
8,425
Compared to previous day
Last week
-5.4%
48,868
Compared to previous week
Last month
3%
229,536
Compared to previous month
Last year
-35.3%
2,860,776
Compared to previous year
No dependencies detected.
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.
How does it work? Sprinkle your HTML with controller, target, and action attributes:
1<div data-controller="hello"> 2 <input data-hello-target="name" type="text"> 3 4 <button data-action="click->hello#greet">Greet</button> 5 6 <span data-hello-target="output"></span> 7</div>
Then write a compatible controller. Stimulus brings it to life automatically:
1// hello_controller.js 2import { Controller } from "@hotwired/stimulus" 3 4export default class extends Controller { 5 static targets = [ "name", "output" ] 6 7 greet() { 8 this.outputTarget.textContent = 9 `Hello, ${this.nameTarget.value}!` 10 } 11}
Stimulus continuously watches the page, kicking in as soon as attributes appear or disappear. It works with any update to the DOM, regardless of whether it comes from a full page load, a Turbo page change, or an Ajax request. Stimulus manages the whole lifecycle.
You can write your first controller in five minutes by following along in the Stimulus Handbook.
You can read more about why we created this new framework in The Origin of Stimulus.
You can use Stimulus with any asset packaging systems. And if you prefer no build step at all, just drop a <script>
tag on the page and get right down to business.
See the Installation Guide for detailed instructions.
Looking for the docs? Once you've read through the Handbook, consult the Stimulus Reference for API details.
Have a question about Stimulus? Connect with other Stimulus developers on the Hotwire Discourse community forum.
Find a bug? Head over to our issue tracker and we'll do our best to help. We love pull requests, too!
We expect all Stimulus contributors to abide by the terms of our Code of Conduct.
yarn install
yarn start
- to run the local dev server with examplesyarn test
- to run the unit testsyarn lint
- to run the linter with ESLintyarn format
- to format changes with PrettierStimulus is MIT-licensed open-source software from Basecamp, the creators of Ruby on Rails.
Continuous integration VMs generously provided by Sauce Labs.
© 2024 Basecamp, LLC.
No vulnerabilities found.
Reason
no dangerous workflow patterns detected
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
security policy file detected
Details
Reason
Found 12/17 approved changesets -- score normalized to 7
Reason
4 commit(s) and 3 issue activity found in the last 90 days -- score normalized to 5
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Reason
25 existing vulnerabilities detected
Details
Score
Last Scanned on 2024-11-18
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More