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.

459 B
Raw Blame
import { PumpfunPaymentsAdapter } from './pumpfun-payments.js';

const cache = new Map();

export function getPaymentsAdapter(provider = 'pumpfun') {
	if (cache.has(provider)) return cache.get(provider);
	let inst;
	if (provider === 'pumpfun') inst = new PumpfunPaymentsAdapter();
	else throw new Error(`No payments adapter for provider: ${provider}`);
	cache.set(provider, inst);
	return inst;
}

export function _resetPaymentsAdapters() {
	cache.clear();
}