MCPcopy Index your code
hub / github.com/chromaui/chromatic-cli

github.com/chromaui/chromatic-cli @v18.0.1

Chat with this repo
repository ↗ · DeepWiki ↗ · release v18.0.1 ↗ · + Follow
1,308 symbols 3,363 edges 505 files 28 documented · 2%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

Chromatic CLI

Publishes your Storybook to Chromatic and kicks off tests if they're enabled.

Published on npm Tested with Chromatic

Documentation

👉 Read the Chromatic CLI docs

📝 View the Changelog

System requirements

The Chromatic CLI (and GitHub Action) is built to run in a variety of environments. We provide support for the following platforms:

  • Latest (LTS) versions of Ubuntu, Windows (Server), macOS
  • Node.js Current, Active or Maintenance (LTS) versions, according to their release schedule
  • Storybook 6.5+

Other platforms/versions may work, but are not officially supported. Certain features may not be available on certain platforms/versions, even if otherwise supported.

Contributing

Contributions of any kind are welcome! If you're a maintainer, refer to the following instructions to set up your development environment with Chromatic.

Compatibility & versioning

Compatibility is guaranteed between this package and Chromatic like so:

  • Production Chromatic ensures it’s compatible with what’s on npm
  • What's on the Git tag is equal to what's published on npm for that version
  • This package ensures it’s compatible with production Chromatic

To facilitate upgrading in the future, removing and adding features, this is the process:

  • Any new features will have to be on Chromatic production before they could be used in this package
  • We can add feature flags to be able to test new functionality
  • Chromatic production can not remove any features this package depends on until after the usage has been removed from this package in addition to a grace period to allow users to upgrade

Extension points exported contracts — how you extend this code

AnalyticsClient (Interface)
(no doc) [4 implementers]
node-src/lib/analytics/types.ts
PathSpec (Interface)
* Represents a file path specification with its content length.
node-src/tasks/prepare/validateFiles.ts
Parameters (Interface)
(no doc)
storybook-addon.d.ts
Output (Interface)
(no doc)
node-src/index.ts
Flags (Interface)
(no doc)
node-src/types.ts
ShareOptions (Interface)
(no doc)
node-src/share.ts
TaskRenderer (Interface)
(no doc)
node-src/renderer/engine/index.ts
BaselineCommitsQueryResult (Interface)
(no doc)
node-src/git/getBaselineBuilds.ts

Core symbols most depended-on inside this repo

captureTask
called by 64
node-src/renderer/storybook/captureTask.ts
getCommit
called by 43
node-src/git/git.ts
execGitCommand
called by 40
node-src/git/execGit.ts
maybe
called by 38
action-src/main.ts
runAll
called by 38
node-src/index.ts
getParentCommits
called by 36
node-src/git/getParentCommits.ts
getDependentStoryFiles
called by 36
node-src/lib/turbosnap/getDependentStoryFiles.ts
getOptions
called by 35
node-src/lib/getOptions.ts

Shape

Function 1,107
Interface 104
Class 50
Method 47

Languages

TypeScript100%

Modules by API surface

node-src/lib/turbosnap/errors.ts26 symbols
node-src/git/git.ts25 symbols
node-src/types.ts21 symbols
node-src/lib/log.ts21 symbols
node-src/ui/tasks/snapshotE2E.frames.ts17 symbols
node-src/ui/tasks/snapshot.frames.ts17 symbols
node-src/ui/tasks/prepare.frames.ts15 symbols
node-src/ui/workflows/uploadBuildE2E.stories.ts14 symbols
node-src/ui/workflows/uploadBuild.stories.ts14 symbols
node-src/lib/waitForBuildToComplete.ts14 symbols
node-src/lib/utilities.ts14 symbols
node-src/lib/turbosnap/getDependentStoryFiles.ts14 symbols

For agents

$ claude mcp add chromatic-cli \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page