Open-source platform for 3D AI agents. Turn text or a photo into a rigged, animated GLB avatar, give it an LLM brain, memory and a wallet, and embed it anywhere with one web component. Remote MCP server, x402 payments, Three.js, browser-native.
JavaScript 3d-generationai-agentsanimationavatardigital-humangenerative-aiglbgltfimage-to-3dllmmcpmcp-servermodel-context-protocolsolanatext-to-3dthreejsweb-componentswebglwebxrx402
feat: create page card rework, expanded nav with Explore group, home feature directory
nirholas904eaa195696
diff --git a/pages/create.html b/pages/create.htmlindex 12fd80b79..28166d9a2 100644--- a/pages/create.html+++ b/pages/create.html@@ -740,14 +740,14 @@<path d="M18 3l3 3-9 9-4 1 1-4 9-9z" /></svg></div>- <h2 class="card-title">Avatar Studio</h2>+ <h2 class="card-title">Start with a template</h2></div><p class="card-subtitle">- Build a custom avatar from scratch. Sculpt face and body, pick- outfits, add accessories — all in your browser.+ Pick a ready-made character and customize it in our web editor. No+ download required.</p><span class="card-cta">- Open studio+ Open editor<svgwidth="13"height="13"@@ -933,6 +933,46 @@<a href="/import/rpm">Import your existing avatar</a>.</p></div>++ <!-- Card 5: Agent Avatar Studio (experimental) -->+ <div+ class="create-card"+ id="card-agent-studio"+ role="button"+ tabindex="0"+ aria-label="Try the new Agent Avatar Studio (experimental)"+ >+ <div class="card-preview card-preview--icon" aria-hidden="true">+ <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.2" stroke-linecap="round" stroke-linejoin="round">+ <circle cx="12" cy="8" r="3.5" />+ <path d="M5 20c0-3.87 3.13-7 7-7s7 3.13 7 7" />+ <path d="M17 3l2 2-2 2" />+ <path d="M21 5h-4" />+ </svg>+ </div>+ <div class="card-icon-row">+ <div class="card-icon" aria-hidden="true">+ <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.7" stroke-linecap="round" stroke-linejoin="round">+ <circle cx="12" cy="8" r="3.5" />+ <path d="M5 20c0-3.87 3.13-7 7-7s7 3.13 7 7" />+ <path d="M17 3l2 2-2 2" />+ <path d="M21 5h-4" />+ </svg>+ </div>+ <h2 class="card-title">Avatar Studio <span style="font-size:0.7em;opacity:0.5;font-weight:400;">beta</span></h2>+ </div>+ <p class="card-subtitle">+ Build a custom avatar from scratch. Sculpt face and body, pick+ outfits, add accessories — all in your browser.+ </p>+ <span class="card-cta">+ Try studio+ <svg width="13" height="13" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">+ <line x1="5" y1="12" x2="19" y2="12" />+ <polyline points="12 5 19 12 12 19" />+ </svg>+ </span>+ </div></div></main>diff --git a/src/create.js b/src/create.jsindex f6bd19515..cce137ee9 100644--- a/src/create.js+++ b/src/create.js@@ -131,6 +131,10 @@ async function boot() {});wireCard('card-default-editor', async () => {+ if (window.__authed && (await isAtAvatarLimit())) return;+ creator.openDefaultEditor();+ });+ wireCard('card-agent-studio', async () => {if (window.__authed && (await isAtAvatarLimit())) return;window.location.href = '/create/studio';});diff --git a/src/dashboard-next/nav.js b/src/dashboard-next/nav.jsindex 197f9852b..ee7417017 100644--- a/src/dashboard-next/nav.js+++ b/src/dashboard-next/nav.js@@ -20,24 +20,33 @@ export const NAV = [{ path: '/dashboard/agents', label: 'Agents', icon: 'agent', group: 'Create', tags: ['bot', 'ai', 'identity', 'erc-8004', 'persona', 'reputation'] },{ path: '/dashboard/library', label: 'Library', icon: 'library', group: 'Create', tags: ['animations', 'memory', 'voice', 'strategy', 'clips', 'strategy-lab'] },{ path: '/voice', label: 'Voice Lab', icon: 'voice', group: 'Create', tags: ['clone', 'tts', 'speech', 'recording', 'elevenlabs'], external: true },+ { path: '/brain', label: 'Brain', icon: 'brain', group: 'Create', tags: ['persona', 'playground', 'compare', 'models', 'test'], external: true },// ── Distribute ──────────────────────────────────────────────────────{ path: '/dashboard/widgets', label: 'Widgets', icon: 'widget', group: 'Distribute', tags: ['embed', 'iframe', '<threews-avatar>', 'transcripts', 'knowledge'] },{ path: '/dashboard/api', label: 'API & Embed', icon: 'code', group: 'Distribute', tags: ['keys', 'token', 'mcp', 'snippets', 'embed-policy'] },+ { path: '/marketplace', label: 'Marketplace', icon: 'market', group: 'Distribute', tags: ['browse', 'buy', 'sell', 'agents', 'avatars', 'directory'], external: true },// ── Monetize ────────────────────────────────────────────────────────{ path: '/dashboard/monetize', label: 'Monetize', icon: 'coin', group: 'Monetize', tags: ['revenue', 'payments', 'subscriptions', 'withdrawals', 'earnings', 'plan', 'billing'] },{ path: '/dashboard/tokens', label: 'Tokens', icon: 'token', group: 'Monetize', tags: ['pump.fun', 'launch', 'bonding curve', 'royalties', 'trade'] },{ path: '/dashboard/portfolio', label: 'Portfolio & NFTs', icon: 'portfolio', group: 'Monetize', tags: ['nft', 'holdings', 'balances', 'wallet', 'collection'] },+ { path: '/reputation', label: 'Reputation', icon: 'star', group: 'Monetize', tags: ['reviews', 'attestations', 'onchain', 'trust', 'score'], external: true },++ // ── Explore ─────────────────────────────────────────────────────────+ { path: '/gallery-picker', label: 'Gallery', icon: 'gallery', group: 'Explore', tags: ['browse', 'avatars', 'public', 'models', 'pick'], external: true },+ { path: '/discover', label: 'Discover', icon: 'globe', group: 'Explore', tags: ['explore', 'directory', 'onchain', 'agents'], external: true },+ { path: '/community', label: 'Community', icon: 'community', group: 'Explore', tags: ['social', 'forum', 'connect', 'members'], external: true },+ { path: '/demos', label: 'Demos', icon: 'play', group: 'Explore', tags: ['examples', 'showcase', 'interactive', 'try'], external: true },+ { path: '/pump-live', label: 'Pump.fun Live', icon: 'live', group: 'Explore', tags: ['feed', 'trending', 'tokens', 'trade', 'realtime'], external: true },// ── Account ─────────────────────────────────────────────────────────{ path: '/dashboard/account', label: 'Account', icon: 'user', group: 'Account', tags: ['wallets', 'sns', 'delegation', 'profile', 'action log', 'provider keys'] },{ path: '/dashboard/settings', label: 'Settings', icon: 'settings', group: 'Account', tags: ['sessions', 'notifications', 'preferences', 'storage', 'llm usage', 'vanity'] },- { path: '/onchain', label: 'On-chain (ERC-8004)', icon: 'chain', group: 'Account', tags: ['erc8004', 'registry', 'onchain', 'identity'], external: true },- { path: '/discover', label: 'Discover on-chain', icon: 'globe', group: 'Account', tags: ['explore', 'discover', 'directory'], external: true },+ { path: '/onchain', label: 'On-chain (ERC-8004)', icon: 'chain', group: 'Account', tags: ['erc8004', 'registry', 'onchain', 'identity'], external: true },];-export const GROUPS = ['Create', 'Distribute', 'Monetize', 'Account'];+export const GROUPS = ['Create', 'Distribute', 'Monetize', 'Explore', 'Account'];/** Inline-SVG icon strings keyed by the `icon` field above. */export const ICONS = {@@ -55,6 +64,13 @@ export const ICONS = {chain: '<svg viewBox="0 0 20 20" fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"><path d="M8 12a4 4 0 005.7 0l2-2a4 4 0 00-5.7-5.7l-1 1"/><path d="M12 8a4 4 0 00-5.7 0l-2 2a4 4 0 005.7 5.7l1-1"/></svg>',globe: '<svg viewBox="0 0 20 20" fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"><circle cx="10" cy="10" r="7.5"/><path d="M10 2.5c-2 2.5-2 12.5 0 15M10 2.5c2 2.5 2 12.5 0 15M2.5 10h15"/></svg>',voice: '<svg viewBox="0 0 20 20" fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"><rect x="7" y="2" width="6" height="10" rx="3"/><path d="M4 10a6 6 0 0012 0"/><path d="M10 16v2"/></svg>',+ brain: '<svg viewBox="0 0 20 20" fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"><path d="M10 3C7.5 3 5 5 5 8c0 1.5.5 2.5 1.2 3.3.5.5.8 1.2.8 2V15h6v-1.7c0-.8.3-1.5.8-2C14.5 10.5 15 9.5 15 8c0-3-2.5-5-5-5z"/><path d="M8 15v1a2 2 0 004 0v-1"/><path d="M8.5 8h3M8.5 10.5h3"/></svg>',+ market: '<svg viewBox="0 0 20 20" fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"><path d="M3 7l1.5-4h11L17 7"/><path d="M3 7h14v10H3V7z"/><path d="M8 12h4v5H8v-5z"/><path d="M3 7c0 1.1.9 2 2 2s2-.9 2-2M7 7c0 1.1.9 2 2 2s2-.9 2-2M11 7c0 1.1.9 2 2 2s2-.9 2-2M15 7c0 1.1.9 2 2 2"/></svg>',+ star: '<svg viewBox="0 0 20 20" fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"><path d="M10 3l2 4.5 5 .7-3.6 3.5.9 5L10 14.5 5.7 16.7l.9-5L3 8.2l5-.7L10 3z"/></svg>',+ gallery: '<svg viewBox="0 0 20 20" fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"><rect x="2" y="3" width="16" height="14" rx="2"/><circle cx="7" cy="8" r="1.5"/><path d="M2 14l4-4 3 3 4-5 5 6"/></svg>',+ community: '<svg viewBox="0 0 20 20" fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"><circle cx="7" cy="7" r="2.5"/><circle cx="14" cy="7" r="2"/><path d="M2 16c.8-2.8 2.8-4.2 5-4.2s4.2 1.4 5 4.2"/><path d="M13.5 11.8c1.5 0 3 1.2 3.5 3.2"/></svg>',+ play: '<svg viewBox="0 0 20 20" fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"><rect x="2" y="3" width="16" height="14" rx="2"/><path d="M8 7.5v5l4.5-2.5z"/></svg>',+ live: '<svg viewBox="0 0 20 20" fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"><circle cx="10" cy="10" r="2"/><path d="M6 6a5.5 5.5 0 000 8"/><path d="M14 6a5.5 5.5 0 010 8"/><path d="M3.5 3.5a9 9 0 000 13"/><path d="M16.5 3.5a9 9 0 010 13"/></svg>',};/** Resolve the route for the current pathname (exact match wins; falls back to startsWith). */diff --git a/src/dashboard-next/pages/home.js b/src/dashboard-next/pages/home.jsindex 50b825d1f..00ddfe634 100644--- a/src/dashboard-next/pages/home.js+++ b/src/dashboard-next/pages/home.js@@ -37,6 +37,7 @@ const STATE = {<section data-slot="hero" class="dnx-hero"></section><section data-slot="kpis" class="dnx-kpis"></section><section data-slot="quick" class="dnx-quick"></section>+ <section data-slot="directory" class="dnx-directory"></section></div><aside data-slot="activity" class="dnx-activity"></aside></div>@@ -50,6 +51,7 @@ const STATE = {hero: main.querySelector('[data-slot="hero"]'),kpis: main.querySelector('[data-slot="kpis"]'),quick: main.querySelector('[data-slot="quick"]'),+ directory: main.querySelector('[data-slot="directory"]'),activity: main.querySelector('[data-slot="activity"]'),};@@ -65,6 +67,7 @@ const STATE = {renderHero(slots.hero, avatars, avatarsRes.status === 'rejected' ? avatarsRes.reason : null);renderQuickActions(slots.quick, { avatars, agents });+ renderDirectory(slots.directory);if (slots.onboarding) {renderOnboarding(slots.onboarding, { avatars, agents, widgets });@@ -517,6 +520,117 @@ function renderQuickActions(host, { avatars = [], agents = [] } = {}) {`).join('');}+// ── Feature directory ─────────────────────────────────────────────────────++const DIRECTORY = [+ {+ group: 'Create & Build',+ items: [+ { href: '/create', title: 'Create Avatar', sub: 'Snap a selfie — 3D agent in 60 seconds' },+ { href: '/avatar-studio', title: 'Avatar Studio', sub: 'Full 3D editor with lighting and poses' },+ { href: '/brain', title: 'Brain', sub: 'Persona builder, model playground, agent voice' },+ { href: '/voice', title: 'Voice Lab', sub: 'Clone your voice for TTS and lip-sync' },+ { href: '/mocap-studio', title: 'MoCap Studio', sub: 'Motion capture for custom animations' },+ { href: '/gallery-picker', title: 'Gallery Picker', sub: 'Browse and pick from public 3D avatars' },+ { href: '/import-rpm', title: 'Import RPM', sub: 'Import a Ready Player Me avatar' },+ ],+ },+ {+ group: 'Agents & Identity',+ items: [+ { href: '/dashboard/agents', title: 'Manage Agents', sub: 'Agent identity, wallet, personality' },+ { href: '/onchain', title: 'On-chain (ERC-8004)', sub: 'Register agents on-chain' },+ { href: '/reputation', title: 'Reputation', sub: 'Reviews, attestations, and trust scores' },+ { href: '/strategy-lab', title: 'Strategy Lab', sub: 'Configure agent trading strategies' },+ { href: '/profile', title: 'Profile', sub: 'Your public creator profile' },+ ],+ },+ {+ group: 'Distribute & Embed',+ items: [+ { href: '/dashboard/widgets', title: 'Widgets', sub: 'Chat widgets, embed codes, transcripts' },+ { href: '/dashboard/api', title: 'API & Embed', sub: 'REST keys, MCP config, embed policy' },+ { href: '/marketplace', title: 'Marketplace', sub: 'Browse, buy, and sell agents and avatars' },+ { href: '/discover', title: 'Discover', sub: 'Explore the on-chain agent directory' },+ { href: '/embed', title: 'Embed Docs', sub: 'How to embed agents on your site' },+ ],+ },+ {+ group: 'Monetize & Trade',+ items: [+ { href: '/dashboard/monetize', title: 'Monetize', sub: 'Revenue, subscriptions, and withdrawals' },+ { href: '/dashboard/tokens', title: 'Tokens', sub: 'Launch tokens on Pump.fun with bonding curves' },+ { href: '/dashboard/portfolio', title: 'Portfolio & NFTs', sub: 'Holdings, balances, and NFT collections' },+ { href: '/pump-live', title: 'Pump.fun Live', sub: 'Real-time token feed and trending' },+ { href: '/launchpad', title: 'Launchpad', sub: 'Token and project launchpad creator' },+ { href: '/pay', title: 'Payments (x402)', sub: 'Payment hub and hosted checkout' },+ { href: '/pricing', title: 'Pricing', sub: 'Platform plans and feature comparison' },+ ],+ },+ {+ group: 'Learn & Explore',+ items: [+ { href: '/demos', title: 'Demos', sub: 'Interactive agent demos and showcases' },+ { href: '/tutorials', title: 'Tutorials', sub: 'Step-by-step guides and walkthroughs' },+ { href: '/community', title: 'Community', sub: 'Connect with other creators' },+ { href: '/features', title: 'Features', sub: 'Platform capabilities overview' },+ { href: '/playground', title: 'Playground', sub: 'Experiment with agents interactively' },+ { href: '/avatar-sdk', title: 'Avatar SDK', sub: 'Developer docs for avatar integration' },+ ],+ },+ {+ group: 'Account & Settings',+ items: [+ { href: '/dashboard/account', title: 'Account', sub: 'Wallets, SNS names, delegation, provider keys' },+ { href: '/dashboard/settings', title: 'Settings', sub: 'Notifications, storage, LLM usage, vanity URLs' },+ { href: '/dashboard/library', title: 'Library', sub: 'Animations, memory, voice clips, strategy' },+ { href: '/dashboard/avatars', title: 'Avatars', sub: 'Manage all your 3D avatar creations' },+ ],+ },+];++function renderDirectory(host) {+ const DIR_COLLAPSED_KEY = 'twx_dir_collapsed';+ const collapsed = localStorage.getItem(DIR_COLLAPSED_KEY) === '1';++ host.innerHTML = `+ <div class="dn-panel dnx-dir">+ <button class="dnx-dir-head" aria-expanded="${!collapsed}" data-action="dir-toggle">+ <div>+ <div class="dn-panel-title" style="margin:0 0 2px">All Features & Pages</div>+ <div class="dn-panel-sub" style="margin:0">Every tool, page, and feature on three.ws — all in one place.</div>+ </div>+ <span class="dnx-dir-chevron" aria-hidden="true">+ <svg viewBox="0 0 12 12" width="12" height="12" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round"><path d="M3 4.5l3 3 3-3"/></svg>+ </span>+ </button>+ <div class="dnx-dir-body${collapsed ? ' is-collapsed' : ''}">+ ${DIRECTORY.map((section) => `+ <div class="dnx-dir-section">+ <div class="dnx-dir-group-label">${esc(section.group)}</div>+ <div class="dnx-dir-items">+ ${section.items.map((item) => `+ <a href="${item.href}" class="dnx-dir-item">+ <div class="dnx-dir-item-title">${esc(item.title)}</div>+ <div class="dnx-dir-item-sub">${esc(item.sub)}</div>+ </a>+ `).join('')}+ </div>+ </div>+ `).join('')}+ </div>+ </div>+ `;++ host.querySelector('[data-action="dir-toggle"]').addEventListener('click', () => {+ const body = host.querySelector('.dnx-dir-body');+ const btn = host.querySelector('[data-action="dir-toggle"]');+ const isCollapsed = body.classList.toggle('is-collapsed');+ btn.setAttribute('aria-expanded', !isCollapsed);+ localStorage.setItem(DIR_COLLAPSED_KEY, isCollapsed ? '1' : '0');+ });+}+// ── Sparkline ─────────────────────────────────────────────────────────────function sparkSvg(series) {@@ -815,6 +929,69 @@ function injectStyles() {.dnx-ob-step { flex-wrap: wrap; }.dnx-ob-btn { margin-left: 36px; }}++ /* ── Feature directory ── */+ .dnx-dir { padding: 0; overflow: hidden; }+ .dnx-dir-head {+ display: flex; justify-content: space-between; align-items: center;+ width: 100%; padding: 18px 20px;+ background: none; border: none; cursor: pointer;+ text-align: left; color: inherit;+ transition: background 0.12s ease;+ }+ .dnx-dir-head:hover { background: rgba(255,255,255,0.03); }+ .dnx-dir-chevron {+ color: var(--nxt-ink-fade);+ transition: transform 0.2s ease;+ display: grid; place-items: center;+ flex-shrink: 0;+ }+ .dnx-dir-head[aria-expanded="false"] .dnx-dir-chevron { transform: rotate(-90deg); }+ .dnx-dir-body {+ padding: 0 20px 20px;+ display: flex; flex-direction: column; gap: 20px;+ transition: max-height 0.3s ease, opacity 0.2s ease, padding 0.3s ease;+ max-height: 3000px; opacity: 1; overflow: hidden;+ }+ .dnx-dir-body.is-collapsed {+ max-height: 0; opacity: 0;+ padding-top: 0; padding-bottom: 0;+ }+ .dnx-dir-section {}+ .dnx-dir-group-label {+ font-size: 11px; font-weight: 700;+ letter-spacing: 0.08em; text-transform: uppercase;+ color: var(--nxt-ink-fade);+ margin-bottom: 8px; padding-left: 2px;+ }+ .dnx-dir-items {+ display: grid;+ grid-template-columns: repeat(3, minmax(0, 1fr));+ gap: 8px;+ }+ @media (max-width: 920px) { .dnx-dir-items { grid-template-columns: repeat(2, minmax(0, 1fr)); } }+ @media (max-width: 560px) { .dnx-dir-items { grid-template-columns: 1fr; } }+ .dnx-dir-item {+ display: block; padding: 12px 14px;+ border-radius: 10px; border: 1px solid var(--nxt-stroke);+ background: rgba(255,255,255,0.015);+ transition: border-color 0.14s ease, background 0.14s ease, transform 0.14s ease;+ cursor: pointer;+ }+ .dnx-dir-item:hover {+ border-color: var(--nxt-stroke-strong);+ background: rgba(255,255,255,0.04);+ transform: translateY(-1px);+ }+ .dnx-dir-item-title {+ font-size: 13.5px; font-weight: 550;+ color: var(--nxt-ink); margin-bottom: 2px;+ }+ .dnx-dir-item-sub {+ font-size: 12px; color: var(--nxt-ink-fade);+ line-height: 1.35;+ overflow: hidden; text-overflow: ellipsis; white-space: nowrap;+ }`;const tag = document.createElement('style');tag.id = 'dnx-home-styles';