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

glove-voice-livekit

v0.1.1

Published

LiveKit adapters for the Glove voice stack — room transport for realtime agents, and avatars that join the room as participants

Readme

glove-voice-livekit

LiveKit as an adapter in the Glove voice stack — two halves that share one room connection:

  • LiveKitTransport — the room leg every LiveKit-backed voice host otherwise hand-rolls: join, publish the agent's voice as a paced WebRTC track, feed remote mic tracks back out as PCM events, carry JSON on the data channel. Barge-in is server-authoritative: clear() flushes the outbound AudioSource queue, so there is no client playback buffer to chase. attachRealtime(rt, transport) binds it to a glove-voice-s2s RealtimeAgent in one call.

  • LiveKit avatarsTavusLiveKitAvatar and AnamLiveKitAvatar implement the glove-voice-avatar AvatarAdapter contract (and pass its conformance suite), so a face over LiveKit is interchangeable with the Daily-based Tavus echo adapter: attachAvatar(rt, avatar) and done. Under the hood they speak LiveKit's published avatar protocol — the provider's worker joins your room as a second participant (token kind agent, lk.publish_on_behalf pointing at your agent) and publishes synchronized voice+face itself; agent PCM reaches it over the lk.audio_stream byte stream, and barge-in is the lk.clear_buffer RPC. A glove agent is indistinguishable from a LiveKit Agents worker as far as the avatar can tell.

Voice only

import { LiveKitTransport, attachRealtime, mintParticipantToken } from "glove-voice-livekit";

const transport = new LiveKitTransport({
  url: process.env.LIVEKIT_URL!,
  token: await mintParticipantToken(
    { apiKey: process.env.LIVEKIT_API_KEY!, apiSecret: process.env.LIVEKIT_API_SECRET! },
    { roomName: "call-42", identity: "agent" },
  ),
});
await transport.connect();
attachRealtime(rt, transport);       // mics → model, model → track, interrupt → flush
await rt.start();

With a face

import {
  TavusLiveKitAvatar, TAVUS_AVATAR_IDENTITY, mintAvatarToken,
} from "glove-voice-livekit";
import { attachAvatar } from "glove-voice-avatar";

// The avatar publishes the voice on the agent's behalf — don't double it.
const transport = new LiveKitTransport({ url, token, publishAgentAudio: false });
await transport.connect();
attachRealtime(rt, transport, { agentAudio: false });

const avatar = new TavusLiveKitAvatar({
  apiKey: process.env.TAVUS_API_KEY!,
  faceId: process.env.TAVUS_FACE_ID!,   // minimal echo PAL ensured automatically
  livekitUrl: url,
  avatarToken: await mintAvatarToken(creds, {
    roomName: "call-42",
    identity: TAVUS_AVATAR_IDENTITY,
    onBehalfOf: "agent",
  }),
  wire: transport.avatarWire(TAVUS_AVATAR_IDENTITY),
});
await attachAvatar(rt, avatar);       // connects + bridges speech/end/interrupt

AnamLiveKitAvatar is the same shape (avatarId instead of faceId, ANAM_AVATAR_IDENTITY); written against Anam's documented API and the conformance suite, live verification pending a key (#71).

Session renewal: providers can end an avatar session under you — Anam's plan cap force-ends conversations at 3/5/10 minutes below Growth tier. The worker leaving the room (participant_disconnected on its identity) is the signal; disconnect() + connect() on the adapter mints a fresh session into the same room. examples/livekit-rooms does this automatically with a debounce.

Browsers see the avatar as an ordinary room participant: attach its video track and you have the face — no provider SDK on the client.

See examples/livekit-rooms for the full layered setup (front agent + mesh worker + station rooms) on this transport, with the avatar as an env toggle.

Status

Wire protocol validated against LiveKit Agents' published plugins and @livekit/rtc-node type declarations; conformance + unit tests green (pnpm test). Live verification tracked on #72.