cat ./work/lean-websites.md
Lean Websites
A subscription platform for managed small-business websites — Stripe checkout to onboarding to per-customer sites to change requests.
- Role
- Founder-engineer — product, architecture, build
- Type
- Personal project
- Year
- 2026
- Status
- in development
- TypeScript
- Astro
- Next.js
- Supabase
- Stripe
- Resend
- GitHub API
- Vercel

The problem
Small local businesses need a good website, but they don’t want to manage one. I wanted to sell that as a subscription: pay, answer a few questions, get a fast site, and ask for changes whenever you like. Doing that profitably means the whole lifecycle around the site has to run with almost no manual admin.
What I built
A TypeScript monorepo covering the whole customer journey:
- Marketing site and API (Astro). Stripe Checkout, plus a webhook that handles completed checkouts and subscription changes. Onboarding intake, contact forms and change requests, which become GitHub Issues in a support repo, so every request has a trackable thread.
- Admin dashboard (Next.js) for customers, websites and requests. It uses password login and a signed session cookie implemented with Web Crypto, because it runs on the Edge runtime.
- Starter template. Each customer gets their own copy, in their own repo and their own Vercel project, all configured from a single file.
- Data model in Supabase: customers, websites, subscriptions and change requests, each with an explicit status lifecycle.
Hard parts
- Webhooks you can trust. The GitHub webhook endpoint verifies signatures with HMAC-SHA256 and constant-time comparison. Stripe events drive subscription state, not the client.
- Failure-tolerant by design. Email through Resend is best-effort and never blocks a customer’s submission.
- Knowing what not to automate. The site build itself is a documented manual runbook on purpose. Automating it before there were customers would have been the wrong use of time.
Outcome
The platform is built end to end but hasn’t launched. It’s here because it shows how I think about a product as a whole: payments, onboarding, operations and support, not just the pages.