AI-native product catalog
anchor
Every product has a human page and three statically-cached LLM-facing endpoints. The /.well-known/agents.json descriptor publishes endpoints + auth + pricing negotiation. Agents transact through an eight-check delegated-authority pipeline.
Ten fictional specialty-coffee products. The agent surface splits into /agent/markdown (citation opening + JSON-LD fence + prose), /agent/json (Schema.org Product/Offer only), and /agent/plain (prose only). All 30 routes prerendered at build, served from the edge cache in ~5ms. The proxy layer classifies User-Agent on every fetch and queues a Redis write via after() so cache hits stay instrumented. The /api/agent/checkout endpoint runs eight ordered checks (signature, expiry, agent binding, scope, nonce, idempotency, inventory, charge) and revalidateTag invalidates only the affected product entry on a sale, leaving the other nine cached. A live AEO dashboard surfaces 24h / 7d / 30d totals, bot-mix breakdown, per-product counts, and a live tail. A /docs/rendering page documents every route's render mode so the build is self-documenting. A dev-only render inspector overlays colored boundaries on every component classifying its mode and shows a counterfactual savings panel vs a fully-dynamic baseline.
TypeScript—Next.js 16—React 19—Vercel AI SDK—Anthropic SDK—Zod—Upstash—Tailwind v4