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
/**
* Bounded-concurrency async map. Keeps the public RPC happy (no 500-call
* bursts) while still running work in parallel. Preserves input order.
*/
export async function pMap<In, Out>(
items: readonly In[],
mapper: (item: In, index: number) => Promise<Out>,
concurrency = 8,
): Promise<Out[]> {
const results = new Array<Out>(items.length)
let cursor = 0
const limit = Math.max(1, Math.min(concurrency, items.length || 1))
async function worker(): Promise<void> {
while (cursor < items.length) {
const index = cursor++
results[index] = await mapper(items[index] as In, index)
}
}
await Promise.all(Array.from({ length: limit }, worker))
return results
}