Project 18 of 84
Bookweave
Single-consultant booking product: guests book, reschedule and cancel without an account; the owner signs in with Zitadel to manage bookings, meeting types and availability; an MCP server lets an AI assistant act for the owner through an on-behalf-of (OBO) token exchange.
- Status
- Shipped
- Last activity
- 2026
- Stack
- TypeScript
- Node
- pnpm workspaces
- Turborepo
- Next.js
- React
- TanStack Query
- Hono
Highlights
- Built bookweave from an empty repo to production in about three weeks: a single-consultant booking platform with a Next.js guest/owner web tier, Hono OpenAPI API, pg-boss worker, token-exchange service and MCP server, shipped across 238 commits and releases v0.1.0 and v0.2.0.
- Designed an AI-assistant integration where an MCP server acts for the owner via on-behalf-of token exchange (ES256 delegated tokens) under a deny-by-default operation policy, with the one destructive action (cancel) held until the owner approves on a web page using a single-use, signed approval token.
- Enforced data isolation in Postgres with RLS owner/public/worker contexts and separate least-privilege login roles per service (api, public, worker, sts), refusing privileged database logins in production.
- Implemented account-free guest booking that works without JavaScript: 15-minute holds, hashed guest tokens, single-use emailed exchange codes, DST-safe Intl availability math, and reschedules modeled as booking series so calendar invites move instead of duplicating.
- Built transactional email and calendar outboxes drained by a pg-boss worker: MJML + ICS mail over SES with SNS-signature-verified feedback webhooks, and Google Calendar sync with free/busy, push channels and envelope-encrypted refresh tokens.
- Ran two independent security and code review rounds and applied three fix passes (A, B, C), including 20 confirmed findings in pass C, plus root-caused the flaky tests it surfaced (token-refresh race, test files sharing the same days, turbo typecheck/build race, CI cleanup step, leaked test containers).
- Created a one-command local stack (process-compose) that brings up Supabase, seeds a shared Zitadel instance, migrates, and starts every service; tests stay hermetic with throwaway Postgres containers, a mock OIDC issuer and a fake Google API.
- Led a gated production rollout: Terraform for SES/DNS/IAM/SNS and Zitadel PKCE clients, immutable v-tagged ECR images on CapRover with a private overlay-network STS, Supabase Cloud migrations, Vercel host split between the marketing site and app, verified end to end with a real owner sign-in and guest booking.
- Shipped a static, secretless Next.js marketing site with a build-time sitemap and internal-link checker, and SHA-pinned, secret-scanned GitHub Actions deploy workflows.