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
// Library entry — imported by the CDN bundle <script type="module" src="agent-3d.js">.
// Registers the custom element and exposes public API classes for programmatic use.
// Buffer polyfill MUST be the very first import so its body runs before any
// transitive Solana/Anchor/Metaplex dep that touches `Buffer` at module init.
import './buffer-polyfill.js';
import { Agent3DElement } from './element.js';
import { AgentStageElement } from './stage-element.js';
export { Agent3DElement, AgentStageElement };
export { Viewer } from './viewer.js';
export { Runtime } from './runtime/index.js';
export { SceneController } from './runtime/scene.js';
export { SkillRegistry, Skill } from './skills/index.js';
export { Memory } from './memory/index.js';
export { loadManifest, normalize, fetchRelative } from './manifest.js';
export { resolveURI, fetchWithFallback } from './ipfs.js';
/**
* @typedef {Object} AvatarChatOptions
* @property {'off'|undefined} avatarChat - Set to 'off' to disable inline avatar layout
*/
// Re-export the side-effectful element import for users who import the whole bundle.
export const defineElement = (tag = 'agent-3d') => {
if (!customElements.get(tag)) customElements.define(tag, Agent3DElement);
};
// The element also self-registers on import, but calling defineElement() with a
// custom tag lets consumers ship under their own brand.