Before you begin
- A running Storybook instance or a deployed Storybook URL
- Node.js 22 or higher
- An API key from the Loracle dashboard (Project Settings > API Keys)
Publish your Storybook
1
Install the CLI
loracle binary.Or run it directly with npx:2
Set your API key
3
Run publish
CI/CD
Automate publishing on every release. The CLI uses Playwright internally to scrape your Storybook, so your CI environment needs a Chromium browser available. The core steps are the same on every CI:- Install your dependencies
- Install Chromium (
npx playwright install --with-deps chromium) - Build and serve your Storybook on a local port
- Wait for the server (
npx wait-on http://localhost:6006) - Run
npx @loracle-js/cli publish <url> --version <version>
- GitHub Actions
- GitLab CI
- Other CIs
Add these steps to your workflow. Store
ubuntu-latest requires an explicit Chromium install.LORACLE_API_KEY as a repository secret.Next steps
MCP server
Connect your coding agent to the published catalog.
Storybook addon
Use AI to generate stories from inside Storybook.