Newsletter
Join the Community
Subscribe to our newsletter for the latest news and updates
An open-source web tool that generates Storybook stories from React components via the OpenAI API.
Storybook GPT is an open-source web tool that converts React components into Storybook stories using the OpenAI API.
Storybook GPT is a web application built with Next.js 13 that takes a React component as input and produces a Storybook story file as output. It runs locally and sends component code to the OpenAI API to generate the story. The project is developed by Eduard Constantin and released under the MIT License.
The technology stack is visible in the source: Next.js 13 with App Router support for server components, streaming, and layouts; TypeScript for type safety; and TailwindCSS for styling.
Storybook GPT offers a minimal feature set focused on fast story generation, with a modern React stack underneath.
Storybook GPT is aimed at developers already using Storybook who want to automate part of the story-writing process.
The main workflow is straightforward: paste a component, get a story.
To use it, clone the repository, run npm install, then add your OpenAI API key to the .env file as the OPENAI_API_KEY variable. Start the app with npm run dev and open http://localhost:3000. Paste your React component into the input and click "generate story" — the result appears in a few seconds.
Storybook GPT is open source and free to use under the MIT License. You must supply your own OpenAI API key, so actual usage costs come from OpenAI's API pricing.
Storybook GPT converts a React component into a Storybook story using the OpenAI API. You paste in component code, and it returns a story file you can copy into your Storybook project.
Yes. The app requires you to set an OpenAI API key in a local .env file for the generation to work.
Clone the repo, run npm install, create a .env file with your OPENAI_API_KEY, then run npm run dev and open localhost:3000.
Yes, the project is MIT-licensed. The only cost is the OpenAI API usage from your own key.
Next.js 13, React, TypeScript, and TailwindCSS, with the OpenAI API for story generation.
