anchor — AI-native product catalog: dual-surface pages, delegated-authority checkout, AEO instrumentation
Public open-source AI-native commerce surface. Every product has a human page AND three statically-cached LLM-facing endpoints (markdown, JSON-LD, plain) optimized for citation, discovery, and agent purchase. A /.well-known/agents.json descriptor publishes endpoints, auth model, pricing-negotiation envelope, and rate limits in the Agentic Commerce Protocol shape. AEO instrumentation classifies 13 LLM crawlers by user-agent and logs every fetch to Redis via after() so cached responses still get observed. A delegated-authority checkout endpoint runs an eight-check pipeline (signature, expiry, agent binding, scope, nonce, idempotency) with HMAC-SHA256 and constant-time signature comparison, proven by a five-scenario test that asserts happy-path, replay, over-budget, wrong-SKU, and idempotent retry. A comparison agent with generative UI demonstrates structured-output dispatch: the model picks one of three shapes (spec table, pros/cons, recommendation) via a Zod discriminated union and React switch-renders the matching component, type-safe at every boundary.
Author · Applied AI—TypeScript—Next.js 16—React 19—Vercel AI SDK—Anthropic SDK—Zod—Upstash—Tailwind v4