ComponentsData display

Monster Avatar

A friendly monster for each agent. Pick a body, color, pattern, ears, eyes, mouth, hat, and the thing it holds, or let the agent id choose. Each one breathes, blinks, and moves the thing it holds.

SourceRegistry JSON

Installation

pnpm dlx shadcn@latest add https://sprout.tulipfarm.ai/r/monster-avatar.json

Copies Monster Avatar into your app, installs the packages, and adds the styles. Then import it from @/components/ui/monster-avatar. Needs Tailwind CSS 4 and a components.json from shadcn init.

Monster avatars
24px
32px
48px
64px
96px
128px
still
A new monster on every visit.

Usage

Monster avatarTSX
import { MonsterAvatar, monsterAvatarPresets } from "@tulipfarm/sprout/monster-avatar";

<MonsterAvatar agentId={agent.id} size={48} />
<MonsterAvatar color="yellow" hat="headphones" item="email" />
<MonsterAvatar config={monsterAvatarPresets[0].config} label="Marketing agent" />

Part props override the character from agentId or config. Passanimated={false} for a still avatar. Use monsterAvatarSrc(config) for a stilldata: URL.

Mix your own

Mix your own
Color
Body
Pattern
Ears
Eyes
Mouth
Hat
Item
<MonsterAvatar color="yellow" body="blob" pattern="fur" ears="cat" eyes="round" mouth="smile" hat="headphones" item="email" />

Animations

Every monster breathes and blinks. What it holds sets the rest of its motion, and each avatar starts at its own point in the loop so a grid never moves in step.

Animations

Presets

74 presets

Performance

The artwork is inline SVG, built from strings and cached, with no images to load. Breathing, blinking, and item motion are CSS animations that change only transform and opacity on separate layers, so the browser runs them on the compositor. A shared observer pauses avatars that are off screen, and they stay still when the user prefers reduced motion.

Accessibility

Without label the avatar is decorative and hidden from assistive technology. Put the agent's name in nearby text, or pass label.