Skip to content
JS
Package

@xstate/react

XState tools for React

v6.1.0, 26 Feb 2026MITESM + CommonJSTypes: BundledState managementReact
$ npm install @xstate/react

Key numbers

As of 25 Sept 2026
Weekly downloads
2.2m
+90% over 12 months
Gzip bundle size
-
No Bundlephobia data
Dependencies
2
Direct, from package.json
Last release
6 months ago
v6.1.0
GitHub stars
30.2k
1.4k forks
Open issues / PRs
92 / 45
Contributors
-
Commits, last 52 weeks
146

Downloads

Last week 2026-09-15 to 2026-09-21
01m2m3m4mSept 2025Mar 2026Sept 2026High 3.3m (5 May 2026)Low 701.2k (23 Dec 2025)
Weekly npm downloads, one point per week, weeks starting 23 Sept 2025 to 15 Sept 2026. The y axis starts at zero.

2,179,568 downloads last week, 11,058,257 in the last month. The 12-month change of +90% compares the average of the last 4 weeks with the first 4 weeks of the series.

Releases, last 12 months
161 in total
Latest version
6.1.0, 26 Feb 20266 months ago
First published
20 Mar 2019
Last push to GitHub
25 Sept 2026same day as the snapshot
Repository archived
No
Open issues
92
Open pull requests
45
Commits, last 52 weeks
146
Dependents on npm
516

Major versions

  1. v6 first release 6.0.0, 19 Jun 2025
  2. v5 first release 5.0.0, 12 Nov 2024
  3. v4 first release 4.0.0, 1 Dec 2023
  4. v3 first release 3.0.0, 8 Apr 2022
  5. v2 first release 2.0.0, 27 Jan 2022
  6. v1 first release 1.0.0, 29 Sept 2020
  7. v0 first release 0.0.2, 20 Mar 2019

Recent releases

VersionPublished
6.1.026 Feb 2026
6.0.019 Jun 2025
5.0.531 May 2025
5.0.412 May 2025
5.0.310 Mar 2025
5.0.212 Jan 2025
5.0.124 Dec 2024
5.0.012 Nov 2024
4.1.321 Sept 2024
4.1.26 Sept 2024
4.1.117 Apr 2024
4.1.012 Feb 2024
4.0.323 Jan 2024
4.0.224 Dec 2023
Module format
ESM + CommonJSFrom package.json type, main and exports fields
TypeScript types
Bundled
Node.js engine range
Not declared
Runtimes
-
Unpacked size (npm)
37 kB
Dependencies (2)
use-sync-external-storeuse-isomorphic-layout-effect
Peer dependencies (2)
reactxstate
npm install @xstate/react
  • jsDelivrhttps://cdn.jsdelivr.net/npm/@xstate/react@6.1.0/
  • unpkghttps://unpkg.com/@xstate/react@6.1.0/
  • esm.shhttps://esm.sh/@xstate/react@6.1.0
PackageWeekly downloadsGzipLast releaseModuleComparison
little-state-machine469.5k-1 year agoESM + CommonJS-
easy-peasy34.8k-5 months agoESM + CommonJS-
constate217.5k-3 months agoESM only-
zustand40.1m-1 month agoESM + CommonJS-
jotai4.2m-16 days agoESM only-
react-hooks-global-state23.6k-3 years agoESM + CommonJS-
Sources: npm registry, npm downloads API, GitHub API. Data fetched 25 Sept 2026.

Indexability: Indexed.