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, { createContext } from "react"
import useSound from "use-sound"
import soundFileSpecs from '../../public/sound/sound-files.json';
import soundUrl from '../../public/sound/sounds.mp3';
export const SoundContext = createContext()
export const SoundProvider = (props) => {
const _getSoundFiles = regex => soundFileSpecs.find(f => regex.test(f.name));
const [play] = useSound(soundUrl, {
sprite: {
switchItem: [_getSoundFiles(/switchingItem/).offset, _getSoundFiles(/switchingItem/).duration],
classSelect: [_getSoundFiles(/class-select/).offset, _getSoundFiles(/class-select/).duration],
characterLoad: [_getSoundFiles(/character-load/).offset, _getSoundFiles(/character-load/).duration],
randomizeButton: [_getSoundFiles(/randomize-button/).offset, _getSoundFiles(/randomize-button/).duration],
classMouseOver: [_getSoundFiles(/class-mouse-over/).offset, _getSoundFiles(/class-mouse-over/).duration],
backNextButton: [_getSoundFiles(/back-next-button/).offset, _getSoundFiles(/back-next-button/).duration],
}
});
const playSound = (name, delay = 0) => {
delay === 0 ? play({ id: name }) : setTimeout(() => {
play({ id: name });
},delay);
}
return (
<SoundContext.Provider
value={{
playSound
}}
>
{props.children}
</SoundContext.Provider>
)
}