# Contributing to Keystone Small fixes and documentation improvements are welcome as pull requests. For a new feature, option, installer, hardware backend, or architecture change, open an issue first and wait until a maintainer agrees on the approach before you write the code. That way your work is less likely to be turned down, and we can find people who can test it. ## Questions, ideas, and bug reports Ask setup questions in [Q&A](https://github.com/seeARMS/keystone/discussions/categories/q-a) and float early ideas in [Ideas](https://github.com/seeARMS/keystone/discussions/categories/ideas), where other users can answer and vote. [Open an issue](https://github.com/seeARMS/keystone/issues/new/choose) for a bug or a specific feature proposal. Report vulnerabilities through the [security policy](SECURITY.md). ## How issues are triaged New issues have the `needs-triage` label until a maintainer looks at them. After that, an open issue usually has one of these labels: - `needs-info`: we need more details from the reporter. When the reporter replies, the issue goes back to `needs-triage`. If no one replies for 14 days, it's marked `stale`, and it closes 7 days after that. - `accepted`: the change is wanted, and pull requests are welcome. Comment on the issue before you start so two people don't build the same thing. - `upstream`: the cause is in UniFi Protect, UniFi OS, Home Assistant, or another project rather than in Keystone. Duplicates, support questions, and requests outside Keystone's scope are closed or moved to Discussions, with a note that says why. ## Set up a checkout Fork the repository, clone your fork, and create a branch from the current `main`. From the repository root, use Python 3.12 or 3.13 and make sure `ffmpeg` is on your PATH. ```sh python3 -m venv .venv source .venv/bin/activate python -m pip install -e ".[dev]" ruff check src tests pytest -q ``` To run Keystone against your own Protect controller, follow the **Manual install** instructions in the [quick start](README.md#quick-start) to create a local configuration, pin the controller certificate, and start the service. ## Dashboard changes If you edit `web/`, use Node.js 24 and run the following commands. Include the rebuilt `src/keystone/ui/index.html` in your PR so installed copies of Keystone serve your changes. ```sh cd web npm ci npm run typecheck && npm run lint && npm test && npm run build ``` ## Open a pull request Target `main`, link the issue if there is one, and describe how you checked the change. For platform-specific work, say which hardware or install method you tried and where you could use another tester. Use documentation addresses such as `192.0.2.10` in examples. Remove credentials, private network details, and identifying camera data from logs and screenshots.