Skip to content
Agents tracked: 440 Downloads (7d): 202M down 19.5% GitHub stars: 10.4M Releases (7d): 607 Agent status: all upSince last limit reset: Claude 28d · Codex 0d Updated Oct 21, 2026

XState

State machines and statecharts for JavaScript and TypeScript.

State and data fetching npm MIT

Used in agent projects
10
0.2% of 4,818 JS/TS repos built with AI coding agents; 22 counting our dependency samples
Gid Score
58 /100
#877 of 3,794 tools, #21 in state and data fetching · ranking
Rank in state and data fetching
#26 of 47
by use in those projects
Downloads
3M
npm, last 7 days, xstate
GitHub stars
30.3K
1,407 forks · last push Oct 19, 2026

How XState is used

XState is a dependency in 10 of the 6,208 public GitHub projects set up for AI coding agents that we scanned, too few to describe it from them alone. Our scan also samples projects by dependency (Solana 2,661, Ethereum and EVM 1,496, 3D and games 2,818, agent frameworks and SDKs 10,983); counting those, it appears in 22 projects, and what it is used with below comes from all of them. Projects that use it most often also use React (77.3%), TypeScript (100.0%), ESLint (81.8%).

XState popularity over time

Top tools by Gid Score

XState: downloads per weeknpm, xstate 3,016,152
XState: GitHub starsstatelyai/xstate 30,329

Gid Score 58: downloads 74, use in agent projects 29, GitHub stars 68, downloads trend 52 (each 0-100). How it is calculated.

Often used with XState

React77.3% of XState projects · 2.4× more than average
TypeScript100.0% of XState projects · 1.8× more than average
ESLint81.8% of XState projects · 2.2× more than average
Testing Library40.9% of XState projects · 4.0× more than average
Sonner36.4% of XState projects · 3.9× more than average
Tailwind Merge50.0% of XState projects · 2.7× more than average
dotenv45.5% of XState projects · 2.9× more than average
Vitest50.0% of XState projects · 2.4× more than average

From all 22 projects in our scan that use XState, including the dependency samples.

By coding agent

Claude Code0.2% of projects set up for it
GitHub Copilot0.2% of projects set up for it

Share of public repos configured for each agent that list XState as a dependency.

How XState is funded

Most funded tools

Open Collective: XState

Received, last 12 months$1,335 Oct 2025 – Sep 2026
Estimated annual budget$2,462 Open Collective's estimate
Balance$24,982
Raised since the start$40,068 · $15,086 paid out
Typical month median, last 12 months$115 · $86 over 24 months
Last 12 months vs the 12 before+27%
Contributors, last 12 months11

Top company backers all time, 15 companies in total

JetBrains$9,000 since Mar 2022
Frontend Masters$7,540 since Feb 2020
Meru Health$5,800 since Jan 2020
GatsbyJS$4,500 since Oct 2019
Webflow$4,250 since Nov 2018

Oct 2021Sep 2026

Money by month, last five years. First money received in Sep 2018. The typical month is the median: one big one-off donation does not move it.

USD after payment processor fees, as Open Collective reports it; fiscal host Open Source Collective. Source

GitHub Sponsors

@davidkpiano2 current sponsors

GitHub shows how many people and companies sponsor an account, not how much they pay. Sponsors of a person back all of their work.

Ways to fund XState

GitHub Sponsors Open Collective

As the maintainers list them in FUNDING.yml on GitHub. Checked Oct 20, 2026.

Install

Packagenpm install xstate
Main stacksTypeScript / JavaScript (13), Next.js (7), Python (1), React Native / Expo (1)
Example projectsremix-project-org/remix-project, sunflower-land/sunflower-land, bartstc/vite-ts-react-template, alkem-io/server, johnlindquist/script-generator

Alternatives to XState

All state and data fetching

In our scan, none of the most used tools in State and data fetching does the same job as XState: they are add-ons, companions or tools for a different task.

More in State and data fetching: TanStack Query Zustand RxJS Pinia SWR nuqs Immer React Redux

Is XState right for your project? Ask AgentGid →