Thank you for considering contributing to SpectraView! This document outlines how to get started.
- Fork and clone the repository
- Install dependencies:
npm install
- Run tests:
npm test - Start development (watch mode):
npm run dev
SpectraView uses Storybook for interactive component development and documentation.
npm run storybook # Start dev server on http://localhost:6006
npm run build-storybook # Build static Storybook siteWhen adding or modifying a component, add or update the corresponding story in src/stories/. Each component should have stories covering its main states (default, dark theme, edge cases).
- Create a new branch from
main - Make your changes
- Add tests for new functionality
- Run the full check suite:
npm run typecheck npm run test:run npm run build
- Create a changeset describing your changes:
npx changeset
- Submit a pull request
We follow Conventional Commits:
feat:— New featuresfix:— Bug fixesdocs:— Documentation changestest:— Test additions or changesrefactor:— Code refactoringchore:— Build/tooling changes
- TypeScript strict mode, no
anytypes - Functional components with hooks
- All public APIs must have JSDoc comments
- Tests use Vitest + React Testing Library
- All new components should have both tests (
__tests__/) and stories (src/stories/)
Please use GitHub Issues to report bugs or request features.
By contributing, you agree that your contributions will be licensed under the MIT License.