xstate vs storybook

xstate and storybook share 6 technologies: React, Angular, Preact, Svelte, Vue, and Zod. 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

storybookjs

storybook

Storybook is the industry standard workshop for building, documenting, and testing UI components in isolation

TypeScript91.5kRead on November 12, 2026, at commit 69b9e07What is storybook built with?

Only in storybook

Side by side

SizeLines written by people and agents, without generated ones; code files, without tests.
xstate235,571 lines written522 code files
storybook744,893 lines written2,856 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
storybook4.6% of its commits signed by AIWith Claude Code, Cursor, GitHub Copilot, CodeRabbit, Codex, and Amp
ActivityFrom GitHub and its history, on the day SeeRepo read it.
xstateLast push November 7, 20265,990 commits30,421 stars
storybookLast push November 12, 202663,921 commits91,542 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
storybook1,470 test files39% of its code files have a test that imports them

Frequently asked questions

Which is bigger, xstate or storybook?
storybook, with 744,893 lines written; xstate has 235,571.

The proof: storybookjs/storybook's code at commit 69b9e07

Which has more GitHub stars, xstate or storybook?
storybook, with 91,542 stars; xstate has 30,421.

The proof: storybookjs/storybook on GitHub

Which has more tests, xstate or storybook?
storybook, with 1,470 test files; xstate has 398.

The proof: storybookjs/storybook's code at commit 69b9e07

Which was updated more recently, xstate or storybook?
storybook: its last push was on November 12, 2026, and xstate's on November 7, 2026.

The proof: storybookjs/storybook's commits on GitHub

Which has more commits signed by AI, xstate or storybook?
storybook: an AI signed 4.6% of its commits, with Claude Code, Cursor, GitHub Copilot, CodeRabbit, Codex, and Amp; in xstate, 0.2%.

The proof: the commits each tool signed in storybookjs/storybook

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 →