← Back to projects
Give Millie a Treat
Active

One Tap, One Real Treat, One Dog on Camera

givemillieatreat.fun is a single page with one button. Anyone on the internet taps TREAT, a Furbo in the living room throws a kibble, and the visitor gets a minute and a half of live camera to watch Millie get it. The interesting part is what it took to make that safe: the house never accepts an inbound connection, every treat is a weighed share of her own daily ration, and the camera has a picture up in about two seconds over WebRTC before the kibble flies. 700+ treats from 57 people so far, plus a chat, snapshots that post to Discord, and a pic of the week.

Cloudflare WorkersDurable ObjectsWebRTCCloudflare StreamNode.jsHome AssistantProxmoxDiscord API
The page: one button, the camera window, treat chat, and how much of her day has been given away.
100%
👤
Visitor
Any browser, no login
🖥️
The Page
One HTML file, no build step
☁️
Cloudflare Worker
Turnstile · rate limits
🚪
Gate Durable Object
Queue · counters · open flag
📡
treat-relay
CT 104, outbound only
🏠
Home Assistant
Off switch · webhook
🦴
Furbo
Via an Alexa routine
Launch•A Button the Internet Can Press•Tap a node for details
Key component
Infrastructure
Data flow
A Button the Internet Can Press
Launch

Four moving parts. A Cloudflare Worker and one SQLite-backed Durable Object called Gate hold the queue, the counters and the open flag, and are the only things the internet touches. A relay in a Proxmox container at the house long-polls the Gate for presses and fires a Home Assistant webhook; it has no listening socket at all, and its firewall drops everything in both directions except three outbound destinations. Home Assistant pulses the switch an Alexa routine watches, and the Furbo tosses.

What Ships
→Turnstile on every press, 10 presses per 10 s per IP, a 1.5 s debounce, a 20-deep queue
→Gate Durable Object: FIFO queue, a 90 s watch window restarted at the toss, all-time counters, a 150-line chat
→treat-relay on CT 104: presses, acks, frames and video state over one long poll, under Doppler, Restart=always
→The owner's off switch in Home Assistant wins over everything and defaults to off
→The relay acks even a 4xx from the webhook, so a bad config can never wedge the queue
→Every deploy carries a BUILD stamp; the page reloads itself once the visitor is idle
Impact
A stranger can fire hardware in the living room, and the worst a fully compromised Worker could learn is the queue and the chat.