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.

Read it as markdown

What they share and what sets them apart

statelyai

xstate

State machines, statecharts, and actors for complex logic

TypeScript30.4kRead on November 7, 2026, at commit 975ba72What is xstate built with?

Only in xstate

In common

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.

TypeScript50.5kRead on November 10, 2026, at commit 8f6da1eWhat is query built with?

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

SizeLines written by people and agents, without generated ones; code files, without tests.
xstate235,571 lines written522 code files
query254,466 lines written336 code files
Who writes itA commit counts as AI's when it carries its signature: a Co-Authored-By line, its author name or the merge of its branch.
xstate0.2% of its commits signed by AIWith Devin, Claude Code, and Cursor
query0.5% of its commits signed by AIWith Claude Code, CodeRabbit, Codex, and GitHub Copilot
ActivityFrom GitHub and its history, on the day SeeRepo read it.
xstateLast push November 7, 20265,990 commits30,421 stars
queryLast push November 9, 20265,949 commits50,546 stars
TestsThe files that test the code, and the share of code files a test imports.
xstate398 test files19.3% of its code files have a test that imports them
query413 test files49.1% of its code files have a test that imports them

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

Which has more GitHub stars, xstate or query?
query, with 50,546 stars; xstate has 30,421.

The proof: TanStack/query on GitHub

Which has more tests, xstate or query?
query, with 413 test files; xstate has 398.

The proof: TanStack/query's code at commit 8f6da1e

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

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

See inside your code, today.

Paste your repo and see it drawn, part by part: a medium one in under a minute.

Free, no account.

Or look inside SeeRepo's own →