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
Examples
Runnable examples for @three-ws/x402-payment-modal
— a zero-dependency, vanilla-JS payment modal for any x402 paid HTTP endpoint.
| Example | What it shows | Fastest way to try it |
|---|---|---|
plain-html/ |
No build step. Declarative data-x402-* buttons, a programmatic pay() call, and x402:result / x402:error event handling — all from a single CDN <script>. |
Open plain-html/index.html in a browser (or serve the folder, e.g. npx serve plain-html). |
react/ |
A reusable <X402Button> component that wraps pay() with a dynamic import, so it is SSR-safe. |
Copy react/X402Button.jsx into your app — see react/README.md. |
server-express/ |
A complete Express server that mounts the Solana checkout router and serves a demo paid endpoint returning a real x402 v2 challenge. | cd server-express && npm install && npm start, then open http://localhost:3000 |
Which do I need?
- EVM payments sign in the browser (EIP-3009) — the plain-html or react client is all you need.
- Solana payments also require the server-express checkout endpoint to
build and settle the transfer. See
../docs/server-setup.md.
The client examples point at placeholder endpoints (
https://api.example.com/...). Swap in a real x402-enabled endpoint to take an actual payment.