Coming from Storybook
Import
Your design system's source of truth: every component and variant catalogued as a design_component node in the product graph.
The structural finding
Storybook is a complete, machine-readable catalog of every UI component an engineering team has built. Its UPG story is entirely in the design system region: Components map to `design_component`, Stories (documented variants) also map to `design_component` with a parent reference, and Docs pages map to `document`. The key enrichment: `design_component_implements_feature` connects the design system catalog to the product features it delivers, making "which components implement this feature?" a one-line graph query.
What UPG adds
Design system inventory: a complete, queryable catalog of every component. ("which components implement feature X?" becomes a graph traversal.)
Feature traceability: design_component_implements_feature connects the design system to the product strategy that motivated it.
Component refresh cycle: when the design system updates, the component nodes can be refreshed from the Storybook export, keeping the design system a first-class citizen of the product graph.
Schema mapping
The key edge
The single most important semantic relationship this integration enables.
Defined in the UPG specification
Sample import
Storybook component catalog: Components + Stories + Docs
How to import your Storybook data
The Storybook adapter is built and tested. A one-command import via the UPG CLI is in development:
This will fetch your Storybook data, map entity types automatically, and write everything to your graph. Today you can use the Markdown import or the adapter directly in code.
▸ For developers: use the adapter directly
Get started
The Storybook adapter ships in @unified-product-graph/adapters. Install it, then run the import command.
$ npm install -g unified-product-graph
# then import
$ upg import --from notion