โ† danhecker.com

personal project ยท 2026

The Family Recipe App

Dozens of family recipes became a private, live, multi-user web app my family, mostly used mobilly, running entirely on free-tier infrastructure, with AI turning a photo of a handwritten card into a structured, editable recipe in seconds.

Cloudflare PagesCloudflare Access Pages FunctionsD1 (SQLite) R2 object storageClaude API (vision) Vanilla JS PWA$0/mo infra
The recipe book on a phone: searchable cards with filters
The book: search, time slider, cuisine / liked-by / added-by filters
A recipe detail page with tap-to-check ingredients
Recipe view: tap-to-check ingredients, attribution, likes
Add-recipe chooser: from a photo or type it in
Two ways in: AI photo scan or a guided form
The recipe editor with reorderable ingredient and step rows
The editor: full CRUD with reorderable rows, photos, and undo

Screenshots use mock data, the real app is private to my family, which is the point. The live app sits behind Cloudflare Access: family members sign in with one tap via Google against an explicit email allow-list.

Architecture

family phones โ”€โ”€โ–ถ recipes.<family-domain>.com   (Cloudflare DNS, proxied)
                    โ”‚  Cloudflare Access via Google SSO, email allow-list, JWT per request
                    โ”œโ”€ static PWA shell        โ† Cloudflare Pages (vanilla JS, no framework)
                    โ””โ”€ /api/*                  โ† Pages Function (one file)
                          โ”œโ”€ recipes CRUD       โ†’ D1  ยท versioned edits ยท soft delete
                          โ”œโ”€ likes              โ†’ D1  ยท per-user, drives "liked-by" filters
                          โ”œโ”€ photo store/serve  โ†’ R2  ยท gated, private
                          โ””โ”€ /api/transcribe    โ†’ Claude Haiku vision ยท photo โ†’ structured draft
  
Auth
Cloudflare Access in front of everything; the API validates the Access JWT signature against team public keys on every request, identity is cryptographic, never a trusted header.
Data
Recipes live in D1 (SQLite at the edge). Every edit snapshots the prior version which makes deletes soft with an "undo last edit" button.
AI ingestion
1โ€“2 photos of a card (single or double-sided) go to Claude Haiku vision with a strict transcription prompt: never invent unreadable text, mark estimated times, infer cuisine/effort. The draft opens in the same editor for human review before anything saves.
Cost engineering
Everything rides free tiers (Pages, Access โ‰ค50 users, D1, R2). The only metered call is transcription: ~1ยข per recipe, with a family-wide daily cap enforced in D1 so a bug can never run up a bill.
Attribution
Every recipe permanently shows who added it; "edited by" appears only after someone changes it. Filters: ingredient search, total-time slider, cuisine, liked-by, and added-by.

Visit the live app (restricted access, you'll meet the Access wall unless I have granted you access) ยท Back to danhecker.com