Record a sky camera around the clock, keep the footage on your own disk, and find what flew past.
TypeScript astronomycloudflare-workerscomputer-visionmcpmeteor-detectionobject-trackingrtspself-hostedsky-camerayolo
Community files: code of conduct, issue forms, PR template, CODEOWNERS (#4)
Hunter Deibler17ad0c6bf0b1
diff --git a/.github/CODEOWNERS b/.github/CODEOWNERSnew file mode 100644index 0000000..9c999df--- /dev/null+++ b/.github/CODEOWNERS@@ -0,0 +1,2 @@+# Every change needs the maintainer's review before it can merge into main.+* @Deiblerdiff --git a/.github/ISSUE_TEMPLATE/bug_report.yml b/.github/ISSUE_TEMPLATE/bug_report.ymlnew file mode 100644index 0000000..05cea89--- /dev/null+++ b/.github/ISSUE_TEMPLATE/bug_report.yml@@ -0,0 +1,62 @@+name: Bug report+description: Something in openskycam does not work as the documentation says.+labels: [bug]+body:+ - type: markdown+ attributes:+ value: Never paste API keys, Access tokens, tunnel tokens, camera passwords or footage you do not want public.+ - type: dropdown+ id: part+ attributes:+ label: Part+ options:+ - Setup (npm run setup)+ - Website+ - API or MCP server+ - Ingest Worker+ - Footage store+ - Relay+ - Processor or Workshop runs+ - Models+ - Documentation+ - Something else+ validations:+ required: true+ - type: textarea+ id: what+ attributes:+ label: What happened+ description: What you did, what you expected, and what happened instead.+ validations:+ required: true+ - type: textarea+ id: steps+ attributes:+ label: Steps to reproduce+ placeholder: |+ 1. …+ 2. …+ validations:+ required: true+ - type: textarea+ id: check+ attributes:+ label: Output of npm run setup -- --check+ description: It checks every part of a deployment and changes nothing.+ render: text+ - type: textarea+ id: logs+ attributes:+ label: Logs or errors+ description: The relevant lines, for example from journalctl, the store log or the browser console.+ render: text+ - type: input+ id: version+ attributes:+ label: Version or commit+ placeholder: v0.1.0 or the output of git rev-parse --short HEAD+ - type: textarea+ id: environment+ attributes:+ label: Hardware+ description: Camera model and codec, relay host, store host and processor host (operating system, GPU).diff --git a/.github/ISSUE_TEMPLATE/config.yml b/.github/ISSUE_TEMPLATE/config.ymlnew file mode 100644index 0000000..1fc9261--- /dev/null+++ b/.github/ISSUE_TEMPLATE/config.yml@@ -0,0 +1,11 @@+blank_issues_enabled: false+contact_links:+ - name: Question or idea+ url: https://github.com/Deibler/openskycam/discussions+ about: Ask how to set something up, share a camera that works, or suggest an idea.+ - name: Documentation+ url: https://docs.openskycam.org+ about: Setup, configuration, the API and every part of openskycam.+ - name: Security vulnerability+ url: https://github.com/Deibler/openskycam/security/advisories/new+ about: Report it privately. Please do not open a public issue.diff --git a/.github/ISSUE_TEMPLATE/feature_request.yml b/.github/ISSUE_TEMPLATE/feature_request.ymlnew file mode 100644index 0000000..c48dc12--- /dev/null+++ b/.github/ISSUE_TEMPLATE/feature_request.yml@@ -0,0 +1,31 @@+name: Feature request+description: Suggest something openskycam should do.+labels: [enhancement]+body:+ - type: textarea+ id: problem+ attributes:+ label: What you want to do+ description: The problem or the task, not the solution yet.+ validations:+ required: true+ - type: textarea+ id: proposal+ attributes:+ label: How it could work+ - type: textarea+ id: alternatives+ attributes:+ label: What you do today instead+ - type: dropdown+ id: part+ attributes:+ label: Part+ options:+ - Setup+ - Website+ - API or MCP server+ - Recording (relay, ingest, store)+ - Processor, workflows or models+ - Documentation+ - Something elsediff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.mdnew file mode 100644index 0000000..0536ed3--- /dev/null+++ b/.github/PULL_REQUEST_TEMPLATE.md@@ -0,0 +1,13 @@+## What and why++<!-- What this changes, and the problem it solves. Link the issue: Fixes #123 -->++## How it was checked++<!-- Commands you ran and what you observed. For processor, relay or store changes, how you ran it for real. -->++- [ ] `make check` passes+- [ ] New behaviour has a test, and the test fails without the change+- [ ] The docs in `docs/` describe the change+- [ ] No deployment values, keys or tokens in the diff+- [ ] Processor code changed: the description says a new runtime must be registereddiff --git a/CHANGELOG.md b/CHANGELOG.mdnew file mode 100644index 0000000..40350c2--- /dev/null+++ b/CHANGELOG.md@@ -0,0 +1,16 @@+# Changelog++Notable changes to openskycam. Versions follow [semantic versioning](https://semver.org); before 1.0, a minor version can change how a deployment is set up.++## 0.1.0 · 2026-10-25++The first public release.++- **Recording.** A relay copies an RTSP camera's H.264 or H.265 stream into 60-second MP4 files without re-encoding and uploads them. The ingest Worker checks each file and stores it on a footage store on your own disk, reached through a Cloudflare Tunnel, and the D1 catalog lists it. Footage is kept for 40 days.+- **Website and API.** Browse a day of footage, scrub and download original files, and see recording health, all behind Cloudflare Access. Every website action is also a key-authenticated API call under `/v1`, described by `/openapi.json`.+- **Workshop.** Workflows sample frames from footage or labeled images, run one to four detection models, and route each frame to buckets by class, score, count, time of day or motion. Runs can be tested, followed live and scheduled. Review results, correct boxes and freeze dataset versions.+- **Tracking.** Detections are linked across a recording into tracks that are moving, stationary or brief, so a workflow can keep moving aircraft and set stars and fixed lights aside.+- **Processor.** Runs Workshop jobs on macOS (Apple GPU) or Linux (NVIDIA GPU) or on the CPU, publishes trained models, and keeps a device's models in sync.+- **Agents.** An MCP server gives AI agents seven tools that cover the website, with guides and skills that teach them how to use them.+- **Setup.** A one-line installer and `npm run setup`, which runs every deploy step and checks it. `--check` checks a running deployment, and `--yes` runs without questions for agents and scripts.+- **Night detector.** A YOLO26s model for planes and meteors at night, ready to publish to your registry, and a notebook to train your own.diff --git a/CITATION.cff b/CITATION.cffnew file mode 100644index 0000000..665038e--- /dev/null+++ b/CITATION.cff@@ -0,0 +1,22 @@+cff-version: 1.2.0+message: If you use openskycam in your work, please cite it as below.+type: software+title: openskycam+abstract: >-+ Records a sky camera around the clock, keeps the footage on your own disk, and finds what flew past with+ detection workflows, motion tracking and reviewed training data.+authors:+ - given-names: Hunter+ family-names: Deibler+repository-code: https://github.com/Deibler/openskycam+url: https://docs.openskycam.org+license: MIT+version: 0.1.0+date-released: 2026-10-25+keywords:+ - sky camera+ - meteor detection+ - aircraft detection+ - object tracking+ - computer vision+ - YOLOdiff --git a/CODE_OF_CONDUCT.md b/CODE_OF_CONDUCT.mdnew file mode 100644index 0000000..56cab83--- /dev/null+++ b/CODE_OF_CONDUCT.md@@ -0,0 +1,32 @@+# Code of conduct++openskycam is built by people who like looking up. Everyone who takes part, in issues, pull requests, discussions or anywhere else the project is represented, is expected to make that a good experience for everyone else.++## Expected++- Be welcoming, patient and kind, especially to people new to cameras, Cloudflare or code.+- Give and accept feedback about the work, not the person.+- Assume good intent, and ask before concluding otherwise.+- Credit other people's work, and admit your own mistakes.++## Not accepted++- Harassment, insults, threats, or demeaning comments about anyone's identity, background or ability.+- Sexual language or imagery, and unwelcome attention of any kind.+- Publishing anyone's private information, such as an address, camera location, footage or credentials, without their permission.+- Repeatedly derailing discussions, or continuing after being asked to stop.++## Reporting++Report anything that breaks this code privately, through GitHub:++- On an issue, pull request, discussion or comment, open its **⋯** menu, choose **Report content**, then **Report to repository admins**.+- For anything else, or if the problem involves the maintainer, use [GitHub's abuse report form](https://github.com/contact/report-abuse).++Reports are read by the maintainer and kept confidential. The person who reported is not identified to the person reported without consent.++## Enforcement++The maintainer decides what happens, in proportion to what happened: a private note, a public warning, hiding or editing content, a temporary ban from the project, or a permanent one. Content that breaks this code can be removed without notice.++This code is adapted from the [Contributor Covenant](https://www.contributor-covenant.org), version 2.1.diff --git a/CONTRIBUTING.md b/CONTRIBUTING.mdindex 23cfdcc..6322892 100644--- a/CONTRIBUTING.md+++ b/CONTRIBUTING.md@@ -1,6 +1,9 @@# Contributing-Thanks for helping. Bug reports, fixes, support for more cameras and hardware, and documentation are all welcome.+Thanks for helping. Bug reports, fixes, support for more cameras and hardware, and documentation are all welcome. Everyone taking part follows the [code of conduct](CODE_OF_CONDUCT.md).++- **Questions and ideas** go in [Discussions](https://github.com/Deibler/openskycam/discussions); **bugs** in an [issue](https://github.com/Deibler/openskycam/issues/new/choose); **security problems** privately, as [SECURITY.md](SECURITY.md) describes.+- **Pull requests** need a passing `check` and the maintainer's approval before they merge, and they are squash-merged. Nobody pushes to `main` directly. For a large change, open a discussion first so the work fits.## Before you change codediff --git a/README.md b/README.mdindex 8af6dd5..daf8c8f 100644--- a/README.md+++ b/README.md@@ -18,6 +18,7 @@<p align="center"><a href="https://github.com/Deibler/openskycam/actions/workflows/check.yml"><img alt="Check" src="https://github.com/Deibler/openskycam/actions/workflows/check.yml/badge.svg"></a>+ <a href="https://github.com/Deibler/openskycam/releases"><img alt="Latest release" src="https://img.shields.io/github/v/release/Deibler/openskycam?color=0B0C0E"></a><a href="LICENSE"><img alt="MIT license" src="https://img.shields.io/badge/license-MIT-0B0C0E"></a></p>@@ -156,7 +157,7 @@ Packages and cloud resources keep the project's first name, SkyVision (`skyvisio## Contributing-Bug reports, fixes and support for more cameras and hardware are welcome. Read [CONTRIBUTING.md](CONTRIBUTING.md) and the [architecture guide](https://docs.openskycam.org/develop/architecture/), and run `make check` before opening a pull request. Report security issues privately as described in [SECURITY.md](SECURITY.md).+Bug reports, fixes and support for more cameras and hardware are welcome. Read [CONTRIBUTING.md](CONTRIBUTING.md) and the [architecture guide](https://docs.openskycam.org/develop/architecture/), and run `make check` before opening a pull request; every pull request needs the maintainer's review. Ask questions in [Discussions](https://github.com/Deibler/openskycam/discussions) ([SUPPORT.md](SUPPORT.md)), report security issues privately as described in [SECURITY.md](SECURITY.md), and follow the [code of conduct](CODE_OF_CONDUCT.md). [CHANGELOG.md](CHANGELOG.md) lists what each release changed.## Licensediff --git a/SECURITY.md b/SECURITY.mdindex 1c52122..6ded328 100644--- a/SECURITY.md+++ b/SECURITY.md@@ -5,3 +5,7 @@ Report a vulnerability privately through GitHub: open the repository's **SecuritThe website trusts only verified Cloudflare Access tokens, and the API trusts only scoped keys. The footage store accepts only the Workers' bearer token, and the processor only makes outgoing requests with its own key. A way around any of these is in scope, as is reading footage or data of a camera a key was not given.Never include real API keys, Access tokens, camera passwords or footage in a report.++## Supported versions++Fixes go into `main` and the next release. To get them, run `git pull` in your clone and redeploy the parts that changed: `npm run setup -- website`, `ingest`, `store` or `relay` reruns that step even when its check passes, and a processor needs [a new runtime](https://docs.openskycam.org/processor/#runtimes).diff --git a/SUPPORT.md b/SUPPORT.mdnew file mode 100644index 0000000..6c03d14--- /dev/null+++ b/SUPPORT.md@@ -0,0 +1,8 @@+# Getting help++- **Setting up or using openskycam:** start with the [documentation](https://docs.openskycam.org). `npm run setup -- --check` checks every part of a deployment and says what is wrong.+- **Questions, ideas, and cameras that work:** [Discussions](https://github.com/Deibler/openskycam/discussions).+- **Something does not work as documented:** [open a bug report](https://github.com/Deibler/openskycam/issues/new/choose) with the output of `npm run setup -- --check`.+- **A security vulnerability:** report it privately, as [SECURITY.md](SECURITY.md) describes. Never in a public issue.++openskycam is maintained by one person in their own time, so answers can take a few days.diff --git a/docs/develop/contributing.md b/docs/develop/contributing.mdindex fcac123..80bb255 100644--- a/docs/develop/contributing.md+++ b/docs/develop/contributing.md@@ -12,11 +12,11 @@ Bug reports, fixes, support for more cameras and hardware, and documentation are## A pull request-- **One change per pull request**, with the tests that prove it.+- **One change per pull request**, with the tests that prove it. Every pull request needs a passing `check` and the maintainer's approval, and is squash-merged; nobody pushes to `main` directly.- **`make check` passes.** CI runs it on every pull request.- **Each new test can fail.** Break the code it guards, watch it fail, and restore the code. A test that passes regardless of the code gives false confidence.- **Format only the files you change** (`npx biome format --write <files>`), so the diff stays about your change.-- **Update the docs** that describe what you changed: this site (`package/docs/`), a component's README, or `openapi.json` for API changes. The docs build fails on broken internal links.+- **Update the docs** that describe what you changed: the pages in `docs/`, a component's README, or `openapi.json` for API changes. The docs build fails on broken internal links.## Behaviour that must not change silently