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
Document NIM forge self-host in README/MCP docs; refine forge-nim page and demo
nirholasbc5c041dad2b
diff --git a/.gitignore b/.gitignoreindex a1c4dbbba..e6d9e33bf 100644--- a/.gitignore+++ b/.gitignore@@ -274,3 +274,6 @@ api/_lib/migrations/20260623170000_agent_bodies.sql# MCP registry publisher auth token (never commit).mcp_publisher_token++# NVIDIA TRELLIS demo outputs (local only)+demo/diff --git a/README.md b/README.mdindex 8ead90ce7..80449cda4 100644--- a/README.md+++ b/README.md@@ -1710,6 +1710,13 @@ Fifteen packages ship from this repo, all published to npm under the **`@three-w| [`@three-ws/three-token-mcp`](packages/three-token-mcp/) | `npx -y @three-ws/three-token-mcp` | Price, hold, and burn **$THREE** on Solana — deflation as an agent primitive || [`@three-ws/ibm-watsonx-mcp`](packages/ibm-watsonx-mcp/) | `npx -y @three-ws/ibm-watsonx-mcp` | IBM watsonx.ai Granite (chat, generate, embed, forecast) with your own IBM key || [`@three-ws/ibm-x402-mcp`](packages/ibm-x402-mcp/) | `npx -y @three-ws/ibm-x402-mcp` | Pay-per-use IBM Granite — USDC on Solana, no IBM account required |+| [`@three-ws/mcp-bridge`](mcp-bridge/) | `npx -y @three-ws/mcp-bridge` | x402 universal payer — auto-pay any x402 endpoint on the open web, with Bazaar discovery + spend caps |+| [`@three-ws/x402-mcp`](packages/x402-mcp/) | `npx -y @three-ws/x402-mcp` | Self-custodial x402 wallet — discover, inspect, and pay any x402 service in USDC |+| [`@three-ws/scene-mcp`](packages/scene-mcp/) | `npx -y @three-ws/scene-mcp` | Compose a placed 3D diorama from one sentence, then browse the saved scene gallery |+| [`@three-ws/intel-mcp`](packages/intel-mcp/) | `npx -y @three-ws/intel-mcp` | Coin smart-money scores, wallet reputation, signal feeds, and KOL leaderboards |+| [`@three-ws/vanity-mcp`](packages/vanity-mcp/) | `npx -y @three-ws/vanity-mcp` | Solana vanity-address bounty market — quote difficulty + USDC price, browse the board |+| [`@three-ws/marketplace-mcp`](packages/marketplace-mcp/) | `npx -y @three-ws/marketplace-mcp` | Browse the public three.ws agent marketplace + skills catalog (read-only) |+| [`@three-ws/naming-mcp`](packages/naming-mcp/) | `npx -y @three-ws/naming-mcp` | On-chain identity for agents — resolve .sol names, reverse-lookup wallets, check handles |**`@three-ws/sdk` quickstart:**diff --git a/api/_mcp3d/tools/studio.js b/api/_mcp3d/tools/studio.jsindex bb0ec15fc..ed13eb946 100644--- a/api/_mcp3d/tools/studio.js+++ b/api/_mcp3d/tools/studio.js@@ -1,10 +1,11 @@// three.ws 3D Studio MCP — generation tools.//// text_to_3d / image_to_3d submit a reconstruction job and return a job handle.-// Both accept a quality tier (draft/standard/high) and a generation path:-// "image" (FLUX→TRELLIS, the platform-keyed default) or "geometry" (native-// text/image→mesh via Meshy/Tripo, BYOK). generation_status polls any job —-// it is provider-aware, decoding the forge job token to route geometry jobs.+// Both accept a quality tier (draft/standard/high), a generation path ("image"+// reference-image reconstruction, the platform-keyed default, or "geometry"+// native text/image→mesh, BYOK), and a three.ws-branded `engine` selector+// (see the ENGINES map). generation_status polls any job — it is engine-aware,+// decoding the forge job token to route geometry jobs.// auto_rig_model adds a skeleton + skin weights to a static mesh (rerig).// preview_3d renders any GLB inline. remove_background strips image backgrounds.// remesh_model converts, simplifies, and repairs meshes.@@ -176,11 +177,12 @@ function viewerArtifact({ glbUrl, name, options = {} }) {};}-// ── Quality tier + generation path/backend (shared by text_to_3d/image_to_3d) ──+// ── Quality tier + generation path/engine (shared by text_to_3d/image_to_3d) ──// Mirrors the /api/forge axes: `path` ("image" vs "geometry"), `tier`-// (draft/standard/high poly budget), `backend` (trellis/meshy/tripo/hunyuan3d).-// The default — path "image", backend "trellis" — keeps the existing fast-// platform-keyed reconstruction untouched.+// (draft/standard/high poly budget), and `backend` — exposed as the white-labeled+// three.ws `engine` vocabulary (ENGINES, above) rather than vendor ids. The+// default — path "image", engine "auto" — keeps the existing fast platform-keyed+// reconstruction untouched.function parsePathArg(args) {const p = typeof args?.path === 'string' ? args.path.trim() : '';return PATHS.includes(p) ? p : DEFAULT_PATH;@@ -548,9 +550,9 @@ export const toolDefs = [await enforce(limits.mcp3dGenerate, auth);const path = parsePathArg(args);const tier = resolveTier(parseTierArg(args));- const backendId = resolveBackendId({ path, backend: args.backend });+ const backendId = resolveBackendId({ path, backend: resolveEngineArg(args) });- // BYOK geometry-style backends (Meshy/Tripo/Rodin) — native text→mesh.+ // BYOK geometry-style engines (the geometry/sculpt/instant engines) — native text→mesh.// Routed by registry membership, not just path, so an explicitly chosen// BYOK backend is honoured even if its default path is "image".if (isByokGeometryBackend(BACKENDS[backendId])) {@@ -595,7 +597,7 @@ export const toolDefs = [prompt: args.prompt,path,tier: tier.id,- backend: backendId,+ engine: engineIdFor(backendId),preview_image_url: imageUrl,text_to_image_model: model,eta_seconds: job.eta,@@ -686,11 +688,11 @@ export const toolDefs = [const path = parsePathArg(args);const tier = resolveTier(parseTierArg(args));- const backendId = resolveBackendId({ path, backend: args.backend });+ const backendId = resolveBackendId({ path, backend: resolveEngineArg(args) });- // BYOK geometry-style backends (Meshy/Tripo/Rodin/Stability) reconstruct- // from the primary view; multi-view fusion stays on the image/TRELLIS- // path below. Routed by registry membership, not just path.+ // BYOK geometry-style engines (the geometry/sculpt/instant engines)+ // reconstruct from the primary view; multi-view fusion stays on the+ // platform image engine below. Routed by registry membership, not just path.if (isByokGeometryBackend(BACKENDS[backendId])) {return submitGeometryJob({req,@@ -738,7 +740,7 @@ export const toolDefs = [multiview,path,tier: tier.id,- backend: job.backend ?? backendId ?? null,+ engine: engineIdFor(job.backend ?? backendId),eta_seconds: job.eta,},};@@ -911,7 +913,7 @@ export const toolDefs = [title: 'Remove the background from an image',annotations: GENERATIVE_ANNOTATIONS,description:- 'Strip the background from a photo or illustration using BRIA RMBG-2.0 (Apache-2.0). Returns a PNG with a transparent background — useful for preparing clean inputs before image_to_3d reconstruction.',+ 'Strip the background from a photo or illustration with the three.ws background-removal engine. Returns a PNG with a transparent background — useful for preparing clean inputs before image_to_3d reconstruction.',inputSchema: {type: 'object',properties: {@@ -1225,7 +1227,7 @@ export const toolDefs = [title: 'Paint a new texture onto a 3D model from a text prompt',annotations: GENERATIVE_ANNOTATIONS,description:- 'Generate a fresh texture for an untextured or poorly-textured GLB using SDXL + ControlNet depth. Renders the mesh from 8 viewpoints, generates coherent texture views guided by your prompt, and back-projects them onto the UV atlas. Returns a job_id to poll with generation_status.',+ 'Generate a fresh texture for an untextured or poorly-textured GLB with the three.ws depth-guided multi-view texturing engine. Renders the mesh from 8 viewpoints, generates coherent texture views guided by your prompt, and back-projects them onto the UV atlas. Returns a job_id to poll with generation_status.',inputSchema: {type: 'object',properties: {@@ -1308,7 +1310,7 @@ export const toolDefs = [description:'Surgically repaint ONLY a region of an existing texture from a prompt and/or colour, ' +'leaving the rest of the surface untouched and feathering the seam so the edit is invisible. ' +- 'Real SDXL inpainting in UV space — fix a seam, recolour one panel, add a logo to a chest plate. ' ++ 'Real UV-space texture inpainting — fix a seam, recolour one panel, add a logo to a chest plate. ' +"Supply mask_url: a UV-space mask PNG in the model's own UV layout where WHITE marks the area to " +'repaint and black is preserved. Safe to run repeatedly — chain passes by feeding the previous ' +'result GLB back in as mesh_url. Returns a job_id to poll with generation_status.',@@ -1438,7 +1440,7 @@ export const toolDefs = [title: 'Auto-rig a static 3D model (skeleton + skin weights)',annotations: GENERATIVE_ANNOTATIONS,description:- 'Turn a static GLB mesh into an animation-ready character: adds a humanoid skeleton and per-vertex skin weights via the three.ws rig pipeline (VAST-AI UniRig). Pairs with text_to_3d / image_to_3d — generate a mesh, then rig it, then drive it with apply_animation or pose_model. Returns a job_id; poll generation_status for the rigged GLB.',+ 'Turn a static GLB mesh into an animation-ready character: adds a humanoid skeleton and per-vertex skin weights via the three.ws rig pipeline. Pairs with text_to_3d / image_to_3d — generate a mesh, then rig it, then drive it with apply_animation or pose_model. Returns a job_id; poll generation_status for the rigged GLB.',inputSchema: {type: 'object',properties: {diff --git a/docs/mcp.md b/docs/mcp.mdindex 9775a68ab..e49f5c5e1 100644--- a/docs/mcp.md+++ b/docs/mcp.md@@ -43,30 +43,45 @@ The MCP server configuration is at `.mcp.json` in the project root, which Claude## The full three.ws MCP ecosystem-This page documents the hosted avatar/3D server at `/api/mcp`, but it's one of **14 three.ws MCP servers** — all listed in the [official MCP registry](https://registry.modelcontextprotocol.io/?q=io.github.nirholas), so any MCP-compatible client can discover them by name.+This page documents the hosted avatar/3D server at `/api/mcp`, but it's one of **20 three.ws MCP servers** — all listed in the [official MCP registry](https://registry.modelcontextprotocol.io/?q=io.github.nirholas), so any MCP-compatible client can discover them by name.++There are two kinds. **Hosted remote servers** run over Streamable HTTP with nothing to install — add them by URL. **Install-and-run servers** are published on npm under the `@three-ws` scope and run locally over stdio — add them in one line with `npx`.**Six hosted remote servers** (Streamable HTTP, no install):| Server | Endpoint | What it does ||--------|----------|--------------|-| three.ws | `/api/mcp` | Avatars, glTF/GLB validation, agent data (this page) |+| three.ws | `/api/mcp` | Avatars, glTF/GLB validation, agent data, memory, copy-trading (this page) |+| 3D Studio | `/api/mcp-3d` | Paid text/image→3D, rigging, retexture, optimization |+| Agent wallet | `/api/mcp-agent` | The agent's custodial wallet: balance, find + pay services, and `monetize_endpoint` |+| x402 Bazaar | `/api/mcp-bazaar` | Discover and price paid agent services across the facilitator network || pump.fun | `/api/pump-fun-mcp` | Free, read-only pump.fun + Solana token tools |-| 3D Studio | `/api/mcp-3d` | Paid text/image→3D, rigging, optimization |-| Agent | `/api/mcp-agent` | Agent reputation and on-chain agent data || IBM x402 | `/api/ibm-mcp` | Pay-per-use IBM Granite AI |-| x402 Bazaar | `/api/mcp-bazaar` | Discover and price paid agent services |-**Eight install-and-run servers** on npm under the `@three-ws` scope — each runs over stdio with one command:+**Fourteen install-and-run servers** on npm under the `@three-ws` scope — each runs over stdio with one command:```bash-npx -y @three-ws/mcp-server # 3D + agent tools, paid per call in USDC-npx -y @three-ws/three-token-mcp # price, hold, and burn $THREE on Solana-npx -y @three-ws/pumpfun-mcp # free pump.fun + Solana discovery-npx -y @three-ws/ibm-x402-mcp # pay-per-use IBM Granite AI-npx -y @three-ws/ibm-watsonx-mcp # IBM watsonx.ai on your own account-npx -y @three-ws/avatar-agent # turn any GLB into a 3D AI agent-npx -y @three-ws/avatar-mcp # drop a live 3D avatar into any chat-npx -y @three-ws/mcp-bridge # pay any x402 endpoint on the open web+# 3D & avatars+npx -y @three-ws/scene-mcp # speak a 3D diorama into being from one sentence+npx -y @three-ws/avatar-mcp # drop a live 3D avatar into any chat+npx -y @three-ws/avatar-agent # turn any GLB into a riggable 3D AI agent+npx -y @three-ws/mcp-server # full 3D + agent toolkit, paid per call in USDC++# Payments & the agent economy+npx -y @three-ws/x402-mcp # self-custodial wallet: find, inspect & pay any x402 service in USDC+npx -y @three-ws/three-token-mcp # price, hold, and burn $THREE on Solana+npx -y @three-ws/mcp-bridge # bridge that pays any x402 endpoint on the open web+npx -y @three-ws/ibm-x402-mcp # pay-per-use IBM Granite AI++# Market data, intel & discovery+npx -y @three-ws/intel-mcp # smart-money, signal feeds, KOL & copy-trade intel+npx -y @three-ws/pumpfun-mcp # free pump.fun + Solana token discovery+npx -y @three-ws/vanity-mcp # Solana vanity-address bounty market + rarity gallery+npx -y @three-ws/marketplace-mcp # browse the agent marketplace + skills catalog++# Naming & AI+npx -y @three-ws/naming-mcp # resolve .sol names + check *.threews.sol identity availability+npx -y @three-ws/ibm-watsonx-mcp # IBM watsonx.ai on your own account```Every one is also registered in the MCP registry under the `io.github.nirholas/*` namespace.diff --git a/docs/roadmap/developer-resources-repos.md b/docs/roadmap/developer-resources-repos.mdindex 76789100d..cef5f1cac 100644--- a/docs/roadmap/developer-resources-repos.md+++ b/docs/roadmap/developer-resources-repos.md@@ -50,7 +50,7 @@ These are why the obvious approach ("just push copies to new repos") fails here.1. **No CI on this account.** GitHub Actions are unavailable (all workflows deleted 2026-06-11). The standard satellite-sync pattern — a workflow pushing subtrees on every merge — cannot run. Sync must be a local script invoked from the existing push routine, or satellites rot.2. **Mirror maintenance already bites.** We maintain one mirror (`nirholas/3D-Agent`, push-only) and it has caused destructive history merges. Every additional repo multiplies that class of risk. Satellites must be strictly one-way exports, never pulled from.-3. **~~npm packages 404.~~ RESOLVED (2026-06-13).** All public packages are now published on npm under the single `@three-ws/*` scope, and all 14 MCP servers (8 stdio + 6 remote) are registered in the official MCP registry. `npm install @three-ws/sdk` and `npx -y @three-ws/mcp-server` now work, so an examples repo no longer fails on its first instruction.+3. **~~npm packages 404.~~ RESOLVED (2026-06-13).** All public packages are now published on npm under the single `@three-ws/*` scope, and all 20 MCP servers (14 stdio + 6 remote) are registered in the official MCP registry. `npm install @three-ws/sdk` and `npx -y @three-ws/mcp-server` now work, so an examples repo no longer fails on its first instruction.4. **A stale satellite is worse than none.** Broken examples in a standalone repo are anti-marketing. Anything we publish must be smoke-tested by the export script before it pushes.---diff --git a/pages/forge-nim.html b/pages/forge-nim.htmlindex 006848c40..c6b5edd46 100644--- a/pages/forge-nim.html+++ b/pages/forge-nim.html@@ -17,7 +17,7 @@<meta property="og:type" content="website" /><meta property="og:site_name" content="three.ws" /><meta property="og:url" content="https://three.ws/forge-nim" />- <meta property="og:image" content="https://three.ws/api/page-og?s=build&t=Forge+%E2%80%94+Self-Hosted+NIM&d=Drop+a+photo%2C+hit+%2Fv1%2Finfer%2C+get+the+GLB+back+synchronously+from+a+self-hosted+TRELLIS+NIM.&p=%2Fforge-nim" />+ <meta property="og:image" content="https://three.ws/api/page-og?s=build&t=Forge+%C2%B7+NIM+%E2%80%94+Self-Hosted+Image+to+3D&d=Drive+a+self-hosted+TRELLIS+NIM+%28nvcr.io%2Fnim%2Fmicrosoft%2Ftrellis%29+directly%3A+drop+a+photo%2C+hit+%2Fv1%2Finfer%2C+and+get+the+textured+GLB+back+synchronously+as+base64+%E2%80%94+r&p=%2Fforge-nim" /><meta property="og:image:width" content="1200" /><meta property="og:image:height" content="630" /><meta name="twitter:card" content="summary_large_image" />@@ -27,7 +27,7 @@name="twitter:description"content="Drive a self-hosted TRELLIS NIM directly: photo in, synchronous GLB out of /v1/infer."/>- <meta name="twitter:image" content="https://three.ws/api/page-og?s=build&t=Forge+%E2%80%94+Self-Hosted+NIM&d=Drop+a+photo%2C+hit+%2Fv1%2Finfer%2C+get+the+GLB+back+synchronously+from+a+self-hosted+TRELLIS+NIM.&p=%2Fforge-nim" />+ <meta name="twitter:image" content="https://three.ws/api/page-og?s=build&t=Forge+%C2%B7+NIM+%E2%80%94+Self-Hosted+Image+to+3D&d=Drive+a+self-hosted+TRELLIS+NIM+%28nvcr.io%2Fnim%2Fmicrosoft%2Ftrellis%29+directly%3A+drop+a+photo%2C+hit+%2Fv1%2Finfer%2C+and+get+the+textured+GLB+back+synchronously+as+base64+%E2%80%94+r&p=%2Fforge-nim" /><meta name="theme-color" content="#080814" /><link rel="icon" href="/favicon.ico" sizes="any" /><link rel="icon" type="image/svg+xml" href="/favicon.svg" />@@ -603,7 +603,12 @@border-color: var(--stroke-strong);}</style>- </head>++ <meta name="robots" content="index, follow, max-image-preview:large, max-snippet:-1">+ <meta property="og:locale" content="en_US">+ <meta property="og:image:alt" content="Forge · NIM — Self-Hosted Image to 3D — three.ws">+ <script type="application/ld+json">{"@context":"https://schema.org","@graph":[{"@type":"WebPage","name":"Forge · NIM — Self-Hosted Image to 3D","description":"Drive a self-hosted TRELLIS NIM (nvcr.io/nim/microsoft/trellis) directly: drop a photo, hit /v1/infer, and get the textured GLB back synchronously as base64 — rendered live and downloadable.","url":"https://three.ws/forge-nim","isPartOf":{"@type":"WebSite","name":"three.ws","url":"https://three.ws"},"primaryImageOfPage":"https://three.ws/api/page-og?s=build&t=Forge+%C2%B7+NIM+%E2%80%94+Self-Hosted+Image+to+3D&d=Drive+a+self-hosted+TRELLIS+NIM+%28nvcr.io%2Fnim%2Fmicrosoft%2Ftrellis%29+directly%3A+drop+a+photo%2C+hit+%2Fv1%2Finfer%2C+and+get+the+textured+GLB+back+synchronously+as+base64+%E2%80%94+r&p=%2Fforge-nim"}]}</script>+</head><body class="forge-page"><div id="nav-container"></div>diff --git a/pages/world-lines.html b/pages/world-lines.htmlindex 72a506b55..565021e56 100644--- a/pages/world-lines.html+++ b/pages/world-lines.html@@ -1,6 +1,8 @@<!doctype html><html lang="en"><head>+ <script>/* three.ws theme boot — no-flash; runtime in /theme-switcher.js */(function(){try{var m=localStorage.getItem('twx_theme');var l=m==='auto'?(window.matchMedia&&window.matchMedia('(prefers-color-scheme: light)').matches):m==='light';document.documentElement.setAttribute('data-theme',l?'light':'dark');}catch(e){document.documentElement.setAttribute('data-theme','dark');}})();</script>+ <style>/* three.ws hidden-guard — make the `hidden` attribute authoritative; see scripts/lib/hidden-guard.mjs */[hidden]{display:none!important}</style><meta charset="utf-8" /><meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover" /><title>World Lines — agent proof-of-presence quests · three.ws</title>diff --git a/public/changelog.json b/public/changelog.jsonindex 32dce8ab1..a41ca7287 100644--- a/public/changelog.json+++ b/public/changelog.json@@ -1,5 +1,5 @@{- "generated_at": "2026-06-23T15:05:22.828Z",+ "generated_at": "2026-06-23T15:13:13.840Z","generated_by": "scripts/build-page-index.mjs from data/pages.json + data/changelog.json","site": {"name": "three.ws",diff --git a/public/docs/mcp.md b/public/docs/mcp.mdindex 008f02731..6618ba936 100644--- a/public/docs/mcp.md+++ b/public/docs/mcp.md@@ -77,8 +77,8 @@ Each runs locally with `npx` — no account needed unless a tool spends money or```bashnpx -y @three-ws/scene-mcp # speak a 3D diorama into being from one sentence-npx -y @three-ws/threews-avatar-mcp # drop a live 3D avatar into any chat-npx -y @three-ws/avatar-agent-mcp # turn any GLB into a riggable 3D AI agent+npx -y @three-ws/avatar-mcp # drop a live 3D avatar into any chat+npx -y @three-ws/avatar-agent # turn any GLB into a riggable 3D AI agentnpx -y @three-ws/mcp-server # full 3D + agent toolkit, paid per call in USDC```diff --git a/public/features.json b/public/features.jsonindex 42176f2fa..eeaf6313a 100644--- a/public/features.json+++ b/public/features.json@@ -1,5 +1,5 @@{- "generated_at": "2026-06-23T15:05:22.809Z",+ "generated_at": "2026-06-23T15:13:13.829Z","generated_by": "scripts/build-page-index.mjs from data/pages.json","site": {"name": "three.ws",diff --git a/public/sitemap/index.html b/public/sitemap/index.htmlindex 1444deb3f..64a6437c8 100644--- a/public/sitemap/index.html+++ b/public/sitemap/index.html@@ -56,6 +56,25 @@.sm-brand img { width: 24px; height: 24px; border-radius: 5px; }.sm-brand:hover { text-decoration: none; }</style>++ <meta name="robots" content="index, follow, max-image-preview:large, max-snippet:-1">+ <meta property="og:type" content="website">+ <meta property="og:site_name" content="three.ws">+ <meta property="og:locale" content="en_US">+ <meta property="og:title" content="Sitemap · three.ws">+ <meta property="og:description" content="Human-readable index of every page on three.ws.">+ <meta property="og:url" content="https://three.ws/sitemap">+ <meta property="og:image" content="https://three.ws/api/page-og?s=main&t=Sitemap&d=Human-readable+index+of+every+page+on+three.ws.&p=%2Fsitemap">+ <meta property="og:image:width" content="1200">+ <meta property="og:image:height" content="630">+ <meta property="og:image:type" content="image/png">+ <meta property="og:image:alt" content="Sitemap — three.ws">+ <meta name="twitter:card" content="summary_large_image">+ <meta name="twitter:site" content="@trythreews">+ <meta name="twitter:title" content="Sitemap · three.ws">+ <meta name="twitter:description" content="Human-readable index of every page on three.ws.">+ <meta name="twitter:image" content="https://three.ws/api/page-og?s=main&t=Sitemap&d=Human-readable+index+of+every+page+on+three.ws.&p=%2Fsitemap">+ <script type="application/ld+json">{"@context":"https://schema.org","@graph":[{"@type":"WebPage","name":"Sitemap","description":"Human-readable index of every page on three.ws.","url":"https://three.ws/sitemap","isPartOf":{"@type":"WebSite","name":"three.ws","url":"https://three.ws"},"primaryImageOfPage":"https://three.ws/api/page-og?s=main&t=Sitemap&d=Human-readable+index+of+every+page+on+three.ws.&p=%2Fsitemap"}]}</script></head><body><header class="sm-topbar">diff --git a/scripts/nvidia-demo.mjs b/scripts/nvidia-demo.mjsindex 3d96da780..7009668d4 100644--- a/scripts/nvidia-demo.mjs+++ b/scripts/nvidia-demo.mjs@@ -68,22 +68,31 @@ async function main() {const finalPrompt = enhancePrompt(prompt);console.log(`→ TRELLIS text→3D tier=${tier} steps=${steps}\n prompt: "${finalPrompt}"`);- const res = await fetch(TRELLIS_INVOKE_URL, {- method: 'POST',- headers: {- authorization: `Bearer ${apiKey}`,- accept: 'application/json',- 'content-type': 'application/json',- 'nvcf-poll-seconds': String(NVCF_POLL_SECONDS),- },- body: JSON.stringify({- mode: 'text',- prompt: finalPrompt,- ss_sampling_steps: steps,- slat_sampling_steps: steps,- output_format: 'glb',- }),+ const invokeBody = JSON.stringify({+ mode: 'text',+ prompt: finalPrompt,+ ss_sampling_steps: steps,+ slat_sampling_steps: steps,+ output_format: 'glb',});+ const invokeHeaders = {+ authorization: `Bearer ${apiKey}`,+ accept: 'application/json',+ 'content-type': 'application/json',+ 'nvcf-poll-seconds': String(NVCF_POLL_SECONDS),+ };++ // NVCF answers a cold model with a transient 502/503/504. Retry a few times+ // with backoff before giving up — the model just needs to spin up.+ let res;+ for (let attempt = 1; attempt <= 6; attempt++) {+ res = await fetch(TRELLIS_INVOKE_URL, { method: 'POST', headers: invokeHeaders, body: invokeBody });+ if (![502, 503, 504].includes(res.status)) break;+ const wait = Math.min(attempt * 5, 20);+ console.log(` ${res.status} (model warming) — retry ${attempt}/6 in ${wait}s…`);+ await res.text().catch(() => {});+ await sleep(wait * 1000);+ }let glb;if (res.status === 202 || (res.ok && res.headers.get('nvcf-reqid') && !(await res.clone().json().catch(() => ({}))).artifacts?.length)) {diff --git a/vercel.json b/vercel.jsonindex b0b5838dd..97ea2ea5f 100644--- a/vercel.json+++ b/vercel.json@@ -116,6 +116,9 @@"api/forge-nim.js": {"maxDuration": 300},+ "api/nim-forge.js": {+ "maxDuration": 300+ },"api/brain/chat.js": {"includeFiles": "{examples/skills/**,data/pages.json,data/archives/**,data/rss/**,data/_generated/**,sdk/src/sas-config.json}","maxDuration": 120@@ -847,6 +850,10 @@"src": "/forge-nim/?","dest": "/forge-nim.html"},+ {+ "src": "/nim-forge/?",+ "dest": "/nim-forge.html"+ },{"src": "/scene/?","dest": "/scene.html"