Skip to content
JS
Package

xstate

Finite State Machines and Statecharts for the Modern Web.

v5.33.2, 15 Sept 2026MITESM + CommonJSTypes: BundledState management
$ npm install xstate

Key numbers

As of 25 Sept 2026
Weekly downloads
3.7m
+88% over 12 months
Gzip bundle size
-
No Bundlephobia data
Dependencies
0
Direct, from package.json
Last release
9 days ago
v5.33.2
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
02m4m6mSept 2025Mar 2026Sept 2026High 5.6m (25 Aug 2026)Low 1.4m (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.

3,664,457 downloads last week, 18,698,556 in the last month. The 12-month change of +88% compares the average of the last 4 weeks with the first 4 weeks of the series.

Releases, last 12 months
22198 in total
Latest version
5.33.2, 15 Sept 20269 days ago
First published
24 May 2017
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
1,526

Major versions

  1. v5 first release 5.0.0, 1 Dec 2023
  2. v4 first release 4.0.0, 29 Oct 2018
  3. v3 first release 3.0.0, 23 Dec 2017
  4. v2 first release 2.0.0, 22 Nov 2017
  5. v1 first release 1.0.0, 24 Aug 2017
  6. v0 first release 0.0.1, 24 May 2017

Recent releases

VersionPublished
5.33.215 Sept 2026
5.33.115 Sept 2026
5.33.012 Sept 2026
5.32.625 Aug 2026
5.32.514 Jul 2026
5.32.42 Jul 2026
5.32.31 Jul 2026
5.32.223 Jun 2026
5.32.112 Jun 2026
5.32.027 May 2026
5.31.110 May 2026
5.31.027 Apr 2026
5.30.028 Mar 2026
5.29.024 Mar 2026
Module format
ESM + CommonJSFrom package.json type, main and exports fields
TypeScript types
Bundled
Node.js engine range
Not declared
Runtimes
-
Unpacked size (npm)
2.2 MB
Dependencies (0)
None
npm install xstate

CDN

jsDelivr: 693k requests in 30 days
  • jsDelivrhttps://cdn.jsdelivr.net/npm/xstate@5.33.2/
  • unpkghttps://unpkg.com/xstate@5.33.2/
  • esm.shhttps://esm.sh/xstate@5.33.2
PackageWeekly downloadsGzipLast releaseModuleComparison
little-state-machine469.5k-1 year agoESM + CommonJS-
Sources: npm registry, npm downloads API, GitHub API, jsDelivr. Data fetched 25 Sept 2026.

Indexability: Indexed.