aiellie

Search

Find a component, template or page

GitHub
Components

Orb

The assistant as a sphere of moving colour that idles, listens, thinks, speaks and sleeps, swelling with the voice. Any word gives it a look of its own.

Open full screen
fig. 01 · open it full screen from the corner

Installation

npx shadcn@latest add "@aiellie/orb"

shadcn needs the @aiellie registry in components.json first. npx aiellie add orb adds it on its first run, then installs the same way.

Orb is the assistant as a sphere of moving colour, for a voice screen where there are no words to look at. It has five states, idle, listening, thinking, speaking and asleep, and each one moves differently: a slow breath at rest, a spin while thinking, a pulse while speaking. While listening or speaking it swells with level, the loudness of the voice.

The look comes from seed. A preset's name, like aiellie or openai, gives that preset, and any other word turns into a look of its own that's the same on every machine, so a product can theme its orb with one word.

Getting started

  1. Show the assistant's state

    components/voice-call.tsx
    import { Orb, type OrbState } from "@/components/aiellie/orb"
    
    export function VoiceCall({ state }: { state: OrbState }) {
      return <Orb state={state} size={160} />
    }
  2. Follow the voice

    Pass level, from 0 to 1, as often as you measure it. An analyser on the microphone stream, or on the reply's playback, gives you the number.

    components/voice-call.tsx
    <Orb state="listening" level={level} />

Anatomy

<div data-slot="orb" data-state="speaking" role="img">
  <div> {/* swells with level */}
    <div> {/* the state's motion */}
      <canvas /> {/* the shader */}
    </div>
  </div>
  <span role="status" /> {/* the state, read out when it changes */}
</div>

The surface is the Warp shader from @paper-design/shaders-react, drawn with WebGL. The motion stops under reduced motion and the colours keep moving slowly.

Screen readers hear it as an image named by its state, and hear the new state when it changes.

Examples

Seeds

Presets keep the house tuning. Any other word sets the colours, the shape and how fast it moves.

API reference

Orb

PropTypeDefaultDescription
state"idle" | "listening" | "thinking" | "speaking" | "asleep""idle"
sizenumber160The diameter in pixels.
seedstring"aiellie"A preset's name, or any word for a look of its own.
colors[string, string, string]Replaces the seed's colours and keeps the rest of its look.
levelnumber0How loud the voice is, from 0 to 1. Read while listening or speaking.

All other div props are forwarded. ORB_PRESETS lists the presets: aiellie, openai, google, anthropic, x and deepseek.