Storybook

The industry-standard workshop for building, documenting, and testing UI components in isolation, across every major frontend framework.

Tool
npm
v10.6.3
91,361 stars
MIT License

Repository Health

Pre-computed score based on development activity, maintenance, community, maturity, and trend momentum. How we score it →
95 /100 Excellent
Development Activity 100
Maintenance 96
Community 84
Maturity 60
Momentum 40

Technical Analysis

AI-assessed by reading the actual repository — architecture, code quality, innovation, and documentation. How we score it →
93 /100 Excellent
Architecture 92
Code Quality 92
Innovation 88
Learning Curve 100

Storybook is a frontend workshop that renders individual UI components and pages outside of your application, so teams can build, review, and iterate on components without wiring up routes, state, or backend data. Components are described as “stories” using the Component Story Format (CSF), a lightweight, statically-analyzable file format that the rest of the ecosystem — docs generation, visual testing, codemods — builds on top of.

The project is organized as a large monorepo: a shared core package handles the CLI, dev server, manager UI, and preview runtime, while dedicated renderers and frameworks packages plug in support for React, Vue 3, Angular, Svelte, Web Components, HTML, and Ember, and builders abstract over Vite and Webpack 5 so the same stories run under either bundler. An addon ecosystem (accessibility auditing, auto-generated docs, theming, Vitest-based component testing, and more) extends every renderer uniformly through a shared manager/preview messaging channel.

What You Get

  • A dev server and static builder (via the core CLI) that renders component stories in an isolated preview iframe alongside a navigable manager UI
  • Framework-specific renderer and framework packages so the same story format works across React, Vue 3, Angular, Svelte, Web Components, HTML, and Ember
  • Bundler-agnostic builders for Vite and Webpack 5, so a project can choose either without changing how stories are written
  • An addon ecosystem covering accessibility auditing (a11y), auto-generated documentation (docs), inter-story navigation (links), theme switching (themes), and Vitest-based component testing (addon-vitest)
  • A typed, categorized error hierarchy (StorybookError) and opt-out anonymized telemetry baked into the core packages

Common Use Cases

  • Design system teams rendering every component variant and state in isolation for review, without needing the full app running
  • Frontend engineers running existing stories as automated interaction, accessibility, and visual regression tests in CI via addon-vitest
  • Cross-framework teams sharing one CSF story format across a React app and a Vue app, each using the matching renderer package
  • Technical writers and component authors auto-generating prop tables and usage docs from TypeScript types via the docs addon

Under The Hood

Architecture

Storybook is organized as a large monorepo (yarn workspaces + Nx) with a clear plugin architecture: code/core owns the CLI entry point (src/bin/dispatcher.ts), the dev/build orchestration (core-server), the manager UI shell (manager, manager-api), and the isolated preview runtime (preview, preview-api), all bridged by a postMessage-based channels layer so the manager UI and the sandboxed preview iframe never share a JS context directly. Framework support is added through separate renderers/* and frameworks/* packages, bundler support through builders/* (Vite, Webpack 5), and functionality through addons/*, all of which plug into the same channel protocol and CSF story format — meaning a change to that shared protocol or format ripples through every renderer and addon at once.

Tech Stack

Written in TypeScript with strict mode enabled across the workspace, built and orchestrated via Nx and yarn workspaces, linted and formatted with the Rust-based oxlint/oxfmt toolchain, and tested with Vitest across per-package project configs plus Playwright for end-to-end sandbox scenarios. It ships dedicated integration packages for every major frontend framework and for both leading JS bundlers, and publishes as a large family of scoped npm packages rather than a single artifact.

Code Quality

The repository contains an extensive unit test suite (hundreds of .test.ts/.test.tsx files) organized per-package and run through Vitest’s workspace-project feature, backed by CircleCI with Codecov coverage reporting and Husky/lint-staged pre-commit checks. Errors are modeled through an abstract, typed StorybookError base class with category and numeric codes rather than thrown as bare Error objects, giving consumers structured, documented failure modes instead of opaque stack traces.

What Makes It Unique

CSF (Component Story Format) gives the ecosystem a standardized, statically-analyzable way to describe a component’s states, which downstream tooling (visual regression services, codemods, the docs addon) can parse without executing the component. The addon-vitest integration extends this further, turning existing stories directly into Vitest component tests — interaction, accessibility, and visual coverage reuse the same stories a team already writes for development, rather than requiring a parallel, hand-maintained test suite.

Used by 417 apps in this directory

TypeScript
72%
AGPL 3.0

APITable

Databases · Low Code Platforms

15,647

API-first collaborative spreadsheet-database platform that auto-generates REST APIs and lets teams build internal tools, CRMs, and dashboards without code.

View details
68
Repo Health
77
Technical
60
Dependency
Built with
TypeScript 72%
Java 22%
Updated 1 months ago
TypeScript
96%
Other

Amplication

AI Code Assistants · Automation · Developer Tools

16,009

Create production-ready backend services with your organization's standards baked in — generating NestJS, Prisma, and GraphQL code that you own and control.

View details
57
Repo Health
84
Technical
60
Dependency
Built with
TypeScript 96%
Updated 4 months ago
TypeScript
96%
Other

Amplication

AI Code Assistants · Automation · Developer Tools

16,009

Create production-ready backend services with your organization's standards baked in — generating NestJS, Prisma, and GraphQL code that you own and control.

View details
57
Repo Health
84
Technical
60
Dependency
Built with
TypeScript 96%
Updated 4 months ago
TypeScript
96%
Other

Amplication

AI Code Assistants · Automation · Developer Tools

16,009

Create production-ready backend services with your organization's standards baked in — generating NestJS, Prisma, and GraphQL code that you own and control.

View details
57
Repo Health
84
Technical
60
Dependency
Built with
TypeScript 96%
Updated 4 months ago
TypeScript
90%
Other

anytype-ts

Collaboration · Knowledge Management · Note Taking

8,981

A local-first, end-to-end encrypted knowledge OS that lets you build notes, tasks, wikis, and entire apps — with your data stored offline and synced peer-to-peer.

View details
89
Repo Health
78
Technical
67
Dependency
Built with
TypeScript 90%
Updated 6 days ago
TypeScript
90%
Other

anytype-ts

Collaboration · Knowledge Management · Note Taking

8,981

A local-first, end-to-end encrypted knowledge OS that lets you build notes, tasks, wikis, and entire apps — with your data stored offline and synced peer-to-peer.

View details
89
Repo Health
78
Technical
67
Dependency
Built with
TypeScript 90%
Updated 6 days ago
TypeScript
90%
Other

anytype-ts

Collaboration · Knowledge Management · Note Taking

8,981

A local-first, end-to-end encrypted knowledge OS that lets you build notes, tasks, wikis, and entire apps — with your data stored offline and synced peer-to-peer.

View details
89
Repo Health
78
Technical
67
Dependency
Built with
TypeScript 90%
Updated 6 days ago
TypeScript
68%
Apache 2.0

Appsmith

Automation · Developer Tools · No Code Platforms

41,113

Open-source low-code platform to build admin panels, dashboards, and internal tools connected to any database or API.

View details
94
Repo Health
79
Technical
63
Dependency
Built with
TypeScript 68%
Java 22%
Updated 6 days ago
TypeScript
68%
Apache 2.0

Appsmith

Automation · Developer Tools · No Code Platforms

41,113

Open-source low-code platform to build admin panels, dashboards, and internal tools connected to any database or API.

View details
94
Repo Health
79
Technical
63
Dependency
Built with
TypeScript 68%
Java 22%
Updated 6 days ago

Join founders buildingwith open source

Opinionated takes, migration guides, cost-saving tips, and insights from the open source ecosystem.

Subscribe on Substack
Join 750+ subscribers