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: update documentation structure and links for improved navigation
nirholasfcd5d339e8a5
diff --git a/docs/index.html b/docs/index.htmlindex fa57f7f9c..5968182c5 100644--- a/docs/index.html+++ b/docs/index.html@@ -38,37 +38,59 @@<h2>Getting started</h2><ul>- <li><a href="/docs/SETUP.md">Setup <span>Local development and environment variables</span></a></li>- <li><a href="/docs/DEVELOPMENT.md">Development guide <span>Running, building, and testing</span></a></li>- <li><a href="/docs/DEPLOYMENT.md">Deployment <span>Deploying to Vercel</span></a></li>+ <li><a href="/docs/introduction.md">Introduction <span>What three.ws is and how it works</span></a></li>+ <li><a href="/docs/quick-start.md">Quick start <span>Get up and running in minutes</span></a></li>+ <li><a href="/docs/internal/SETUP.md">Local setup <span>Development environment and environment variables</span></a></li>+ <li><a href="/docs/internal/DEVELOPMENT.md">Development guide <span>Running, building, and testing</span></a></li>+ <li><a href="/docs/deployment.md">Deployment <span>Deploying to Vercel</span></a></li></ul><h2>Architecture</h2><ul>- <li><a href="/docs/ARCHITECTURE.md">Architecture overview <span>How the platform is structured</span></a></li>+ <li><a href="/docs/architecture.md">Architecture overview <span>How the platform is structured</span></a></li><li><a href="/docs/how-it-works.md">How it works <span>End-to-end flow from GLB to embedded agent</span></a></li>+ <li><a href="/docs/agent-system.md">Agent system <span>How agents are built and orchestrated</span></a></li>+ <li><a href="/docs/memory.md">Memory system <span>Agent memory and persistence</span></a></li>+ <li><a href="/docs/skills.md">Skills system <span>Extending agent capabilities</span></a></li>+ <li><a href="/docs/permissions.md">Permissions & delegation <span>Access control model</span></a></li></ul><h2>API reference</h2><ul>- <li><a href="/docs/API.md">REST API <span>Avatars, agents, OAuth, MCP endpoints</span></a></li>- <li><a href="/docs/MCP.md">MCP <span>Model Context Protocol integration</span></a></li>- <li><a href="/docs/WIDGETS.md">Widgets <span>Widget types, embed codes, and the Widget Studio</span></a></li>+ <li><a href="/docs/api-reference.md">REST API <span>Avatars, agents, OAuth, MCP endpoints</span></a></li>+ <li><a href="/docs/js-api.md">JavaScript API <span>App, Viewer, and Validator classes</span></a></li>+ <li><a href="/docs/web-component.md">Web component <span><agent-3d> embed API</span></a></li>+ <li><a href="/docs/mcp.md">MCP <span>Model Context Protocol integration</span></a></li>+ <li><a href="/docs/sdk.md">SDK <span>Client library reference</span></a></li>+ <li><a href="/docs/widgets.md">Widgets <span>Widget types, embed codes, and the Widget Studio</span></a></li><li><a href="/docs/widgets">Widgets reference (interactive) <span>Full widget API docs</span></a></li></ul>+ <h2>Guides</h2>+ <ul>+ <li><a href="/docs/embedding.md">Embedding <span>Embed agents on any website</span></a></li>+ <li><a href="/docs/authentication.md">Authentication <span>SIWE, Privy, OAuth, and API keys</span></a></li>+ <li><a href="/docs/avatar-creation.md">Avatar creation <span>Creating and customizing avatars</span></a></li>+ <li><a href="/docs/avaturn.md">Avaturn integration <span>Selfie-to-avatar via Avaturn</span></a></li>+ <li><a href="/docs/layers.md">Custom layers <span>Adding your own scene layers</span></a></li>+ <li><a href="/docs/erc8004.md">ERC-8004 <span>On-chain agent identity standard</span></a></li>+ <li><a href="/docs/security.md">Security <span>Security model and best practices</span></a></li>+ </ul>+<h2>Tutorials</h2><ul>- <li><a href="/docs/tutorial-build-pai-site.md">Build a PAI site <span>Step-by-step: deploy a personal AI agent site</span></a></li>- <li><a href="/docs/your-own-layers.md">Custom layers <span>Adding your own scene layers</span></a></li>- <li><a href="/docs/avaturn-docs.md">Avaturn integration <span>Selfie-to-avatar via Avaturn</span></a></li>+ <li><a href="/docs/tutorials/first-agent.md">Build your first agent <span>Step-by-step from zero to deployed</span></a></li>+ <li><a href="/docs/tutorials/personal-ai-site.md">Build a personal AI site <span>Deploy a personal AI agent site</span></a></li>+ <li><a href="/docs/tutorials/custom-skill.md">Create a custom skill <span>Extend your agent with new capabilities</span></a></li>+ <li><a href="/docs/tutorials/embed-on-website.md">Embed on a website <span>Add your agent to any page</span></a></li>+ <li><a href="/docs/tutorials/register-onchain.md">Register on-chain <span>Mint your agent as an ERC-8004 token</span></a></li></ul><h2>Operations</h2><ul>- <li><a href="/docs/SMOKE_TEST.md">Smoke test <span>Manual verification checklist</span></a></li>- <li><a href="/docs/VALIDATION_DEPLOY.md">Validation deployment <span>Pre-release checklist</span></a></li>- <li><a href="/docs/api-inventory.md">API inventory <span>Full list of API endpoints</span></a></li>+ <li><a href="/docs/internal/SMOKE_TEST.md">Smoke test <span>Manual verification checklist</span></a></li>+ <li><a href="/docs/internal/VALIDATION_DEPLOY.md">Validation deployment <span>Pre-release checklist</span></a></li>+ <li><a href="/docs/internal/api-inventory.md">API inventory <span>Full list of API endpoints</span></a></li></ul></div></body>diff --git a/sims-demo/example/IKCharacterModel.jsx b/sims-demo/example/IKCharacterModel.jsxindex d1d146a38..8dc7aa2c7 100644--- a/sims-demo/example/IKCharacterModel.jsx+++ b/sims-demo/example/IKCharacterModel.jsx@@ -43,8 +43,6 @@ export default function IKCharacterModel(props) {const newBones = [...nodes.QuadShell_Body.skeleton.bones, FLEffectBone];nodes.QuadShell_Body.skeleton = new THREE.Skeleton(newBones);- console.log(nodes, nodes.QuadShell_Body.skeleton.bones);-// yAxis.applyMatrix4(nodes["Front_Leg1L"].matrixWorld);nodes["Front_Leg1L"].localToWorld(yAxis);const FLIKs = [diff --git a/tests/features-page.test.js b/tests/features-page.test.jsindex 2d7ecd4fc..e3b8d721a 100644--- a/tests/features-page.test.js+++ b/tests/features-page.test.js@@ -17,7 +17,6 @@ describe('/features page — structure', () => {it('lives at public/features/index.html (folder pattern, not root features.html)', () => {expect(existsSync(p('public/features/index.html'))).toBe(true);expect(existsSync(p('features.html'))).toBe(false);- expect(existsSync(p('features.css'))).toBe(false);});it('has metadata: title, canonical, og:image', () => {@@ -34,25 +33,26 @@ describe('/features page — structure', () => {expect(html).toContain('data-act="3"');});- it('embeds three live <agent-3d> elements (one per act)', () => {- const matches = html.match(/<agent-3d\b/g) || [];- expect(matches.length).toBe(3);+ it('embeds three <model-viewer> act-agents (one per act)', () => {expect(html).toContain('data-role="act1-agent"');expect(html).toContain('data-role="act2-agent"');expect(html).toContain('data-role="act3-agent"');+ // Each act-agent must be a model-viewer element+ const actAgentTags = html.match(/<model-viewer\b[^>]*data-role="act\d-agent"[^>]*>/gs) || [];+ expect(actAgentTags.length).toBe(3);});- it('Act 1 boots eagerly; Acts 2 and 3 lazy-boot', () => {- // Act 1 carries the eager attr; the others do not.- const act1 = html.match(/<agent-3d\b[^>]*data-role="act1-agent"[^>]*>/)?.[0];- const act2 = html.match(/<agent-3d\b[^>]*data-role="act2-agent"[^>]*>/)?.[0];- const act3 = html.match(/<agent-3d\b[^>]*data-role="act3-agent"[^>]*>/)?.[0];+ it('Act 1 loads eagerly; Acts 2 and 3 load lazily', () => {+ // Act 1 uses loading="eager"; acts 2 and 3 use loading="lazy"+ const act1 = html.match(/<model-viewer\b[^>]*data-role="act1-agent"[^>]*>/s)?.[0];+ const act2 = html.match(/<model-viewer\b[^>]*data-role="act2-agent"[^>]*>/s)?.[0];+ const act3 = html.match(/<model-viewer\b[^>]*data-role="act3-agent"[^>]*>/s)?.[0];expect(act1).toBeTruthy();expect(act2).toBeTruthy();expect(act3).toBeTruthy();- expect(act1).toMatch(/\beager\b/);- expect(act2).not.toMatch(/\beager\b/);- expect(act3).not.toMatch(/\beager\b/);+ expect(act1).toContain('loading="eager"');+ expect(act2).toContain('loading="lazy"');+ expect(act3).toContain('loading="lazy"');});it('has a deploy CTA pointing at /deploy', () => {@@ -110,23 +110,24 @@ describe('/features page — CSS contract', () => {});describe('/features page — JS wiring', () => {- it('lazy-boots Acts 2 and 3 via IntersectionObserver', () => {+ it('uses IntersectionObserver for progress-dot tracking', () => {expect(js).toContain('IntersectionObserver');- expect(js).toContain('agent-3d:not([eager])');+ expect(js).toContain('parallax-act[data-act]');});- it('triggers expressEmotion() on emotion-chip click', () => {- expect(js).toContain('expressEmotion');+ it('wires emotion chips to model-viewer animation playback', () => {expect(js).toContain('data-emotion');+ expect(js).toContain('animationName');+ expect(js).toContain('EMOTION_TO_ANIM');});it('fetches a real on-chain agent via /api/agents/suggest', () => {expect(js).toContain('/api/agents/suggest');});- it('paints a chain ribbon for Act 3', () => {- expect(js).toContain('chain-pill');- expect(js).toContain('CHAIN_LABELS');+ it('resolves chain IDs to human-readable labels for the Act 3 passport', () => {+ expect(js).toContain('SHORT_NAME_BY_CHAIN');+ expect(js).toContain('chainLabel');});});