Contributing โ
Thanks for wanting to help out! ๐ Pixelflare is open source, and contributions of all sizes are welcome, whether that's fixing a typo or building a whole feature.
Ways to Help โ
- Report a bug. Open an issue with what happened and how to make it happen again. See Reporting a Bug for what's useful to include
- Suggest a feature. Open an issue describing what you'd like, and why
- Translate. Pixelflare's web app can be translated into any language, see Translations
- Improve these docs. Every page has an Edit this page on GitHub link at the bottom
- Write code. Pick an open issue, or something that's bugged you, and send a pull request
- Review pull requests, or share Pixelflare with someone who'd find it useful
Security issues are the exception. Please report those privately, as described in the Security Policy.
Your First Pull Request โ
- Talk first, for anything big. For a new feature or a large refactor, open an issue before you start, so we can agree on the approach and nobody's work goes to waste
- Fork and clone the repo, then follow Local Setup to get it running
- Make a branch, named like
feat/album-coversorfix/upload-timeout - Make your change, following the Development Workflow and the code style below
- Run the checks with
pnpm hold-my-beer, which regenerates the docs, then lints, type checks, formats and tests everything - Open a pull request into
main, and fill in the template
CI then runs on your pull request, see CI/CD Pipeline. Once it passes and has been reviewed, it gets merged and deployed.
Code Style โ
Prettier and ESLint handle most of the formatting, so you rarely need to think about it. Beyond that:
- TypeScript is strict everywhere, with no
anyor@ts-ignore - Constants go in
@pixflare/config, and shared types and helpers in@pixflare/shared, rather than inline - No hardcoded text in the web app. Every user-facing string goes in
packages/i18n/messages/en.json - Keep the API layered. Routes stay thin, business logic and database access go in services, and every endpoint has a Zod schema
- Never edit a committed migration. Add a new one instead
- New API behaviour needs a test. See Testing
- Reuse before you write. If something similar already exists, extend it rather than making a near copy
- Keep comments short, explaining why rather than what
When in doubt, match whatever the neighbouring code does.
Commit Messages โ
Keep them short, lowercase and to the point, with a conventional commit prefix:
feat: add album cover images
fix: stop uploads timing out on slow connections
docs: explain s3 backup setupThe prefixes in use are feat, fix, docs, refactor, test, chore, ci, deps and infra.
AI-Generated Code โ
You're welcome to use AI tools, but please say so in your pull request, as the template asks. You're responsible for understanding, testing and standing behind everything you submit, however it was written.
Be Kind โ
Please be friendly, patient and respectful to everyone here. We're all just trying to make something useful.
License โ
Pixelflare is MIT licensed, and anything you contribute is shared under the same license.