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

@rtcstack/ui-react

v1.0.2

Published

React component library for RTCstack. Provides a full `VideoConference` experience and every individual component usable standalone.

Readme

@rtcstack/ui-react

React component library for RTCstack. Provides a full VideoConference experience and every individual component usable standalone.

Install

npm install @rtcstack/ui-react @rtcstack/sdk livekit-client react react-dom

Quick start — full conference UI

import { createCall } from '@rtcstack/sdk'
import { VideoConference } from '@rtcstack/ui-react'
import '@rtcstack/ui-react/styles.css'

const call = createCall({ url: 'wss://...', token: '...' })
await call.connect()

function App() {
  return (
    <VideoConference
      call={call}
      onLeave={() => console.log('left')}
    />
  )
}

Components

VideoConference

Full conference view: video grid + control bar + sidebars.

<VideoConference
  call={call}
  className="my-conference"
  onLeave={handleLeave}
  showChat={false}               // default false
  showTranscript={false}         // default false
  showParticipants={false}       // default false
  controlBarButtons={['mic', 'camera', 'leave']}  // subset of buttons
  participantVideoProps={{
    showSpeakingIndicator: true,
    showMuteIndicator: true,
    objectFit: 'contain',
  }}
/>

ControlBar

The row of call control buttons.

<ControlBar
  onLeave={handleLeave}
  buttons={['mic', 'camera', 'screenshare', 'devices', 'leave']}
/>

buttons values: 'mic' | 'camera' | 'screenshare' | 'reactions' | 'layout' | 'devices' | 'leave'

Default: all buttons in that order.


ParticipantVideo

Single participant tile with video, audio, and status overlays.

<ParticipantVideo
  participant={participant}
  isScreenShare={false}         // default false
  showSpeakingIndicator={true}  // default true
  showMuteIndicator={true}      // default true
  showQualityBadge={true}       // default true
  showName={true}               // default true
  mirror={undefined}            // default: true for local non-screenshare
  objectFit="cover"             // 'cover' | 'contain', default 'cover'
  onClick={handleClick}
/>

TranscriptPanel

Live transcript with speaking indicator (animated ···) and final text.

<TranscriptPanel
  maxItems={100}            // default 100, 0 = unlimited
  showSpeakerName={true}    // default true
  className="my-transcript"
/>

Must be inside a CallProvider. Listens to transcriptReceived and speakingStarted/speakingStopped events.


VideoGrid

Responsive grid of all participant tiles.

<VideoGrid
  className="my-grid"
  participantVideoProps={{ objectFit: 'contain', showQualityBadge: false }}
/>

Switches to screenshare layout automatically when someone shares.


ChatPanel

Scrollable chat message list with input field.

<ChatPanel className="my-chat" />

ParticipantList

List of all participants with status icons.

<ParticipantList className="my-list" />

DeviceSelector

Dropdown to select microphone, speaker, and camera.

<DeviceSelector className="my-devices" />

ConnectionQualityBadge

Three-bar signal quality badge.

<ConnectionQualityBadge quality={participant.connectionQuality} />

Hooks

All hooks must be used inside a CallProvider (or inside VideoConference which wraps one).

import { CallProvider } from '@rtcstack/ui-react'

<CallProvider call={call}>
  <YourComponent />
</CallProvider>

| Hook | Returns | Description | |------|---------|-------------| | useCall() | Call | Access the Call instance | | useConnectionState() | ConnectionState | Current connection state | | useParticipants() | Participant[] | All remote participants, live | | useLocalParticipant() | Participant \| null | Local participant, live | | useActiveSpeakers() | Participant[] | Currently speaking participants | | useScreenShares() | Participant[] | Participants currently screen sharing | | useLayout() | { layout, setLayout } | Current layout + setter | | useIsRecording() | boolean | Whether room is being recorded | | useMessages() | Message[] | Chat messages, live | | useTranscription() | TranscriptSegment[] | Transcript segments, live | | useSpeakingIndicators() | Map<string, string> | Map of speakerId → speakerName for currently speaking (pre-transcript) | | useDevices() | DeviceList | Available devices | | useMediaControls() | { toggleMic, toggleCamera, startScreenShare, stopScreenShare, toggleScreenShare, sendMessage, sendReaction, setLayout, pin, switchDevice, disconnect } | All media control actions |

License

MIT