// The cover scenes: a product UI mockup per track, with the vendor's mark on an app-icon tile where the // track is about a vendor's product (Claude Code, Codex). Copy in the mockups is illustrative only. import { anthropic, claude, claudeCode, codex, mark, openai } from "./marks.mjs"; import { siteScene } from "./site-scene.mjs"; const tilt = (deg = -14, x = 7) => `transform: perspective(2200px) rotateY(${deg}deg) rotateX(${x}deg); transform-origin: 30% 50%;`; const chip = (x, y, text, cls = "") => `
${text}
`; const tile = (x, y, size, paths, rot = -8, cls = "") => `
${mark(paths, size * 0.56)}
`; // Stacked resource cards for the official-resources hubs const stack = (x, y, owner, ownerMark, items) => items .map( ([kind, title, host], i) => `
${kind} ${mark(ownerMark, 20)}${owner} ${host} ↗
${title}
` ) .join(""); function claudeScene(v) { const session = v === "memory" ? `> /init ● Reading the codebase ● Wrote CLAUDE.md # Commands - Before a PR: pnpm lint && pnpm test # Gotchas ✓ Memory files: CLAUDE.md > ` : v === "hub" ? `> Where should I start with Claude Code? ● Searching Anthropic's docs and courses ● Start with the best-practices guide ● Then a course and the weekly digest Source: code.claude.com/docs > ` : `> Plan the refactor, then run the tests ● Reading CLAUDE.md ● Plan · 3 steps 1. Extract the auth helpers 2. Update every import 3. Run the test suite ✓ 42 tests passed > `; // The hub mirrors the other Claude covers (window left, tile right) so it reads as its own image const hub = v === "hub"; return `
claude — ~/my-app
${mark(claude, 38)} Claude Code ${v === "hub" ? `official resources` : ""}
${session}
${hub ? tile(1150, 110, 250, claude, 8) : tile(250, 250, 270, claude, -9)} ${hub ? `${stack(690, 500, "Anthropic", anthropic, [["Course", "Claude Code in Action", "anthropic.com"], ["Digest", "What's new in Claude Code", "code.claude.com"], ["Talk", "Code with Claude", "anthropic.com"]])} ${chip(1300, 430, "Courses")}${chip(1300, 820, "Changelog", "blur1")}${chip(140, 830, "Webinars")}` : v === "memory" ? `${chip(1160, 96, "/init")}${chip(1270, 820, "@imports")}${chip(150, 640, ".claude/rules")}${chip(330, 120, "/memory", "blur1")}${chip(1380, 470, "/context")}
${mark(claudeCode, 54)}
CLAUDE.md
loaded every session
` : `${chip(1160, 96, "CLAUDE.md")}${chip(1270, 820, "Subagents")}${chip(150, 640, "Hooks")}${chip(330, 120, "MCP", "blur1")}${chip(1380, 470, "Skills")}
${mark(claudeCode, 54)}
Plan mode
think, then edit
`}`; } function codexScene(v) { const session = v === "agents" ? `$ codex "List the instruction sources you loaded." ▸ ~/.codex/AGENTS.md ▸ AGENTS.md ▸ services/payments/AGENTS.override.md Closer files win when two rules disagree ✓ 3 sources · 4.1 KiB of 32 KiB $ ` : v === "hub" ? `$ codex "explain AGENTS.md to me" ▸ Custom instructions live in AGENTS.md ▸ Put build, test and style rules there ▸ Codex reads it before every task Source: OpenAI Codex docs $ ` : `$ codex "validate the signup form" ▸ Reading AGENTS.md ▸ Editing src/routes/signup.ts + const body = schema.parse(await req.json())+ if (!body.ok) return badRequest(body.error)- // TODO: validate input✓ Tests passed · ready for review`; return `
codex — ~/api ${mark(openai, 22)}OpenAI
${session}
${tile(240, 250, 270, codex, -9)} ${v === "hub" ? stack(960, 440, "OpenAI", openai, [["Guide", "Codex best practices", "learn.chatgpt.com"], ["Docs", "Codex CLI", "learn.chatgpt.com"], ["Docs", "Codex Cloud", "learn.chatgpt.com"]]) : v === "agents" ? `${chip(1180, 92, "AGENTS.override.md")}${chip(170, 650, "~/.codex")}${chip(1330, 470, "config.toml")}${chip(360, 120, "Open format", "blur1")}
Filerepo root
AGENTS.md
● Setup · Code style · Done means
` : `${chip(1180, 92, "AGENTS.md")}${chip(170, 650, "Cloud tasks")}${chip(1330, 470, "CLI")}${chip(360, 120, "IDE", "blur1")}
Pull request#128
Validate signup input
● Checks passed · ready
`}`; } // Our own mark (the Impossible A), not a vendor's: on the agent panel const ourMarkAt = (size) => ``; const ourMark = ourMarkAt(34); const pointer = ``; // The form, results and agent steps for each computer-use cover const CU = { track: { url: "travel.example.com", title: "Find a flight", button: "Search", fields: [["From", "San Francisco"], ["To", "Tokyo"], ["Dates", "Nov 12 – Nov 19"]], rows: ["7:40 · 11h 05m", "10:15 · 11h 20m", "13:30 · 12h 10m", "16:55 · 11h 45m"], steps: [["done", "Open the booking site"], ["done", "Enter the dates"], ["now", "Click Search"], ["todo", "Compare the results"]], chips: [[1180, 680, "Screenshot"], [1300, 780, "Type"]], }, tutorial: { url: "admin.example.com/settings", title: "Team settings", button: "Save", fields: [["Name", "Jordan Lee"], ["Role", "Editor"], ["Email", "jordan@example.com"]], rows: ["Owner", "Editor", "Editor", "Viewer"], steps: [["done", "Open the admin dashboard"], ["done", "Copy rows from the sheet"], ["now", "Fill in the form"], ["todo", "Ask before submitting"]], chips: [[1150, 660, "Ask before purchases"], [1210, 760, "Allowed sites only"]], }, playwright: { url: "localhost:3000/signup", title: "Create your account", button: "Sign up", fields: [["Name", "Test User"], ["Email", "test+1@example.com"], ["Password", "••••••••••"]], rows: ["browser_navigate", "browser_snapshot", "browser_fill_form", "browser_click"], steps: [["done", "Open localhost:3000"], ["done", "Read the page"], ["now", "Fill in the sign-up form"], ["todo", "Screenshot each step"]], chips: [[1150, 660, "Playwright MCP"], [1250, 760, "--isolated"]], }, }; function computerUseScene(v) { const c = CU[v] || CU.track; const field = ([label, val], y) => `
${label}
${val}
`; return `
${c.url}
${c.title}
${c.fields.map((f, i) => field(f, 190 + i * 110)).join("")}
${c.button}
click
${c.rows .map((t, i) => `
${t}
`) .join("")}
${pointer}
${ourMark}Agent ● running
${c.steps .map( ([st, t]) => `
${st === "done" ? "✓" : ""}${t}
` ) .join("")}
${c.chips.map(([x, y, t]) => chip(x, y, t)).join("")} ${chip(120, 210, "Click", "blur1")}${chip(150, 820, "Scroll")}`; } function videoScene(v) { // A generated frame: a city skyline at dawn; k pans the camera across it const frame = (w, h, k) => { let seed = 7; const rnd = () => ((seed = (seed * 16807) % 2147483647) / 2147483647); const towers = []; for (let x = -40; x < 1300; ) { const bw = 26 + rnd() * 60, bh = 70 + Math.pow(rnd(), 1.6) * 230, far = rnd() < 0.45; towers.push({ x, bw, bh: far ? bh * 0.7 : bh, far }); x += bw * (far ? 0.55 : 0.9); } const lit = (t) => { let out = ""; for (let wy = 300 - t.bh + 14; wy < 290; wy += 16) for (let wx = t.x + 6; wx < t.x + t.bw - 8; wx += 12) if (rnd() < 0.22) out += ``; return out; }; const svg = ` ${towers.filter((t) => t.far).map((t) => ``).join("")} ${towers.filter((t) => !t.far).map((t) => `${lit(t)}`).join("")} `; return `
${svg}
`; }; const node = (x, y, title, rows, hot) => `
${title}
${rows.map((r) => `
${r}
`).join("")}
`; const wire = (x1, y1, x2, y2) => ``; const editor = `
${v === "tutorial" ? "output — clip_001.mp4" : "my-first-clip"}
${frame(v === "tutorial" ? 744 : 904, v === "tutorial" ? 300 : 380, 2)}
${[0, 1, 2, 3, 4, 5].map((k) => frame(v === "tutorial" ? 115 : 140, v === "tutorial" ? 64 : 80, k)).join("")}
`; if (v === "tutorial") { return `${editor} ${wire(400, 210, 470, 330)}${wire(760, 360, 820, 280)} ${node(110, 130, "Load model", ["open-weight video", "from your volume"])} ${node(470, 260, "Prompt", ["a city at dawn, slow pan"], true)} ${node(820, 120, "Sampler", ["steps · seed", "→ video"])}
GPU pod● running
ComfyUI on your GPU
network volume attached
${chip(170, 830, "Open weights")}${chip(1240, 160, "ComfyUI", "blur1")}`; } if (v === "agent") { const done = (text, hot) => `
✓ ${text}
`; return `
your agent
Use Runpod to set up ComfyUI for me on an RTX 4090
${done("In stock, $0.89 an hour")}${done("Network volume created")}${done("LTX-2.5 UD-Q4 installed")}${done("Test clip rendered", true)}
Your GPU● running
ComfyUI is up
set up by your agent
${chip(160, 200, "Runpod MCP")}${chip(1270, 830, "Six prompts")}${chip(300, 860, "Private AI", "blur1")}`; } if (v === "cost") { const line = (label, value, hot) => `
${label} ${value}
`; return `${editor}
Billing● under budget
${line("GPU pod", "stops in 1h 58m", true)} ${line("Network volume · 100 GB", "$7 / month")} ${line("Low-balance alert", "on", true)}
${chip(1210, 80, "Stop timer")}${chip(160, 200, "Terminate, don't stop")}${chip(1320, 820, "Runpod")}${chip(300, 880, "Test small first", "blur1")}`; } return `${editor}
Your GPU● running
Rendering clip 1 of 4
${chip(1210, 80, "Open weights")}${chip(160, 200, "ComfyUI")}${chip(1320, 820, "Runpod")}${chip(300, 860, "Text → video", "blur1")}`; } // One operator, several agents: a phone taking a dictated prompt, and three Claude Code sessions working at once function operatorScene() { const agents = [ ["agent 1 — fix-date-bug", [["b", "●", "Reading src/lib/dates.ts"], ["b", "●", "Fixing the time-zone offset"], ["p", "✓", "npm test · 42 passed"]]], ["agent 2 — add-tests", [["b", "●", "Writing tests for checkout"], ["b", "●", "Running the new tests"], ["p", "✓", "18 tests added"]]], ["agent 3 — update-docs", [["b", "●", "Updating the README"], ["d", "◌", "Waiting for your review"]]], ]; const win = ([title, lines], i) => `
${title} ${i === 2 ? "◌ review" : "● running"}
${lines .map(([c, m, t]) => `${m} ${t}`) .join("\n")}
`; const bubble = (text, me) => `
${text}
`; return ` ${agents.map(win).join("")}
${mark(claude, 26)}Claude Code
3 sessions · your computer
${bubble("Split this into three tasks and run them at the same time.", true)} ${bubble("Started 3 agents. I'll ask before anything is merged.", false)} ${bubble("Show me the test results.", true)}
${chip(250, 70, "Operator")}${chip(1270, 880, "Review first", "blur1")}${chip(80, 860, "Dictated")}${chip(1380, 36, "Worktrees", "blur1")}`; } export const SCENES = { claude: claudeScene, codex: codexScene, computerUse: computerUseScene, video: videoScene, operator: operatorScene, site: siteScene }; // One cover per track (track pages, and the fallback for new tutorials) and one per tutorial export const COVERS = [ { out: "claude", scene: "claude", variant: "track" }, { out: "claude/claude-code-best-practices", scene: "claude", variant: "hub" }, { out: "chatgpt", scene: "codex", variant: "track" }, { out: "chatgpt/codex-best-practices", scene: "codex", variant: "hub" }, { out: "computer-use", scene: "computerUse", variant: "track" }, { out: "computer-use/what-is-computer-use", scene: "computerUse", variant: "tutorial" }, { out: "ai-video", scene: "video", variant: "track" }, { out: "ai-video/runpod-open-weight-video", scene: "video", variant: "tutorial" }, { out: "claude/claude-md-guide", scene: "claude", variant: "memory" }, { out: "chatgpt/agents-md-codex", scene: "codex", variant: "agents" }, { out: "computer-use/playwright-mcp-claude-code", scene: "computerUse", variant: "playwright" }, { out: "ai-video/runpod-cost-tips", scene: "video", variant: "cost" }, { out: "ai-video/comfyui-runpod-agent", scene: "video", variant: "agent" }, { out: "claude/run-a-team-of-agents", scene: "operator" }, // Not a tutorial cover: the source of the site-wide share image { out: "site", scene: "site" }, ];