- Google OAuth2/PKCE flow via openid-client v6; session cookie (30-day) - Next.js middleware auth guard — redirects before any client render - Todoist OAuth2 connect/disconnect; REST v1 task fetch (today|overdue) - RandomPolicy recommender behind stable POST /recommend contract - Feedback endpoint (done/dismiss/snooze); marks task complete in Todoist - 30s in-memory task cache per user (~1ms recommend on cache hit) - Tip page: pure opacity fade-in (3.5s), fast fade-out (0.3s), no motion - "reading you…" loading text with breathe animation - PWA icons + manifest - Ports pinned: API=3078, web=3079; Caddy at o.alogins.net Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
apps/web
Next.js PWA. Phase 0 scope: three pages.
| Route | Purpose |
|---|---|
/sign-in |
Google/Apple OAuth buttons. No form. |
/connect |
List of integrations (cards). Tap → OAuth. Tap connected card → disconnect. |
/ (tip) |
Pure black background. One tip centered. Tap gestures: done / snooze / dismiss. |
Design notes
- The tip page is the product. Treat it like a watch face.
- Zero chrome, no nav bar, no settings icon while a tip is showing. Long-press reveals actions.
- Offline-first: last tip is cached; reactions queued until reconnect.