{"repo":"eduardconstantin/storybook-genie","free":true,"listed":false,"github":"https://github.com/eduardconstantin/storybook-genie","clone":"git clone https://github.com/eduardconstantin/storybook-genie.git","description":"Storybook Genie is a command line interface tool that can generate Storybook stories from React components","language":"JavaScript","stars":115,"topics":["cli","commandline-interface","components","genie","openai","openai-api","storybook","tool","generator","ollama"],"license":"MIT","category":"cli-tools","readme_excerpt":"Storybook Genie Storybook Genie is a command line interface tool that can be used to convert files that contain React components into Storybook stories. 🌟 Features - Select preferred GPT model (OpenAI or Ollama) - Use local Ollama models (no API key required) - File selection input - JS beautify - Use custom story template - Change default path - A small number of dependencies 📦 Installation To install the storybook-genie package, run the following command: 🛠️ Configuration You can use either OpenAI or Ollama as your AI backend. Using OpenAI Set your OpenAI API key as an environment variable. You can do this by adding the following line to your .env file, or by setting it directly in your terminal: For Unix-based systems: For Windows systems: Using Ollama No API key is required, but you must have the Ollama server running locally and at least one model pulled (e.g., llama3 , mistral , etc.). Start Ollama: Pull a model (example): ✨ Usage A default AI-backend provider, a default model and a default path can be set in storybook-genie.config.json file, just create one in the root of the project and add the following code: A default story template can be set in storybook-genie.template.js/ts file, just create one in the root of the project. To use Storybook Genie, run the following command: You will be prompted to select which API to use (OpenAI or Ollama), then select the model, and then select the files. 🌱 Getting Started Clone the repository: Install dependencies: Input you","default_branch":null,"files":null,"tree":[],"storefront":"/r/eduardconstantin","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/eduardconstantin/storybook-genie/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}