Contributing
Thanks for helping out. Bug reports, plugins, translations and fixes are all welcome.
Before you start
- For a bug, open an issue with steps to reproduce, your OS and Keyside version.
- For a bigger change, open an issue first so we can agree on the approach.
- Security problems go through SECURITY.md, not issues.
Setup
You need Rust 1.88+, Node.js 22+, pnpm 10 and Deno 2 on your PATH.
pnpm install
pnpm build
cargo run -- --plugins plugins
cargo run -- open # in a second terminal, signs you in to the editorFor live reload of the web app, run pnpm dev and open the printed URL.
Checks
Run these before opening a pull request. CI runs the same.
cargo fmt --all
cargo clippy --all-targets -- -D warnings
cargo test
pnpm test:js
pnpm test:e2eStyle
- Keep changes focused. One pull request, one purpose.
- Comments explain why, not what. Skip comments for code that reads clearly on its own.
- User-facing text is short, plain and in sentence case. Wrap it in
t()in the web app, then add the German, Spanish and French text inapps/client/src/i18n/.pnpm test:jstells you what's missing. - Anything that touches pairing, the editor listener or the plugin sandbox needs a test that shows the attack doesn't work.
Plugins
New plugins can live in their own repository and go into the registry. See docs/plugin-guide.md.
To add a bundled plugin here, put it in plugins/<name> with manifest.json, src/main.ts and tests against a fake of the app it talks to. Look at plugins/obs for the pattern.
Scripts
Shortcuts for everyday jobs, in scripts/. They need bash, so on Windows use Git Bash or WSL.
| Script | What it does |
|---|---|
setup.sh |
Installs packages and builds the plugins and web app |
test.sh |
Runs every check CI runs. --quick skips the slowest ones |
commit.sh "Message" |
Commits all changes as the project author |
push.sh |
Checks for conflicts with GitHub, pushes to main and waits for CI |
bump.sh 1.2.0 |
Sets the version in every app |
release.sh 1.2.0 |
Bumps, commits, pushes and tags, then waits for the draft release |
publish.sh |
Publishes the draft release and clears old drafts |
zip.sh |
Zips the project without ignored files, including changes not committed yet |
Scripts that push or publish ask first. Set YES=1 to skip the questions.
Releases
Write the release notes under ## Unreleased in CHANGELOG.md, then run scripts/release.sh 1.2.0. Check the draft on GitHub and publish it with scripts/publish.sh.
Signing needs these repository secrets. Without them, the step is skipped.
| Secret | For |
|---|---|
ANDROID_KEYSTORE |
The signing keystore, base64 encoded |
ANDROID_KEYSTORE_PASSWORD |
Its password |
APPLE_TEAM_ID |
Your Apple Developer team ID |
APPLE_API_KEY |
An App Store Connect API key (the contents of the .p8 file), with the App Manager role |
APPLE_API_KEY_ID |
That key's ID |
APPLE_API_ISSUER_ID |
The issuer ID shown above the keys list |
iOS builds go to TestFlight, not the release page. Before the first one, create the app in App Store Connect with the bundle ID dev.keyside.app.
Commits
Write commit messages in the imperative ("Add Hue scenes", not "Added"). Keep the first line under 72 characters.
By contributing you agree your work is released under the project's licenses (GPL-3.0 for the app, MIT for packages/).