Skip to content
Toolkit

ADR-0099 — A public renderer is an app page the redirect path hands the visitor to

Status: Accepted · Date: 2026-08-29 · Track: 008-card-view, phase 01

Context

Track 008 replaces redirect.go's per-type 302s with documents. The first one, the vCard contact card, had to answer a question every later renderer inherits: where does the document live? Three candidates existed in the tree:

  1. HTML rendered by the Go server, the way serveBiolinkPage half-does (it serves JSON on /l/{slug} for a fronting renderer).
  2. A new serving surface built for public pages.
  3. A page of the app, the way the 007 interstitial works: serveGate 302s to /u/{slug} on the app origin, and the page fetches an allowlisted data endpoint.

Decision

Renderers are app pages. For each rendered type, the redirect path's branch 302s to the app's public route (/vc/{slug} for vCards), carrying only already-validated grants; the page fetches a public data endpoint (/api/public/vcards/{slug}, plus /vcf for the file) that re-verifies those grants and serves the server-side allowlist.

The reasons are 007's, restated once for renderers (ADR-0092's shape):

  • Public surfaces are drawn in apps/web from Studio primitives with their text behind t(). An HTML page hand-written in Go would be a second design system and a second string catalogue.
  • The gate holds on every door (ADR-0098): the data endpoint refuses behind the same closedGateFor the biolink endpoint uses — now a package function, one verifier for every public payload — so the 302 carries no secret and the page can be loaded directly without walking around anything.
  • Pixels emit from documents (ADR-0096): an app page carries PixelBeacons the way the biolink page does, through one shared resolution.

Consequences

  • Phases 02 and 04 (event, payment) repeat the shape: a serve*Page branch, an /api/public/<type>s/{slug} endpoint with an explicit allowlist, an app route. Phase 03 differs — a stored document is streamed, not refetched as JSON — but its gate and its origin rules are the same.
  • The generated file (.vcf, and phase 02's .ics) lives beside the data endpoint and answers to the same gate: the file is the card in another format, never a second door.
  • The extra 302 (/l/{slug} → /vc/{slug}) is the price of one design system; it is the same hop the interstitial already takes, and the card page is directly addressable and shareable at /vc/{slug}.
  • The public-page origin question (008 charter Blocker 1, ADR-0096) is untouched: these pages live where the app lives until the owner decides otherwise, and moving them later moves a route constant, not the shape.

Source: docs/decisions/0099-a-public-renderer-is-an-app-page-the-redirect-path-hands-the-visitor-to.md

Library