Skip to content

Accessing storybook csf metadata for external tooling #28195

Answered by shilman
allforabit asked this question in Help
Discussion options

You must be logged in to vote

@allforabit we consider index.json to be an API and it has a version key v that we bump any time there's a breaking change. I recently bumped it in a minor release so it's not semver. But if your script checks the version, it should be fine to use. And I don't expect any changes that would affect you in the foreseeable future.

We also have an API @storybook/csf-tools that can be used to analyze CSF in code. but i would recommend index.json unless you need more flexibility.

Replies: 3 comments 7 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@allforabit
Comment options

@shilman
Comment options

Answer selected by allforabit
Comment options

You must be logged in to vote
5 replies
@shilman
Comment options

@Omar-Assadi-copilot
Comment options

@Omar-Assadi-copilot
Comment options

@shilman
Comment options

@Omar-Assadi-copilot
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
4 participants