Thanks for your interest in contributing to PinkBrain Router. This project is in active development for the Bags.fm App Store.
- Fork the repo
- Clone your fork:
git clone https://github.com/<your-username>/PinkBrain-Router.git cd PinkBrain-Router
- Install dependencies:
cd backend npm install - Copy and configure environment:
cp .env.example .env # Edit .env with your API keys - Create a feature branch:
git checkout -b feature/your-feature
| Prefix | Use |
|---|---|
feature/ |
New functionality |
fix/ |
Bug fixes |
docs/ |
Documentation changes |
refactor/ |
Code restructuring |
test/ |
Test additions |
Use Conventional Commits:
feat: add key rotation endpoint
fix: handle Helius RPC timeout during claim phase
docs: update API reference with /pool endpoint
refactor: extract CreditPoolService from KeyManager
test: add unit tests for allocation calculator
- Push your branch to your fork
- Open a PR against
main - Fill out the PR template
- Ensure all checks pass
- Request a review
- TypeScript strict mode
- Zod for all runtime validation
- Pino for structured logging (no
console.log) - Fastify for HTTP (no Express patterns)
- All environment variables validated at startup
Check the issues for open tasks. Good first issues are tagged with good first issue.
- OpenRouter client testing — Edge cases in key provisioning
- Distribution algorithms — Weighted allocation optimizations
- Dashboard UI — React components for strategy management
- Documentation — API examples, deployment guides
If you discover a security issue, do not open a public issue. See SECURITY.md for reporting instructions.
By contributing, you agree that your contributions will be licensed under the MIT License.