Example Code
Full working examples for every platform are available on GitHub.
GitHub Examples Repository: github.com/AvatariumAI/examples (opens in a new tab)
What's included
| Example | Framework | Description |
|---|---|---|
react/ | React | Avatar component with voice chat |
nextjs/ | Next.js | Server-side rendered avatar page |
vue/ | Vue 3 | Avatar widget integration |
js/ | Vanilla JS | Script tag embed, no framework |
react-native/ | React Native | Mobile avatar with Expo |
embed/ | HTML | One-liner embed snippet |
Quick clone
git clone https://github.com/AvatariumAI/examples.git
cd examplesEach example folder has its own README.md with setup instructions.
Get an avatar ID
- Go to dashboard.avatarium.ai (opens in a new tab)
- Create or open an avatar
- Copy the Avatar ID (11-character short ID) from the About section
- Paste it into the example's config