question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Output JSON list of stories for 3rd party integration

See original GitHub issue

Is 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:closed
  • Created 4 years ago
  • Reactions:3
  • Comments:14 (10 by maintainers)

github_iconTop GitHub Comments

19reactions
ndelangencommented, Apr 8, 2020

In 6.0.0 the storybook CLI will have a command:

sb extract

Which will generate a stories.json

https://github.com/storybookjs/storybook/blob/4a3d16103656a78b9fb377107bb755d2de80a7fb/lib/cli/src/generate.js#L70-L79

3reactions
alexbchrcommented, Jul 28, 2020

Tried running the mentioned sb extract command like so with latest version of the CLI and it worked great! It outputs a stories.json file in the Storybook build directory.

Command:

npx -p @storybook/cli@6.0.0-rc.16 sb extract
// Or equivalent taking automatically latest Storybook CLI version
npx -p @storybook/cli@next sb extract
Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found