Output JSON list of stories for 3rd party integration
See original GitHub issueIs your feature request related to a problem? Please describe.
I was looking to use the list of stories in a 3rd party tool. Unfortunately, I don’t see any documented way to get the stories list.
This issue has been brought up before, but closed before implemented:
Describe the solution you’d like
A URL in the Storybook site like /stories.json
that includes a list of all the stories on the site. Maybe the same information that is available from the storySort function.
- unique id (token used in URL?)
- kind
- name
- parameters
- URL
Describe alternatives you’ve considered
Scraping the navbar of the Storybook.
Are you able to assist bring the feature to reality?
If I can figure it out, yes.
Issue Analytics
- State:
- Created 4 years ago
- Reactions:3
- Comments:14 (10 by maintainers)
Top Results From Across the Web
JSON Event - Qualtrics
The JSON Event can be used to integrate with Freshdesk as a Webhook rule in the Dispatch'r. That means events in Freshdesk can...
Read more >Integration REST API to Business Central. Parse JSON and ...
With this post I would like to start a series of articles on third-party application integrations through the API for Business Central. An...
Read more >Integrating Third-party APIs Using APEX RESTful Callouts
So in this example, by de-serialising the httpResponse from a JSON string into an object, we can use Apex to work with the...
Read more >toJsonList() function | Help - Zoho Deluge
The toJSONList function takes a text JSON array as an argument, and returns it as a list. Return Type. LIST. Syntax. <variable>=< ...
Read more >Get Correctly Formatted Deep-Nested JSON Files At Scale ...
Some third party applications usually ask for JSON files as input to import new data. An example is Splunk, a software platform to...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
In 6.0.0 the storybook CLI will have a command:
Which will generate a stories.json
https://github.com/storybookjs/storybook/blob/4a3d16103656a78b9fb377107bb755d2de80a7fb/lib/cli/src/generate.js#L70-L79
Tried running the mentioned
sb extract
command like so with latest version of the CLI and it worked great! It outputs astories.json
file in the Storybook build directory.Command: