npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

orb-ui

v0.2.3

Published

The simplest way to add voice UI to your React app. One install, one component, works with Vapi and ElevenLabs out of the box.

Downloads

517

Readme

orb-ui

The simplest way to add voice UI to your React app. One install, one component, works with Vapi and ElevenLabs out of the box.

import { Orb } from 'orb-ui'
import { createVapiAdapter } from 'orb-ui/adapters'

<Orb adapter={createVapiAdapter(vapi, { assistantId: 'your-id' })} theme="circle" />

Install

npm install orb-ui

Note: Orb uses React hooks internally — in Next.js App Router, use it in a 'use client' component.

Quick Start

With Vapi

import Vapi from '@vapi-ai/web'
import { Orb } from 'orb-ui'
import { createVapiAdapter } from 'orb-ui/adapters'

const vapi = new Vapi('your-public-key')
const adapter = createVapiAdapter(vapi, { assistantId: 'your-assistant-id' })

function App() {
  return <Orb adapter={adapter} theme="circle" />
}

With ElevenLabs

import { Conversation } from '@elevenlabs/client'
import { Orb } from 'orb-ui'
import { createElevenLabsAdapter } from 'orb-ui/adapters'

const adapter = createElevenLabsAdapter(Conversation, { agentId: 'your-agent-id' })

function App() {
  return <Orb adapter={adapter} theme="circle" />
}

Controlled mode (custom integration)

import { Orb } from 'orb-ui'
import { useState } from 'react'

function App() {
  const [state, setState] = useState('idle')
  const [volume, setVolume] = useState(0)

  return <Orb state={state} volume={volume} theme="circle" />
}

Themes

| Theme | Description | |---|---| | debug | State + volume display with start/stop. Use to verify your integration works. | | circle | Pulsing circle that reacts to volume. | | bars | Five bars that animate with voice. |

Props

| Prop | Type | Default | Description | |---|---|---|---| | theme | 'debug' \| 'circle' \| 'bars' | 'debug' | Visual theme | | state | OrbState | 'idle' | Conversation state (controlled mode) | | volume | number | 0 | Audio volume, 0–1 (controlled mode) | | adapter | OrbAdapter | — | Provider adapter (manages state + volume automatically) | | size | number | 200 | Size in pixels | | onStart | () => void | — | Custom start handler (overrides adapter.start()) | | onStop | () => void | — | Custom stop handler (overrides adapter.stop()) |

States

idle · connecting · listening · speaking · error

Supported Providers

| Provider | Adapter | |---|---| | Vapi | createVapiAdapter from orb-ui/adapters | | ElevenLabs | createElevenLabsAdapter from orb-ui/adapters | | Custom | Use controlled mode — pass state and volume directly |

Development

git clone https://github.com/alexanderqchen/orb-ui.git
cd orb-ui
npm install
cd demo && npm install && cd ..

# Build the library
npm run build

# Run demo locally
cd demo && npm run dev

License

MIT © Alexander Chen