Examples
Example Code (GitHub)

Example Code

Full working examples for every platform are available on GitHub.

What's included

ExampleFrameworkDescription
react/ReactAvatar component with voice chat
nextjs/Next.jsServer-side rendered avatar page
vue/Vue 3Avatar widget integration
js/Vanilla JSScript tag embed, no framework
react-native/React NativeMobile avatar with Expo
embed/HTMLOne-liner embed snippet

Quick clone

git clone https://github.com/AvatariumAI/examples.git
cd examples

Each example folder has its own README.md with setup instructions.

Get an avatar ID

  1. Go to dashboard.avatarium.ai (opens in a new tab)
  2. Create or open an avatar
  3. Copy the Avatar ID (11-character short ID) from the About section
  4. Paste it into the example's config