Code

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

<gummy-agent
  state="idle"
  size="200"
  theme="light"
  label="Assistant"
></gummy-agent>

<script>
  const agent = document.querySelector('gummy-agent');
  // idle | listening | thinking | speaking | happy
  agent.setAttribute('state', 'speaking');
  // optional: your TTS loudness, 0..1, every frame — the light inside pulses with it
  // agent.setAttribute('level', loudness);
  agent.addEventListener('press', () => openChat());
</script>

In context

Over a voice button
Reading the brief
Drafting three options
Checking the numbers
Working through a task · Mint 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/gummy-agent.json
2. Load it and use the element
HTML
<!-- gummy-agent.free.js: download it from the Install section below and host it with your site -->
<script src="/gummy-agent.free.js" defer></script>

<gummy-agent
  state="idle"
  size="96"
  theme="light"
  label="Assistant"
></gummy-agent>

<script>
  const agent = document.querySelector('gummy-agent');
  // idle | listening | thinking | speaking | happy
  agent.setAttribute('state', 'speaking');
  // optional: your TTS loudness, 0..1, every frame — the light inside pulses with it
  // agent.setAttribute('level', loudness);
  agent.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
// gummy-agent.d.ts
declare namespace JSX {
  interface IntrinsicElements {
    'gummy-agent': 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 flavours, 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 stretches up and leans in, antenna raised; thinking looks up and sways while the light flickers; speaking pulses and moves its mouth; happy squints, smiles and hops.
level number 0..1—Loudness of your own voice output while speaking — drives the inner light, the mouth and the stretch. Leave it out and the agent 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, draggable, 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 shadow and how far the inner light spills onto the background.
press event—Fired on click, tap, Enter or Space — not after a pull. In React: onPress.
poke(strength?) method—Flicks it from code: a squash and a sideways wobble — for a new message or a finished task.
tint Pro'aurora' | 'sunset' | 'mint' | 'mono' | object'aurora'Jelly colour family, or a custom tint. Free build ships Aurora only.

The body is a single SVG path rebuilt every frame from four springs — squash, lean, a lagging belly and the antenna tip — so a pull is a real deformation, not a canned animation, and the highlights ride the surface while the face trails inside the jelly. No filters, no canvas, no WebGL: every soft edge is a gradient that ends at zero. Dragging uses touch-action: none on the agent itself, so it can be pulled on phones. It pauses off-screen and in a hidden tab; with reduced motion it holds one settled pose per state.

More components