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: serve /.well-known/chat-plugin.json via wk.js API handler
nirholasf2e0cb239a0b
diff --git a/api/wk.js b/api/wk.jsindex cf79ff4a0..e2742f78a 100644--- a/api/wk.js+++ b/api/wk.js@@ -77,8 +77,27 @@ function handleX402(req, res) {// ── dispatcher ────────────────────────────────────────────────────────────────+function handleChatPlugin(req, res) {+ return json(res, 200, {+ identifier: '3dagent',+ schemaVersion: 1,+ meta: {+ title: 'three.ws',+ description: 'Render a 3D avatar that reacts to the chat.',+ avatar: 'https://three.ws/favicon.ico',+ tags: ['avatar', '3d', 'agent'],+ },+ ui: { position: 'right', size: { width: 320, height: 420 } },+ settings: [+ { name: 'agentId', type: 'string', required: true, title: 'Agent ID' },+ { name: 'apiOrigin', type: 'string', default: 'https://three.ws/', title: 'API Origin' },+ ],+ }, { 'cache-control': 'public, max-age=3600' });+}+const DISPATCH = {'agent-attestation-schemas': handleAttestationSchemas,+ 'chat-plugin': handleChatPlugin,'oauth-authorization-server': handleOauthAuthServer,'oauth-protected-resource': handleOauthProtectedResource,'x402': handleX402,diff --git a/vercel.json b/vercel.jsonindex f4dad7a9d..6277cda05 100644--- a/vercel.json+++ b/vercel.json@@ -6,6 +6,7 @@"src": "/openapi\\.json","dest": "/api/openapi-json"},+ { "src": "/\\.well-known/chat-plugin\\.json", "dest": "/api/wk?name=chat-plugin" },{ "src": "/\\.well-known/x402", "dest": "/api/wk?name=x402" },{ "src": "/\\.well-known/agent-attestation-schemas", "dest": "/api/wk?name=agent-attestation-schemas" },{ "src": "/\\.well-known/oauth-authorization-server", "dest": "/api/wk?name=oauth-authorization-server" },