# stimulus-use/stimulus-use

A collection of composable behaviors for your Stimulus Controllers.

Repository: https://github.com/stimulus-use/stimulus-use
Canonical: https://ross.abutalabs.com/products/stimulus-use
Homepage: https://stimulus-use.dev
Language: TypeScript
License: MIT
License Family: permissive
Topics: stimulusjs, stimulus, stimulus-controller, hotwire, stimulus-use, turbo, typescript
Last push: 2026-08-12T04:01:10+00:00

## Health v2 (maintenance only)
Score: 84/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 97, release rhythm 58, longevity 100
- inputs: {"age_days": 2298, "days_push": 21, "days_rel": 64, "gap_med": 562, "n_releases_24m": 2}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1679, forks 71 (observed 2026-08-28T04:05:21.382294+00:00)

## What it is
A collection of composable mixin behaviors for Stimulus controllers in Hotwire/Rails apps. It adds standard lifecycle behaviors like intersection, resize, and click-outside observers via tree-shakeable ES6 modules with TypeScript types.

## Use cases
- run callbacks when an element appears or disappears in the viewport
- detect clicks outside an element to close dropdowns or modals
- react to element resizing in a Stimulus controller
- add reusable behaviors to Hotwire Turbo apps
- compose multiple observer behaviors into one Stimulus controller

## When to choose
- you use Stimulus or Hotwire and want standard controller behaviors without writing boilerplate
- you want small, tree-shakeable, typed mixins
- you need observer-based interactions like click-outside, intersection, or resize

## When to avoid
- your frontend does not use Stimulus or Hotwire
- you need a full component framework rather than controller mixins

## Facets
- artifact type: library
- maturity: active
- function: ui-components, middleware, developer-tools
- domain: frontend, web-development
- platform: browser, cross-platform
- tags: stimulus, hotwire, turbo, mixins, typescript, observers, composable-behaviors, nodejs

## Member repositories
- stimulus-use/stimulus-use (main) score 84

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:05:21.382294+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T03:41:32.041251+00:00, confidence not recorded.
  - readme: https://github.com/stimulus-use/stimulus-use (fetched 2026-08-28T04:05:21.382294+00:00, sha 1aa2ec2a5f0b)
  - homepage: https://stimulus-use.dev (fetched 2026-08-29T11:15:06.025454+00:00, sha 911d94deaa9d)
  - registry_npm: https://registry.npmjs.org/stimulus-use (fetched 2026-08-29T11:15:06.028283+00:00, sha fba6be2c4b24)
- Data as of 2026-08-30T08:39:29.467469+00:00.
