tinyfiles.tv
Day theme · creme

The Best
Clock.

10 views, 10 modes, 10 songs, 10 themes. Day theme in the day, night theme at night. Moon phase gating. And a Night Shift that only exists midnight to 4am. Local clock, local only, no server.

🌕 Loading moon…

10 Views — how time looks

--:--:--
—

10 Modes — what the clock does

Clock mode

You are in clock mode. Pick a view above. The clock is always running, even when you are in another mode.

10 Songs — tiny generative songs

Each song is a few notes, played with piano / music box. Tap play, it plays once. No files, all WebAudio.

10 Themes — day theme in the day, night theme at night

Auto is ON: creme 6am–6pm, night 6pm–6am
BACKEND · TEMPLATE · PROPOSED · NOT CONNECTED

Backend, clock Backend, Template

Right now clock.html is local only. Moon math is in-browser. Night gating is local clock. Proposed backend only if you ever want shared night rooms.

01 / Gating + moon
GET /api/clock/now -> server time (so gating cannot be faked by changing local clock)
GET /api/moon?date=YYYY-MM-DD -> phase, illumination, next full
POST /api/nightshift/join { hour } -> only 0-4 allowed, else 403
// Day theme 6-18, night theme 18-6, moon phase changes night brightness