Source: https://seerepo.com/compare/statelyai/xstate/vs/TanStack/query
Markdown source: https://seerepo.com/compare/statelyai/xstate/vs/TanStack/query.md
Description: xstate and query share 8 technologies: React, Solid, @angular/core, Angular, Preact, Svelte, Vue, and vue-demi. Both are written in TypeScript.

# xstate vs query

xstate and query share 8 technologies: React, Solid, @angular/core, Angular, Preact, Svelte, Vue, and vue-demi. Both are written in TypeScript.

- [statelyai/xstate](https://seerepo.com/r/statelyai/xstate): State machines, statecharts, and actors for complex logic
- [TanStack/query](https://seerepo.com/r/TanStack/query): 🤖 Powerful asynchronous state management, server-state utilities and data fetching for the web. TS/JS, React Query, Solid Query, Svelte Query and Vue Query.

## What they share and what sets them apart

- In common: React, Solid, @angular/core, Angular, Preact, Svelte, Vue, vue-demi
- Only in xstate: Zod, Ajv, saxes
- Only in query: Lit, @lit-labs/ssr, preact-render-to-string, @solid-primitives/storage, Next.js, goober, @kobalte/core, solid-primitives, @tanstack/solid-virtual, solid-transition-group, react-error-boundary

## Side by side

| | xstate | query |
|---|---|---|
| Size | 235,571 lines written, 522 code files | 254,466 lines written, 336 code files |
| Who writes it | 0.2% of its commits signed by AI. With Devin, Claude Code, and Cursor | 0.5% of its commits signed by AI. With Claude Code, CodeRabbit, Codex, and GitHub Copilot |
| Activity | Last push November 7, 2026, 5,990 commits, 30,421 stars | Last push November 9, 2026, 5,949 commits, 50,546 stars |
| Tests | 398 test files. 19.3% of its code files have a test that imports them | 413 test files. 49.1% of its code files have a test that imports them |

- Size: Lines written by people and agents, without generated ones; code files, without tests.
- Who writes it: A commit counts as AI's when it carries its signature: a Co-Authored-By line, its author name or the merge of its branch.
- Activity: From GitHub and its history, on the day SeeRepo read it.
- Tests: The files that test the code, and the share of code files a test imports.

## Frequently asked questions

### Which is bigger, xstate or query?

query, with 254,466 lines written; xstate has 235,571.

The proof: [TanStack/query's code at commit 8f6da1e](https://github.com/TanStack/query/tree/8f6da1e2a1b5e9afd774cd12bd3865df5c432984)

### Which has more GitHub stars, xstate or query?

query, with 50,546 stars; xstate has 30,421.

The proof: [TanStack/query on GitHub](https://github.com/TanStack/query)

### Which has more tests, xstate or query?

query, with 413 test files; xstate has 398.

The proof: [TanStack/query's code at commit 8f6da1e](https://github.com/TanStack/query/tree/8f6da1e2a1b5e9afd774cd12bd3865df5c432984)

### Which was updated more recently, xstate or query?

query: its last push was on November 9, 2026, and xstate's on November 7, 2026.

The proof: [TanStack/query's commits on GitHub](https://github.com/TanStack/query/commits)

### Which has more commits signed by AI, xstate or query?

query: an AI signed 0.5% of its commits, with Claude Code, CodeRabbit, Codex, and GitHub Copilot; in xstate, 0.2%.

The proof: [the commits each tool signed in TanStack/query](https://seerepo.com/r/TanStack/query/ai)

## Sources

- statelyai/xstate: Read on November 7, 2026, at commit 975ba72 (https://github.com/statelyai/xstate/tree/975ba721932b5bc84f77c50a467ae6093e1392cf)
- TanStack/query: Read on November 10, 2026, at commit 8f6da1e (https://github.com/TanStack/query/tree/8f6da1e2a1b5e9afd774cd12bd3865df5c432984)

## What is your repo built with?

Any public repo, with no account: https://seerepo.com/r/owner/repo/built, with the owner and name it has on GitHub.
