Skip to content

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.

646 B
Raw Blame
// Browser Buffer polyfill. Bundled transitive deps (Metaplex/Anchor discriminators,
// bs58, borsh, spl-token-metadata) reference `Buffer` at module-init time. This
// must execute as a module body BEFORE any of those modules evaluate — so it
// lives in its own file and is imported first by the entry. (If the assignment
// lived inside lib.js's body, `import` hoisting would run every transitive dep
// — including the offending top-level `Buffer.from(...)` calls — before lib.js's
// body ran the polyfill.)
import { Buffer as _NodeBuffer } from 'buffer';
if (typeof globalThis.Buffer === 'undefined') globalThis.Buffer = _NodeBuffer;