First of all, thank you for considering contributing to Toka SDK! 🚀
We welcome contributions from developers of all experience levels.
Toka SDK aims to provide a reliable, developer-friendly AI Cost Optimizer.
Your contributions help improve stability, performance, and usability for everyone.
By participating in this project, you agree to maintain a respectful and inclusive environment.
Please:
- Be respectful and constructive in discussions.
- Provide helpful feedback.
- Avoid offensive or discriminatory language.
Click the Fork button on GitHub and clone your fork:
git clone https://github.com/YOUR_USERNAME/toka.git
cd tokanpm installnpm run buildTo run in development mode:
npm run startWe use Jest for testing.
npm testBefore submitting a pull request, ensure:
- All tests pass
- New features include tests (if applicable)
- No linting errors
We follow consistent TypeScript and ESLint standards.
Check linting:
npm run lintFormat code:
npm run formatPlease ensure your changes are formatted before committing.
Create a new branch for each feature or fix:
git checkout -b feature/your-feature-nameExamples:
feature/token-tracking-improvementfix/cost-estimator-bug
Use clear and descriptive commit messages:
feat: add redis cache supportfix: correct token calculation bugdocs: improve README examplesrefactor: simplify cost estimator logic
We loosely follow Conventional Commits.
-
Push your branch:
git push origin feature/your-feature-name
-
Open a Pull Request on GitHub.
-
Clearly describe:
- What you changed
- Why you changed it
- Any breaking changes
-
Link related issues if applicable.
If you find a bug, please open an issue including:
- Description of the problem
- Steps to reproduce
- Expected behavior
- Node.js version
- Toka SDK version
Clear issue reports help us resolve problems faster.
We welcome ideas!
When suggesting a feature:
- Explain the problem it solves
- Describe the proposed solution
- Provide use-case examples
- Performance optimization
- Improving cost estimation accuracy
- Additional AI provider integrations
- Documentation improvements
- Example projects
- Test coverage expansion
Maintainers follow Semantic Versioning:
patch→ bug fixesminor→ new features (non-breaking)major→ breaking changes
If you find Toka SDK useful:
- ⭐ Star the repository
- 🐛 Report issues
- 💡 Suggest improvements
- 📢 Share it with other developers
Your support helps grow the ecosystem.
Open source thrives because of contributors like you.
Thank you for helping improve Toka SDK!