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.

Polish agent-detail modal, EVM mint-success, IRL import path, and platform Metaplex card

nirholasf592c651680f
diff --git a/pages/mint-success.html b/pages/mint-success.html
index fb7c6d627..1063a7fce 100644
--- a/pages/mint-success.html
+++ b/pages/mint-success.html
@@ -1,6 +1,7 @@
<!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>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, viewport-fit=cover" />
<title>Agent deployed · three.ws</title>
@@ -176,12 +177,18 @@
<script type="module">
import { agentAvatarGlb } from '/src/shared/agent-3d.js';
+ import { CHAIN_META, txExplorerUrl } from '/src/erc8004/chain-meta.js';
const p = new URLSearchParams(location.search);
const agentId = p.get('id') || '';
const txSig = p.get('tx') || '';
const chain = p.get('chain') || 'solana-mainnet';
+ // `chain` is either a Solana cluster string ('solana-mainnet' /
+ // 'solana-devnet') or a numeric EVM chainId (e.g. 8453). Resolve once.
+ const evmChainId = /^\d+$/.test(chain) ? Number(chain) : null;
+ const evmMeta = evmChainId != null ? CHAIN_META[evmChainId] : null;
+
// Starfield
const canvas = document.getElementById('starfield');
const ctx = canvas.getContext('2d');
@@ -227,16 +234,26 @@
after(2000, () => document.getElementById('txRow').classList.add('show'));
after(2400, () => document.getElementById('ctas').classList.add('show'));
- // Chain label + explorer URL
+ // Chain label + explorer URL — Solana clusters and EVM chains both supported.
function chainLabel(c) {
if (c === 'solana-mainnet') return 'SOLANA';
- if (c === 'solana-devnet') return 'SOLANA DEVNET';
+ if (c === 'solana-devnet') return 'SOLANA · DEVNET';
+ if (evmMeta) return evmMeta.testnet ? `${evmMeta.name} · TESTNET`.toUpperCase() : evmMeta.name.toUpperCase();
return c.toUpperCase().replace(/-/g, ' ');
}
+ // Short, human chain name for share copy ("live on Base").
+ function chainDisplayName(c) {
+ if (c === 'solana-mainnet') return 'Solana';
+ if (c === 'solana-devnet') return 'Solana devnet';
+ if (evmMeta) return evmMeta.name;
+ return 'chain';
+ }
function explorerUrl(c, sig) {
+ if (!sig) return '';
if (c === 'solana-mainnet') return `https://solscan.io/tx/${sig}`;
if (c === 'solana-devnet') return `https://explorer.solana.com/tx/${sig}?cluster=devnet`;
- return `#`;
+ if (evmMeta) return txExplorerUrl(evmChainId, sig);
+ return '';
}
function shortSig(s) {
if (!s || s.length < 16) return s || '—';
@@ -246,7 +263,13 @@
document.getElementById('chainBadge').textContent = chainLabel(chain);
document.getElementById('txHash').textContent = shortSig(txSig);
const expUrl = explorerUrl(chain, txSig);
- document.getElementById('txLink').href = expUrl;
+ const txLinkEl = document.getElementById('txLink');
+ if (expUrl) {
+ txLinkEl.href = expUrl;
+ } else {
+ // No verifiable tx (or unknown chain) — don't show a dead link.
+ txLinkEl.style.display = 'none';
+ }
// Agent fetch + avatar
async function loadAgent() {
@@ -267,7 +290,7 @@
document.getElementById('btnView').href = `/agent/${encodeURIComponent(agentId)}`;
document.getElementById('btnShare').addEventListener('click', () => {
const url = `https://three.ws/agent/${encodeURIComponent(agentId)}`;
- const text = `Just deployed my 3D AI Agent on-chain.\n\n${name} is live on Solana.\n\n${url}`;
+ const text = `Just deployed my 3D AI Agent on-chain.\n\n${name} is live on ${chainDisplayName(chain)}.\n\n${url}`;
if (navigator.share) {
navigator.share({ title: `${name} — deployed on three.ws`, text, url }).catch(() => {});
return;
diff --git a/public/.well-known/three-ws-agent.metaplex.json b/public/.well-known/three-ws-agent.metaplex.json
new file mode 100644
index 000000000..dfadb7c02
--- /dev/null
+++ b/public/.well-known/three-ws-agent.metaplex.json
@@ -0,0 +1,127 @@
+{
+ "type": [
+ "https://eips.ethereum.org/EIPS/eip-8004#registration-v1",
+ "https://three.ws/specs/3d-agent-card-v1"
+ ],
+ "name": "three.ws",
+ "symbol": "AGENT",
+ "description": "three.ws is the AI-agent layer for the open web: build, embed, monetize, and trade autonomous agents with real 3D avatars, on-chain identity, pay-per-call (x402), and pump.fun token launches. This is the platform's own ERC-8004 agent card — three.ws registered as a first-class agent in the IdentityRegistry, embodied by its default 3D avatar.",
+ "image": "https://three.ws/og-image.png",
+ "animation_url": "https://three.ws/avatars/default.glb",
+ "external_url": "https://three.ws",
+ "active": true,
+ "model": {
+ "uri": "https://three.ws/avatars/default.glb",
+ "format": "gltf-binary",
+ "sha256": "3ca13a1e3ad8f57e50266294b823641680dd3f3f174eb4be908ddca7afc0c82a",
+ "sizeBytes": 2875236,
+ "polygonCount": 13317,
+ "boundingBox": {
+ "min": [
+ -0.464,
+ -0.006,
+ -0.146
+ ],
+ "max": [
+ 0.464,
+ 1.766,
+ 0.197
+ ]
+ },
+ "license": "CC-BY-4.0"
+ },
+ "body": {
+ "uri": "https://three.ws/avatars/default.glb",
+ "format": "gltf-binary"
+ },
+ "services": [
+ {
+ "name": "web",
+ "endpoint": "https://three.ws/"
+ },
+ {
+ "name": "A2A",
+ "endpoint": "https://three.ws/.well-known/agent-card.json",
+ "version": "0.3.0"
+ },
+ {
+ "name": "MCP",
+ "endpoint": "https://three.ws/.well-known/openapi.yaml",
+ "version": "2025-06-18"
+ }
+ ],
+ "x402Support": true,
+ "x402Endpoints": [
+ {
+ "url": "https://three.ws/api/mcp",
+ "method": "POST",
+ "description": "MCP tool call — 3D avatar viewer, glTF model validation/inspection/optimization, and Solana agent data",
+ "networks": [
+ "solana",
+ "base"
+ ],
+ "scheme": "exact",
+ "priceUsdc": "0.001"
+ }
+ ],
+ "supportedTrust": [
+ "reputation",
+ "validation"
+ ],
+ "attributes": [
+ {
+ "trait_type": "Platform",
+ "value": "three.ws"
+ },
+ {
+ "trait_type": "Standard",
+ "value": "Metaplex Core"
+ },
+ {
+ "trait_type": "Schema",
+ "value": "agent-manifest/0.1"
+ },
+ {
+ "trait_type": "$THREE",
+ "value": "FeMbDoX7R1Psc4GEcvJdsbNbZA3bfztcyDCatJVJpump"
+ }
+ ],
+ "properties": {
+ "category": "vr",
+ "files": [
+ {
+ "uri": "https://three.ws/og-image.png",
+ "type": "image/png"
+ },
+ {
+ "uri": "https://three.ws/avatars/default.glb",
+ "type": "model/gltf-binary"
+ }
+ ],
+ "creators": [
+ {
+ "address": "WWWkcM4G61wpGqKeKoTqWujhYjFiEG1z8qzbHrF4pao",
+ "share": 100
+ }
+ ]
+ },
+ "platform": {
+ "name": "three.ws",
+ "url": "https://three.ws",
+ "tagline": "Give your AI a body.",
+ "x": "https://x.com/trythreews",
+ "github": "https://github.com/nirholas/three.ws"
+ },
+ "token": {
+ "symbol": "THREE",
+ "mint": "FeMbDoX7R1Psc4GEcvJdsbNbZA3bfztcyDCatJVJpump",
+ "url": "https://pump.fun/coin/FeMbDoX7R1Psc4GEcvJdsbNbZA3bfztcyDCatJVJpump"
+ },
+ "$schema": "https://3d-agent.io/schemas/manifest/0.1.json",
+ "spec": "agent-manifest/0.1",
+ "tags": [
+ "three.ws",
+ "ai-agent",
+ "platform"
+ ]
+}
diff --git a/public/changelog.json b/public/changelog.json
index 2b0f0acd7..5abe6afb3 100644
--- a/public/changelog.json
+++ b/public/changelog.json
@@ -1,5 +1,5 @@
{
- "generated_at": "2026-06-16T10:11:40.092Z",
+ "generated_at": "2026-06-16T10:14:53.452Z",
"generated_by": "scripts/build-page-index.mjs from data/pages.json + data/changelog.json",
"site": {
"name": "three.ws",
diff --git a/public/features.json b/public/features.json
index 253567d24..ec81b70c1 100644
--- a/public/features.json
+++ b/public/features.json
@@ -1,5 +1,5 @@
{
- "generated_at": "2026-06-16T10:11:40.048Z",
+ "generated_at": "2026-06-16T10:14:53.395Z",
"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.html
index 4fa289b27..6b3a62df9 100644
--- a/public/sitemap/index.html
+++ b/public/sitemap/index.html
@@ -56,6 +56,20 @@
.sm-brand img { width: 24px; height: 24px; border-radius: 5px; }
.sm-brand:hover { text-decoration: none; }
</style>
+
+ <meta property="og:type" content="website">
+ <meta property="og:site_name" content="three.ws">
+ <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/og-image.png">
+ <meta property="og:image:width" content="1200">
+ <meta property="og:image:height" content="630">
+ <meta name="twitter:card" content="summary_large_image">
+ <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/og-image.png">
+ <script type="application/ld+json">{"@context":"https://schema.org","@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"}}</script>
</head>
<body>
<header class="sm-topbar">
diff --git a/src/agent-detail.css b/src/agent-detail.css
index b12066bab..27172bf18 100644
--- a/src/agent-detail.css
+++ b/src/agent-detail.css
@@ -362,6 +362,25 @@ model-viewer.ad-hero-avatar {
--poster-color: transparent;
background: var(--ad-bg-2);
}
+.ad-3d-modal-world {
+ position: absolute;
+ bottom: 16px; left: 50%;
+ transform: translateX(-50%);
+ display: inline-flex; align-items: center; gap: 7px;
+ padding: 9px 16px;
+ border-radius: 999px;
+ background: rgba(255,255,255,.1);
+ border: 1px solid rgba(255,255,255,.16);
+ color: #fff;
+ font-size: 13px; font-weight: 600;
+ text-decoration: none;
+ backdrop-filter: blur(8px);
+ transition: background .15s, transform .15s;
+}
+.ad-3d-modal-world:hover {
+ background: rgba(255,255,255,.18);
+ transform: translateX(-50%) translateY(-1px);
+}
/* Embed disclosure */
.ad-embed-disclosure summary {
diff --git a/src/agent-detail.js b/src/agent-detail.js
index 22b51b2cc..d01fccce1 100644
--- a/src/agent-detail.js
+++ b/src/agent-detail.js
@@ -462,19 +462,34 @@ function render(agent) {
// Fullscreen modal
const mvModal = document.getElementById('ad-avatar-modal-3d');
if (mvModal) mvModal.setAttribute('src', glbUrl);
+ // "View in AR" link drops this agent into the live three.ws world (every
+ // agent has a body — custom GLB or mannequin — so the href is always real).
+ const modalWorld = document.getElementById('ad-3d-modal-world');
+ if (modalWorld) {
+ const worldHref = seeInWorldHref(agent);
+ if (worldHref && worldHref !== '#') {
+ modalWorld.href = worldHref;
+ modalWorld.hidden = false;
+ } else {
+ modalWorld.hidden = true;
+ }
+ }
const modal = document.getElementById('ad-3d-modal');
const avatarWrap = document.getElementById('ad-avatar-wrap');
+ const closeModal = () => modal.classList.add('hidden');
if (modal && avatarWrap && !avatarWrap._modalWired) {
avatarWrap._modalWired = true;
avatarWrap.addEventListener('click', () => modal.classList.remove('hidden'));
avatarWrap.addEventListener('keydown', (e) => {
if (e.key === 'Enter' || e.key === ' ') { e.preventDefault(); modal.classList.remove('hidden'); }
});
- document.getElementById('ad-3d-modal-close')?.addEventListener('click', () =>
- modal.classList.add('hidden'),
- );
+ document.getElementById('ad-3d-modal-close')?.addEventListener('click', closeModal);
modal.addEventListener('click', (e) => {
- if (e.target === modal) modal.classList.add('hidden');
+ if (e.target === modal) closeModal();
+ });
+ // Esc closes the fullscreen viewer — standard modal affordance.
+ document.addEventListener('keydown', (e) => {
+ if (e.key === 'Escape' && !modal.classList.contains('hidden')) closeModal();
});
}
diff --git a/src/irl.js b/src/irl.js
index 75144b08a..c0962a7aa 100644
--- a/src/irl.js
+++ b/src/irl.js
@@ -1061,7 +1061,7 @@ document.getElementById('irl-sheet-pay')?.addEventListener('click', async (e) =>
const origText = btn.textContent;
btn.textContent = 'Sending…';
try {
- const { withX402 } = await import('/packages/x402-fetch/dist/index.esm.js');
+ const { withX402 } = await import('../packages/x402-fetch/dist/index.esm.js');
const pay = withX402(window.ethereum, { maxPaymentUsd: 1.00 });
const r = await pay(endpoint, { method: 'POST' });
if (r.ok) {