# Lofi cafe ## What this builds A calm cafe scene you can sit with. Toggles change the weather and the light. A bundled audio loop plays and pauses from a control; there is no third-party stream, and a hook fails if one is contacted. The music and the art are original or permissively licensed, listed in a licence file. A golden screenshot is taken for a couple of scene states. Read `spekkr.inputs.json` first. `title` is on a sign. `volume` is the default. `room` chooses the scene. `rain` and `lamplight` are the toggles. ## Out of scope - A live radio or a commercial streaming service. - Network or a chat room in the checks. - A real cafe booking. ## Requirements Each requirement has an id. Checks name the id they cover. ### R1. Scene toggles - Each combination of room, rain, and lamplight draws the documented layers. Goldens exist for window-day (rain off, lamps off), window-rain, and counter. - A toggle updates the scene without a reload. Accept when: the three (plus paused) frames match the goldens, and a toggle from day to rain matches the rain golden. ### R2. Audio and hooks - Play starts the bundled loop, at `volume`. Pause stops it. Tests use an offline or mocked element and assert that the local file was requested, and that play/pause changed a documented playing flag. - A fetch hook fails if a known stream or radio host is contacted. - The licence file lists the loop. Accept when: play and pause flip the flag, the requested src is the local loop, and the hook stays quiet. ### R3. Inputs - The build reads `spekkr.inputs.json`. Settings label the UI, options turn features on or off, and a swap must be one of its choices. - A value outside a stated range, or a swap that is not one of its choices, is refused before the app starts its checks, with a message that names the key. Accept when: the default inputs render, an illegal swap is refused by name, and changing a visible setting (for example the title) shows up in a later check. ### R4. Checks and report - One command runs every acceptance check at the defaults and at the person's inputs, including golden frames where a requirement asks for them. - Checks do not need a network, a paid API, or physical hardware. Accept when: the command passes at the defaults, and a deliberately broken fixture or a wrong price fails it. ## Verification Scene toggles have golden screenshots. Play and pause are tested against a bundled loop, not a third-party stream; a fetch hook fails otherwise. Licences for art and audio are shipped. No network is required. ## Definition of done - Every acceptance check above runs from one command, and all pass at the person's inputs. - A README says how to toggle the scene, how the loop is licensed, and how to run the checks.