Contribute

Storybook Astro is a community-driven project and contributions are welcome! Whether you're fixing a bug, adding a feature, or improving documentation, your help is appreciated.

Getting Started

Prerequisites

Dev Environment Setup

  1. Fork the repo at github.com/storybook-astro/storybook-astro, then clone your fork:
    git clone https://github.com/YOUR-USERNAME/storybook-astro.git
    cd storybook-astro
    Or clone the main repo directly if you have write access:
    git clone https://github.com/storybook-astro/storybook-astro.git
  2. Install dependencies:
    yarn install
  3. Start Storybook (dev mode):
    yarn storybook
  4. Run the Astro site:
    yarn dev

Running Tests

Run the full test suite before submitting a PR:

yarn test

All 17 test suites (36 tests) should pass, covering Astro, React, Vue, Svelte, Preact, Solid, and Alpine.js components.

Branching Strategy

Workflow

  1. Create a branch from develop: feature/your-feature or fix/your-fix
  2. Make your changes and run yarn test
  3. Open a PR targeting develop
  4. Once reviewed and merged, it will be included in the next release

Code Conventions

Adding a New Framework Integration

The project supports React, Vue, Svelte, Preact, Solid, and Alpine.js. To add a new framework, create an integration file in packages/@storybook-astro/framework/src/integrations/ that implements the Integration interface. See the existing integrations for examples and the AGENTS.md file for detailed guidance.

Resources