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.

fix(pages): correct the 3D API example flow, size the footer badge, and de-i18n per-slug head tags

nirholas2462fdfeb1cf
diff --git a/pages/crypto.html b/pages/crypto.html
index 4da13f6d6..44aae89c7 100644
--- a/pages/crypto.html
+++ b/pages/crypto.html
@@ -737,7 +737,26 @@ token = r.json()
}
}
- /* ── Live probe: classify each endpoint (non-404 = deployed) ── */
+ /* ── Live probe ───────────────────────────────────────────────
+ One read of the discovery index tells us the deployed roster.
+ Probing each endpoint's real example URL instead meant every
+ page view fired eleven upstream reads, the heaviest of which
+ (holders) walks a token's accounts: under that burst it
+ occasionally spent its RPC budget and answered 503, which is a
+ correct answer to a data question and a wrong one to "does this
+ route exist". The index is static, edge-cached and answers the
+ question it was built for. Falls back to the per-endpoint probe
+ when the index itself cannot be read. ─────────────────────── */
+ async function liveSlugs() {
+ try {
+ const res = await fetch(`${BASE}`, { headers: { accept: 'application/json' } });
+ if (!res.ok) return null;
+ const body = await res.json();
+ if (!Array.isArray(body?.endpoints)) return null;
+ return new Set(body.endpoints.map((e) => e.slug).filter(Boolean));
+ } catch { return null; } // network or CORS failure: fall back below
+ }
+
async function probe(ep) {
try {
const res = await fetch(ep.probe, { headers: { accept: 'application/json' } });
@@ -755,8 +774,9 @@ token = r.json()
}
(async () => {
+ const roster = await liveSlugs();
const results = await Promise.all(ENDPOINTS.map(async (ep) => {
- const ok = await probe(ep);
+ const ok = roster ? roster.has(ep.slug) : await probe(ep);
setStatus(ep.slug, ok);
return ok;
}));
diff --git a/pages/embed-demo.html b/pages/embed-demo.html
index 75c803fd4..8f017e782 100644
--- a/pages/embed-demo.html
+++ b/pages/embed-demo.html
@@ -206,7 +206,7 @@
<div class="frame">
<threews-avatar
id="ex-default"
- avatar-id="avatar_demo_disk_cz"
+ avatar-id="a4bad2f5-8a07-43cf-82e5-b6ba1314441e"
hide-chrome
></threews-avatar>
</div>
@@ -215,7 +215,7 @@
<button data-target="ex-default" data-action="play" data-arg="celebrate" data-i18n="embed_demo.celebrate">Celebrate</button>
<button data-target="ex-default" data-action="play" data-arg="dance" data-i18n="embed_demo.dance">Dance</button>
</div>
- <div class="snippet">&lt;threews-avatar avatar-id="avatar_demo_disk_cz" hide-chrome&gt;&lt;/threews-avatar&gt;</div>
+ <div class="snippet">&lt;threews-avatar avatar-id="a4bad2f5-8a07-43cf-82e5-b6ba1314441e" hide-chrome&gt;&lt;/threews-avatar&gt;</div>
<div class="log" id="log-default"></div>
</div>
@@ -228,7 +228,7 @@
<div class="frame">
<threews-avatar
id="ex-card"
- avatar-id="avatar_demo_disk_cz"
+ avatar-id="a4bad2f5-8a07-43cf-82e5-b6ba1314441e"
bg="dark"
></threews-avatar>
</div>
@@ -245,7 +245,7 @@
<div class="frame chromakey">
<threews-avatar
id="ex-obs"
- avatar-id="avatar_demo_disk_cz"
+ avatar-id="a4bad2f5-8a07-43cf-82e5-b6ba1314441e"
chromakey="#00ff00"
hide-chrome
pose="wave"
diff --git a/pages/embed-doctor.html b/pages/embed-doctor.html
index 79552a50f..543038eb3 100644
--- a/pages/embed-doctor.html
+++ b/pages/embed-doctor.html
@@ -327,7 +327,9 @@
Your <code>&lt;agent-3d&gt;</code> tag is on the page and nothing appears. The console is
empty, the markup looks right, and there is no error to search for. Paste the URL and we
load your real page in a real browser, watch the embed try to boot, and name the one line
- to change.
+ to change. Both embeds are checked the same way, so a
+ <code>&lt;three-d&gt;</code> tag from the v1 loader (including a token-gated one) is as
+ welcome here as <code>&lt;agent-3d&gt;</code>.
</p>
</section>
diff --git a/pages/integrations.html b/pages/integrations.html
index 2b1a39105..807c70cb3 100644
--- a/pages/integrations.html
+++ b/pages/integrations.html
@@ -816,7 +816,7 @@
<div class="card-preview">
<div class="card-preview-bg" aria-hidden="true"></div>
<threews-avatar
- avatar-id="avatar_demo_disk_cz"
+ avatar-id="a4bad2f5-8a07-43cf-82e5-b6ba1314441e"
hide-chrome
pose="idle"
aria-label="Live 3D avatar preview"
@@ -852,7 +852,7 @@
<span class="c">&lt;!-- Drop anywhere in your HTML --&gt;</span>
<span class="k">&lt;threews-avatar</span>
- <span class="a">avatar-id</span>=<span class="s">"avatar_demo_disk_cz"</span>
+ <span class="a">avatar-id</span>=<span class="s">"a4bad2f5-8a07-43cf-82e5-b6ba1314441e"</span>
<span class="a">hide-chrome</span>
<span class="a">pose</span>=<span class="s">"idle"</span>
<span class="k">&gt;&lt;/threews-avatar&gt;</span>
@@ -962,7 +962,7 @@
<pre class="code-block" data-code><span class="c">&lt;!-- Floating corner avatar — one tag --&gt;</span>
<span class="k">&lt;script</span>
<span class="a">src</span>=<span class="s">"https://three.ws/walk-embed-sdk.js"</span>
- <span class="a">data-avatar</span>=<span class="s">"avatar_demo_disk_cz"</span>
+ <span class="a">data-avatar</span>=<span class="s">"a4bad2f5-8a07-43cf-82e5-b6ba1314441e"</span>
<span class="a">data-position</span>=<span class="s">"bottom-right"</span>
<span class="a">data-env</span>=<span class="s">"studio"</span>
<span class="a">defer</span>
diff --git a/pages/tutorial.html b/pages/tutorial.html
index 5530a864a..657fe2148 100644
--- a/pages/tutorial.html
+++ b/pages/tutorial.html
@@ -1266,11 +1266,18 @@
document.getElementById('tdoc-hero').hidden = false;
}
+ // Same rule as slugifyHeading() in docs/index.html (and its mirror in
+ // public/docs-search.js): drop punctuation, then turn spaces into
+ // hyphens. Tutorial authors write in-page links against that convention
+ // because it is what the docs surface and GitHub both use, so a viewer
+ // that instead collapsed every punctuation run into one hyphen answered
+ // with dead anchors: #whats-next, #step-5--animations-exact-name-vs-hint.
function slugifyHeading(text) {
- return text
+ return String(text)
+ .trim()
.toLowerCase()
- .replace(/[^a-z0-9]+/g, '-')
- .replace(/^-|-$/g, '');
+ .replace(/[^\w\- ]+/g, '')
+ .replace(/ /g, '-');
}
function buildToc(article) {
diff --git a/public/3d.html b/public/3d.html
index a661ad194..652af18d1 100644
--- a/public/3d.html
+++ b/public/3d.html
@@ -199,10 +199,11 @@
<pre class="code"><code>curl -X POST https://three.ws/api/3d/generate \
-H 'content-type: application/json' \
-d '{ "prompt": "a small ceramic robot figurine" }'
+# A lane that finishes inside the request answers right away:
+# → { "status": "done", "glbUrl": "https://…/model.glb", "viewerUrl": "https://three.ws/…" }
+# Otherwise you get a job to poll:
# → { "status": "pending", "job": "…", "poll": "/api/3d/generate?job=…" }
-# poll the job:
-curl "https://three.ws/api/3d/generate?job=&lt;id&gt;"
-# → { "status": "done", "glbUrl": "https://…/model.glb", "viewerUrl": "https://three.ws/…" }</code></pre>
+curl "https://three.ws/api/3d/generate?job=&lt;id&gt;"</code></pre>
<h3 style="font-family:var(--font-display);font-size:var(--text-md);margin:var(--space-md) 0 var(--space-2xs)" data-i18n="3d.point_any_openapi_toolchain_at_it">Point any OpenAPI toolchain at it</h3>
<pre class="code"><code># LangChain, openapi-generator, Swagger UI, etc.
diff --git a/public/docs-widgets.html b/public/docs-widgets.html
index f624d72c8..27f75ccc2 100644
--- a/public/docs-widgets.html
+++ b/public/docs-widgets.html
@@ -222,8 +222,25 @@
<td data-i18n="docs_widgets.annotated_3d_scenes_with_clickable_pois">Annotated 3D scenes with clickable POIs.</td>
<td>800 × 600</td>
</tr>
+ <tr>
+ <td><code>kol-trades</code></td>
+ <td>Live buy and sell activity from tracked KOL and whale wallets for one token.</td>
+ <td>600 × 600</td>
+ </tr>
+ <tr>
+ <td><code>walking-avatar</code></td>
+ <td>A roaming 3D avatar visitors steer around your page with joystick or keyboard.</td>
+ <td>600 × 600</td>
+ </tr>
</tbody>
</table>
+ <p>
+ Only the first five types carry a per-type default size (see
+ <code>TYPE_SIZES</code> in <code>/embed.js</code>); every other type falls back to
+ 600 × 600 unless you pass <code>data-width</code> / <code>data-height</code>. The
+ <a href="/studio">Studio</a> picker is the authoritative list and also offers the
+ live-market feed widgets, which are configured there rather than documented here.
+ </p>
<h2 id="urls" data-i18n="docs_widgets.urls_2">URLs</h2>
<p data-i18n="docs_widgets.every_widget_has_three_canonical_urls">Every widget has three canonical URLs.</p>
@@ -412,10 +429,11 @@ img-src https://three.ws/ data:;</code></pre>
<h2 id="privacy" data-i18n="docs_widgets.privacy_analytics_2">Privacy &amp; analytics</h2>
<p data-i18n-html="docs_widgets.we_log_a_minimal_first_party_event">
- We log a minimal first-party event per widget load: <code>widget_id</code>,
- <code>type</code>, <code>country</code> (Vercel edge header),
- <code>referer_host</code> (hostname only), <code>created_at</code>. No IPs. No
- cookies. No user agents. No chat content. No cross-widget tracking.
+ We log a minimal first-party event per widget load, four columns wide:
+ <code>widget_id</code>, <code>country</code> (a two-letter code, only when the edge
+ supplies one, never derived from a raw IP), <code>referer_host</code> (hostname
+ only, no path and no query), and <code>created_at</code>. No IPs. No cookies. No
+ user agents. No chat content. No cross-widget tracking.
</p>
<h2 id="faq" data-i18n="docs_widgets.faq_2">FAQ</h2>
diff --git a/public/footer.html b/public/footer.html
index 54fa60c94..9f41e6fc6 100644
--- a/public/footer.html
+++ b/public/footer.html
@@ -53,7 +53,7 @@
</a>
</div>
<a class="h-footer-nvidia" href="https://www.nvidia.com/en-us/startups/" target="_blank" rel="noopener" aria-label="three.ws is a member of the NVIDIA Inception program" data-i18n-attr="aria-label:footer.three_ws_is_a_member_of_the_arialabel">
- <img src="/marks/nvidia-inception-badge.svg" alt="NVIDIA Inception Program member badge" loading="lazy" />
+ <img src="/marks/nvidia-inception-badge.svg" alt="NVIDIA Inception Program member badge" loading="lazy" width="65" height="28" />
</a>
</div>
<nav class="h-footer-links" aria-label="Footer">
diff --git a/public/locales/en.json b/public/locales/en.json
index c62f8e830..435e06f07 100644
--- a/public/locales/en.json
+++ b/public/locales/en.json
@@ -5919,7 +5919,7 @@
"meta_description": "Developer and user documentation for the three.ws walking-avatar system: the /walk page, iframe embeds, the JavaScript SDK, the postMessage event contract, companion mode, analytics, and the Chrome extension.",
"meta_og_description": "Developer and user documentation for the three.ws walking-avatar system: the /walk page, iframe embeds, the JavaScript SDK, the postMessage event contract, companion mode, analytics, and the Chrome extension.",
"meta_og_title": "Docs · Walk Avatar · three.ws",
- "meta_title": "Walk avatar docs — three.ws",
+ "meta_title": "Docs · Walk Avatar · three.ws",
"meta_twitter_description": "Developer and user documentation for the three.ws walking-avatar system: the /walk page, iframe embeds, the JavaScript SDK, the postMessage event contract, companion mode, analytics, and the Chrome extension.",
"meta_twitter_title": "Docs · Walk Avatar · three.ws",
"nextgetting_started": "<span>Next</span>Getting started →",
@@ -6206,8 +6206,8 @@
"loads_a_saved_widget_by_id": "Loads a saved widget by id.",
"meta_description": "Embed 3D widgets on any site. URL params, iframe + script embeds, postMessage API, oEmbed, privacy.",
"meta_og_description": "Embed 3D widgets on any site. URL params, postMessage API, oEmbed, privacy.",
- "meta_og_title": "three.ws — Widget Docs",
- "meta_title": "Widget Docs — three.ws",
+ "meta_og_title": "Docs · Widgets · three.ws",
+ "meta_title": "Docs · Widgets · three.ws",
"meta_twitter_description": "Build and publish reusable chat and 3D widgets.",
"meta_twitter_title": "Docs · Widgets · three.ws",
"mobile_yes_every_widget_type_works_on": "<strong>Mobile?</strong> Yes — every widget type works on iOS Safari and Android Chrome.",