Contributing
Thanks for your interest in contributing to prismoid.
Getting Started
- Fork the repo
- Clone your fork
- Install prerequisites: Rust toolchain, Go 1.26+, Node.js 20+, bun
- Run
cd apps/desktop && bun installto install frontend dependencies and set up git hooks (lefthook) - Run
cargo tauri devfromapps/desktopto start the app in development mode
Before You Code
- Check existing issues and PRs to avoid duplicate work
- For non-trivial changes, open an issue first to discuss the approach
- Read the
docs/folder, especiallyadr.mdfor decisions that are locked
Code Standards
- Rust:
cargo fmtandcargo clippy -- -D warningsmust pass. No warnings - Go:
gofmtandgo vet ./...must pass - TypeScript: ESLint and Prettier must pass.
tsc --noEmitmust pass - Pre-commit hooks enforce formatting and linting automatically via lefthook
Pull Requests
- Keep PRs focused. One concern per PR
- Write a clear description of what changed and why
- All CI checks must pass before review
- Squash merge into main (enforced by branch rules)
Commit Messages
Use conventional commits:
feat: emote picker fuzzy search
fix: twitch reconnect dropping first message after resume
refactor: extract platform adapter interface
chore: update deps
Testing
- Add tests for new functionality
- Don't break existing tests
- See
docs/testing.mdfor the testing strategy and what to test
Architecture
The codebase has three language boundaries with clear responsibilities. See docs/architecture.md.
- Don't put network I/O in Rust (that's Go's job)
- Don't put message processing in Go (that's Rust's job)
- Don't put business logic in the frontend (that's Rust's job)
Contributor License Agreement
By submitting a PR, you agree that your contributions are licensed under the same GPL-3.0 license as the project, and you grant the project maintainers the right to relicense your contributions in the future.