# MicheleBertoli/react-automata

A state machine abstraction for React

Repository: https://github.com/MicheleBertoli/react-automata
Canonical: https://ross.abutalabs.com/products/react-automata
Language: JavaScript
License: MIT
License Family: permissive
Topics: reactjs, statecharts, state-machine, xstate
Last push: 2019-01-23T15:44:06+00:00

## Health v2 (maintenance only)
Score: 32/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 0, release rhythm 35, longevity 100
- inputs: {"age_days": 3227, "days_push": 2779, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1331, forks 46 (observed 2026-08-28T04:04:24.246823+00:00)

## What it is
A React library providing a state machine abstraction built on xstate, offering declarative state management via a higher-order component and automatic test generation from statecharts. It lets components render based on machine states and actions.

## Use cases
- manage react component state with a state machine
- generate react tests automatically from a statechart
- use xstate statecharts declaratively in react components
- render ui conditionally based on state machine actions
- replace ad-hoc react state management with statecharts

## When to choose
- you want declarative, chart-driven state management in a React app
- you need automatic snapshot test generation from statecharts
- your team already uses xstate and wants React integration

## When to avoid
- you need an actively maintained library - it hasn't been released since 2019
- you're on modern React with hooks - use xstate/react instead
- you need a lightweight solution without statechart overhead

## Facets
- artifact type: library
- maturity: abandoned
- function: state-management, testing, ui-components
- domain: frontend, web-development, testing
- platform: browser
- tags: react, xstate, statecharts, state-machine, test-generation, higher-order-component, nodejs, web-server

## Member repositories
- MicheleBertoli/react-automata (main) score 32

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:04:24.246823+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-30T04:45:14.638272+00:00, confidence not recorded.
  - readme: https://github.com/MicheleBertoli/react-automata (fetched 2026-08-28T04:04:24.246823+00:00, sha 66924ca686c4)
  - registry_npm: https://registry.npmjs.org/react-automata (fetched 2026-08-29T12:04:33.096938+00:00, sha 36cae9a7be8b)
- Data as of 2026-08-30T08:39:29.467469+00:00.
