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

@micdrop/client

v3.4.0

Published

πŸ–οΈπŸŽ€ Micdrop: real-time voice conversations with AI, the platform agnostic core

Readme

πŸ–οΈπŸŽ€ Micdrop: Real-Time Voice Conversations with AI

Micdrop website | Documentation

Micdrop is a set of open source Typescript packages to build real-time voice conversations with AI agents. It handles all the complexities on the client and server side (microphone, speaker, VAD, network communication, etc) and provides ready-to-use implementations for various AI providers.

@micdrop/client

The heart of a Micdrop call, with nothing platform specific in it: the protocol, the call state, the voice activity detection, the recording and the playback scheduling.

You install it through a platform package rather than on its own:

Both re-export everything here, so import { Micdrop } from '@micdrop/web' gives you the same objects this package defines.

What lives here

  • MicdropClient and the Micdrop singleton: the WebSocket protocol, the call state, reconnection, interruption
  • Mic and Speaker: one microphone and one speaker for the app, in front of a pluggable driver
  • MicRecorder: the reserve of audio, the chunking at 16 kHz, the wiring to the VAD
  • VolumeVAD, SileroVAD, MultipleVAD: voice activity detection, the same on every platform
  • Pcm16AudioStream: gapless playback of the chunks as they arrive
  • VolumeMeter: the level the VAD and the level meters read

Writing a platform package

A platform provides two things, and gets everything above for free.

import { Mic, MicDriver, Speaker, SpeakerDriver } from '@micdrop/client'

class MyMic extends MicDriver {
  // start() captures, then emits Frames with mono float samples
}

class MySpeaker extends SpeakerDriver {
  // play() queues 16 kHz PCM16
}

Mic.setDriver(new MyMic())
Speaker.setDriver(new MySpeaker())

Pcm16AudioStream does the playback scheduling for you if the platform offers something like Web Audio: give it an AudioSink, which is the small slice of it that Micdrop needs, and call its destroy() when the driver stops. When the output needs a moment once the microphone opens, as with Firefox and a Bluetooth headset switching to its call profile, call warmUp(duration): the stream plays silence that long and holds the first answer until it is over.

For Silero, provide the inference and the state machine comes from here:

import { setSileroModelLoader } from '@micdrop/client'

setSileroModelLoader(async () => myModel) // process(frame) => probability

Tests

The whole package runs in Node, from the audio helpers up to a full call against a real MicdropServer.

pnpm --filter @micdrop/client test

Documentation

Read the full client documentation on the website.

License

MIT

Author

Originally developed for Raconte.ai, created and open sourced by Godefroy de Compreignac