@xstate/react 4.1.0
XState tools for React
@xstate/react@4.1.0 was published on 2024-02-12. Its manifest declares 2 runtime dependencies and 2 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.1.0 · Latest release
Package specifications
| Version | 4.1.0 |
|---|---|
| License declaration | MIT |
| Published | 2024-02-12T23:35:37.727Z |
| Node.js requirement | Not declared |
| Type declarations | Bundled declarations |
| Runtime dependency count | 2 |
| Peer requirement count | 2 |
| Optional dependency count | 0 |
| Minified size | Measurement not available yet |
| Minified + gzip | Measurement not available yet |
| Unpacked distribution size | 34.31 KiB |
| Published file count | 20 |
| 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.1.0
npm install @xstate/react@4.1.0 pnpm add @xstate/react@4.1.0 yarn add @xstate/react@4.1.0
Runtime dependencies
- use-sync-external-store ^1.0.0
- use-isomorphic-layout-effect ^1.1.2
Peer requirements
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.1.0 — retrieved 2026-10-29T17:56:48.104Z
- 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.1.0 — retrieved 2026-10-29T17:56:48.613Z
- https://api.deps.dev/v3/systems/npm/packages/%40xstate%2Freact/versions/4.1.0:dependencies — retrieved 2026-10-29T17:56:48.644Z