# stimulusreflex/stimulus_reflex

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

Repository: https://github.com/stimulusreflex/stimulus_reflex
Canonical: https://ross.abutalabs.com/products/stimulus_reflex
Homepage: https://docs.stimulusreflex.com
Language: Ruby
License: MIT
License Family: permissive
Topics: stimulus, reactive, server-side-rendering, ruby-on-rails, actioncable, rails, stimulusreflex, cableready, ruby, websocket, hacktoberfest, hotwire, turbo, turbolinks
Last push: 2026-08-11T05:16:37+00:00

## Health v2 (maintenance only)
Score: 86/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 97, release rhythm 63, longevity 100
- inputs: {"age_days": 2880, "days_push": 22, "days_rel": 36, "gap_med": 295.0, "n_releases_24m": 3}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 2334, forks 172 (observed 2026-08-28T04:06:37.956900+00:00)

## What it is
StimulusReflex is a Ruby gem and JavaScript client that lets Rails developers build reactive, real-time applications by rendering HTML on the server and delivering updates over WebSockets via ActionCable. It extends Stimulus controllers with reflexes that re-render ERB templates and morph the DOM, avoiding the need for a separate frontend framework.

## Use cases
- build reactive real-time UIs in Rails without a JavaScript SPA framework
- update page content live over websockets from server-side Ruby
- add interactivity to server-rendered Rails apps with Stimulus
- replace React/Vue with server-rendered HTML updates in a Rails monolith
- stream DOM morphs to clients using ActionCable and CableReady

## When to choose
- you have a Rails app with ERB templates and want reactive UI without a full frontend stack
- your team is Ruby-focused and wants real-time features with familiar tooling
- you want fast server-rendered HTML updates over websockets

## When to avoid
- you need a rich client-side state model or offline-first SPA behavior
- your stack is not Ruby on Rails
- you prefer JSON APIs with a dedicated frontend framework

## Facets
- artifact type: library
- maturity: active
- function: ssr, websocket, frontend-framework, state-management, templating
- domain: web-development, frontend, backend
- platform: ruby
- tags: ruby-on-rails, stimulus, actioncable, hotwire, reactive-ui, server-rendered-html, cable-ready, real-time, nodejs, web-server

## Member repositories
- stimulusreflex/stimulus_reflex (main) score 86

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:06:37.956900+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-30T02:37:47.162064+00:00, confidence not recorded.
  - readme: https://github.com/stimulusreflex/stimulus_reflex (fetched 2026-08-28T04:06:37.956900+00:00, sha 7e77de5f0d34)
  - homepage: https://docs.stimulusreflex.com (fetched 2026-08-29T10:18:14.256268+00:00, sha d18b10bce122)
- Data as of 2026-08-30T08:39:29.467469+00:00.
