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
import { UIPanel } from './libs/ui.js';
import { APP } from './libs/app.js';
function Player( editor ) {
const signals = editor.signals;
const container = new UIPanel();
container.setId( 'player' );
container.setPosition( 'absolute' );
container.setDisplay( 'none' );
//
const player = new APP.Player();
container.dom.appendChild( player.dom );
window.addEventListener( 'resize', function () {
player.setSize( container.dom.clientWidth, container.dom.clientHeight );
} );
signals.windowResize.add( function () {
player.setSize( container.dom.clientWidth, container.dom.clientHeight );
} );
signals.startPlayer.add( async function () {
container.setDisplay( '' );
await player.load( editor.toJSON() );
player.setSize( container.dom.clientWidth, container.dom.clientHeight );
player.play();
} );
signals.stopPlayer.add( function () {
container.setDisplay( 'none' );
player.stop();
player.dispose();
} );
return container;
}
export { Player };