Source: https://seerepo.com/compare/statelyai/xstate/vs/storybookjs/storybook
Markdown source: https://seerepo.com/compare/statelyai/xstate/vs/storybookjs/storybook.md
Description: xstate and storybook share 6 technologies: React, Angular, Preact, Svelte, Vue, and Zod. Both are written in TypeScript.

# xstate vs storybook

xstate and storybook share 6 technologies: React, Angular, Preact, Svelte, Vue, and Zod. Both are written in TypeScript.

- [statelyai/xstate](https://seerepo.com/r/statelyai/xstate): State machines, statecharts, and actors for complex logic
- [storybookjs/storybook](https://seerepo.com/r/storybookjs/storybook): Storybook is the industry standard workshop for building, documenting, and testing UI components in isolation

## What they share and what sets them apart

- In common: React, Angular, Preact, Svelte, Vue, Zod
- Only in xstate: Solid, @angular/core, vue-demi, Ajv, saxes
- Only in storybook: Vite, react-router-dom, store2, polka, ember-source, Next.js, react-native, TanStack, Lit, srvx, @next/env, Radix UI, Storybook, tmcp, valibot, @standard-schema/spec, @tmcp/adapter-valibot, @neoconfetti/react, @react-aria/live-announcer, polished, emotion, react-aria, react-aria-components, @react-types/shared, react-stately, react-transition-state, @clack/prompts, downshift, react-helmet-async, react-joyride, @devtools-ds/object-inspector, react-inspector, react-syntax-highlighter, react-textarea-autosize, use-resize-observer, ansi-to-html, yaml, EJS, mdast-util-from-markdown, mdast-util-mdx, mdast-util-mdx-jsx, micromark-extension-mdxjs, qrcode.react, postcss-load-config, styled-jsx, probe-image-size, entities, prop-types

## Side by side

| | xstate | storybook |
|---|---|---|
| Size | 235,571 lines written, 522 code files | 744,893 lines written, 2,856 code files |
| Who writes it | 0.2% of its commits signed by AI. With Devin, Claude Code, and Cursor | 4.6% of its commits signed by AI. With Claude Code, Cursor, GitHub Copilot, CodeRabbit, Codex, and Amp |
| Activity | Last push November 7, 2026, 5,990 commits, 30,421 stars | Last push November 12, 2026, 63,921 commits, 91,542 stars |
| Tests | 398 test files. 19.3% of its code files have a test that imports them | 1,470 test files. 39% 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 storybook?

storybook, with 744,893 lines written; xstate has 235,571.

The proof: [storybookjs/storybook's code at commit 69b9e07](https://github.com/storybookjs/storybook/tree/69b9e07a0c3cb996c2a026dde1d2f5c4dcd55624)

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

storybook, with 91,542 stars; xstate has 30,421.

The proof: [storybookjs/storybook on GitHub](https://github.com/storybookjs/storybook)

### 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](https://github.com/storybookjs/storybook/tree/69b9e07a0c3cb996c2a026dde1d2f5c4dcd55624)

### 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](https://github.com/storybookjs/storybook/commits)

### 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](https://seerepo.com/r/storybookjs/storybook/ai)

## Sources

- statelyai/xstate: Read on November 7, 2026, at commit 975ba72 (https://github.com/statelyai/xstate/tree/975ba721932b5bc84f77c50a467ae6093e1392cf)
- storybookjs/storybook: Read on November 12, 2026, at commit 69b9e07 (https://github.com/storybookjs/storybook/tree/69b9e07a0c3cb996c2a026dde1d2f5c4dcd55624)

## 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.
