Skip to content

About

a parent's same-day pickup note, checked at the daycare's ring doorbell ~ amazon hackathon entry (ring + alexa+)

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Repository files navigation

Pickup Note

Same-day pickup changes, checked at the door. Integrates with Ring devices.

A parent tells their assistant who's picking up today. Pickup Note turns that into a pickup note naming one adult, in full, for one child: single-use, today only, and ending at local midnight. The parent confirms it with one tap. When the stand-in checks in and the Ring doorbell rings, the home daycare's door screen shows who is cleared for which child. A person checks photo ID and releases. No face recognition; a person always decides.

Try it

  1. Open the hosted demo and click Start demo. You get a private sandbox with fictional people. It resets 24 hours after you last use it.
  2. The stage shows three real pages side by side: the parent's assistant (a simulated Alexa+ add-on that is a real MCP client), the daycare's door tablet, and the stand-in's phone link.
  3. Ring runs in labelled Replay mode by default: recorded responses from the Ring Developer Playground. No Ring token needed: Replay mode runs the whole demo.

Optional: see Ring live with your own token.

  1. Sign in at developer.amazon.com and open the Ring Developer Playground (https://developer.amazon.com/ring/console/playground).
  2. Click Generate Token. Keep that tab open: the token lasts 30 minutes, and only that tab can start simulations.
  3. In the stage's Ring panel, click Use your own Ring token, paste it, and click Connect.
  4. In the Playground tab, click Vehicle under "Simulate live view event".
  5. In the stage, press Car pulls up, then Ring doorbell.

Your token is sent once, stored encrypted only in your own sandbox, used only by our server, and purged when it expires. Disconnect Ring removes it at once.

Run it locally

npm ci
node scripts/gen-dev-vars.mjs          # writes .dev.vars with random local secrets
npm test                               # unit tests (Node)
npm run dev                            # app on http://localhost:8787
npm run dev:sandbox                    # MCP Apps sandbox origin on http://localhost:8788
npm run e2e                            # browser end-to-end tests (starts both servers)
npm run smoke -- http://localhost:8787
npm run mcp:e2e -- http://localhost:8787

To deploy your own: npx wrangler login, then set the three secrets with npx wrangler secret put TOKEN_SECRET, TOKEN_KEK and FEEDER_HMAC_KEY (each a random 32-byte base64 string), then edit ALLOWED_ORIGINS and SANDBOX_ORIGIN under vars in wrangler.jsonc to your own workers.dev origins (the committed values are ours, so every browser Origin check fails until you change them). The sandbox page also names the app origin: change APP_ORIGIN in sandbox/public/sandbox.js and frame-ancestors in sandbox/public/_headers to match. Then run npm run deploy.

Architecture

Browser: stage /demo = [ /assistant (simulated Alexa+ add-on, MCP client + MCP Apps host) | /door (tablet) | /s (stand-in) ]
   |  REST + WebSocket + MCP Streamable HTTP (Bearer pn1 tokens)          card iframe -> pickup-note-sandbox (second origin)
   v
Cloudflare Worker "pickup-note" (Free plan): static pages, auth, Origin checks, webhook HMAC, routing
   v
Durable Object "Program" (one per demo sandbox, SQLite): release rule, MCP server (stateless), Ring client, door log, realtime
   v
Ring Partner API (api.amazonvision.com) on the Ring Developer Playground: devices, WHEP live view, history
Component Its one job
Stage Lays out the three real pages, plus the Ring panel, captions and the trace bar
Simulated Alexa+ add-on Turns the parent's words into one MCP tool call (a fixed grammar, no model), and hosts MCP App cards
Door screen Shows the server's decision for whoever is at the door; collects ID, word and Release taps; plays the Ring live view
Stand-in page One note's status and a check-in button; no app
Worker Pages, auth, Origin and body limits, webhook HMAC, routing
Program DO One sandbox's state, decide(), the MCP tools, the encrypted Ring token, Ring calls, realtime
Sandbox Worker Serves the MCP Apps sandbox page from a different origin, as the MCP Apps spec requires

What's real and what's simulated

What you see Real or simulated
Door screen, stand-in page, release rule, receipts, revoke, door log Real app code. Fictional people and program.
The parent's assistant Simulated Alexa+ add-on. It is a real MCP client and a real MCP Apps host, talking to our real MCP server.
The parents' spoken lines in the video Synthetic voices (Kokoro), transcribed by a real speech-to-text call
Doorbell and car-arrival events Our HMAC-signed feeder in Ring webhook v1.1 format. The Playground sends no webhooks (Devpost forum 45309); the organizers approved a signed feeder (forum 45511).
The door camera picture A real Ring Partner API live view (WHEP) of the Developer Playground's simulated camera
Device list, the door log's Ring record Real Ring Partner API calls against the Playground
Parent notifications Simulated: add-ons can't push

Every Ring element in the UI carries a provenance chip: ring-live, ring-recorded, or "simulated event · our feeder", as forum 45462 asks ("make it clear … which footage comes from Ring and which is yours").

Ring integration

  • GET /v1/devices?include=status,capabilities: device list and online state. Offline devices are shown, never hidden.
  • POST /v1/devices/{id}/media/streaming/whep/sessions, then DELETE on its Location: our Worker carries only the SDP offer, the answer and the DELETE. The Ring token stays encrypted in the Durable Object. Media streams straight from Ring to the browser.
  • GET /v1/history/devices/{id}/events?event_types=on_demand: after a live view closes, we find Ring's own record of it and link it to the pickup in the provider's door log.
  • POST /ring/webhook: verifies X-Signature: sha256=<hex> (HMAC-SHA256) on the raw bytes before parsing, dedupes on meta.request_id, and ignores old or unknown events. Ring's scheme has no timestamp header, so replay defence is our own. The feeder uses our own key with Ring's algorithm; the docs' test vector is in the unit tests.
  • Replay mode: recorded, sanitized Playground responses (fixtures/ring/*/RECORDED.md). No Ring media is committed.

Ring content policy, mapped:

Policy How Pickup Note meets it
§1.2.2 "Apps must provide to Ring customers easy access to monitoring activity or access logs." The provider (the Ring customer) has the door log with every Ring access: time, purpose, result. Parents get text receipts only.
§1.2.3 / §1.2.5: no cross-account correlation, watchlists or appearance data No appearance field, no watchlists, no do-not-release list, nothing shared across sandboxes
§1.2.4, §4.2.2, §4.2.3: no deriving personal data from video; facial and plate recognition limits No face recognition, no person detection, no plate reading, no computer vision at all
§1.2.8 "Apps directed toward children or designed to be used by children are not permitted…" The users are providers and parents. No screen is for children. Ring-side data holds no child names. Frames are never stored.
§4.0: regulated fields "should be submitted by a legal entity that provides the services" This is a hackathon prototype. The pilot path is a Ring Private Use App; any public listing would come from a provider-side company.
§4.1.1: privacy policy, consent withdrawal, data minimization; workplace video PRIVACY.md. Disconnect Ring withdraws consent in one tap. We never call /v1/users/me. A provider with staff is responsible for any notice to them.
§4.1.3: deletion of stored Ring data The sandbox is deleted 24 hours after last use. Cloudflare's point-in-time recovery keeps copies for up to 30 days.

The MCP server

  • POST /mcp: implements MCP 2025-11-25 over Streamable HTTP, stateless (@modelcontextprotocol/server 2.3.1 createMcpHandler).
  • Five tools:
    • issue_slip, todays_pickups and revoke_slip (visible to the model);
    • confirm_slip and answer_door_request (app-only: only a parent's tap on the card can grant pickup authority).
  • Release is never an MCP tool.
  • Privacy rule: model-visible results never contain a child's name, a pickup word or a stand-in link. Child names travel only in _meta["pickupnote/display"] for the card. Spoken summaries use adults' first names only.
  • One MCP App resource (ui://pickupnote/card-<hash>.html), authored at 768×480 with zoom 1.667, in Phone and Echo Show 8 layouts. It is rendered through a sandbox page on a second origin.

Alexa+ conformance checklist:

Requirement Pickup Note
401 on a missing, invalid or expired token, without WWW-Authenticate Done
Each household's data isolated Done: per-family scoping inside a per-visitor sandbox
Round trip under 500 ms Done: tools/call p50 73 ms, p95 149 ms from a laptop
MCP Apps card: one ui:// resource, 768×480 at zoom 1.667, layout from deviceClass Done, in our simulated host
OAuth 2.1 + PKCE account linking and Tier 1 discovery without user login Not built (hackathon tokens instead). Production plan: Tier 1 client_credentials discovery plus Login with Amazon account linking.
Functional Requirement 9: "Complete all critical features entirely by voice without referencing a screen. No "check your display" on devices without a screen." … "Never reference visual elements ("the card shown", "tap the button") on devices without a screen." (Confirm and Allow once) Not met, deliberately: a model must never grant pickup authority.
Functional Requirement 10: "Make all critical displayed information also retrievable by voice" (the pickup word) Not met, deliberately: a spoken word can be overheard.

Release rule

src/domain/rule.ts decide() is a pure function with no network, no model and no clock of its own. It checks, in order: already released today; ID mismatch; parent; standing pickup list; today's confirmed pickup note (inside its window, after any same-day revocation); a parent's allow-once. Anything else is Not cleared. Do not release. Every release needs a photo-ID check against the full name. Notes also need the pickup word, and five wrong tries lock the note. "Revoke means revoke": a same-day cancel also blocks that adult's standing entry until midnight. The truth table is test/unit/domain/rule.test.ts (39 rows); properties are in test/unit/domain/prop.test.ts.

New York: release only to a parent or "person(s) currently designated in writing by such parent" (18 NYCRR 416.8(o)(1); same wording in 417.8(o)(1)). A confirmed note is designed to serve as the parent's written designation. This is not legal advice. The door log is designed to help with the written visitor log (416.8(p), 417.8(p)); it is not a compliance claim.

Latency and limits

Measure Value
tools/call p50 / p95 (from a laptop, hosted) 73 ms / 149 ms
Unit tests 827 passing

Free plan only, $0. Known Playground behaviour: one 30-minute token per account with no refresh, no webhooks, history holds only on_demand, and a live session may end before its 60 s cap.

Tests

npm test (unit), npm run e2e (browser), npm run smoke -- <url>, npm run mcp:e2e -- <url>.

Licence and notices

MIT (see LICENSE). Third-party notices are in THIRD_PARTY_NOTICES.md.

What's next, and who pays

  • A pilot as a Ring Private Use App (bypasses certification; up to 5 allowlisted Ring accounts).
  • Parent account linking with Login with Amazon, and Tier 1 discovery.
  • A provider-side company for any public listing (Ring §4.0).
  • Providers pay a monthly subscription in the Ring Appstore; parents and stand-ins never pay or install anything.

Prior art and how this differs

Product or project What it does How Pickup Note differs
Brightwheel, Procare Center software with standing approved-pickup lists and PIN check-out Pickup Note handles the same-day change: a single-use written designation that crosses households, checked at the Ring door event
ELV Parent & Pickup Parents maintain authorized pickups; QR kiosk No Ring door event; no voice-first parent flow
SchoolPass (and schoolpass-mcp) School dismissal changes, including through MCP Schools, not home daycares; no door check
VeoTrex (GitHub) A childcare safety platform with Ring live view and authorized release Center-focused platform; Pickup Note is the home-daycare, parent-designation layer
CareRelay, Care Handoff, KindHandoff Household or care handoffs Pickup Note is a regulated release decision, not a chore handoff

Built by Chris Jagdeo, an AI-assisted product builder, directing Claude Code, which wrote the code.

About

a parent's same-day pickup note, checked at the daycare's ring doorbell ~ amazon hackathon entry (ring + alexa+)

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages