Code

<!-- plush-buddy.free.js: download it from the Install section below and host it with your site -->
<script src="/plush-buddy.free.js" defer></script>

<plush-buddy
  state="idle"
  size="200"
  theme="light"
  label="Assistant"
></plush-buddy>

<script>
  const buddy = document.querySelector('plush-buddy');
  // idle | listening | thinking | speaking | happy
  buddy.setAttribute('state', 'speaking');
  // optional: your TTS loudness, 0..1, every frame
  // buddy.setAttribute('level', loudness);
  buddy.addEventListener('press', () => openChat());
</script>

In context

Three flights under $400 — the 9:40 has the shortest layover.
Next to a chat reply
Over a voice button · Sunset Pro

Install · Free Web Component

One file, no dependencies. Aurora preset, every other option included. Host it yourself so your visitors never load anything from our servers.

1. Install with one command — or download the file
shadcn CLI · React
npx shadcn@latest add https://www.ui-design.co/r/plush-buddy.json
2. Load it and use the element
HTML
<!-- plush-buddy.free.js: download it from the Install section below and host it with your site -->
<script src="/plush-buddy.free.js" defer></script>

<plush-buddy
  state="idle"
  size="96"
  theme="light"
  label="Assistant"
></plush-buddy>

<script>
  const buddy = document.querySelector('plush-buddy');
  // idle | listening | thinking | speaking | happy
  buddy.setAttribute('state', 'speaking');
  // optional: your TTS loudness, 0..1, every frame
  // buddy.setAttribute('level', loudness);
  buddy.addEventListener('press', () => openChat());
</script>
3. React + TypeScript (optional)

The shadcn command adds a typed React wrapper for you. Using the file directly? Custom elements work in React as-is; for type checking add:

TypeScript
// plush-buddy.d.ts
declare namespace JSX {
  interface IntrinsicElements {
    'plush-buddy': React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> & {
      state?: 'idle' | 'listening' | 'thinking' | 'speaking' | 'happy';
      level?: number | string;
      size?: number | string;
      theme?: 'light' | 'dark';
      follow?: 'true' | 'false';
      interactive?: 'true' | 'false';
      label?: string;
    };
  }
}

Pro · React + TypeScript Pro

One payment of $4.99, yours forever. Use it in unlimited personal and commercial projects; no resale.

  • React component with a poke() ref, TypeScript types and the full source
  • Sunset, Mint and Mono fur, plus custom colours from Brand Fit
  • The vanilla Web Component with every colour, a demo page, README and license

Attributes & props

NameTypeDefaultDescription
state 'idle' | 'listening' | 'thinking' | 'speaking' | 'happy''idle'What the agent is doing. Idle breathes and blinks; listening leans in with its ears up; thinking looks up and sways; speaking bounces and moves its mouth; happy squints, smiles and hops.
level number 0..1—Loudness of your own voice output while speaking — drives the mouth and the bounce. Leave it out and the buddy murmurs by itself.
size number (px)96Width and height. Readable from about 40px.
follow booleantrueEyes follow the pointer anywhere on the page. follow="false" keeps them wandering on their own.
interactive booleantrueA real button: focusable, pressable with Enter or Space, fires press. interactive="false" makes it a picture (role="img").
label string'Assistant'Accessible name of the button or picture.
theme 'light' | 'dark''light'Tunes the contact shadow and the rim light for the background.
press event—Fired on click, tap, Enter or Space. In React: onPress.
poke(strength?) method—Squeezes it from code — for a new message, a finished task, a greeting.
tint Pro'aurora' | 'sunset' | 'mint' | 'mono' | object'aurora'Fur colour family, or a custom tint. Free build ships Aurora only.

The fur is a few hundred combed strands plus a turbulence filter, drawn once and then only moved with transforms — the filter never re-runs, so several buddies on a page stay cheap. The squash is a damped spring, not a keyframe, so a press in the middle of a hop still lands properly. It pauses off-screen and in a hidden tab; with reduced motion it holds one settled pose per state.

More components