ADR-0031: The biolink renderer is a data-driven kit, not a fourth Studio target
- Status: Accepted
- Date: 2026-08-20
- Deciders: Repository owner, ahead of track 003; applies ADR-0030 and decision 004's Studio scope; informs track 003 phases 01–03
Context
The owner is building the Linkbio kit — an open-source design system for
link-in-bio pages (working set: https://crd.onl/Linkbio-Editor/, docs at
https://crd.onl/Linkbio-Editor/docs/getting-started.html) — deliberately
outside this repository. It is a zero-build, CDN-distributed system: web
components in a scoped --lb-/.lb- namespace, an entire page described by
one JSON document validated against dist/schemas/page.json, token-based
theming, and a components + editor + renderer scope designed as one cohesive
system. That is a working implementation of the declarative block renderer
track 003 phase 02 was chartered to design, arriving from outside.
Two collisions had to be decided before 003 starts: whether the kit merges into Studio, and whether 003 designs its own render spec. A third question followed from the kit's own plan: whether to hand-author React and Swift ports of it, as Studio has.
Decision
- The kit stays a separate, open-source system — permanently, not provisionally. Studio is the operator's chrome (admin app and editor, three targets, parity-gated); the kit is the product's public output (biolink pages, embeddable anywhere, CDN-distributed, framework-free). Different audiences, different stability contracts. Merging would burden the kit with Studio's internal parity machinery and burden Studio with a public API freeze.
- The kit's page schema is track 003's render-spec candidate. Phase 01
(characterise the 85 renderer arms) is unchanged. Phase 02's question
changes from "design a spec" to "can the declarative majority be
expressed in the kit's
page.json, and what is missing?" — the gap list feeds the kit, and Cardsite's server learns to emit the schema. One schema, two renderers (the React arm today, the kit thereafter); a competing Cardsite-only spec is the three-sources-one-name defect 002 spent seventeen conversions curing, and is rejected. - Adaptation happens in a fork before 003 starts. The owner forks the
kit and adapts it to Cardsite's needs (server data shapes, entitlements,
stats, display rules) before track 003 begins; until then the kit is
referenced, not depended on. Inside Cardsite, theming is a mapping layer
aliasing the kit's
--lb-*semantic tokens to Studio tokens — thetokens.cssbridge pattern, permanent rather than transitional. - The static/web-component set is the kit's only hand-authored target.
A React layer is generated from the schema (types + thin wrappers;
custom elements are first-class in React 19) — never a parallel
hand-written component set. There is no Swift port: a biolink page in
an iOS app renders the same CDN kit in a
WKWebView, pixel-identical with zero drift. Studio's three targets exist because app chrome must be native per platform; a rendered page has no such constraint, and 002's parity ledger is the standing evidence of what every additional hand-authored target costs. Native Swift rendering would be revisited only for a native editing/preview requirement that does not exist today — and would be generated from the schema then, not ported.
Consequences
- Track 003's charter names the kit under Related systems and reframes phase 02 accordingly; its routine cites this ADR so runs evaluate the schema instead of inventing a rival.
packages/block-model(ADR-0030) aligns with — and where adopted, generates from — the kit's schema rather than defining a second block vocabulary.- "New block ships without a frontend deploy" (003 phase 03) gains a stronger form: a block can arrive by kit release without touching Cardsite at all.
- Studio's scope is unchanged; nothing in 002 references the kit, and the 002 routine is unaffected.
Source: docs/decisions/0031-the-biolink-renderer-is-a-data-driven-kit-not-a-fourth-studio-target.md