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
// Mapping of mint addresses to human-readable currency symbols.
const CURRENCY_SYMBOLS = {
'EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v': 'USDC',
'So11111111111111111111111111111111111111112': 'SOL',
};
// Divisors to convert from smallest unit to standard unit.
const CURRENCY_DIVISORS = {
'USDC': 1e6,
'SOL': 1e9,
};
export function PriceBadge(price) {
if (!price || !price.amount) {
return `<span class="price-badge price-free">Free</span>`;
}
const symbol = CURRENCY_SYMBOLS[price.currency_mint] || '???';
const divisor = CURRENCY_DIVISORS[symbol] || 1;
const formattedAmount = (price.amount / divisor).toFixed(2);
return `
<span class="price-badge price-paid">
${formattedAmount} ${symbol}
</span>
`;
}