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.

805 B
Raw Blame
// The chart-source switcher for buildless pages, published at /chart-switcher.js.
//
// A stable-named build entry is emitted as a facade that imports its hashed
// chunk for side effects and re-exports nothing, so a page served from public/
// cannot `import { mountSwitchableChart }` from it. Like /herald.js, it
// publishes on `window` instead: the page loads this script with a dynamic
// import, then calls `mountSwitchableChart` off `window.threeChartSwitcher`
// (see mountChart in public/oracle-coin.js for the call site).
//
// Bundled pages import src/shared/chart-switcher.js directly and never load this.

import { mountSwitchableChart } from './chart-switcher.js';

if (typeof window !== 'undefined' && !window.threeChartSwitcher) {
	window.threeChartSwitcher = { mountSwitchableChart };
}