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 { Connection } from "@solana/web3.js";
/** @returns {string} */
export function getRpcUrl() {
const url =
process.env.SOLANA_RPC_URL ?? process.env.NEXT_PUBLIC_SOLANA_RPC_URL;
if (!url?.trim()) {
throw new Error(
"SOLANA_RPC_URL or NEXT_PUBLIC_SOLANA_RPC_URL must be set (use an HTTPS JSON-RPC endpoint).",
);
}
return url.trim();
}
/** @returns {import("@solana/web3.js").Connection} */
export function getConnection() {
return new Connection(getRpcUrl(), "confirmed");
}