Thinking UI

Particle SpherePRO

A slowly turning sphere of thousands of points that the voice pushes outward.

Code

2 files · 277 lines of TypeScriptPRO

Particle Sphere is part of Pro

Get its source, the one-paste agent prompt and all 113 components, for a one-time $99.

Motion notes

  • About 2,400 points sit on a spherical Fibonacci lattice, so spacing stays even everywhere, with no seams or crowded poles. They are drawn per pixel in one shader, not as 2,400 objects.
  • Points on the far side are smaller and dimmer than near ones. That reads as depth without blur, and the rim looks denser, the way a real point cloud does.
  • The voice displaces points outward along a slowly drifting noise field, so loud moments look lumpy and alive instead of the whole sphere just scaling up.
  • Thinking dims the sphere and runs a travelling twinkle around a narrow band at the equator: busy, but quieter than speech. With reduced motion it renders one still frame of the current state.

Usage

Example
<OrbParticles state="speaking" level={audioLevel} />

Props

PropTypeDefaultDescription
state"idle" | "listening" | "thinking" | "speaking""idle"Assistant state. Changes ease in over about half a second.
levelnumber—Audio level 0–1, e.g. from an AnalyserNode. Leave it out to simulate one per state.
sizenumber | string120Diameter of the sphere in px, or any CSS length. Displaced points can reach about 20% past it.
classNamestring—Classes for the wrapper.