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

denoise-voice-clarity

v0.1.2

Published

LiveKit client-side noise suppression (DeepFilterNet 3) + voice clarity, in-browser via WASM. Open-source Krisp replacement. Lazy-loaded.

Readme

denoise-voice-clarity

Client-side noise suppression + voice-clarity for LiveKit calls — an open-source, license-free replacement for the Krisp filter. Runs in the browser via an AudioWorklet + WASM, attached to a LocalAudioTrack with LiveKit's setProcessor() API.

  • Denoise: DeepFilterNet 3 (optional build) or a passthrough reference engine.
  • Clarity: high-pass → presence EQ → AGC → soft compressor (VAD-gated).
  • No per-seat license (unlike Krisp / Koala).

Install

npm install denoise-voice-clarity
# peer dep:
npm install livekit-client

Use

Import dynamically so the multi-MB WASM stays out of your initial bundle:

import type { LocalAudioTrack } from 'livekit-client';

async function enableVoiceClarity(micTrack: LocalAudioTrack) {
  const { VoiceClarityProcessor, isVoiceClaritySupported } =
    await import('denoise-voice-clarity');

  if (!isVoiceClaritySupported()) return false; // fall back to native suppression

  const processor = new VoiceClarityProcessor({
    enabled: true,
    attenuationLimitDb: 30,
    presenceGainDb: 4,
  });
  await micTrack.setProcessor(processor);
  return true;
}

Toggle at runtime:

processor.setEnabled(false);
processor.setPresenceGainDb(6);

Disable the browser's own noiseSuppression / autoGainControl in your RoomOptions.audioCaptureDefaults when this is active (keep echoCancellation), so you don't double-process. See examples/meeting-ui-integration.ts.

Build from source

# 1. Rust core → WASM (needs Rust + wasm-pack; see ../scripts/build-wasm.sh)
npm run build:wasm          # default: small passthrough+clarity WASM
FEATURES="wasm,dfn" npm run build:wasm   # full DeepFilterNet (needs model weights)

# 2. npm package (copies WASM, bundles worklet, emits types)
npm run build               # → dist/{index.js, voiceClarity.worklet.js, wasm/, *.d.ts}

npm publish runs prepublishOnlybuild. The published package contains only dist/ + this README.

Browser support

Requires AudioWorklet and WebAssembly.compileStreaming (all modern evergreen browsers). isVoiceClaritySupported() gates this for you. On unsupported browsers or load failure, the worklet falls back to passthrough and you should fall back to native browser noise suppression.

Notes / caveats

  • The worklet ships as a self-contained classic script with the wasm-bindgen glue bundled in (AudioWorklet scope can't dynamic-import). Built by scripts/build.mjs (esbuild).
  • Adds ~10 ms processing latency (one 480-sample frame) — fine for calls.
  • The TrackProcessor interface can shift across livekit-client minors — tested against ^2.17.

License: MIT.