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 React from "react"
export const CameraMode = {
NORMAL: "NORMAL",
AR: "AR",
AR_FRONT: "AR_FRONT",
VR: "VR",
}
export const ViewMode = {
LANDING: "LANDING",
CREATE: "CREATE",
CLAIM: "CLAIM",
LOAD: "LOAD",
APPEARANCE: "APPEARANCE",
BATCHDOWNLOAD: "BATCHDOWNLOAD",
SAVE: "SAVE",
MINT: "MINT",
OPTIMIZER: "OPTIMIZER",
BATCHMANIFEST: "BATCHMANIFEST",
WALLET: "WALLET",
STUDIO: "STUDIO"
}
export const ViewContext = React.createContext()
export const ViewProvider = (props) => {
const [currentCameraMode, setCurrentCameraMode] = React.useState(CameraMode.NORMAL)
const [viewMode, setViewMode] = React.useState(ViewMode.LANDING)
const [isLoading, setIsLoading] = React.useState(false)
const [mouseIsOverUI, setMouseIsOverUI] = React.useState(false)
return (
<ViewContext.Provider value={{
viewMode, setViewMode,
isLoading, setIsLoading,
mouseIsOverUI, setMouseIsOverUI,
currentCameraMode, setCurrentCameraMode,
}}>
{props.children}
</ViewContext.Provider>
)
}