Thanks for your interest in contributing! Here's how to get started.
git clone https://github.com/llmhut/llm-diff.git
cd llm-diff
npm installnpm test # single run
npm run test:watch # watch mode- Add the model pricing table to
src/providers.js - Write an API adapter function following the existing pattern
- Add it to the
ALL_MODELSmap and thecomplete()switch - Add tests in
test/providers.test.js - Update the README model table
- Open an issue describing the feature
- Fork and create a branch:
git checkout -b feat/your-feature - Write tests first, then implement
- Run
npm testto make sure everything passes - Open a PR with a clear description
- ES modules (
import/export) - No TypeScript (keep it simple, types via JSDoc)
- No external deps for arg parsing or core logic — keep
node_moduleslight - Every public function gets a JSDoc comment
Use conventional commits:
feat: add mistral provider support
fix: correct gemini token counting
docs: update pricing table
test: add edge case for empty prompts
By contributing, you agree that your contributions will be licensed under the MIT License.