A starter kit with React Aria Components, Tailwind CSS, and Storybook with cross-origin isolation support.
- React Aria Components: Accessible UI components
- Tailwind CSS: Utility-first CSS framework
- Storybook: Component development environment
- Cross-Origin Isolation: Support for SharedArrayBuffer via service worker
- GitHub Pages Deployment: Automated deployment via GitHub Actions
# Install dependencies
npm install
# Run Storybook
npm run storybook
# Build Storybook
npm run build-storybook
This project includes a service worker implementation for cross-origin isolation, which is required for SharedArrayBuffer support in browsers. The implementation:
- Uses a service worker to add the required COOP/COEP headers
- Works on static hosting platforms like GitHub Pages
- Includes a diagnostic page to verify functionality
Learn more about the implementation in the Storybook Deployment Guide.
This project is configured for automatic deployment to GitHub Pages using GitHub Actions.
- Go to your repository on GitHub
- Click on "Settings"
- Navigate to "Pages" in the sidebar
- Under "Build and deployment", select "GitHub Actions" as the source
- Go to "Settings" in your repository
- Navigate to "Actions" → "General" in the sidebar
- In the "Workflow permissions" section, ensure "Read and write permissions" is selected
- Check "Allow GitHub Actions to create and approve pull requests"
- Click "Save"
You can trigger a deployment in two ways:
-
Push to the main branch:
git add . git commit -m "Initial setup for GitHub Pages" git push origin main
-
Manually trigger the workflow:
- Go to the "Actions" tab in your repository
- Select the "Deploy Storybook to GitHub Pages" workflow
- Click on "Run workflow" → "Run workflow"
Once the workflow has completed successfully:
- Go to "Settings" → "Pages"
- You'll see a message indicating "Your site is live at https://yourusername.github.io/your-repo-name/"
- Visit that URL to see your deployed Storybook
- Visit "/coi-check.html" to verify that cross-origin isolation is working
After deployment, you can verify that cross-origin isolation is working by navigating to the /coi-check.html
page on your deployed site.
See LICENSE for details.