Contributing
Thanks for your interest in contributing to IC Reactor! This guide covers the development workflow, coding standards, and how to submit your changes.
Quickstart
Section titled “Quickstart”-
Fork the repository and clone it:
Terminal window git clone https://github.com/<your-username>/ic-reactor.gitcd ic-reactorgit remote add upstream https://github.com/B3Pay/ic-reactor.git -
Install dependencies:
Terminal window pnpm install -
Build and test:
Terminal window pnpm buildpnpm test
Formatting
Section titled “Formatting”We use Prettier for formatting. Format locally with:
pnpm formatYou can check formatting without modifying files:
pnpm format:checkHusky + lint-staged will format staged files automatically on commit.
Running Tests
Section titled “Running Tests”# Unit testspnpm test
# End-to-end testspnpm test-e2eIf you are adding a feature, include tests and documentation where applicable.
Commits and Pull Requests
Section titled “Commits and Pull Requests”- Use clear, descriptive commit messages.
- Prefer small, focused PRs.
- Include tests where applicable.
- Add or update documentation for public API changes.
AI-Assisted Contributions
Section titled “AI-Assisted Contributions”AI-assisted contributions are welcome, but contributors are responsible for correctness before opening a PR.
- Prefer existing IC Reactor patterns over introducing new abstractions.
- For React integrations, prefer
createActorHooks(...)or query/mutation factories (createQuery,createMutation, etc.). - Validate generated or AI-written code with tests and examples whenever possible.
- Update docs and examples when public API usage changes.