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
docs(x402): clarify per-network facilitator routing on the three CDP routes
overstepping2c3763ab3eaf
diff --git a/api/insights/revenue-vision.js b/api/insights/revenue-vision.jsindex 04a006beb..918efa58b 100644--- a/api/insights/revenue-vision.js+++ b/api/insights/revenue-vision.js@@ -1,14 +1,16 @@// GET /api/insights/revenue-vision//-// Paid endpoint cataloged by the CDP x402 Bazaar (agentic.market). For $0.001-// USDC on Base mainnet the server hands the caller's mission_brief to Claude-// and returns a structured { power_mode, insight, recommended_move, confidence }-// object. Buyers pay programmatically with @x402/fetch — no API keys.+// Paid endpoint cataloged by the CDP x402 Bazaar (agentic.market) and the+// pay-skills registry. For $0.001 USDC the server hands the caller's+// mission_brief to Claude and returns a structured+// { power_mode, insight, recommended_move, confidence } object. Buyers pay+// programmatically with @x402/fetch — no API keys.//-// Wire stack: plain Node handler + our internal x402-spec.js (same path-// /api/mcp uses). 402 challenge stays alive even when CDP creds are absent so-// the bazaar can index the endpoint. Verify+settle routes via-// X402_FACILITATOR_URL_BASE (PayAI by default).+// Networks: Base mainnet (EIP-3009 + Permit2 sibling) and Solana mainnet+// (USDC). verifyPayment / settlePayment in x402-spec.js routes per-network:+// Base via X402_FACILITATOR_URL_BASE and Solana via X402_FACILITATOR_URL_SOLANA+// (PayAI by default). The Solana entry is omitted when X402_PAY_TO_SOLANA is+// unset so the 402 challenge stays valid.import { wrap, cors, error } from '../_lib/http.js';import {diff --git a/api/x402/mint-to-mesh.js b/api/x402/mint-to-mesh.jsindex b6f62f8ab..386bc3ea3 100644--- a/api/x402/mint-to-mesh.js+++ b/api/x402/mint-to-mesh.js@@ -1,20 +1,21 @@// GET /api/x402/mint-to-mesh?mint=<solana-mint>//-// Paid endpoint cataloged by the CDP x402 Bazaar (agentic.market). For $0.01-// USDC on Base mainnet the server reads the token's on-chain Metaplex metadata,-// resolves the off-chain JSON, fetches the image (when one is exposed), and-// returns a themed binary glTF cube ready for any Three.js / Babylon.js /-// model-viewer instance to render.+// Paid endpoint cataloged by the CDP x402 Bazaar (agentic.market) and the+// pay-skills registry. For $0.001 USDC the server reads the token's on-chain+// Metaplex metadata, resolves the off-chain JSON, fetches the image (when one+// is exposed), and returns a themed binary glTF cube ready for any Three.js /+// Babylon.js / model-viewer instance to render.//// The cube is procedurally synthesized per request via @gltf-transform — no// templated asset, no headless WebGL, no S3. Output ships as base64 inside a// JSON envelope so x402 facilitators that struggle with binary bodies still// receive a clean response.//-// Wire stack: plain Node handler + our internal x402-spec.js (same path-// /api/mcp uses). 402 challenge stays alive even when CDP creds are absent so-// the bazaar can index the endpoint. Verify+settle routes via-// X402_FACILITATOR_URL_BASE (PayAI by default).+// Networks: Base mainnet (EIP-3009 + Permit2 sibling) and Solana mainnet+// (USDC). verifyPayment / settlePayment in x402-spec.js routes per-network:+// Base via X402_FACILITATOR_URL_BASE and Solana via X402_FACILITATOR_URL_SOLANA+// (PayAI by default for both). The Solana entry is omitted when+// X402_PAY_TO_SOLANA is unset so the 402 challenge stays valid.import { wrap, cors, error } from '../_lib/http.js';import {diff --git a/api/x402/model-check.js b/api/x402/model-check.jsindex 0bc05d11b..2b743ab28 100644--- a/api/x402/model-check.js+++ b/api/x402/model-check.js@@ -1,16 +1,18 @@// GET /api/x402/model-check?url=<glb-or-gltf>//-// Paid endpoint cataloged by the CDP x402 Bazaar (agentic.market). For $0.001-// USDC on Base mainnet the server fetches the model bytes, runs the-// glTF-Transform inspector, and returns structural stats + optimization hints.-// Buyers pay programmatically with @x402/fetch — no API keys.+// Paid endpoint cataloged by the CDP x402 Bazaar (agentic.market) and the+// pay-skills registry. For $0.001 USDC the server fetches the model bytes, runs+// the glTF-Transform inspector, and returns structural stats + optimization+// hints. Buyers pay programmatically with @x402/fetch — no API keys.//-// Wire stack: plain Node handler + our internal x402-spec.js (facilitator--// agnostic verify/settle). The same path /api/mcp uses. Stays alive even when-// CDP creds are absent — the 402 challenge still emits a proper bazaar-// discovery extension so the catalog can index this endpoint. Verify+settle-// routes to whichever facilitator X402_FACILITATOR_URL_BASE points at (PayAI-// by default; set to CDP's URL for first-class CDP-Bazaar settlement).+// Networks: Base mainnet (EIP-3009 + Permit2 sibling) and Solana mainnet+// (USDC). verifyPayment / settlePayment in x402-spec.js routes per-network:+// Base via X402_FACILITATOR_URL_BASE (CDP when configured, else PayAI) and+// Solana via X402_FACILITATOR_URL_SOLANA (PayAI). The Solana entry is omitted+// when X402_PAY_TO_SOLANA is unset so the 402 challenge stays valid.+//+// Stays alive even when CDP creds are absent — the 402 challenge still emits+// a proper bazaar discovery extension so the catalog can index this endpoint.import { wrap, cors, error } from '../_lib/http.js';import {