Lab

Relay · Pretext Protocol Card

Living typographic system spike. The card renders a protocol-membrane visual where text packets enter raw on the left, pass through a compatibility zone, and exit clean and normalized on the right — just like Relay itself.

Relay

A lightweight compatibility gateway for running local models through OpenAI- and Anthropic-style APIs.

  • OpenAI-style chat endpoint
  • Anthropic-style messages endpoint
  • Streaming / SSE support
  • llama.cpp-oriented local runtime

The canvas renders a protocol-membrane topology. Horizontal rails represent routing lanes. Text packets spawn on the left (ingress) carrying raw, noisy protocol fragments. As packets cross the central membrane zone, characters normalize — alignment improves, colors shift from amber/warning to green/clean, and structured API shapes emerge on the right (egress).

This is a Pretext-inspired system: characters are chosen for their visual density and rendered as individual typographic units. Future iterations will incorporate measured character widths (via the Pretext library) for precise proportional layouts.

A semantic HTML fallback lives in a screen-reader-accessible layer behind the canvas. All critical content — project name, description, and feature list — remains readable regardless of canvas support.

The animation respects prefers-reduced-motion and pauses when the canvas is scrolled offscreen.