Thanks for your interest in contributing to patchdeck! This document provides guidelines and information for contributors.
Be respectful and constructive in every interaction. Harassment, discrimination, and personal attacks are not acceptable in this project.
- Fork the repository
- Clone your fork locally
- Install dependencies with
npm install - Create a feature branch from
main - Make your changes
- Run checks before submitting:
npm run check # TypeScript typecheck
npm run lint # ESLint
npm run test # Server tests
npm run test:all # Server plus client lib tests- TypeScript strict mode — no
anytypes without justification - 2-space indentation, double quotes, semicolons
- camelCase for server helper functions
- kebab-case for API route paths
- Tests use
*.test.ts; server tests live inserver/, and client library tests live beside the relevant files inclient/src/lib/.
See AGENTS.md for more detailed repository guidelines and development practices.
Use short imperative commit messages with a prefix:
feat:— new featurefix:— bug fixdocs:— documentation changestest:— adding or updating testsrefactor:— code refactoring without behavior change
- Keep PRs focused and narrow — one feature or fix per PR
- Include a clear description of what changed and why
- Make sure CI passes (lint, typecheck, tests)
When reporting bugs, include:
- Steps to reproduce
- Expected behavior
- Actual behavior
- Node.js version and OS
By contributing, you agree that your contributions will be licensed under the MIT License.