Project 52 of 84
Linkweave
Single-creator link-in-bio service (a privacy-first Linktree alternative): an owner signs in with Zitadel OIDC, edits one profile of links, publishes it as an immutable snapshot, and gets aggregate click analytics with no visitor tracking. Since 2026-11-11 it also has an RFC 8693 token-exchange STS and an MCP server so an AI agent can act on the owner's data with narrowed, short-lived tokens.
- Status
- Shipped
- Last activity
- 2026
- Stack
- TypeScript
- pnpm workspaces
- Next.js / React
- Hono
- zod
- kubb generated client
- Drizzle ORM
- Postgres row-level security
Highlights
- Designed, built and launched linkweave, a privacy-first link-in-bio SaaS, in under four weeks: a Next.js 16 + Hono + Postgres monorepo that went from first commit (2026-10-23) to production (live 2026-11-07) across 71 pull requests and six tagged releases.
- Delivered v1 on 10 stacked PRs with 41 acceptance criteria traced to 73 test ids by a custom `ac:audit` CI gate (e2e 40/40), plus an independent architect verification that returned APPROVED.
- Engineered a contract-first data layer: Hono/zod-openapi routes generate a committed OpenAPI 3.1 document, kubb regenerates typed React Query hooks from it, and CI fails on any drift between routes and client.
- Built immutable publish snapshots with signed cache revalidation (HMAC to the Vercel-hosted public site, 60 s TTL fallback), an Atom feed, and server-rendered public pages that work with JavaScript disabled.
- Implemented privacy-preserving click analytics: a counted 302 redirect writes only hourly per-link and referrer-category counts through a SECURITY DEFINER function, storing no IP, user agent or cookie. Analytics are re-bucketed by time zone at read time and exportable as CSV.
- Hardened multi-tenant data access with Postgres row-level security as defense in depth (ADR 0003), split request-path and maintenance roles, per-transaction owner identity, and a migration up/down rehearsal gate.
- Secured the edge and identity layer: a Zitadel OIDC BFF with a JWE session cookie and single-flight refresh, an owner-identity pin, a Cloudflare X-Edge-Auth origin lock, verified Postgres TLS, and deployed-stage boot validation that refuses unsafe configuration (ADR 0002).
- Built an outbound webhook and background-job system on a Postgres jobs table: SKIP LOCKED leases, exponential retry, HMAC-signed deliveries with DNS-pinned SSRF protection, AES-256-GCM sealed secrets with key rotation, plus retention pruning and account purge.
- Shipped production infrastructure: Docker images released to immutable ECR tags and deployed to CapRover/Docker Swarm via GitHub Actions on self-hosted ARM64 runners, Supabase Postgres, Terraform-managed Zitadel apps and an AWS SES sender identity, and 1Password-to-SSM secret sync.
- Split the anonymous public site (Vercel) from the authenticated app host (CapRover) using a written cutover runbook, executed 2026-11-08, with 307 redirects that preserve old counted links. Launched a Docusaurus documentation site alongside it.
- Made the product agent-ready: built an RFC 8693 token-exchange STS (a private ES256 signer on an encrypted Swarm overlay plus a public OAuth facade with PKCE and CIMD client allowlisting) and an MCP server whose tools trade the user's token for 5-minute, single-scope on-behalf-of tokens. Destructive operations are excluded by design.
- Expanded Playwright end-to-end coverage across the dashboard and marketing site using a typed test-id catalog, load-state/aria-busy/action-epoch attributes and page objects. This included cross-owner isolation tests for link detail pages.
- Turned deploy pain into reusable platform knowledge: wrote fleet-wide runbooks and requirements for gated secrets seeding and an approval/apply service, drawing on answers from the formweave, uptimeloom, fw-web and hostinger sessions.