feat(shadcn): add AgentAudioVisualizerOrbit component - #1421
Draft
thomasyuill-livekit wants to merge 2 commits into
Draft
feat(shadcn): add AgentAudioVisualizerOrbit component#1421thomasyuill-livekit wants to merge 2 commits into
thomasyuill-livekit wants to merge 2 commits into
Conversation
Ports the canvas-based orbiting-orbs audio visualizer from the expressive-agent demo into a reusable agents-ui component/hook pair, using useTrackVolume and useMultibandTrackVolume from @livekit/components-react for audio analysis instead of hand-rolled AnalyserNode code. Registered alongside the existing shader-based visualizers in the shadcn registry, package index, and Storybook. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
thomasyuill-livekit
marked this pull request as draft
August 13, 2026 18:52
Contributor
size-limit report 📦
|
…izerOrbit Mirrors AgentExpression.stories.tsx's LiveAgent story, wiring useAgentExpression's mood into the orbit visualizer's color prop against a real expressive agent. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Issue
No linked Linear ticket.
Overview
Extracts the canvas-based "orbiting orbs" audio visualizer from an internal expressive-agent demo into a reusable
agents-uicomponent,AgentAudioVisualizerOrbit. Unlike the existing five visualizers (all shader-based viaReactShaderToy), this one stays plain canvas 2D — the additive-blend orb math doesn't benefit from a shader rewrite.Summary of changes
packages/shadcn/components/agents-ui/agent-audio-visualizer-orbit.tsxAuracanvas-drawing class from the demo, driven by a persistentrequestAnimationFrameloop +ResizeObserverpackages/shadcn/hooks/agents-ui/use-agent-audio-visualizer-orbit.tsAgentState+ audio track to draw params, usinguseTrackVolume/useMultibandTrackVolumefrom@livekit/components-reactinstead of hand-rolledAnalyserNodecodepackages/shadcn/index.ts,packages/shadcn/registry.jsonallbundle)packages/shadcn/tests/*.test.{ts,tsx}docs/storybook/stories/agents-ui/AgentAudioVisualizerOrbit.stories.tsxDefaultandOverrideVolume(simulated waveform) variantsTesting
/story/agents-ui-agentaudiovisualizerorbit--override-volume