All workAndrew Cates.

Project 53 of 84

Localweave

Self-hosted, multi-tenant platform for local search visibility: tells a local business (or an agency managing many) how visible each location is in search, maps, directories and AI answers, and what to fix next.

Status
In progress
Area
Personal Products & SaaS
Last activity
2026
Stack
  • TypeScript
  • Node
  • pnpm workspaces
  • Turborepo
  • Next.js
  • React
  • Tailwind
  • Hono

Highlights

  1. Built localweave, a self-hosted multi-tenant local-search visibility platform, as a 7-app TypeScript monorepo (Hono API, STS, worker, MCP server, Next.js app, Docusaurus docs, marketing site) through a 9-stage agent-driven build merged in PRs #1-#9 over 2026-11-01/02.
  2. Enforced tenant isolation in PostgreSQL row-level security through a single withOrg() transaction helper, backed by an RLS catalog integration suite (793 tests at Stage 7, docs/step-notes/stage-7.md).
  3. Split token minting into a separate RFC 8693 STS on @catesworks/sts so the API never holds the signing key; MCP, worker and web act on behalf of users with single-audience tokens and a recorded act chain.
  4. Shipped an MCP server with 20 tools over stateless Streamable HTTP, verified end to end in Playwright (real Zitadel -> MCP -> STS -> API).
  5. Designed a contract-first /v1 API (OpenAPI 3.1, now 129 operations) with a Kubb-generated TanStack client and a CI drift check, plus webhooks, API tokens and a monthly quota ledger.
  6. Hardened the web and API layers with per-request CSP nonces, a per-principal rate limit, STS key-rotation overlap, audit retention and subject export/purge (PRs #16-#18).
  7. Added self-signup and org onboarding (join requests with admin approval, 30-day cooldown) without weakening the database-as-authority identity model (PR #24, ADR 0034).
  8. Prepared fleet production deployment without going live: six distroless service images exercised locally under the full e2e suite, six immutable ECR repos created, CapRover/Hostinger service drafts, SSM env targets, a Zitadel Terraform root and Supabase verify-full TLS with spike-verified role provisioning (PRs #20, #28-#33, #41-#42).
  9. Expanded Playwright coverage of error, loading and empty states across the web app with a typed testid catalog, state attributes, page objects and a route-coverage CI step (PR #37).
  10. Documented 47 architecture decision records, including 10 ADRs recording deliberate divergences from a 460-requirement clean-room coverage matrix (PRs #38-#39).