Project 65 of 84
Plandata
Plandata: a rewrite of a plan-review firm's MS Access all-in-one app (plan-check tracking, deliveries, billing) as a multi-tenant TypeScript monorepo with a staff dashboard, admin portal, client portal, Expo companion app, MCP connector and public marketing site.
- Status
- In progress
- Last activity
- 2026
- Stack
- pnpm workspaces
- Next.js
- Hono API
- Kubb codegen
- TanStack Query
- Drizzle ORM
- Transactional outbox
- Expo SDK / React Native
Highlights
- Rewrote a plan-review firm's MS Access app (13 tables, ~172k rows) as a TypeScript monorepo in one day: a 12-table Drizzle/Postgres schema, a Hono CRUD API with a Kubb-generated client, dashboard UI for 12 entities, and mdb-to-Postgres import scripts that quarantine bad rows and reconcile counts per table.
- Built an MCP connector with 60 tools (list/get/create/update/delete across 12 resources), gated by staff-minted service tokens with per-resource mcp:<resource>:read|write scopes, plus an Expo companion app on the same API.
- Shipped a public marketing site covering 92 sitemap URLs (60 generated per-tool pages) with drift tests that fail when the site's tool, scope or CLI lists diverge from the MCP source. It passed axe-core with 0 violations in light and dark mode, and deploys to Vercel through a dispatch-only workflow on self-hosted runners.
- Found that docker-release's metadata-action silently stripped the v prefix from ECR image tags, so tags no longer matched the git tags every deploy path assumed. Fixed it and added a CI guard that fails if the bug returns, with interpolated values moved into env vars.
- Cut the production API over from an HTTP CapRover subdomain to an HTTPS custom domain to fix browser mixed-content failures. Moved the Supabase keys for the web and admin apps off hand-typed Vercel values into 1Password-backed secrets manifests.
- Turned on open signup with an org-onboarding endpoint that uses an advisory lock and makes org slugs unique, then onboarded the first production user after creating the prod schema.
- Moved the API client to Kubb v5 on the shared @cogs fetch and React Query packages, deleting two local forks. Re-extracted an OpenAPI spec that had gone stale and added a CI check that fails on generated-client drift.
- Wrote the repo's CODING_STANDARDS.md and a 44-term domain GLOSSARY.md, and moved CI quality gates to self-hosted runners with a docker-run Postgres.