Skip to content

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.

feat(create-prompt): join the site shell + cross-link the two generators

nirholas83c17e7d9ff9
diff --git a/CHANGELOG.md b/CHANGELOG.md
index f962c518b..79ba8d3d4 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -6,7 +6,9 @@ Public history for [three.ws](https://three.ws), newest first. New pages come fr
## 2026-06-13
-- **The full page directory is now one click away — and instantly filterable** — three.ws has grown past 200 pages, so the sitemap directory got a real upgrade. A new "All pages" link in the Discover menu takes you straight to it, and the page itself now has an instant filter — press / and type to narrow every page by name, path, or description, with live per-section counts. Filtered views are shareable links, so you can send someone exactly the slice of the platform you mean. The directory now finds you when you're lost, too: it's a quick action in the ⌘K search palette, a no-results search hands you off to it with your query carried over, the 404 page offers it pre-filtered to the closest matches for the address you tried, and /pages, /directory, /everything, and /all-pages all take you there. (`/sitemap`) `[improvement]`
+- **Describe it to 3D joins the rest of the site — and the two generators now point at each other** — The avatar generator at /create/prompt was a cul-de-sac: no site navigation, no footer, no way onward except a back button. It now carries the full three.ws header and footer like every other page, and finishing an avatar pops the same 'what now?' card the Forge shows — open it in Studio, make it an agent, walk it, or embed it, with your new avatar carried along. The two text-to-3D tools also cross-link: Forge points character-makers to Describe it to 3D (rigged avatars), and Describe it to 3D points prop-makers to Forge (textured objects), so you always land in the right tool. (`/create/prompt`) `[improvement]`
+- **Embed any Forge model on your own site with one line** — Every model you forge now has an Embed button next to Download. It hands you a ready-to-paste snippet — an iframe by default, or a <model-viewer> web component for builders — that drops a live, orbitable, AR-ready 3D model onto any website, with a live preview and size presets (16:9, square, 4:5) right in the panel. The iframe points at a new lightweight three.ws viewer (/forge/embed) that needs no scripts on the host page, and clicking its corner badge brings visitors back to Forge with your prompt pre-loaded to remix. Same idea as the <agent-3d> embed, now for any generated object. (`/forge`) `[feature]`
+- **The full page directory is now one click away — and instantly filterable** — three.ws has grown past 200 pages, so the sitemap directory got a real upgrade. A new "All pages" link in the Discover menu takes you straight to it, and the page itself now has an instant filter — press / and type to narrow every page by name, path, or description, with live per-section counts. Filtered views are shareable links, so you can send someone exactly the slice of the platform you mean. The directory now finds you when you're lost, too: it's a quick action in the ⌘K search palette, a no-results search hands you off to it with your query carried over, the 404 page offers it pre-filtered to the closest matches for the address you tried, and /pages, /directory, /everything, and /all-pages all take you there. Eighteen pages that had never been registered in the index — What is three.ws?, the 3D Scanner, the Glossary, Support, the agent-economy demos, and all six IBM watsonx showcases under a new Integrations section — are now in the directory, the search palette, and the crawler sitemap. (`/sitemap`) `[improvement]`
## 2026-06-12
diff --git a/data/changelog.json b/data/changelog.json
index df9a93883..c26e9e52d 100644
--- a/data/changelog.json
+++ b/data/changelog.json
@@ -1,10 +1,28 @@
{
"$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-06-13",
+ "title": "Describe it to 3D joins the rest of the site — and the two generators now point at each other",
+ "summary": "The avatar generator at /create/prompt was a cul-de-sac: no site navigation, no footer, no way onward except a back button. It now carries the full three.ws header and footer like every other page, and finishing an avatar pops the same 'what now?' card the Forge shows — open it in Studio, make it an agent, walk it, or embed it, with your new avatar carried along. The two text-to-3D tools also cross-link: Forge points character-makers to Describe it to 3D (rigged avatars), and Describe it to 3D points prop-makers to Forge (textured objects), so you always land in the right tool.",
+ "tags": [
+ "improvement"
+ ],
+ "link": "/create/prompt"
+ },
+ {
+ "date": "2026-06-13",
+ "title": "Embed any Forge model on your own site with one line",
+ "summary": "Every model you forge now has an Embed button next to Download. It hands you a ready-to-paste snippet — an iframe by default, or a <model-viewer> web component for builders — that drops a live, orbitable, AR-ready 3D model onto any website, with a live preview and size presets (16:9, square, 4:5) right in the panel. The iframe points at a new lightweight three.ws viewer (/forge/embed) that needs no scripts on the host page, and clicking its corner badge brings visitors back to Forge with your prompt pre-loaded to remix. Same idea as the <agent-3d> embed, now for any generated object.",
+ "tags": [
+ "feature"
+ ],
+ "link": "/forge"
+ },
{
"date": "2026-06-13",
"title": "The full page directory is now one click away — and instantly filterable",
- "summary": "three.ws has grown past 200 pages, so the sitemap directory got a real upgrade. A new \"All pages\" link in the Discover menu takes you straight to it, and the page itself now has an instant filter — press / and type to narrow every page by name, path, or description, with live per-section counts. Filtered views are shareable links, so you can send someone exactly the slice of the platform you mean. The directory now finds you when you're lost, too: it's a quick action in the ⌘K search palette, a no-results search hands you off to it with your query carried over, the 404 page offers it pre-filtered to the closest matches for the address you tried, and /pages, /directory, /everything, and /all-pages all take you there.",
+ "summary": "three.ws has grown past 200 pages, so the sitemap directory got a real upgrade. A new \"All pages\" link in the Discover menu takes you straight to it, and the page itself now has an instant filter — press / and type to narrow every page by name, path, or description, with live per-section counts. Filtered views are shareable links, so you can send someone exactly the slice of the platform you mean. The directory now finds you when you're lost, too: it's a quick action in the ⌘K search palette, a no-results search hands you off to it with your query carried over, the 404 page offers it pre-filtered to the closest matches for the address you tried, and /pages, /directory, /everything, and /all-pages all take you there. Eighteen pages that had never been registered in the index — What is three.ws?, the 3D Scanner, the Glossary, Support, the agent-economy demos, and all six IBM watsonx showcases under a new Integrations section — are now in the directory, the search palette, and the crawler sitemap.",
"tags": [
"improvement"
],
diff --git a/data/pages.json b/data/pages.json
index c8832e95e..88dc47795 100644
--- a/data/pages.json
+++ b/data/pages.json
@@ -80,12 +80,11 @@
"added": "2026-05-25"
},
{
- "path": "/ibm/galaxy",
- "title": "three.ws on IBM watsonx — Agent Galaxy",
- "description": "three.ws is an IBM Business Partner. Open-source 3D AI agents that think on IBM Granite via watsonx.ai and give watsonx Orchestrate agents a face, voice, and on-chain identity.",
- "priority": 0.7,
- "changefreq": "weekly",
- "added": "2026-06-03"
+ "path": "/what-is",
+ "title": "What is three.ws?",
+ "description": "Plain-English introduction to three.ws — what a 3D AI agent is, real use-cases, and where to begin.",
+ "priority": 0.8,
+ "changefreq": "monthly"
}
]
},
@@ -297,6 +296,13 @@
"changefreq": "weekly",
"added": "2026-06-05",
"showcase": true
+ },
+ {
+ "path": "/scan",
+ "title": "3D Scanner — Scan Yourself into 3D",
+ "description": "Point your camera at your face, hold still, and walk away with a rigged 3D avatar — reconstruction runs in about a minute, free, in your browser.",
+ "priority": 0.7,
+ "changefreq": "monthly"
}
]
},
@@ -551,6 +557,119 @@
"changefreq": "weekly",
"added": "2026-06-05",
"showcase": true
+ },
+ {
+ "path": "/agent-exchange",
+ "title": "Agent Exchange",
+ "description": "Two AI agents with 3D bodies negotiate and pay each other for live crypto intel using x402 micropayments on Solana. Every transaction is real and confirmed on-chain.",
+ "priority": 0.6,
+ "changefreq": "weekly"
+ },
+ {
+ "path": "/agent-economy",
+ "title": "Agent Economy — Live Demo",
+ "description": "Watch two 3D AI agents transact on-chain. Agent A buys data from Agent B — real SOL, real Solana transaction, live.",
+ "priority": 0.5,
+ "changefreq": "weekly"
+ },
+ {
+ "path": "/agent-trade",
+ "title": "Agent Commerce",
+ "description": "Watch two AI agents pay each other on-chain using x402 — a live Solana transaction, rendered in 3D.",
+ "priority": 0.5,
+ "changefreq": "weekly"
+ },
+ {
+ "path": "/avatar-wallet-chat",
+ "title": "Avatar Wallet",
+ "description": "An embeddable 3D AI avatar that holds a Solana wallet, chats, and can autonomously send SOL.",
+ "priority": 0.5,
+ "changefreq": "weekly"
+ },
+ {
+ "path": "/demo",
+ "title": "Agent Economy — NOVA & ORACLE",
+ "description": "Two three.ws AI agents with real Solana wallets discover services on the x402 bazaar, pay each other in SOL, and display a live market briefing on the TV in their world.",
+ "priority": 0.5,
+ "changefreq": "weekly"
+ },
+ {
+ "path": "/live",
+ "title": "Agent Economy — Live",
+ "description": "Two AI agents in a virtual world paying each other for live Solana market data. Real on-chain transactions, real blockchain, real 3D.",
+ "priority": 0.5,
+ "changefreq": "weekly"
+ },
+ {
+ "path": "/coin3d",
+ "title": "Token in 3D",
+ "description": "Any pump.fun token as a live 3D scene — a spinning coin medallion with the token's logo, top holders as a galaxy sized by balance, and a graduation ring tracking bonding-curve progress.",
+ "priority": 0.5,
+ "changefreq": "weekly"
+ },
+ {
+ "path": "/evm-wallet",
+ "title": "EVM Vanity Wallet",
+ "description": "Grind a custom Ethereum / EVM wallet address with the prefix or suffix of your choice. A real secp256k1 keypair, generated entirely in your browser — the private key never leaves your device.",
+ "priority": 0.6,
+ "changefreq": "monthly"
+ }
+ ]
+ },
+ {
+ "id": "integrations",
+ "title": "Integrations",
+ "description": "Live partner showcases — built on real platforms, running end-to-end.",
+ "pages": [
+ {
+ "path": "/ibm/galaxy",
+ "title": "three.ws on IBM watsonx — Agent Galaxy",
+ "description": "three.ws is an IBM Business Partner. Open-source 3D AI agents that think on IBM Granite via watsonx.ai and give watsonx Orchestrate agents a face, voice, and on-chain identity.",
+ "priority": 0.7,
+ "changefreq": "weekly",
+ "added": "2026-06-03"
+ },
+ {
+ "path": "/ibm/oracle",
+ "title": "Granite Oracle — Price Forecasting in 3D",
+ "description": "IBM Granite TimeSeries forecasting rendered in 3D — a live crypto market forecast computed on watsonx.ai and visualized by a three.ws agent.",
+ "priority": 0.6,
+ "changefreq": "weekly"
+ },
+ {
+ "path": "/ibm/twin",
+ "title": "Digital Twin — Living Market Replica",
+ "description": "A living replica of a real market on IBM watsonx — live data drives the twin while Granite TimeSeries projects where it's heading.",
+ "priority": 0.6,
+ "changefreq": "weekly"
+ },
+ {
+ "path": "/ibm/trust-layer",
+ "title": "Trust Layer — Granite Guardian Governs Agents",
+ "description": "IBM Granite Guardian governs an autonomous, wallet-holding 3D AI agent in real time. Every message and on-chain action is risk-classified on watsonx.ai and written to a tamper-evident audit ledger.",
+ "priority": 0.6,
+ "changefreq": "weekly"
+ },
+ {
+ "path": "/ibm/identity",
+ "title": "Identity Firewall — Granite Stops Impersonation",
+ "description": "Before a three.ws agent identity is born, IBM Granite embeddings compare it against every public agent to catch impersonation, and Granite Guardian screens the name, bio, and persona.",
+ "priority": 0.6,
+ "changefreq": "weekly"
+ },
+ {
+ "path": "/ibm/proof",
+ "title": "Granite Proof — On-Chain AI Notary",
+ "description": "A 3D AI agent forecasts a live crypto market with IBM Granite TimeSeries, Granite Guardian governs every word, and each governed forecast is notarized on Solana — signed by the agent's own wallet.",
+ "priority": 0.6,
+ "changefreq": "weekly"
+ },
+ {
+ "path": "/ibm/vision",
+ "title": "Granite Vision — Image Understanding",
+ "description": "IBM Granite Vision reads your 3D avatar — multimodal image understanding on watsonx.ai, demonstrated live.",
+ "priority": 0.6,
+ "changefreq": "weekly"
}
]
},
@@ -811,6 +930,20 @@
"priority": 0.5,
"changefreq": "always",
"added": "2026-06-11"
+ },
+ {
+ "path": "/glossary",
+ "title": "Glossary",
+ "description": "Plain-English definitions for the crypto and agent terms used across three.ws — no jargon required to get started.",
+ "priority": 0.5,
+ "changefreq": "monthly"
+ },
+ {
+ "path": "/support",
+ "title": "Support",
+ "description": "Get help with three.ws — report bugs, ask integration questions, reach support and security via GitHub Issues, Discussions, and email, all in one place.",
+ "priority": 0.6,
+ "changefreq": "monthly"
}
]
},
diff --git a/pages/create-prompt.html b/pages/create-prompt.html
index 674abda6e..4457b5778 100644
--- a/pages/create-prompt.html
+++ b/pages/create-prompt.html
@@ -163,14 +163,26 @@
/* ── Compose ───────────────────────────────────────────────────────── */
.composer {
- border: 1px solid var(--border-strong);
+ border: 1px solid transparent;
border-radius: 16px;
- background: var(--panel);
+ background:
+ linear-gradient(var(--panel), var(--panel)) padding-box,
+ linear-gradient(120deg, var(--border-strong), var(--border-strong)) border-box;
padding: 6px 6px 14px;
- transition: border-color 0.15s;
+ transition: box-shadow 0.2s;
}
.composer:focus-within {
- border-color: #3a3a3a;
+ background:
+ linear-gradient(var(--panel), var(--panel)) padding-box,
+ linear-gradient(
+ 120deg,
+ rgba(255, 180, 84, 0.65),
+ rgba(255, 106, 213, 0.65) 38%,
+ rgba(139, 92, 246, 0.65) 64%,
+ rgba(79, 195, 255, 0.65)
+ )
+ border-box;
+ box-shadow: 0 0 24px rgba(139, 92, 246, 0.1);
}
textarea#prompt {
width: 100%;
@@ -288,6 +300,20 @@
padding-top: 16px;
max-width: 60ch;
}
+ .note a {
+ color: #aaa;
+ text-decoration: underline;
+ text-underline-offset: 2px;
+ transition: color 0.15s;
+ }
+ .note a:hover {
+ color: var(--text);
+ }
+ .note a:focus-visible {
+ outline: 2px solid var(--accent);
+ outline-offset: 2px;
+ border-radius: 2px;
+ }
/* ── Building ──────────────────────────────────────────────────────── */
.build-wrap {
@@ -493,6 +519,7 @@
</head>
<body>
<a href="#prompt" class="skip-link">Skip to the prompt box</a>
+ <div id="nav-container"></div>
<main class="stage">
<div class="topbar">
<button class="back" id="back-btn" aria-label="Back to create" type="button">
@@ -511,7 +538,7 @@
<polyline points="12 19 5 12 12 5" />
</svg>
</button>
- <div class="label"><strong>three.ws</strong> · Describe it to 3D</div>
+ <div class="label">Describe it to 3D</div>
</div>
<!-- Step 1: compose -->
@@ -579,7 +606,8 @@
<p class="note">
Avatars come out best with a single, clearly described subject. Abstract scenes
or multiple characters reconstruct poorly. You can refine the face, outfit, and
- animations in the editor afterward.
+ animations in the editor afterward. Making an object, prop, or scene piece
+ instead of a character? <a href="/forge">Use the Forge — text → textured GLB</a>.
</p>
</section>
@@ -647,6 +675,9 @@
</main>
<script type="module" src="/src/create-prompt.js"></script>
+ <script src="/nav.js" defer></script>
<script src="/brand.js" defer></script>
+ <div id="footer-container"></div>
+ <script src="/footer.js"></script>
</body>
</html>
diff --git a/pages/forge-embed.html b/pages/forge-embed.html
new file mode 100644
index 000000000..cf1560042
--- /dev/null
+++ b/pages/forge-embed.html
@@ -0,0 +1,240 @@
+<!doctype html>
+<html lang="en">
+ <head>
+ <meta charset="UTF-8" />
+ <meta name="viewport" content="width=device-width, initial-scale=1.0, viewport-fit=cover" />
+ <title>three.ws — embedded 3D model</title>
+ <meta name="description" content="An interactive 3D model forged on three.ws." />
+ <!-- Embeddable surface: keep it out of the index, allow framing anywhere. -->
+ <meta name="robots" content="noindex" />
+ <link rel="icon" href="/favicon.ico" sizes="any" />
+ <script
+ type="module"
+ src="https://ajax.googleapis.com/ajax/libs/model-viewer/4.0.0/model-viewer.min.js"
+ integrity="sha384-sr9b4Ux0WhAUGclJ0ym0FSY2zSOMmNSn0bP/SA0e6bNCrpn/5W3QL8mm+LdlQMKw"
+ crossorigin="anonymous"
+ ></script>
+ <style>
+ :root {
+ color-scheme: dark;
+ }
+ html,
+ body {
+ margin: 0;
+ padding: 0;
+ width: 100%;
+ height: 100%;
+ overflow: hidden;
+ background: transparent;
+ font-family: ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
+ }
+ #stage {
+ position: fixed;
+ inset: 0;
+ }
+ model-viewer {
+ width: 100%;
+ height: 100%;
+ --poster-color: transparent;
+ outline: none;
+ }
+ /* Dark studio backdrop (default). ?bg=transparent removes it so the
+ model floats over the host page. */
+ body[data-bg='dark'] model-viewer {
+ background: radial-gradient(120% 120% at 50% 0%, #161616 0%, #0b0b0b 70%);
+ }
+ body[data-bg='light'] model-viewer {
+ background: radial-gradient(120% 120% at 50% 0%, #f4f4f6 0%, #dcdce2 75%);
+ }
+
+ /* Attribution / growth badge — links back to Forge. */
+ .brand {
+ position: fixed;
+ left: 12px;
+ bottom: 12px;
+ z-index: 3;
+ display: inline-flex;
+ align-items: center;
+ gap: 6px;
+ padding: 6px 10px;
+ border-radius: 999px;
+ font: 600 11.5px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
+ letter-spacing: 0.04em;
+ text-transform: uppercase;
+ text-decoration: none;
+ color: rgba(255, 255, 255, 0.82);
+ background: rgba(8, 8, 14, 0.55);
+ border: 1px solid rgba(255, 255, 255, 0.14);
+ backdrop-filter: blur(8px);
+ -webkit-backdrop-filter: blur(8px);
+ transition:
+ background 0.15s,
+ color 0.15s,
+ border-color 0.15s;
+ }
+ .brand:hover {
+ color: #fff;
+ background: rgba(8, 8, 14, 0.72);
+ border-color: rgba(255, 255, 255, 0.28);
+ }
+ .brand .dot {
+ width: 6px;
+ height: 6px;
+ border-radius: 50%;
+ background: #6ee7b7;
+ box-shadow: 0 0 6px #6ee7b7;
+ }
+ body[data-bg='light'] .brand {
+ color: rgba(10, 10, 16, 0.78);
+ background: rgba(255, 255, 255, 0.6);
+ border-color: rgba(0, 0, 0, 0.12);
+ }
+ body[data-bg='light'] .brand:hover {
+ color: #000;
+ }
+
+ /* AR button + progress, lightly themed to match. */
+ model-viewer::part(default-progress-bar) {
+ background: #6ee7b7;
+ }
+
+ .msg {
+ position: fixed;
+ inset: 0;
+ z-index: 2;
+ display: none;
+ flex-direction: column;
+ align-items: center;
+ justify-content: center;
+ gap: 10px;
+ padding: 24px;
+ text-align: center;
+ color: rgba(255, 255, 255, 0.62);
+ }
+ .msg h1 {
+ margin: 0;
+ font-size: 16px;
+ font-weight: 600;
+ color: rgba(255, 255, 255, 0.9);
+ }
+ .msg p {
+ margin: 0;
+ font-size: 13.5px;
+ line-height: 1.5;
+ max-width: 38ch;
+ }
+ .msg a {
+ color: #6ee7b7;
+ text-decoration: none;
+ }
+ .msg a:hover {
+ text-decoration: underline;
+ }
+ body[data-state='error'] #stage {
+ display: none;
+ }
+ body[data-state='error'] .msg {
+ display: flex;
+ }
+ body[data-state='error'] {
+ background: radial-gradient(120% 120% at 50% 0%, #15151c 0%, #0b0b0f 70%);
+ }
+ </style>
+ </head>
+ <body data-bg="dark" data-state="ok">
+ <div id="stage">
+ <model-viewer
+ id="mv"
+ camera-controls
+ auto-rotate
+ auto-rotate-delay="500"
+ rotation-per-second="16deg"
+ interaction-prompt="auto"
+ shadow-intensity="1"
+ shadow-softness="0.9"
+ exposure="1.05"
+ tone-mapping="aces"
+ ar
+ ar-modes="webxr scene-viewer quick-look"
+ alt="Interactive 3D model forged on three.ws"
+ ></model-viewer>
+ </div>
+
+ <a class="brand" id="brand" href="https://three.ws/forge" target="_blank" rel="noopener" aria-label="Forge your own 3D model on three.ws">
+ <span class="dot" aria-hidden="true"></span>
+ Forged on three.ws
+ </a>
+
+ <div class="msg">
+ <h1>No model to show</h1>
+ <p>
+ This embed is missing its model URL. Generate one at
+ <a href="https://three.ws/forge" target="_blank" rel="noopener">three.ws/forge</a>
+ and copy the embed code from the result.
+ </p>
+ </div>
+
+ <script>
+ (function () {
+ var params = new URL(location.href).searchParams;
+ var raw = params.get('src') || '';
+ var title = params.get('title') || '';
+ var poster = params.get('poster') || '';
+ var bg = params.get('bg');
+ var hideBrand = params.get('brand') === '0';
+
+ // Background: dark (default) | light | transparent.
+ if (bg === 'transparent') document.body.removeAttribute('data-bg');
+ else if (bg === 'light') document.body.setAttribute('data-bg', 'light');
+ else document.body.setAttribute('data-bg', 'dark');
+
+ if (hideBrand) {
+ var b = document.getElementById('brand');
+ if (b) b.style.display = 'none';
+ }
+
+ // Only accept http(s) absolute URLs or same-origin absolute paths.
+ // Anything else (javascript:, data:, protocol-relative) is rejected
+ // so a hostile embedder can't turn the iframe into an XSS vector.
+ function safeUrl(u) {
+ if (!u) return null;
+ if (u[0] === '/' && u[1] !== '/') return u;
+ try {
+ var parsed = new URL(u, location.origin);
+ if (parsed.protocol === 'http:' || parsed.protocol === 'https:') {
+ return parsed.href;
+ }
+ } catch (e) {
+ /* fallthrough */
+ }
+ return null;
+ }
+
+ var src = safeUrl(raw);
+ var mv = document.getElementById('mv');
+ if (!src || !mv) {
+ document.body.setAttribute('data-state', 'error');
+ return;
+ }
+
+ mv.setAttribute('src', src);
+ if (title) mv.setAttribute('alt', title + ' — forged on three.ws');
+ var safePoster = safeUrl(poster);
+ if (safePoster) mv.setAttribute('poster', safePoster);
+
+ // Carry the prompt through to the "Forge your own" link so a click
+ // from an embed lands on the same idea, ready to remix.
+ if (title) {
+ var brand = document.getElementById('brand');
+ if (brand) {
+ brand.href = 'https://three.ws/forge?prompt=' + encodeURIComponent(title);
+ }
+ }
+
+ mv.addEventListener('error', function () {
+ document.body.setAttribute('data-state', 'error');
+ });
+ })();
+ </script>
+ </body>
+</html>
diff --git a/pages/forge.html b/pages/forge.html
index 17736b36c..21c7751a9 100644
--- a/pages/forge.html
+++ b/pages/forge.html
@@ -102,6 +102,20 @@
margin: 0 auto;
line-height: var(--leading-normal);
}
+ .forge-head-alt {
+ margin: 10px auto 0;
+ font-size: var(--text-sm, 13px);
+ color: var(--ink-faint, var(--ink-dim));
+ }
+ .forge-head-alt a {
+ color: var(--ink-dim);
+ text-decoration: underline;
+ text-underline-offset: 2px;
+ transition: color 0.15s;
+ }
+ .forge-head-alt a:hover {
+ color: var(--ink, #e8e8e8);
+ }
/* Composer ---------------------------------------------------- */
.composer {
@@ -1697,6 +1711,10 @@
Forge reconstructs a textured mesh you can orbit, view in AR, and download as
GLB — and more views mean a sharper model with no guessed-at back.
</p>
+ <p class="forge-head-alt">
+ Making a character? <a href="/create/prompt">Describe it to 3D</a> builds a
+ rigged avatar that can move.
+ </p>
</header>
<div class="mode-switch-wrap">
@@ -2033,6 +2051,28 @@
title="Split this model into selectable parts"
>Split into parts</a
>
+ <button
+ class="btn btn-ghost"
+ type="button"
+ id="forge-embed-btn"
+ title="Embed this model on any website"
+ >
+ <svg
+ width="15"
+ height="15"
+ viewBox="0 0 24 24"
+ fill="none"
+ stroke="currentColor"
+ stroke-width="2"
+ stroke-linecap="round"
+ stroke-linejoin="round"
+ aria-hidden="true"
+ >
+ <polyline points="16 18 22 12 16 6" />
+ <polyline points="8 6 2 12 8 18" />
+ </svg>
+ Embed
+ </button>
<a class="btn btn-ghost" id="download" download>Download GLB</a>
<button class="btn" type="button" id="again">Make another</button>
</div>
@@ -2180,6 +2220,7 @@
<script type="module" src="/src/forge-enhance.js"></script>
<script type="module" src="/src/forge-stylize.js"></script>
<script type="module" src="/src/forge-optimize.js"></script>
+ <script type="module" src="/src/forge-embed-panel.js"></script>
<script type="module" src="/src/forge-showcase.js"></script>
<script type="module" src="/src/forge-dropzone.js"></script>
<div id="footer-container"></div>
diff --git a/public/changelog.json b/public/changelog.json
index 0e348a697..7e771e504 100644
--- a/public/changelog.json
+++ b/public/changelog.json
@@ -1,16 +1,36 @@
{
- "generated_at": "2026-06-13T00:39:18.440Z",
+ "generated_at": "2026-06-13T01:04:38.535Z",
"generated_by": "scripts/build-page-index.mjs from data/pages.json + data/changelog.json",
"site": {
"name": "three.ws",
"url": "https://three.ws"
},
"entries": [
+ {
+ "date": "2026-06-13",
+ "type": "update",
+ "title": "Describe it to 3D joins the rest of the site — and the two generators now point at each other",
+ "summary": "The avatar generator at /create/prompt was a cul-de-sac: no site navigation, no footer, no way onward except a back button. It now carries the full three.ws header and footer like every other page, and finishing an avatar pops the same 'what now?' card the Forge shows — open it in Studio, make it an agent, walk it, or embed it, with your new avatar carried along. The two text-to-3D tools also cross-link: Forge points character-makers to Describe it to 3D (rigged avatars), and Describe it to 3D points prop-makers to Forge (textured objects), so you always land in the right tool.",
+ "link": "/create/prompt",
+ "tags": [
+ "improvement"
+ ]
+ },
+ {
+ "date": "2026-06-13",
+ "type": "update",
+ "title": "Embed any Forge model on your own site with one line",
+ "summary": "Every model you forge now has an Embed button next to Download. It hands you a ready-to-paste snippet — an iframe by default, or a <model-viewer> web component for builders — that drops a live, orbitable, AR-ready 3D model onto any website, with a live preview and size presets (16:9, square, 4:5) right in the panel. The iframe points at a new lightweight three.ws viewer (/forge/embed) that needs no scripts on the host page, and clicking its corner badge brings visitors back to Forge with your prompt pre-loaded to remix. Same idea as the <agent-3d> embed, now for any generated object.",
+ "link": "/forge",
+ "tags": [
+ "feature"
+ ]
+ },
{
"date": "2026-06-13",
"type": "update",
"title": "The full page directory is now one click away — and instantly filterable",
- "summary": "three.ws has grown past 200 pages, so the sitemap directory got a real upgrade. A new \"All pages\" link in the Discover menu takes you straight to it, and the page itself now has an instant filter — press / and type to narrow every page by name, path, or description, with live per-section counts. Filtered views are shareable links, so you can send someone exactly the slice of the platform you mean. The directory now finds you when you're lost, too: it's a quick action in the ⌘K search palette, a no-results search hands you off to it with your query carried over, the 404 page offers it pre-filtered to the closest matches for the address you tried, and /pages, /directory, /everything, and /all-pages all take you there.",
+ "summary": "three.ws has grown past 200 pages, so the sitemap directory got a real upgrade. A new \"All pages\" link in the Discover menu takes you straight to it, and the page itself now has an instant filter — press / and type to narrow every page by name, path, or description, with live per-section counts. Filtered views are shareable links, so you can send someone exactly the slice of the platform you mean. The directory now finds you when you're lost, too: it's a quick action in the ⌘K search palette, a no-results search hands you off to it with your query carried over, the 404 page offers it pre-filtered to the closest matches for the address you tried, and /pages, /directory, /everything, and /all-pages all take you there. Eighteen pages that had never been registered in the index — What is three.ws?, the 3D Scanner, the Glossary, Support, the agent-economy demos, and all six IBM watsonx showcases under a new Integrations section — are now in the directory, the search palette, and the crawler sitemap.",
"link": "/sitemap",
"tags": [
"improvement"
diff --git a/public/changelog.xml b/public/changelog.xml
index 8b1fcaeb3..5068090b7 100644
--- a/public/changelog.xml
+++ b/public/changelog.xml
@@ -6,13 +6,29 @@
<atom:link href="https://three.ws/changelog.xml" rel="self" type="application/rss+xml"/>
<description>What's new on three.ws — features, improvements, and releases, newest first.</description>
<language>en</language>
+ <item>
+ <title>Describe it to 3D joins the rest of the site — and the two generators now point at each other</title>
+ <link>https://three.ws/create/prompt</link>
+ <guid isPermaLink="false">2026-06-13:Describe it to 3D joins the rest of the site — and the two generators now point at each other</guid>
+ <pubDate>Sat, 13 Jun 2026 12:00:00 GMT</pubDate>
+ <category>improvement</category>
+ <description>The avatar generator at /create/prompt was a cul-de-sac: no site navigation, no footer, no way onward except a back button. It now carries the full three.ws header and footer like every other page, and finishing an avatar pops the same 'what now?' card the Forge shows — open it in Studio, make it an agent, walk it, or embed it, with your new avatar carried along. The two text-to-3D tools also cross-link: Forge points character-makers to Describe it to 3D (rigged avatars), and Describe it to 3D points prop-makers to Forge (textured objects), so you always land in the right tool.</description>
+ </item>
+ <item>
+ <title>Embed any Forge model on your own site with one line</title>
+ <link>https://three.ws/forge</link>
+ <guid isPermaLink="false">2026-06-13:Embed any Forge model on your own site with one line</guid>
+ <pubDate>Sat, 13 Jun 2026 12:00:00 GMT</pubDate>
+ <category>feature</category>
+ <description>Every model you forge now has an Embed button next to Download. It hands you a ready-to-paste snippet — an iframe by default, or a &lt;model-viewer&gt; web component for builders — that drops a live, orbitable, AR-ready 3D model onto any website, with a live preview and size presets (16:9, square, 4:5) right in the panel. The iframe points at a new lightweight three.ws viewer (/forge/embed) that needs no scripts on the host page, and clicking its corner badge brings visitors back to Forge with your prompt pre-loaded to remix. Same idea as the &lt;agent-3d&gt; embed, now for any generated object.</description>
+ </item>
<item>
<title>The full page directory is now one click away — and instantly filterable</title>
<link>https://three.ws/sitemap</link>
<guid isPermaLink="false">2026-06-13:The full page directory is now one click away — and instantly filterable</guid>
<pubDate>Sat, 13 Jun 2026 12:00:00 GMT</pubDate>
<category>improvement</category>
- <description>three.ws has grown past 200 pages, so the sitemap directory got a real upgrade. A new &quot;All pages&quot; link in the Discover menu takes you straight to it, and the page itself now has an instant filter — press / and type to narrow every page by name, path, or description, with live per-section counts. Filtered views are shareable links, so you can send someone exactly the slice of the platform you mean. The directory now finds you when you're lost, too: it's a quick action in the ⌘K search palette, a no-results search hands you off to it with your query carried over, the 404 page offers it pre-filtered to the closest matches for the address you tried, and /pages, /directory, /everything, and /all-pages all take you there.</description>
+ <description>three.ws has grown past 200 pages, so the sitemap directory got a real upgrade. A new &quot;All pages&quot; link in the Discover menu takes you straight to it, and the page itself now has an instant filter — press / and type to narrow every page by name, path, or description, with live per-section counts. Filtered views are shareable links, so you can send someone exactly the slice of the platform you mean. The directory now finds you when you're lost, too: it's a quick action in the ⌘K search palette, a no-results search hands you off to it with your query carried over, the 404 page offers it pre-filtered to the closest matches for the address you tried, and /pages, /directory, /everything, and /all-pages all take you there. Eighteen pages that had never been registered in the index — What is three.ws?, the 3D Scanner, the Glossary, Support, the agent-economy demos, and all six IBM watsonx showcases under a new Integrations section — are now in the directory, the search palette, and the crawler sitemap.</description>
</item>
<item>
<title>Agent Launches</title>
diff --git a/public/feature-discovery.js b/public/feature-discovery.js
index afeaad1ae..16c023758 100644
--- a/public/feature-discovery.js
+++ b/public/feature-discovery.js
@@ -89,6 +89,12 @@
{ route: '/play', label: 'Drop it in a world', modelParam: 'avatar' },
{ route: '/docs', label: 'Read the docs' },
] },
+ prompt: { kicker: 'Avatar ready — what now?', links: [
+ { route: '/studio', label: 'Open Studio', primary: true, idParam: 'avatar', modelParam: 'model' },
+ { route: '/create-agent', label: 'Make it an agent' },
+ { route: '/walk', label: 'Walk your avatar', idParam: 'avatar', modelParam: 'avatarUrl' },
+ { route: '/embed.html', label: 'Embed editor', idParam: 'avatar', modelParam: 'avatar' },
+ ] },
scan: { kicker: 'Avatar ready — what now?', links: [
{ route: '/studio', label: 'Open Studio', primary: true, idParam: 'avatar', modelParam: 'model' },
{ route: '/walk', label: 'Walk your avatar', idParam: 'avatar', modelParam: 'avatarUrl' },
diff --git a/public/features.json b/public/features.json
index 6288b975e..df276fb9c 100644
--- a/public/features.json
+++ b/public/features.json
@@ -1,5 +1,5 @@
{
- "generated_at": "2026-06-13T00:39:18.426Z",
+ "generated_at": "2026-06-13T01:04:38.520Z",
"generated_by": "scripts/build-page-index.mjs from data/pages.json",
"site": {
"name": "three.ws",
@@ -106,10 +106,10 @@
"showcase": false
},
{
- "path": "/ibm/galaxy",
- "title": "three.ws on IBM watsonx — Agent Galaxy",
- "description": "three.ws is an IBM Business Partner. Open-source 3D AI agents that think on IBM Granite via watsonx.ai and give watsonx Orchestrate agents a face, voice, and on-chain identity.",
- "added": "2026-06-03",
+ "path": "/what-is",
+ "title": "What is three.ws?",
+ "description": "Plain-English introduction to three.ws — what a 3D AI agent is, real use-cases, and where to begin.",
+ "added": null,
"auth": null,
"indexable": true,
"tags": [],
@@ -381,6 +381,16 @@
"indexable": true,
"tags": [],
"showcase": true
+ },
+ {
+ "path": "/scan",
+ "title": "3D Scanner — Scan Yourself into 3D",
+ "description": "Point your camera at your face, hold still, and walk away with a rigged 3D avatar — reconstruction runs in about a minute, free, in your browser.",
+ "added": null,
+ "auth": null,
+ "indexable": true,
+ "tags": [],
+ "showcase": false
}
]
},
@@ -695,6 +705,163 @@
"indexable": true,
"tags": [],
"showcase": true
+ },
+ {
+ "path": "/agent-exchange",
+ "title": "Agent Exchange",
+ "description": "Two AI agents with 3D bodies negotiate and pay each other for live crypto intel using x402 micropayments on Solana. Every transaction is real and confirmed on-chain.",
+ "added": null,
+ "auth": null,
+ "indexable": true,
+ "tags": [],
+ "showcase": false
+ },
+ {
+ "path": "/agent-economy",
+ "title": "Agent Economy — Live Demo",
+ "description": "Watch two 3D AI agents transact on-chain. Agent A buys data from Agent B — real SOL, real Solana transaction, live.",
+ "added": null,
+ "auth": null,
+ "indexable": true,
+ "tags": [],
+ "showcase": false
+ },
+ {
+ "path": "/agent-trade",
+ "title": "Agent Commerce",
+ "description": "Watch two AI agents pay each other on-chain using x402 — a live Solana transaction, rendered in 3D.",
+ "added": null,
+ "auth": null,
+ "indexable": true,
+ "tags": [],
+ "showcase": false
+ },
+ {
+ "path": "/avatar-wallet-chat",
+ "title": "Avatar Wallet",
+ "description": "An embeddable 3D AI avatar that holds a Solana wallet, chats, and can autonomously send SOL.",
+ "added": null,
+ "auth": null,
+ "indexable": true,
+ "tags": [],
+ "showcase": false
+ },
+ {
+ "path": "/demo",
+ "title": "Agent Economy — NOVA & ORACLE",
+ "description": "Two three.ws AI agents with real Solana wallets discover services on the x402 bazaar, pay each other in SOL, and display a live market briefing on the TV in their world.",
+ "added": null,
+ "auth": null,
+ "indexable": true,
+ "tags": [],
+ "showcase": false
+ },
+ {
+ "path": "/live",
+ "title": "Agent Economy — Live",
+ "description": "Two AI agents in a virtual world paying each other for live Solana market data. Real on-chain transactions, real blockchain, real 3D.",
+ "added": null,
+ "auth": null,
+ "indexable": true,
+ "tags": [],
+ "showcase": false
+ },
+ {
+ "path": "/coin3d",
+ "title": "Token in 3D",
+ "description": "Any pump.fun token as a live 3D scene — a spinning coin medallion with the token's logo, top holders as a galaxy sized by balance, and a graduation ring tracking bonding-curve progress.",
+ "added": null,
+ "auth": null,
+ "indexable": true,
+ "tags": [],
+ "showcase": false
+ },
+ {
+ "path": "/evm-wallet",
+ "title": "EVM Vanity Wallet",
+ "description": "Grind a custom Ethereum / EVM wallet address with the prefix or suffix of your choice. A real secp256k1 keypair, generated entirely in your browser — the private key never leaves your device.",
+ "added": null,
+ "auth": null,
+ "indexable": true,
+ "tags": [],
+ "showcase": false
+ }
+ ]
+ },
+ {
+ "id": "integrations",
+ "title": "Integrations",
+ "description": "Live partner showcases — built on real platforms, running end-to-end.",
+ "pages": [
+ {
+ "path": "/ibm/galaxy",
+ "title": "three.ws on IBM watsonx — Agent Galaxy",
+ "description": "three.ws is an IBM Business Partner. Open-source 3D AI agents that think on IBM Granite via watsonx.ai and give watsonx Orchestrate agents a face, voice, and on-chain identity.",
+ "added": "2026-06-03",
+ "auth": null,
+ "indexable": true,
+ "tags": [],
+ "showcase": false
+ },
+ {
+ "path": "/ibm/oracle",
+ "title": "Granite Oracle — Price Forecasting in 3D",
+ "description": "IBM Granite TimeSeries forecasting rendered in 3D — a live crypto market forecast computed on watsonx.ai and visualized by a three.ws agent.",
+ "added": null,
+ "auth": null,
+ "indexable": true,
+ "tags": [],
+ "showcase": false
+ },
+ {
+ "path": "/ibm/twin",
+ "title": "Digital Twin — Living Market Replica",
+ "description": "A living replica of a real market on IBM watsonx — live data drives the twin while Granite TimeSeries projects where it's heading.",
+ "added": null,
+ "auth": null,
+ "indexable": true,
+ "tags": [],
+ "showcase": false
+ },
+ {
+ "path": "/ibm/trust-layer",
+ "title": "Trust Layer — Granite Guardian Governs Agents",
+ "description": "IBM Granite Guardian governs an autonomous, wallet-holding 3D AI agent in real time. Every message and on-chain action is risk-classified on watsonx.ai and written to a tamper-evident audit ledger.",
+ "added": null,
+ "auth": null,
+ "indexable": true,
+ "tags": [],
+ "showcase": false
+ },
+ {
+ "path": "/ibm/identity",
+ "title": "Identity Firewall — Granite Stops Impersonation",
+ "description": "Before a three.ws agent identity is born, IBM Granite embeddings compare it against every public agent to catch impersonation, and Granite Guardian screens the name, bio, and persona.",
+ "added": null,
+ "auth": null,
+ "indexable": true,
+ "tags": [],
+ "showcase": false
+ },
+ {
+ "path": "/ibm/proof",
+ "title": "Granite Proof — On-Chain AI Notary",
+ "description": "A 3D AI agent forecasts a live crypto market with IBM Granite TimeSeries, Granite Guardian governs every word, and each governed forecast is notarized on Solana — signed by the agent's own wallet.",
+ "added": null,
+ "auth": null,
+ "indexable": true,
+ "tags": [],
+ "showcase": false
+ },
+ {
+ "path": "/ibm/vision",
+ "title": "Granite Vision — Image Understanding",
+ "description": "IBM Granite Vision reads your 3D avatar — multimodal image understanding on watsonx.ai, demonstrated live.",
+ "added": null,
+ "auth": null,
+ "indexable": true,
+ "tags": [],
+ "showcase": false
}
]
},
@@ -1066,6 +1233,26 @@
"indexable": true,
"tags": [],
"showcase": false
+ },
+ {
+ "path": "/glossary",
+ "title": "Glossary",
+ "description": "Plain-English definitions for the crypto and agent terms used across three.ws — no jargon required to get started.",
+ "added": null,
+ "auth": null,
+ "indexable": true,
+ "tags": [],
+ "showcase": false
+ },
+ {
+ "path": "/support",
+ "title": "Support",
+ "description": "Get help with three.ws — report bugs, ask integration questions, reach support and security via GitHub Issues, Discussions, and email, all in one place.",
+ "added": null,
+ "auth": null,
+ "indexable": true,
+ "tags": [],
+ "showcase": false
}
]
},
diff --git a/public/llms-full.txt b/public/llms-full.txt
index af53b5998..99213a11b 100644
--- a/public/llms-full.txt
+++ b/public/llms-full.txt
@@ -67,11 +67,11 @@ URL: https://three.ws/characters
Discover AI characters on three.ws. Chat, trade, and create.
-### three.ws on IBM watsonx — Agent Galaxy
+### What is three.ws?
-URL: https://three.ws/ibm/galaxy
+URL: https://three.ws/what-is
-three.ws is an IBM Business Partner. Open-source 3D AI agents that think on IBM Granite via watsonx.ai and give watsonx Orchestrate agents a face, voice, and on-chain identity.
+Plain-English introduction to three.ws — what a 3D AI agent is, real use-cases, and where to begin.
## Build
@@ -234,6 +234,12 @@ URL: https://three.ws/voice
Clone your voice from a short recording, then use it for TTS or give it to your agent. Side-by-side comparison of voice models.
+### 3D Scanner — Scan Yourself into 3D
+
+URL: https://three.ws/scan
+
+Point your camera at your face, hold still, and walk away with a rigged 3D avatar — reconstruction runs in about a minute, free, in your browser.
+
## Labs
Experimental features actively shipping. Expect fast iteration.
@@ -422,6 +428,100 @@ URL: https://three.ws/club
A 3D club where dancers only perform when you send a micro-tip. Pay $0.001 per routine, settled on-chain via x402 on Base or Solana.
+### Agent Exchange
+
+URL: https://three.ws/agent-exchange
+
+Two AI agents with 3D bodies negotiate and pay each other for live crypto intel using x402 micropayments on Solana. Every transaction is real and confirmed on-chain.
+
+### Agent Economy — Live Demo
+
+URL: https://three.ws/agent-economy
+
+Watch two 3D AI agents transact on-chain. Agent A buys data from Agent B — real SOL, real Solana transaction, live.
+
+### Agent Commerce
+
+URL: https://three.ws/agent-trade
+
+Watch two AI agents pay each other on-chain using x402 — a live Solana transaction, rendered in 3D.
+
+### Avatar Wallet
+
+URL: https://three.ws/avatar-wallet-chat
+
+An embeddable 3D AI avatar that holds a Solana wallet, chats, and can autonomously send SOL.
+
+### Agent Economy — NOVA & ORACLE
+
+URL: https://three.ws/demo
+
+Two three.ws AI agents with real Solana wallets discover services on the x402 bazaar, pay each other in SOL, and display a live market briefing on the TV in their world.
+
+### Agent Economy — Live
+
+URL: https://three.ws/live
+
+Two AI agents in a virtual world paying each other for live Solana market data. Real on-chain transactions, real blockchain, real 3D.
+
+### Token in 3D
+
+URL: https://three.ws/coin3d
+
+Any pump.fun token as a live 3D scene — a spinning coin medallion with the token's logo, top holders as a galaxy sized by balance, and a graduation ring tracking bonding-curve progress.
+
+### EVM Vanity Wallet
+
+URL: https://three.ws/evm-wallet
+
+Grind a custom Ethereum / EVM wallet address with the prefix or suffix of your choice. A real secp256k1 keypair, generated entirely in your browser — the private key never leaves your device.
+
+## Integrations
+
+Live partner showcases — built on real platforms, running end-to-end.
+
+### three.ws on IBM watsonx — Agent Galaxy
+
+URL: https://three.ws/ibm/galaxy
+
+three.ws is an IBM Business Partner. Open-source 3D AI agents that think on IBM Granite via watsonx.ai and give watsonx Orchestrate agents a face, voice, and on-chain identity.
+
+### Granite Oracle — Price Forecasting in 3D
+
+URL: https://three.ws/ibm/oracle
+
+IBM Granite TimeSeries forecasting rendered in 3D — a live crypto market forecast computed on watsonx.ai and visualized by a three.ws agent.
+
+### Digital Twin — Living Market Replica
+
+URL: https://three.ws/ibm/twin
+
+A living replica of a real market on IBM watsonx — live data drives the twin while Granite TimeSeries projects where it's heading.
+
+### Trust Layer — Granite Guardian Governs Agents
+
+URL: https://three.ws/ibm/trust-layer
+
+IBM Granite Guardian governs an autonomous, wallet-holding 3D AI agent in real time. Every message and on-chain action is risk-classified on watsonx.ai and written to a tamper-evident audit ledger.
+
+### Identity Firewall — Granite Stops Impersonation
+
+URL: https://three.ws/ibm/identity
+
+Before a three.ws agent identity is born, IBM Granite embeddings compare it against every public agent to catch impersonation, and Granite Guardian screens the name, bio, and persona.
+
+### Granite Proof — On-Chain AI Notary
+
+URL: https://three.ws/ibm/proof
+
+A 3D AI agent forecasts a live crypto market with IBM Granite TimeSeries, Granite Guardian governs every word, and each governed forecast is notarized on Solana — signed by the agent's own wallet.
+
+### Granite Vision — Image Understanding
+
+URL: https://three.ws/ibm/vision
+
+IBM Granite Vision reads your 3D avatar — multimodal image understanding on watsonx.ai, demonstrated live.
+
## Agent Tools
Manage, talk to, and deploy individual agents.
@@ -656,6 +756,18 @@ URL: https://three.ws/status
Live operational status and 90-day uptime history for the platform, API, and x402 surfaces — probed every 5 minutes.
+### Glossary
+
+URL: https://three.ws/glossary
+
+Plain-English definitions for the crypto and agent terms used across three.ws — no jargon required to get started.
+
+### Support
+
+URL: https://three.ws/support
+
+Get help with three.ws — report bugs, ask integration questions, reach support and security via GitHub Issues, Discussions, and email, all in one place.
+
## Blog
Long-form announcements, launches, and writing from three.ws.
diff --git a/public/llms.txt b/public/llms.txt
index 0e8b99cd5..2f07a145a 100644
--- a/public/llms.txt
+++ b/public/llms.txt
@@ -20,7 +20,7 @@ Entry points into the product.
- [Community](https://three.ws/community): Featured creators, builds, and conversations from the three.ws community.
- [Sitemap](https://three.ws/sitemap): Human-readable index of every page on three.ws.
- [Characters](https://three.ws/characters): Discover AI characters on three.ws. Chat, trade, and create.
-- [three.ws on IBM watsonx — Agent Galaxy](https://three.ws/ibm/galaxy): three.ws is an IBM Business Partner. Open-source 3D AI agents that think on IBM Granite via watsonx.ai and give watsonx Orchestrate agents a face, voice, and on-chain identity.
+- [What is three.ws?](https://three.ws/what-is): Plain-English introduction to three.ws — what a 3D AI agent is, real use-cases, and where to begin.
## Build
@@ -51,6 +51,7 @@ Create and customize an agent.
- [Import an avatar URL](https://three.ws/import/rpm): Import any GLB or glTF avatar into three.ws and give it an agent brain.
- [Claim threews.sol Subdomain](https://three.ws/threews/claim): Claim your own <name>.threews.sol subdomain and get a Brave-resolvable personal showcase page.
- [Voice Lab](https://three.ws/voice): Clone your voice from a short recording, then use it for TTS or give it to your agent. Side-by-side comparison of voice models.
+- [3D Scanner — Scan Yourself into 3D](https://three.ws/scan): Point your camera at your face, hold still, and walk away with a rigged 3D avatar — reconstruction runs in about a minute, free, in your browser.
## Labs
@@ -91,6 +92,26 @@ On-chain features: pay-per-call, token launches, vanity wallets.
- [Endpoint Shopper](https://three.ws/shopper): Describe a task and set a budget. An AI agent discovers relevant x402 endpoints via the Bazaar, chains them together, and synthesizes a final answer — paying per API call.
- [Forever — etch a message into Bitcoin](https://three.ws/forever): Inscribe a message onto the Bitcoin blockchain. It stays there. Forever.
- [Pole Club](https://three.ws/club): A 3D club where dancers only perform when you send a micro-tip. Pay $0.001 per routine, settled on-chain via x402 on Base or Solana.
+- [Agent Exchange](https://three.ws/agent-exchange): Two AI agents with 3D bodies negotiate and pay each other for live crypto intel using x402 micropayments on Solana. Every transaction is real and confirmed on-chain.
+- [Agent Economy — Live Demo](https://three.ws/agent-economy): Watch two 3D AI agents transact on-chain. Agent A buys data from Agent B — real SOL, real Solana transaction, live.
+- [Agent Commerce](https://three.ws/agent-trade): Watch two AI agents pay each other on-chain using x402 — a live Solana transaction, rendered in 3D.
+- [Avatar Wallet](https://three.ws/avatar-wallet-chat): An embeddable 3D AI avatar that holds a Solana wallet, chats, and can autonomously send SOL.
+- [Agent Economy — NOVA & ORACLE](https://three.ws/demo): Two three.ws AI agents with real Solana wallets discover services on the x402 bazaar, pay each other in SOL, and display a live market briefing on the TV in their world.
+- [Agent Economy — Live](https://three.ws/live): Two AI agents in a virtual world paying each other for live Solana market data. Real on-chain transactions, real blockchain, real 3D.
+- [Token in 3D](https://three.ws/coin3d): Any pump.fun token as a live 3D scene — a spinning coin medallion with the token's logo, top holders as a galaxy sized by balance, and a graduation ring tracking bonding-curve progress.
+- [EVM Vanity Wallet](https://three.ws/evm-wallet): Grind a custom Ethereum / EVM wallet address with the prefix or suffix of your choice. A real secp256k1 keypair, generated entirely in your browser — the private key never leaves your device.
+
+## Integrations
+
+Live partner showcases — built on real platforms, running end-to-end.
+
+- [three.ws on IBM watsonx — Agent Galaxy](https://three.ws/ibm/galaxy): three.ws is an IBM Business Partner. Open-source 3D AI agents that think on IBM Granite via watsonx.ai and give watsonx Orchestrate agents a face, voice, and on-chain identity.
+- [Granite Oracle — Price Forecasting in 3D](https://three.ws/ibm/oracle): IBM Granite TimeSeries forecasting rendered in 3D — a live crypto market forecast computed on watsonx.ai and visualized by a three.ws agent.
+- [Digital Twin — Living Market Replica](https://three.ws/ibm/twin): A living replica of a real market on IBM watsonx — live data drives the twin while Granite TimeSeries projects where it's heading.
+- [Trust Layer — Granite Guardian Governs Agents](https://three.ws/ibm/trust-layer): IBM Granite Guardian governs an autonomous, wallet-holding 3D AI agent in real time. Every message and on-chain action is risk-classified on watsonx.ai and written to a tamper-evident audit ledger.
+- [Identity Firewall — Granite Stops Impersonation](https://three.ws/ibm/identity): Before a three.ws agent identity is born, IBM Granite embeddings compare it against every public agent to catch impersonation, and Granite Guardian screens the name, bio, and persona.
+- [Granite Proof — On-Chain AI Notary](https://three.ws/ibm/proof): A 3D AI agent forecasts a live crypto market with IBM Granite TimeSeries, Granite Guardian governs every word, and each governed forecast is notarized on Solana — signed by the agent's own wallet.
+- [Granite Vision — Image Understanding](https://three.ws/ibm/vision): IBM Granite Vision reads your 3D avatar — multimodal image understanding on watsonx.ai, demonstrated live.
## Agent Tools
@@ -135,6 +156,8 @@ Docs, tutorials, and reference.
- [Tutorial · Prompt Recipes for 3D Generation](https://three.ws/tutorials/prompts-for-3d): A copy-paste prompt cookbook for 3D generation: game props, furniture, characters, vehicles, food — and the four rules behind every good prompt.
- [Tutorial · Generate 3D Models from Code](https://three.ws/tutorials/generate-3d-api): Use the Forge as a plain HTTP API: submit prompts, poll jobs, download GLBs, batch asset packs, and pay per call with x402.
- [Status](https://three.ws/status): Live operational status and 90-day uptime history for the platform, API, and x402 surfaces — probed every 5 minutes.
+- [Glossary](https://three.ws/glossary): Plain-English definitions for the crypto and agent terms used across three.ws — no jargon required to get started.
+- [Support](https://three.ws/support): Get help with three.ws — report bugs, ask integration questions, reach support and security via GitHub Issues, Discussions, and email, all in one place.
## Blog
diff --git a/public/nav.css b/public/nav.css
index d27f4537c..7e3a9cf76 100644
--- a/public/nav.css
+++ b/public/nav.css
@@ -393,6 +393,8 @@
gap: 7px; margin-left: 4px; padding: 4px 12px 4px 10px;
border: 1px solid rgba(255,255,255,0.14); border-radius: 999px;
color: var(--nv-text); font-weight: 500; white-space: nowrap;
+ /* explicit — pages like /forge set a 56px line-height on nav anchors */
+ line-height: 1.4;
background: rgba(255,255,255,0.03);
transition: border-color 0.15s, background 0.15s, color 0.12s;
}
diff --git a/public/sitemap/index.html b/public/sitemap/index.html
index a25cb9670..7d553627e 100644
--- a/public/sitemap/index.html
+++ b/public/sitemap/index.html
@@ -65,7 +65,7 @@
<main class="sm-wrap">
<div class="sm-hero">
<h1>Sitemap</h1>
- <p>All 247 pages on three.ws, grouped by purpose. Looking for the machine-readable versions?</p>
+ <p>All 265 pages on three.ws, grouped by purpose. Looking for the machine-readable versions?</p>
<div class="sm-formats">
<a href="/sitemap.xml"><code>sitemap.xml</code> · for search engines</a>
<a href="/llms.txt"><code>llms.txt</code> · for AI agents</a>
@@ -77,7 +77,7 @@
</div>
<div class="sm-filter">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" aria-hidden="true"><circle cx="11" cy="11" r="7"/><path d="m21 21-4.3-4.3"/></svg>
- <input id="sm-filter-input" type="search" placeholder="Filter 247 pages by name, path, or description…" aria-label="Filter pages" autocomplete="off" spellcheck="false" />
+ <input id="sm-filter-input" type="search" placeholder="Filter 265 pages by name, path, or description…" aria-label="Filter pages" autocomplete="off" spellcheck="false" />
<kbd aria-hidden="true">/</kbd>
</div>
<p class="sm-filter-count" id="sm-filter-count" role="status" aria-live="polite"></p>
@@ -86,6 +86,7 @@
<a href="#build">Build</a>
<a href="#labs">Labs</a>
<a href="#crypto">Crypto</a>
+ <a href="#integrations">Integrations</a>
<a href="#agent-tools">Agent Tools</a>
<a href="#account">Account</a>
<a href="#learn">Learn</a>
@@ -164,10 +165,10 @@
</a>
</li>
<li>
- <a href="/ibm/galaxy">
- <span class="sm-title">three.ws on IBM watsonx — Agent Galaxy</span>
- <span class="sm-path">/ibm/galaxy</span>
- <span class="sm-desc">three.ws is an IBM Business Partner. Open-source 3D AI agents that think on IBM Granite via watsonx.ai and give watsonx Orchestrate agents a face, voice, and on-chain identity.</span>
+ <a href="/what-is">
+ <span class="sm-title">What is three.ws?</span>
+ <span class="sm-path">/what-is</span>
+ <span class="sm-desc">Plain-English introduction to three.ws — what a 3D AI agent is, real use-cases, and where to begin.</span>
</a>
</li>
</ul>
@@ -175,7 +176,7 @@
<section class="sm-section" id="build">
<header>
- <h2>Build<span class="sm-count" data-count>26</span></h2>
+ <h2>Build<span class="sm-count" data-count>27</span></h2>
<p class="sm-section-desc">Create and customize an agent.</p>
</header>
<ul class="sm-list">
@@ -361,6 +362,13 @@
<span class="sm-desc">Clone your voice from a short recording, then use it for TTS or give it to your agent. Side-by-side comparison of voice models.</span>
</a>
</li>
+ <li>
+ <a href="/scan">
+ <span class="sm-title">3D Scanner — Scan Yourself into 3D</span>
+ <span class="sm-path">/scan</span>
+ <span class="sm-desc">Point your camera at your face, hold still, and walk away with a rigged 3D avatar — reconstruction runs in about a minute, free, in your browser.</span>
+ </a>
+ </li>
</ul>
</section>
@@ -424,7 +432,7 @@
<section class="sm-section" id="crypto">
<header>
- <h2>Crypto<span class="sm-count" data-count>23</span></h2>
+ <h2>Crypto<span class="sm-count" data-count>31</span></h2>
<p class="sm-section-desc">On-chain features: pay-per-call, token launches, vanity wallets.</p>
</header>
<ul class="sm-list">
@@ -589,6 +597,120 @@
<span class="sm-desc">A 3D club where dancers only perform when you send a micro-tip. Pay $0.001 per routine, settled on-chain via x402 on Base or Solana.</span>
</a>
</li>
+ <li>
+ <a href="/agent-exchange">
+ <span class="sm-title">Agent Exchange</span>
+ <span class="sm-path">/agent-exchange</span>
+ <span class="sm-desc">Two AI agents with 3D bodies negotiate and pay each other for live crypto intel using x402 micropayments on Solana. Every transaction is real and confirmed on-chain.</span>
+ </a>
+ </li>
+ <li>
+ <a href="/agent-economy">
+ <span class="sm-title">Agent Economy — Live Demo</span>
+ <span class="sm-path">/agent-economy</span>
+ <span class="sm-desc">Watch two 3D AI agents transact on-chain. Agent A buys data from Agent B — real SOL, real Solana transaction, live.</span>
+ </a>
+ </li>
+ <li>
+ <a href="/agent-trade">
+ <span class="sm-title">Agent Commerce</span>
+ <span class="sm-path">/agent-trade</span>
+ <span class="sm-desc">Watch two AI agents pay each other on-chain using x402 — a live Solana transaction, rendered in 3D.</span>
+ </a>
+ </li>
+ <li>
+ <a href="/avatar-wallet-chat">
+ <span class="sm-title">Avatar Wallet</span>
+ <span class="sm-path">/avatar-wallet-chat</span>
+ <span class="sm-desc">An embeddable 3D AI avatar that holds a Solana wallet, chats, and can autonomously send SOL.</span>
+ </a>
+ </li>
+ <li>
+ <a href="/demo">
+ <span class="sm-title">Agent Economy — NOVA &amp; ORACLE</span>
+ <span class="sm-path">/demo</span>
+ <span class="sm-desc">Two three.ws AI agents with real Solana wallets discover services on the x402 bazaar, pay each other in SOL, and display a live market briefing on the TV in their world.</span>
+ </a>
+ </li>
+ <li>
+ <a href="/live">
+ <span class="sm-title">Agent Economy — Live</span>
+ <span class="sm-path">/live</span>
+ <span class="sm-desc">Two AI agents in a virtual world paying each other for live Solana market data. Real on-chain transactions, real blockchain, real 3D.</span>
+ </a>
+ </li>
+ <li>
+ <a href="/coin3d">
+ <span class="sm-title">Token in 3D</span>
+ <span class="sm-path">/coin3d</span>
+ <span class="sm-desc">Any pump.fun token as a live 3D scene — a spinning coin medallion with the token's logo, top holders as a galaxy sized by balance, and a graduation ring tracking bonding-curve progress.</span>
+ </a>
+ </li>
+ <li>
+ <a href="/evm-wallet">
+ <span class="sm-title">EVM Vanity Wallet</span>
+ <span class="sm-path">/evm-wallet</span>
+ <span class="sm-desc">Grind a custom Ethereum / EVM wallet address with the prefix or suffix of your choice. A real secp256k1 keypair, generated entirely in your browser — the private key never leaves your device.</span>
+ </a>
+ </li>
+ </ul>
+ </section>
+
+ <section class="sm-section" id="integrations">
+ <header>
+ <h2>Integrations<span class="sm-count" data-count>7</span></h2>
+ <p class="sm-section-desc">Live partner showcases — built on real platforms, running end-to-end.</p>
+ </header>
+ <ul class="sm-list">
+ <li>
+ <a href="/ibm/galaxy">
+ <span class="sm-title">three.ws on IBM watsonx — Agent Galaxy</span>
+ <span class="sm-path">/ibm/galaxy</span>
+ <span class="sm-desc">three.ws is an IBM Business Partner. Open-source 3D AI agents that think on IBM Granite via watsonx.ai and give watsonx Orchestrate agents a face, voice, and on-chain identity.</span>
+ </a>
+ </li>
+ <li>
+ <a href="/ibm/oracle">
+ <span class="sm-title">Granite Oracle — Price Forecasting in 3D</span>
+ <span class="sm-path">/ibm/oracle</span>
+ <span class="sm-desc">IBM Granite TimeSeries forecasting rendered in 3D — a live crypto market forecast computed on watsonx.ai and visualized by a three.ws agent.</span>
+ </a>
+ </li>
+ <li>
+ <a href="/ibm/twin">
+ <span class="sm-title">Digital Twin — Living Market Replica</span>
+ <span class="sm-path">/ibm/twin</span>
+ <span class="sm-desc">A living replica of a real market on IBM watsonx — live data drives the twin while Granite TimeSeries projects where it's heading.</span>
+ </a>
+ </li>
+ <li>
+ <a href="/ibm/trust-layer">
+ <span class="sm-title">Trust Layer — Granite Guardian Governs Agents</span>
+ <span class="sm-path">/ibm/trust-layer</span>
+ <span class="sm-desc">IBM Granite Guardian governs an autonomous, wallet-holding 3D AI agent in real time. Every message and on-chain action is risk-classified on watsonx.ai and written to a tamper-evident audit ledger.</span>
+ </a>
+ </li>
+ <li>
+ <a href="/ibm/identity">
+ <span class="sm-title">Identity Firewall — Granite Stops Impersonation</span>
+ <span class="sm-path">/ibm/identity</span>
+ <span class="sm-desc">Before a three.ws agent identity is born, IBM Granite embeddings compare it against every public agent to catch impersonation, and Granite Guardian screens the name, bio, and persona.</span>
+ </a>
+ </li>
+ <li>
+ <a href="/ibm/proof">
+ <span class="sm-title">Granite Proof — On-Chain AI Notary</span>
+ <span class="sm-path">/ibm/proof</span>
+ <span class="sm-desc">A 3D AI agent forecasts a live crypto market with IBM Granite TimeSeries, Granite Guardian governs every word, and each governed forecast is notarized on Solana — signed by the agent's own wallet.</span>
+ </a>
+ </li>
+ <li>
+ <a href="/ibm/vision">
+ <span class="sm-title">Granite Vision — Image Understanding</span>
+ <span class="sm-path">/ibm/vision</span>
+ <span class="sm-desc">IBM Granite Vision reads your 3D avatar — multimodal image understanding on watsonx.ai, demonstrated live.</span>
+ </a>
+ </li>
</ul>
</section>
@@ -703,7 +825,7 @@
<section class="sm-section" id="learn">
<header>
- <h2>Learn<span class="sm-count" data-count>22</span></h2>
+ <h2>Learn<span class="sm-count" data-count>24</span></h2>
<p class="sm-section-desc">Docs, tutorials, and reference.</p>
</header>
<ul class="sm-list">
@@ -861,6 +983,20 @@
<span class="sm-desc">Live operational status and 90-day uptime history for the platform, API, and x402 surfaces — probed every 5 minutes.</span>
</a>
</li>
+ <li>
+ <a href="/glossary">
+ <span class="sm-title">Glossary</span>
+ <span class="sm-path">/glossary</span>
+ <span class="sm-desc">Plain-English definitions for the crypto and agent terms used across three.ws — no jargon required to get started.</span>
+ </a>
+ </li>
+ <li>
+ <a href="/support">
+ <span class="sm-title">Support</span>
+ <span class="sm-path">/support</span>
+ <span class="sm-desc">Get help with three.ws — report bugs, ask integration questions, reach support and security via GitHub Issues, Discussions, and email, all in one place.</span>
+ </a>
+ </li>
</ul>
</section>
diff --git a/scripts/audit-page-index.mjs b/scripts/audit-page-index.mjs
index b92100a7c..01fcd21f0 100644
--- a/scripts/audit-page-index.mjs
+++ b/scripts/audit-page-index.mjs
@@ -53,6 +53,8 @@ const IGNORE = new Set([
'/next/index.html', // internal next-gen SPA shell
'/aws', // AWS Marketplace entitlement landing, reached via marketplace redirect
'/paywall', // transactional gate, reached in-flow when access is required
+ '/ibm', // alias of /ibm/galaxy (documented under integrations)
+ '/sperax/iframe', // partner chat embed iframe, not a discovery page
]);
// Whole prefixes that are internal/auth-gated/embed and never belong in the
diff --git a/src/create-prompt.js b/src/create-prompt.js
index 5d195a03c..545783ebe 100644
--- a/src/create-prompt.js
+++ b/src/create-prompt.js
@@ -276,6 +276,20 @@ async function renderDone(avatarId) {
return;
}
showStep('done');
+ // Let the site-wide discovery layer offer the natural next steps
+ // (Studio, agent wizard, Walk) with this avatar pre-loaded.
+ document.dispatchEvent(
+ new CustomEvent('tws:feature-done', {
+ detail: {
+ feature: 'prompt',
+ avatarId,
+ model: {
+ glbUrl: modelUrl,
+ label: avatar?.display_name || avatar?.name || 'Prompt avatar',
+ },
+ },
+ }),
+ );
}
function resetToCompose() {
diff --git a/src/forge-embed-panel.js b/src/forge-embed-panel.js
new file mode 100644
index 000000000..a1666ec97
--- /dev/null
+++ b/src/forge-embed-panel.js
@@ -0,0 +1,315 @@
+// Forge embed panel — turn a finished creation into a one-line embed for any
+// website. Self-contained: it reads the live GLB URL straight off the result
+// bar's Download link, so it never needs Forge's internal state and stays
+// decoupled from src/forge.js (which is edited often).
+//
+// Two embed flavours, both real:
+// • iframe — points at /forge/embed?src=<glb>, a zero-dependency three.ws
+// viewer page (orbit + AR + branding). Works on any site, no scripts,
+// no CORS to worry about (the iframe document is same-origin with the GLB
+// host the way Forge already loads it).
+// • web component — a <model-viewer> snippet for builders who want the model
+// inline in their own DOM with their own controls.
+
+import { Modal } from './shared/modal.js';
+
+const ORIGIN = 'https://three.ws';
+const STYLE_ID = 'tws-forge-embed-styles';
+
+const SIZES = [
+ { id: 'wide', label: '16 : 9', w: 640, h: 360, ratio: '16 / 9' },
+ { id: 'square', label: 'Square', w: 480, h: 480, ratio: '1 / 1' },
+ { id: 'portrait', label: '4 : 5', w: 432, h: 540, ratio: '4 / 5' },
+];
+
+let state = { sizeId: 'wide', tab: 'iframe', glbUrl: '', title: '' };
+
+function esc(s) {
+ return String(s ?? '').replace(
+ /[&<>"']/g,
+ (c) => ({ '&': '&amp;', '<': '&lt;', '>': '&gt;', '"': '&quot;', "'": '&#39;' })[c],
+ );
+}
+
+// Absolute, embeddable URL for the model. Forge's download href is already a
+// public hosted URL; resolve relatives against the prod origin so a copied
+// snippet works off-site.
+function absoluteGlb(url) {
+ if (!url) return '';
+ try {
+ return new URL(url, ORIGIN).href;
+ } catch {
+ return url;
+ }
+}
+
+function size() {
+ return SIZES.find((s) => s.id === state.sizeId) || SIZES[0];
+}
+
+function embedQuery() {
+ const q = new URLSearchParams({ src: state.glbUrl });
+ if (state.title) q.set('title', state.title.slice(0, 120));
+ return q.toString();
+}
+
+// Pretty, absolute URL for the copyable snippet + "open standalone" link —
+// resolves via the /forge/embed rewrite in production.
+function embedPageUrl() {
+ return `${ORIGIN}/forge/embed?${embedQuery()}`;
+}
+
+// Same viewer, but at the built file path on the *current* origin, so the
+// in-panel live preview renders in local dev and previews too (the clean
+// /forge/embed route is a production rewrite).
+function previewSrc() {
+ const origin = typeof location !== 'undefined' ? location.origin : ORIGIN;
+ return `${origin}/forge-embed.html?${embedQuery()}`;
+}
+
+function iframeSnippet() {
+ const s = size();
+ const src = embedPageUrl();
+ return (
+ `<iframe src="${esc(src)}"\n` +
+ ` width="${s.w}" height="${s.h}"\n` +
+ ` style="border:0;border-radius:14px;max-width:100%"\n` +
+ ` allow="xr-spatial-tracking; fullscreen"\n` +
+ ` loading="lazy" title="${esc(state.title || '3D model forged on three.ws')}">` +
+ `</iframe>`
+ );
+}
+
+function webComponentSnippet() {
+ const s = size();
+ const alt = esc(state.title || '3D model forged on three.ws');
+ return (
+ `<!-- once per page -->\n` +
+ `<script type="module"\n` +
+ ` src="https://ajax.googleapis.com/ajax/libs/model-viewer/4.0.0/model-viewer.min.js"></scr` +
+ `ipt>\n\n` +
+ `<model-viewer\n` +
+ ` src="${esc(state.glbUrl)}"\n` +
+ ` alt="${alt}"\n` +
+ ` camera-controls auto-rotate ar\n` +
+ ` shadow-intensity="1"\n` +
+ ` style="width:${s.w}px;height:${s.h}px;max-width:100%;background:#0b0b0b;border-radius:14px">` +
+ `\n</model-viewer>`
+ );
+}
+
+function currentSnippet() {
+ return state.tab === 'iframe' ? iframeSnippet() : webComponentSnippet();
+}
+
+function ensureStyles() {
+ if (typeof document === 'undefined' || document.getElementById(STYLE_ID)) return;
+ const el = document.createElement('style');
+ el.id = STYLE_ID;
+ el.textContent = CSS;
+ (document.head || document.documentElement).appendChild(el);
+}
+
+function bodyHtml() {
+ const s = size();
+ const tabBtn = (id, label) =>
+ `<button type="button" class="tws-emb-tab" data-tab="${id}" aria-pressed="${state.tab === id}">${label}</button>`;
+ const sizeBtn = (sz) =>
+ `<button type="button" class="tws-emb-size" data-size="${sz.id}" aria-pressed="${state.sizeId === sz.id}">${sz.label}</button>`;
+
+ return `
+ <div class="tws-emb">
+ <div class="tws-emb-preview" style="aspect-ratio:${s.ratio}">
+ <iframe class="tws-emb-frame" src="${esc(previewSrc())}" title="Embed preview"
+ allow="xr-spatial-tracking; fullscreen" loading="lazy"></iframe>
+ </div>
+
+ <div class="tws-emb-controls">
+ <div class="tws-emb-seg" role="group" aria-label="Embed type">
+ ${tabBtn('iframe', 'iframe')}
+ ${tabBtn('component', 'Web component')}
+ </div>
+ <div class="tws-emb-seg" role="group" aria-label="Size">
+ ${SIZES.map(sizeBtn).join('')}
+ </div>
+ </div>
+
+ <label class="tws-emb-codelabel" for="tws-emb-code">Paste this where you want the model</label>
+ <textarea id="tws-emb-code" class="tws-emb-code" readonly spellcheck="false" rows="5">${esc(currentSnippet())}</textarea>
+
+ <button type="button" class="tws-emb-copy" data-emb-copy>
+ <svg width="15" height="15" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><rect x="9" y="9" width="13" height="13" rx="2"/><path d="M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"/></svg>
+ <span class="tws-emb-copy-label">Copy embed code</span>
+ </button>
+
+ <p class="tws-emb-foot">
+ Drops a live, orbitable model on any site — AR-ready on phones.
+ <a href="${esc(embedPageUrl())}" target="_blank" rel="noopener">Open the standalone viewer ↗</a>
+ </p>
+ </div>
+ `;
+}
+
+function rerender(modalBody) {
+ const codeEl = modalBody.querySelector('#tws-emb-code');
+ if (codeEl) codeEl.value = currentSnippet();
+ const preview = modalBody.querySelector('.tws-emb-preview');
+ if (preview) preview.style.aspectRatio = size().ratio;
+ for (const b of modalBody.querySelectorAll('.tws-emb-tab')) {
+ b.setAttribute('aria-pressed', String(b.dataset.tab === state.tab));
+ }
+ for (const b of modalBody.querySelectorAll('.tws-emb-size')) {
+ b.setAttribute('aria-pressed', String(b.dataset.size === state.sizeId));
+ }
+}
+
+async function copyText(text, btn) {
+ const label = btn.querySelector('.tws-emb-copy-label');
+ const original = label ? label.textContent : '';
+ try {
+ if (navigator.clipboard?.writeText) await navigator.clipboard.writeText(text);
+ else {
+ const ta = document.createElement('textarea');
+ ta.value = text;
+ ta.style.position = 'fixed';
+ ta.style.opacity = '0';
+ document.body.appendChild(ta);
+ ta.select();
+ document.execCommand('copy');
+ ta.remove();
+ }
+ btn.classList.add('is-copied');
+ if (label) label.textContent = 'Copied ✓';
+ } catch {
+ if (label) label.textContent = 'Press ⌘/Ctrl+C to copy';
+ }
+ setTimeout(() => {
+ btn.classList.remove('is-copied');
+ if (label) label.textContent = original;
+ }, 2400);
+}
+
+export function showEmbedPanel({ glbUrl, title } = {}, triggerEl = null) {
+ ensureStyles();
+ state = {
+ sizeId: 'wide',
+ tab: 'iframe',
+ glbUrl: absoluteGlb(glbUrl),
+ title: (title || '').trim(),
+ };
+
+ if (!state.glbUrl) return null;
+
+ const modal = new Modal({ title: 'Embed this model', body: bodyHtml(), dismissible: true }).open(triggerEl);
+ const root = modal.bodyEl;
+
+ root.addEventListener('click', (e) => {
+ const tab = e.target.closest('.tws-emb-tab');
+ if (tab) {
+ state.tab = tab.dataset.tab;
+ rerender(root);
+ return;
+ }
+ const sz = e.target.closest('.tws-emb-size');
+ if (sz) {
+ state.sizeId = sz.dataset.size;
+ rerender(root);
+ return;
+ }
+ const copy = e.target.closest('[data-emb-copy]');
+ if (copy) {
+ copyText(currentSnippet(), copy);
+ }
+ });
+
+ return modal;
+}
+
+// Wire the result-bar button. The button lives in forge.html; we read the GLB
+// URL from the Download link's href at click time (always set in result state)
+// and the prompt from the result label, so no coupling to forge.js internals.
+function wire() {
+ const btn = document.getElementById('forge-embed-btn');
+ if (!btn || btn.dataset.embedWired) return;
+ btn.dataset.embedWired = '1';
+ btn.addEventListener('click', () => {
+ const dl = document.getElementById('download');
+ const glbUrl = dl?.getAttribute('href') || '';
+ const label = document.getElementById('result-label')?.textContent || '';
+ if (!glbUrl) return;
+ showEmbedPanel({ glbUrl, title: label }, btn);
+ });
+}
+
+if (typeof document !== 'undefined') {
+ if (document.readyState === 'loading') {
+ document.addEventListener('DOMContentLoaded', wire, { once: true });
+ } else {
+ wire();
+ }
+}
+
+const CSS = `
+.tws-emb { display: flex; flex-direction: column; gap: 12px; padding: 2px 0; }
+.tws-emb-preview {
+ width: 100%;
+ border-radius: 12px;
+ overflow: hidden;
+ border: 1px solid var(--stroke, rgba(255,255,255,0.1));
+ background: #0b0b0b;
+}
+.tws-emb-frame { display: block; width: 100%; height: 100%; border: 0; }
+.tws-emb-controls { display: flex; flex-wrap: wrap; gap: 8px; justify-content: space-between; }
+.tws-emb-seg {
+ display: inline-flex; gap: 2px; padding: 2px;
+ background: var(--surface-1, rgba(255,255,255,0.03));
+ border: 1px solid var(--stroke, rgba(255,255,255,0.1));
+ border-radius: 10px;
+}
+.tws-emb-tab, .tws-emb-size {
+ background: transparent; border: 0; cursor: pointer;
+ color: var(--ink-dim, #9a9aa8);
+ font: 600 12px/1 var(--font-mono, ui-monospace, monospace);
+ padding: 7px 11px; border-radius: 8px;
+ transition: background 0.14s, color 0.14s;
+}
+.tws-emb-tab:hover, .tws-emb-size:hover { color: var(--ink, #ececf4); }
+.tws-emb-tab[aria-pressed='true'], .tws-emb-size[aria-pressed='true'] {
+ background: var(--surface-3, rgba(255,255,255,0.1)); color: var(--ink, #fff);
+}
+.tws-emb-tab:focus-visible, .tws-emb-size:focus-visible, .tws-emb-copy:focus-visible {
+ outline: 2px solid var(--accent, #6ee7b7); outline-offset: 2px;
+}
+.tws-emb-codelabel {
+ font: 600 11px/1 var(--font-mono, ui-monospace, monospace);
+ text-transform: uppercase; letter-spacing: 0.06em;
+ color: var(--ink-dim, #9a9aa8); margin-top: 2px;
+}
+.tws-emb-code {
+ width: 100%; box-sizing: border-box; resize: vertical;
+ background: var(--surface-1, rgba(0,0,0,0.35));
+ border: 1px solid var(--stroke, rgba(255,255,255,0.1));
+ border-radius: 10px; padding: 11px 12px;
+ color: var(--ink, #e8e8e8);
+ font: 12.5px/1.55 var(--font-mono, ui-monospace, SFMono-Regular, Menlo, monospace);
+ white-space: pre; overflow-x: auto;
+}
+.tws-emb-code:focus-visible { outline: 2px solid var(--accent, #6ee7b7); outline-offset: 1px; }
+.tws-emb-copy {
+ display: inline-flex; align-items: center; justify-content: center; gap: 8px;
+ width: 100%; box-sizing: border-box; cursor: pointer;
+ padding: 12px 16px; border-radius: 10px;
+ border: 1px solid transparent;
+ background: var(--btn-primary-bg, rgba(255,255,255,0.92)); color: var(--btn-primary-fg, #0a0a0f);
+ font: 600 14px/1 var(--font-body, system-ui, sans-serif);
+ transition: background 0.14s, transform 0.1s;
+}
+.tws-emb-copy:hover { background: var(--btn-primary-bg-hover, rgba(255,255,255,0.85)); }
+.tws-emb-copy:active { transform: translateY(1px); }
+.tws-emb-copy.is-copied { background: var(--success, #6ee7b7); }
+.tws-emb-foot {
+ margin: 0; font-size: 12.5px; line-height: 1.5; color: var(--ink-dim, #9a9aa8);
+}
+.tws-emb-foot a { color: var(--accent, #6ee7b7); text-decoration: none; }
+.tws-emb-foot a:hover { text-decoration: underline; }
+`;
diff --git a/vercel.json b/vercel.json
index dfff6a80a..be8d89ed5 100644
--- a/vercel.json
+++ b/vercel.json
@@ -567,6 +567,10 @@
"src": "/avatar-studio-demo/?",
"dest": "/avatar-studio-demo.html"
},
+ {
+ "src": "/forge/embed/?",
+ "dest": "/forge-embed.html"
+ },
{
"src": "/forge/share/([^/]+)",
"dest": "/api/forge-share?id=$1"
diff --git a/vite.config.js b/vite.config.js
index adf16b9a5..a28c10f7e 100644
--- a/vite.config.js
+++ b/vite.config.js
@@ -288,6 +288,7 @@ const appConfig = {
create: resolve(__dirname, 'pages/create.html'),
'create-agent': resolve(__dirname, 'pages/create-agent.html'),
forge: resolve(__dirname, 'pages/forge.html'),
+ 'forge-embed': resolve(__dirname, 'pages/forge-embed.html'),
scene: resolve(__dirname, 'pages/scene.html'),
segment: resolve(__dirname, 'pages/segment.html'),
'create-selfie': resolve(__dirname, 'pages/create-selfie.html'),