chrisdemetriou / threefold (opens in a new window)
Demo Try the demo (opens in a new window)
(opens in a new window)
Built with
- cloudflare-workers
- typescript
- react
- hono
- d1-sqlite
- durable-objects
- workers-ai
- passkeys
- web-push
- pwa
- resend
- turnstile
Architecture
On the phone
- Evening check-in30 seconds · honest, with no streak to lose
- I'm strugglingan instant alert to your friend · an 8-step plan that works offline
- Week in revieweach friend writes one; the other marks it reviewed
- Installs like an appPWA · passkey sign-in · push alerts
HTTPS · one origin
On Cloudflare
- Worker (Hono)API, sign-in, alerts and setup codes by e-mail
- D1 (SQLite)check-ins, messages and the shared transparency log
- Durable Object clockan hourly alarm for reminders and follow-ups
- Workers AIa private companion; nothing it says is stored
the same code · in your browser
The public demo
- Two fictional friendsthree weeks of sample history; switch between them
- In-memory SQLite (sql.js)the Worker's code runs in the page
- Nothing leaves the pageno backend; a reload starts again