talira

Storybook

Build, test & document components

open sourceMITfreeMCP

Storybook is an open source (MIT) frontend workshop for building UI components and pages in isolation: you write stories that render each component in its states, browse them in a local web UI, and publish the result as living documentation for a design system. It tests the same stories as interaction tests with play functions (run through Vitest in a real browser, or the test runner), accessibility checks with axe, coverage and snapshots, and visual tests through Chromatic, the hosted service from the Storybook team. It supports React (16.8 and later), Vue, Angular, Svelte, Next.js, web components, plain HTML and server-rendered components with Vite or webpack 5, has an addon catalogue, and its MCP server (@storybook/addon-mcp) gives coding agents your components, props, stories and test results.

Ways to install

Problems it solves

  • develop a UI component on its own without clicking through the whole app to reach the state I need
  • document our design system's components with live examples and props tables for designers and developers
  • see every state of a component (loading, empty, error, long text) side by side before shipping
  • run interaction tests against the same component examples we use for documentation
  • catch accessibility problems like missing labels and poor contrast in each component automatically
  • catch unintended visual changes to components in pull requests
  • review UI changes with designers before they're merged, from a shared component catalogue
  • my coding agent keeps inventing new components instead of reusing ours; give it our component catalogue
  • a component workshop for an older React 16 app as well as our newer Vue and Angular projects
  • test React components in a real browser with Vitest instead of a simulated DOM
  • measure which component code our examples and tests actually exercise

Features

  • stories render components and pages in isolation in a local web UI
  • autogenerated docs pages with controls for props
  • interaction tests with play functions, run through the Vitest addon in browser mode or the test runner
  • accessibility tests with the a11y addon
  • visual tests with Chromatic, the Storybook team's cloud service
  • coverage reports and snapshot tests
  • frameworks: React, Vue 3, Angular, Svelte and SvelteKit, Next.js, Preact, Lit, React Native, Ember, Qwik, Solid, web components, HTML and a server renderer
  • builders: Vite 5+ and Webpack 5
  • React renderer supports React 16.8 and later
  • addon catalogue; most built-in features are addons
View 2 more
  • MCP server (@storybook/addon-mcp) that gives agents components, props, stories and test feedback
  • llms.txt for AI tools

Limitations

  • Doesn't support Webpack 4: Storybook needs Webpack 5 or Vite 5 or newer2
  • MCP server works only with React projects for now: it requires Storybook 10.3+ and React3

Capabilities

Has a command line toolplan not known
Has an MCP serverplan not known
Takes pluginsplan not known