# AGENTS.md

Self-hosted game stream host for Moonlight.

## Setup

```
npm ci
```

## Commands

```
npm run dev           # run locally
npm run build         # produce a build
npm run build-clean
npm run serve
```

## Layout

- `src/`        139 source files
- `src_assets/` 32 source files
- `tests/`      31 source files
- `packaging/`  4 source files
- `scripts/`    3 source files
- `tools/`      3 source files

## Conventions

- Tests live alongside the code they cover, following `tests/CMakeLists.txt`.
- CI defines what passing means. See `.github/workflows/_codeql.yml`, and keep it green.
- TODO: add the two or three conventions a newcomer always gets wrong here.

## Gotchas

- `src/video.cpp` is 129KB. It will not fit comfortably in context, so read it in parts.

---

Drafted by agentreadme.com from what is in this repository. Everything marked TODO
needs a human. Check it in as AGENTS.md at the root.
