@xstate/react 4.0.0-alpha.0
XState tools for React
@xstate/react@4.0.0-alpha.0 was published on 2022-05-26. Its manifest declares 2 runtime dependencies and 3 peer requirements. Type declarations are bundled according to the package metadata. No Node.js engine requirement is declared in this manifest.
All @xstate/react versions · Permanent reference to 4.0.0-alpha.0 · Latest release
Package specifications
| Version | 4.0.0-alpha.0 |
|---|---|
| License declaration | MIT |
| Published | 2022-05-26T13:23:05.362Z |
| Node.js requirement | Not declared |
| Type declarations | Bundled declarations |
| Runtime dependency count | 2 |
| Peer requirement count | 3 |
| Optional dependency count | 0 |
| Minified size | Measurement not available yet |
| Minified + gzip | Measurement not available yet |
| Unpacked distribution size | 73.24 KiB |
| Published file count | 27 |
| Package type | Not declared |
| ES module entry | dist/xstate-react.esm.js |
| Default entry | dist/xstate-react.cjs.js |
| Side effects declaration | false |
| Direct advisories | 0 |
| Resolved graph dependencies | 2 |
| Repository stars | 30366 |
| Repository forks | 1409 |
Install @xstate/react 4.0.0-alpha.0
npm install @xstate/react@4.0.0-alpha.0 pnpm add @xstate/react@4.0.0-alpha.0 yarn add @xstate/react@4.0.0-alpha.0
Runtime dependencies
- use-sync-external-store ^1.0.0
- use-isomorphic-layout-effect ^1.0.0
Peer requirements
- react ^16.8.0 || ^17.0.0 || ^18.0.0
- xstate ^5.0.0-alpha.0 (optional peer)
- @xstate/fsm ^2.0.0 (optional peer)
Optional dependencies
- None declared
Resolved dependency graph
This deps.dev graph describes a generic 64-bit Linux environment, not your application lockfile.
- use-isomorphic-layout-effect@1.2.1 — direct
- use-sync-external-store@1.7.0 — direct
How to interpret the specifications
Bundlephobia measurements use its standard package build and may exclude peer dependencies. Unpacked npm distribution size includes shipped files and is a different measurement. Module declarations do not prove tree-shaking or runtime compatibility.
Advisories apply to this package version directly; transitive dependencies need separate inspection. Repository signals describe the whole repository and are current observations, including on historical-version pages.
OpenSSF repository checks
Provider assessment: 2026-08-24T00:00:00Z. These are repository checks, not a jsL maintenance score.
| Dangerous-Workflow | 10/10 — no dangerous workflow patterns detected |
|---|---|
| Code-Review | 3/10 — Found 8/21 approved changesets -- score normalized to 3 |
| Maintained | 10/10 — 30 commit(s) and 6 issue activity found in the last 90 days -- score normalized to 10 |
| CII-Best-Practices | 0/10 — no effort to earn an OpenSSF best practices badge detected |
| Token-Permissions | 10/10 — GitHub workflow tokens follow principle of least privilege |
| Binary-Artifacts | 10/10 — no binaries found in the repo |
| Pinned-Dependencies | 4/10 — dependency not pinned by hash detected -- score normalized to 4 |
| License | 10/10 — license file detected |
| Fuzzing | 0/10 — project is not fuzzed |
| Security-Policy | 0/10 — security policy file not detected |
| SAST | 0/10 — SAST tool is not run on all commits -- score normalized to 0 |
Evidence and freshness
- https://registry.npmjs.org/%40xstate%2Freact/4.0.0-alpha.0 — retrieved 2026-10-29T19:02:11.587Z
- https://api.deps.dev/v3/projects/github.com%2Fstatelyai%2Fxstate — retrieved 2026-10-29T17:29:52.064Z
- https://api.deps.dev/v3/systems/npm/packages/%40xstate%2Freact/versions/4.0.0-alpha.0 — retrieved 2026-10-29T19:02:12.109Z
- https://api.deps.dev/v3/systems/npm/packages/%40xstate%2Freact/versions/4.0.0-alpha.0:dependencies — retrieved 2026-10-29T19:02:12.119Z