How it's wired
The architecture beneath the vault.
Next.js
App Router provides the React UI and backend route handlers for records, auth callbacks, and Stripe.
Supabase
Hosted Postgres, Auth, Storage, and row-level security replace personal browser localStorage.
Stripe
Checkout creates subscriptions and webhooks update organization plans.
Vercel
The Next.js app deploys to Vercel with environment variables from .env.example.
Cloudflare
The worker in cloudflare/worker.ts proxies third-party APIs and can front CDN traffic.
Tenant model
Every record belongs to an organization. RLS policies enforce membership boundaries.