Open-source platform for 3D AI agents. Turn text or a photo into a rigged, animated GLB avatar, give it an LLM brain, memory and a wallet, and embed it anywhere with one web component. Remote MCP server, x402 payments, Three.js, browser-native.
JavaScript 3d-generationai-agentsanimationavatardigital-humangenerative-aiglbgltfimage-to-3dllmmcpmcp-servermodel-context-protocolsolanatext-to-3dthreejsweb-componentswebglwebxrx402
test(widgets): pin the OG card for demo widgets and clear the batch-13 docs audit
nirholas7c9b05849609
diff --git a/.batch13-audit.mjs b/.batch13-audit.mjsdeleted file mode 100644index da90b71e3..000000000--- a/.batch13-audit.mjs+++ /dev/null@@ -1,159 +0,0 @@-// Batch-13 docs audit: console errors, failed requests, link resolution.-import { chromium } from 'playwright';--const BASE = process.env.BASE || 'http://localhost:3000';-const PATHS = (process.env.PATHS || [- '/docs/mcp-intel',- '/docs/mcp-vanity',- '/docs/mcp-naming',- '/docs/mcp-marketplace',- '/docs/skills',- '/docs/widgets',- '/docs/api-reference',- '/docs/authentication',-].join(',')).split(',');--const browser = await chromium.launch();-const urlCache = new Map();--async function getStatus(url) {- if (urlCache.has(url)) return urlCache.get(url);- let status = -1;- try {- const r = await fetch(url, { redirect: 'follow' });- await r.arrayBuffer();- status = r.status;- } catch {- status = -1;- }- urlCache.set(url, status);- return status;-}--const mdCache = new Map();-async function docHeadingIds(slug) {- if (mdCache.has(slug)) return mdCache.get(slug);- let ids = null;- const r = await fetch(`${BASE}/docs/${slug}.md`);- if (r.ok) {- const text = await r.text();- if (!/^\s*<!doctype html/i.test(text)) {- ids = new Set();- let fence = false;- for (const line of text.split('\n')) {- if (/^\s*```/.test(line)) fence = !fence;- if (fence) continue;- const m = /^(#{1,6})\s+(.*)$/.exec(line);- if (m) {- ids.add(- m[2]- .replace(/`/g, '')- .replace(/\*\*/g, '')- .replace(/\[([^\]]*)\]\([^)]*\)/g, '$1')- .toLowerCase()- .replace(/[^\w\s-]/g, '')- .trim()- .replace(/\s+/g, '-'),- );- }- }- }- }- mdCache.set(slug, ids);- return ids;-}--const report = [];-for (const p of PATHS) {- const ctx = await browser.newContext({ viewport: { width: 1440, height: 900 } });- const page = await ctx.newPage();- const consoleErrors = [];- const pageErrors = [];- const failedReqs = [];- page.on('console', (m) => {- if (m.type() === 'error' || m.type() === 'warning') consoleErrors.push(`[${m.type()}] ${m.text()}`);- });- page.on('pageerror', (e) => pageErrors.push(String(e && e.message ? e.message : e)));- page.on('requestfailed', (r) => failedReqs.push(`FAILED ${r.url()} :: ${r.failure()?.errorText}`));- page.on('response', (r) => {- if (r.status() >= 400) failedReqs.push(`${r.status()} ${r.url()}`);- });-- const resp = await page.goto(BASE + p, { waitUntil: 'networkidle', timeout: 60000 }).catch((e) => {- pageErrors.push('goto failed: ' + e.message);- return null;- });- await page.waitForTimeout(2500);-- const info = await page.evaluate(() => {- const anchors = [...document.querySelectorAll('a[href]')].map((a) => a.getAttribute('href'));- const ids = [...document.querySelectorAll('[id]')].map((e) => e.id);- return {- title: document.title,- desc: document.querySelector('meta[name="description"]')?.getAttribute('content') || null,- h1: document.querySelector('h1')?.textContent?.trim() || null,- bodyLen: document.body.innerText.length,- anchors,- ids,- };- });-- const dead = [];- const seen = new Set();- for (const href of info.anchors) {- if (!href || seen.has(href)) continue;- seen.add(href);- if (/^(mailto:|javascript:|data:|tel:)/i.test(href)) continue;-- if (href.startsWith('#')) {- const raw = decodeURIComponent(href.slice(1));- if (!raw) continue;- if (info.ids.includes(raw)) continue;- const [slug, anchor] = raw.split('@');- const ids = await docHeadingIds(slug);- if (!ids) dead.push(`HASHROUTE ${href} (no /docs/${slug}.md)`);- else if (anchor && !ids.has(anchor)) dead.push(`HASHANCHOR ${href}`);- continue;- }-- let url;- if (/^https?:\/\//i.test(href)) {- url = href;- if (!/(^|\/\/)([a-z0-9-]+\.)?three\.ws/.test(url)) continue;- url = url.replace(/^https?:\/\/three\.ws/, BASE);- } else {- url = new URL(href, BASE + p).toString();- }- const st = await getStatus(url.split('#')[0]);- if (st >= 400 || st < 0) dead.push(`${st} ${href}`);- }-- report.push({- path: p,- status: resp?.status() ?? 0,- title: info.title,- desc: info.desc,- h1: info.h1,- bodyLen: info.bodyLen,- links: info.anchors.length,- consoleErrors,- pageErrors,- failedReqs,- dead,- });- await ctx.close();-}-await browser.close();--for (const r of report) {- console.log('='.repeat(70));- console.log(r.path, 'HTTP', r.status, '| bodyLen', r.bodyLen, '| links', r.links);- console.log(' title:', r.title);- console.log(' desc :', r.desc);- console.log(' h1 :', r.h1);- console.log(' counts: console=' + r.consoleErrors.length, 'pageErrors=' + r.pageErrors.length, 'netFail=' + new Set(r.failedReqs).size, 'dead=' + r.dead.length);- if (r.consoleErrors.length) console.log(' CONSOLE:\n ' + r.consoleErrors.slice(0, 15).join('\n '));- if (r.pageErrors.length) console.log(' PAGEERR:\n ' + r.pageErrors.join('\n '));- if (r.failedReqs.length) console.log(' NETFAIL:\n ' + [...new Set(r.failedReqs)].slice(0, 20).join('\n '));- if (r.dead.length) console.log(' DEADLINK:\n ' + r.dead.join('\n '));-}diff --git a/.fchk.mjs b/.fchk.mjsdeleted file mode 100644index 583027a80..000000000--- a/.fchk.mjs+++ /dev/null@@ -1,13 +0,0 @@-import { chromium } from 'playwright';-const b = await chromium.launch();-const p = await b.newPage();-await p.goto('http://localhost:3000/docs/widgets', { waitUntil: 'networkidle' });-await p.waitForTimeout(2000);-console.log(await p.evaluate(() => ({- footers: document.querySelectorAll('footer').length,- horizon: document.querySelectorAll('.h-footer-horizon').length,- taglines: [...document.querySelectorAll('.h-footer-tagline')].map(e=>e.textContent.trim()),- navs: document.querySelectorAll('.h-footer-links').length,- mainId: document.querySelector('main')?.id || '(none)',-})));-await b.close();diff --git a/data/changelog.json b/data/changelog.jsonindex 9cc9fb4ee..2d135a8cb 100644--- a/data/changelog.json+++ b/data/changelog.json@@ -1,6 +1,16 @@{"$comment": "Curated changelog entries for three.ws, the editorial layer of the public changelog. New PAGE launches are tracked automatically via the `added` field in data/pages.json; this file is for everything else holders care about: improvements, fixes, SDK releases, trading/payments capabilities, security work. scripts/build-page-index.mjs merges both sources into CHANGELOG.md, public/changelog.json, and public/changelog.xml. Newest first. Allowed tags: feature, improvement, fix, sdk, infra, docs, security. `link` is optional and must be a live three.ws path.","entries": [+ {+ "date": "2026-08-13",+ "title": "Documentation links to operator-only pages no longer dead-end, and the Forge docs match the engine that actually runs",+ "summary": "Fifteen documentation pages cite internal runbooks that live in the repository but are deliberately never published to the site. The reader was turning those citations into on-site links, so clicking one landed on a page that does not exist; they now open the file on GitHub in a new tab, like every other source citation. Separately, the Forge pages had drifted from the code: they still named NVIDIA's hosted lane as the default engine for text prompts, when draft and standard generations have been running on our own GPU workers for a while, with the NVIDIA lane kept as the last free fallback. The photo limit was documented as four images when the API accepts six, the Diorama example response was missing the wrapper key every client has to read, and the 3D API quickstart showed a job to poll for a call that usually answers with the finished model straight away. Every command and code sample on those pages was executed against production before being corrected.",+ "tags": [+ "docs",+ "fix"+ ],+ "link": "/docs/forge"+ },{"date": "2026-08-13","title": "The two MCP server docs that had drifted now list every tool the servers actually ship",diff --git a/prompts/swarm-100/api-labor-01.md b/prompts/swarm-100/api-labor-01.mddeleted file mode 100644index da298ced0..000000000--- a/prompts/swarm-100/api-labor-01.md+++ /dev/null@@ -1,110 +0,0 @@-# API audit: api/labor batch 01 (10 files)--How to run: paste this file's repo path into a fresh Claude Code chat in this-repository and say "run this work order". This file is fully self-contained:-it depends on no other prompt file anywhere. If neighboring files in-prompts/swarm-100/ are gone, that work is done; if present, ignore them.-Every claim below rots; step 0 re-measures, and what you measure wins.--## Operating clause (binding)--- Read CLAUDE.md first. Its rules override everything, including this file.-- Finish 100% in this session. Never end the turn with a question, an option- list, or an unexecuted plan. A judgment call goes in one line of the final- report; it never becomes a question that halts work.-- The only permitted stops are the CLAUDE.md stop-and-ask gates: spending real- funds or any irreversible on-chain write, git push or a production deploy,- committing content that references a crypto project other than $THREE, and- destroying unrecoverable data.-- No mocks, no fake data, no placeholder stubs, no unfinished-work markers, no- commented-out code. Real APIs and real integrations only.-- The em-dash and en-dash characters are banned in everything you write.-- Concurrent agents share this worktree: stage explicit paths only (never a- bare add-everything), and commit finished work promptly.-- Before committing, run: npm run check:rules -- --paths <files you touched>.- It must exit 0.--## Step 0: re-derive the current state--1. Confirm each file below still exists; deleted ones are done, skip them.-2. For each, decide routability: grep its path in vercel.json and read how- server/index.mjs maps filesystem handlers. Routed files get an endpoint- audit; internal modules get a code and test audit.-3. Start a local server for endpoint checks: node server/index.mjs with .env- loaded, on a free PORT if 3000 is busy.--## Task: audit these api files, then fix everything found--Files in this batch:--- api/labor/agent.js-- api/labor/award.js-- api/labor/bid.js-- api/labor/bounty.js-- api/labor/deliver.js-- api/labor/feed.js-- api/labor/policy.js-- api/labor/post.js-- api/labor/release.js-- api/labor/settle.js--For every routed handler:--1. Exercise it with curl against the local server: the success path returns- real data with the correct status; malformed input returns a 4xx JSON- error, never a stack trace or an HTML error page; auth is enforced where- the code intends it; CORS matches neighboring handlers.-2. Hard-rule scan: no mock fallbacks, no fake-data arrays, no stubbed- responses, no unfinished markers. Errors are handled at the boundary and- internal code trusts itself.-3. Do not spend funds or sign anything on-chain while probing. Payment and- trading handlers get their validation and error paths exercised, never a- live settlement.--For every internal (non-routed) module:--4. Something must import it; if nothing does, delete it as dead code (verify- with a repo-wide grep first).-5. Its main path and one failure path must be covered in tests/; add the- missing test if not.--## Definition of done--- [ ] Every listed file has recorded evidence: a curl transcript for routed- handlers, a passing test or a deletion for internal modules.-- [ ] Zero hard-rule violations remain in these files.-- [ ] vitest run passes; npm run check:rules -- --paths <touched files>- exits 0.--## Never blocked--| Blocker | Resolution (act, do not ask) |-|---|---|-| Missing env var or credential | Check .env and .env.local, then the Cloud Run service env, then Secret Manager (the CLAUDE.md self-unblock playbook has the exact commands). If it truly exists nowhere, wire the code fully behind the env var, prove the wiring with a dry run, and name the single missing var in the report. |-| gcloud not on PATH | Run: export PATH="$HOME/google-cloud-sdk/bin:$PATH" |-| Dev server port 3000 busy | Another agent may be serving this repo; probe it and reuse if so. Otherwise start your own on a free port: npx vite --port 3101 |-| Playwright browser missing | npx playwright install chromium |-| A surface needs a signed-in user | Register a fresh account through the real /register flow against the real API and use it. Never mock the session. |-| A defect sits in code you did not touch | Fix it if it blocks a Definition of done line (root cause it, never mask it). Otherwise note it in the report and continue. |-| An unrelated test is red | Same rule. Never pipe npm test through tail; it masks exit codes. |--## Close out (required)--1. Verify every Definition of done line with the actual command output in- front of you. Never claim a line you did not verify.-2. Commit with explicit paths and a subject that describes the diff (house- style: type(scope): what changed and why a reader cares).-3. Delete this prompt file in that same commit:-- git rm prompts/swarm-100/api-labor-01.md-- The shrinking directory is this campaign's only progress ledger; there is- no progress log to update.-4. Final report: what step 0 measured, what changed (file list), evidence per- Definition of done line, and any one-line judgment calls. No trailing- questions, no unexecuted plans.--If a line genuinely cannot pass inside this session (an external party must-respond, or an owner-gated action is the final step), finish everything else,-leave this file in place, and state exactly which line remains and who owns-it. Never delete this file on a partial.diff --git a/prompts/swarm-100/blog-batch-01.md b/prompts/swarm-100/blog-batch-01.mddeleted file mode 100644index f49ddf298..000000000--- a/prompts/swarm-100/blog-batch-01.md+++ /dev/null@@ -1,102 +0,0 @@-# Blog audit batch 01--How to run: paste this file's repo path into a fresh Claude Code chat in this-repository and say "run this work order". This file is fully self-contained:-it depends on no other prompt file anywhere. If neighboring files in-prompts/swarm-100/ are gone, that work is done; if present, ignore them.-Every claim below rots; step 0 re-measures, and what you measure wins.--## Operating clause (binding)--- Read CLAUDE.md first. Its rules override everything, including this file.-- Finish 100% in this session. Never end the turn with a question, an option- list, or an unexecuted plan. A judgment call goes in one line of the final- report; it never becomes a question that halts work.-- The only permitted stops are the CLAUDE.md stop-and-ask gates: spending real- funds or any irreversible on-chain write, git push or a production deploy,- committing content that references a crypto project other than $THREE, and- destroying unrecoverable data.-- No mocks, no fake data, no placeholder stubs, no unfinished-work markers, no- commented-out code. Real APIs and real integrations only.-- The em-dash and en-dash characters are banned in everything you write.-- Concurrent agents share this worktree: stage explicit paths only (never a- bare add-everything), and commit finished work promptly.-- Before committing, run: npm run check:rules -- --paths <files you touched>.- It must exit 0.--## Step 0: re-derive the current state--1. Confirm each path below still exists in data/pages.json; a path that was- removed there is out of scope (note it in the report, skip it).-2. Start (or reuse) the local dev server: npm run dev (vite, port 3000).-3. Probe production for each path:-- for p in /blog /blog/ibm-user-group-first-in-world-meetup-recap /blog/image-to-3d-on-nvidia-l4-and-blackwell /blog/monetize-mcp-server-x402-paid-tools /blog/three-ws-openai-select-partner /blog/autonomous-trading-experiment /blog/first-autonomous-trade /blog/concierge-3d-chat-widget /blog/inside-the-forge /blog/three-ws-quicknode-startup-program; do printf '%s ' "$p"; curl -so /dev/null -w '%{http_code}\n' "https://three.ws$p"; done--## Task: audit this batch of blog pages, then fix everything found--Pages in this batch:--- /blog ("Blog")-- /blog/ibm-user-group-first-in-world-meetup-recap ("The Three.ws User Group's First In-World Meetup: How It Went")-- /blog/image-to-3d-on-nvidia-l4-and-blackwell ("Image-to-3D on NVIDIA L4 and Blackwell: Shipping Hunyuan3D 2.1 on Cloud Run GPUs")-- /blog/monetize-mcp-server-x402-paid-tools ("How to Monetize an MCP Server: Paid Tools with x402")-- /blog/three-ws-openai-select-partner ("three.ws Named an OpenAI Select Partner")-- /blog/autonomous-trading-experiment ("We Gave 11 AI Agents Their Own Wallets and Real SOL. Here Are All 90 Trades.")-- /blog/first-autonomous-trade ("Our Agent Made Its First Autonomous Trade. Here Is Every Decision It Took.")-- /blog/concierge-3d-chat-widget ("Concierge: We Gave the Site Chatbot a Face")-- /blog/inside-the-forge ("Inside the Forge: How a Prompt Becomes a 3D Model")-- /blog/three-ws-quicknode-startup-program ("three.ws Joins the Quicknode Startup Program")--For every page, in a real headless browser against localhost:--1. HTTP 200, zero console errors, zero unhandled failed requests.-2. Every link on the page resolves (internal paths exist in the route table;- anchors have targets). Fix or remove dead ones.-3. Rendering integrity only: images load, layout is intact at 320 and 1440 px, dates and metadata render. Do not rewrite editorial voice; fix mechanics.-4. Title tag and meta description present and specific.-5. Fix defects at their root and re-run until clean.--## Definition of done--- [ ] Every page in the batch loads locally with HTTP 200 and zero console- errors.-- [ ] Zero dead links across the batch.-- [ ] Layout verified at 320 and 1440 px on every page.-- [ ] Title and meta description verified on every page.-- [ ] npm run check:rules -- --paths <touched files> exits 0; npm test passes- if you touched code.-- [ ] Production status per page recorded in the report.--## Never blocked--| Blocker | Resolution (act, do not ask) |-|---|---|-| Missing env var or credential | Check .env and .env.local, then the Cloud Run service env, then Secret Manager (the CLAUDE.md self-unblock playbook has the exact commands). If it truly exists nowhere, wire the code fully behind the env var, prove the wiring with a dry run, and name the single missing var in the report. |-| gcloud not on PATH | Run: export PATH="$HOME/google-cloud-sdk/bin:$PATH" |-| Dev server port 3000 busy | Another agent may be serving this repo; probe it and reuse if so. Otherwise start your own on a free port: npx vite --port 3101 |-| Playwright browser missing | npx playwright install chromium |-| A surface needs a signed-in user | Register a fresh account through the real /register flow against the real API and use it. Never mock the session. |-| A defect sits in code you did not touch | Fix it if it blocks a Definition of done line (root cause it, never mask it). Otherwise note it in the report and continue. |-| An unrelated test is red | Same rule. Never pipe npm test through tail; it masks exit codes. |--## Close out (required)--1. Verify every Definition of done line with the actual command output in- front of you. Never claim a line you did not verify.-2. Commit with explicit paths and a subject that describes the diff (house- style: type(scope): what changed and why a reader cares).-3. Delete this prompt file in that same commit:-- git rm prompts/swarm-100/blog-batch-01.md-- The shrinking directory is this campaign's only progress ledger; there is- no progress log to update.-4. Final report: what step 0 measured, what changed (file list), evidence per- Definition of done line, and any one-line judgment calls. No trailing- questions, no unexecuted plans.--If a line genuinely cannot pass inside this session (an external party must-respond, or an owner-gated action is the final step), finish everything else,-leave this file in place, and state exactly which line remains and who owns-it. Never delete this file on a partial.diff --git a/prompts/swarm-100/docs-batch-13.md b/prompts/swarm-100/docs-batch-13.mddeleted file mode 100644index 91cea62fd..000000000--- a/prompts/swarm-100/docs-batch-13.md+++ /dev/null@@ -1,100 +0,0 @@-# Docs audit batch 13: /docs/mcp-intel through /docs/authentication--How to run: paste this file's repo path into a fresh Claude Code chat in this-repository and say "run this work order". This file is fully self-contained:-it depends on no other prompt file anywhere. If neighboring files in-prompts/swarm-100/ are gone, that work is done; if present, ignore them.-Every claim below rots; step 0 re-measures, and what you measure wins.--## Operating clause (binding)--- Read CLAUDE.md first. Its rules override everything, including this file.-- Finish 100% in this session. Never end the turn with a question, an option- list, or an unexecuted plan. A judgment call goes in one line of the final- report; it never becomes a question that halts work.-- The only permitted stops are the CLAUDE.md stop-and-ask gates: spending real- funds or any irreversible on-chain write, git push or a production deploy,- committing content that references a crypto project other than $THREE, and- destroying unrecoverable data.-- No mocks, no fake data, no placeholder stubs, no unfinished-work markers, no- commented-out code. Real APIs and real integrations only.-- The em-dash and en-dash characters are banned in everything you write.-- Concurrent agents share this worktree: stage explicit paths only (never a- bare add-everything), and commit finished work promptly.-- Before committing, run: npm run check:rules -- --paths <files you touched>.- It must exit 0.--## Step 0: re-derive the current state--1. Confirm each path below still exists in data/pages.json; a path that was- removed there is out of scope (note it in the report, skip it).-2. Start (or reuse) the local dev server: npm run dev (vite, port 3000).-3. Probe production for each path:-- for p in /docs/mcp-intel /docs/mcp-vanity /docs/mcp-naming /docs/mcp-marketplace /docs/skills /docs/widgets /docs/api-reference /docs/authentication; do printf '%s ' "$p"; curl -so /dev/null -w '%{http_code}\n' "https://three.ws$p"; done--## Task: audit this batch of docs pages, then fix everything found--Pages in this batch:--- /docs/mcp-intel ("Docs · Intel MCP")-- /docs/mcp-vanity ("Docs · Vanity MCP")-- /docs/mcp-naming ("Docs · Naming MCP")-- /docs/mcp-marketplace ("Docs · Marketplace MCP")-- /docs/skills ("Docs · Skills")-- /docs/widgets ("Docs · Widgets")-- /docs/api-reference ("Docs · API Reference")-- /docs/authentication ("Docs · Authentication")--For every page, in a real headless browser against localhost:--1. HTTP 200, zero console errors, zero unhandled failed requests.-2. Every link on the page resolves (internal paths exist in the route table;- anchors have targets). Fix or remove dead ones.-3. Content accuracy: the page documents current behavior. Spot-check its claims against the code it describes; where it names a command, run the command; where it shows a code sample, the sample must actually run. Fix stale claims in the same change.-4. Title tag and meta description present and specific.-5. Fix defects at their root and re-run until clean.--## Definition of done--- [ ] Every page in the batch loads locally with HTTP 200 and zero console- errors.-- [ ] Zero dead links across the batch.-- [ ] Every named command and code sample on these pages verified runnable, or corrected.-- [ ] Title and meta description verified on every page.-- [ ] npm run check:rules -- --paths <touched files> exits 0; npm test passes- if you touched code.-- [ ] Production status per page recorded in the report.--## Never blocked--| Blocker | Resolution (act, do not ask) |-|---|---|-| Missing env var or credential | Check .env and .env.local, then the Cloud Run service env, then Secret Manager (the CLAUDE.md self-unblock playbook has the exact commands). If it truly exists nowhere, wire the code fully behind the env var, prove the wiring with a dry run, and name the single missing var in the report. |-| gcloud not on PATH | Run: export PATH="$HOME/google-cloud-sdk/bin:$PATH" |-| Dev server port 3000 busy | Another agent may be serving this repo; probe it and reuse if so. Otherwise start your own on a free port: npx vite --port 3101 |-| Playwright browser missing | npx playwright install chromium |-| A surface needs a signed-in user | Register a fresh account through the real /register flow against the real API and use it. Never mock the session. |-| A defect sits in code you did not touch | Fix it if it blocks a Definition of done line (root cause it, never mask it). Otherwise note it in the report and continue. |-| An unrelated test is red | Same rule. Never pipe npm test through tail; it masks exit codes. |--## Close out (required)--1. Verify every Definition of done line with the actual command output in- front of you. Never claim a line you did not verify.-2. Commit with explicit paths and a subject that describes the diff (house- style: type(scope): what changed and why a reader cares).-3. Delete this prompt file in that same commit:-- git rm prompts/swarm-100/docs-batch-13.md-- The shrinking directory is this campaign's only progress ledger; there is- no progress log to update.-4. Final report: what step 0 measured, what changed (file list), evidence per- Definition of done line, and any one-line judgment calls. No trailing- questions, no unexecuted plans.--If a line genuinely cannot pass inside this session (an external party must-respond, or an owner-gated action is the final step), finish everything else,-leave this file in place, and state exactly which line remains and who owns-it. Never delete this file on a partial.diff --git a/tests/api/widgets.test.js b/tests/api/widgets.test.jsindex 23d0234ef..0eafd0733 100644--- a/tests/api/widgets.test.js+++ b/tests/api/widgets.test.js@@ -663,6 +663,19 @@ describe('GET /api/widgets/og', () => {expect(res._body).toContain('Tour');expect(res._body).toContain('HOTSPOT TOUR');});++ // /w/:id points its og:image at this route, and the demo widgets are served+ // from baked-in fixtures rather than the DB. Resolving them here is what keeps+ // a shared demo link from previewing as the not-found card in Slack or X.+ it('renders the demo fixtures without touching the database', async () => {+ const req = mockReq({ method: 'GET', url: '/api/widgets/og?id=wdgt_demo_turntab' });+ const res = mockRes();+ await ogHandler(req, res);+ expect(res.statusCode).toBe(200);+ expect(res.headers['content-type']).toMatch(/svg/);+ expect(res._body).toContain('Turntable Showcase');+ expect(sqlQueue.length).toBe(0);+ });});// ── GET /api/widgets/:id/transcripts ────────────────────────────────────────