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

@maddeye/pi-voice

v1.1.0

Published

Private, cross-platform voice prompt input for pi using local Whisper

Readme

pi voice

Private voice prompt input for pi, transcribed locally with Whisper. Recorded audio is kept in memory and never uploaded or written to disk.

Install

After the npm release:

pi install npm:@maddeye/pi-voice

From a local checkout:

pi install /absolute/path/to/pi-voice

Run /voice-settings once, then press Alt+M or run /voice. Press Enter to stop recording or Esc to cancel. The transcription is placed in the prompt editor for review; it is never submitted automatically.

Configuration

/voice-settings configures the microphone, language, maximum recording length, and local model entirely inside the pi TUI. Defaults are the system microphone, English, 120 seconds, and Whisper Base.

The shortcut uses pi's normal ~/.pi/agent/keybindings.json. Change it and run /reload:

{
  "pi-voice.record": "alt+r"
}

Use an array for multiple shortcuts or [] to disable the shortcut.

Settings are stored in ~/.pi/agent/pi-voice.json (or the configured pi agent directory). Models are downloaded from Hugging Face on first use and cached in pi-voice-models/; after that, transcription works offline. Tiny is fastest, Base is the default, and Small favors accuracy.

Disk usage: Runtime dependencies use about 538 MB, mostly ONNX Runtime’s cross-platform binaries. The default quantized Whisper Base model adds about 77 MB, for roughly 615 MB total. Other models and package versions may vary; keep at least 1 GB free.

Privacy

  • Microphone samples remain in process memory only.
  • Audio is sent only to the local Whisper model.
  • The first use of each model downloads model files from Hugging Face.
  • No API key is required.

Compatibility

  • Linux x86_64
  • macOS x86_64 and arm64
  • Windows x86_64 and arm64
  • Node.js 22.19 or newer

The terminal running pi needs microphone permission. Native audio and ONNX binaries are included by the runtime dependencies.

Troubleshooting

  • No microphone / permission denied: grant microphone access to your terminal in macOS Privacy & Security or Windows Privacy & security. On Linux, verify PipeWire/PulseAudio can see the device.
  • Configured microphone disappeared: rerun /voice-settings; recording falls back to the system default.
  • Model download failed: check network access to huggingface.co, then retry /voice.
  • Native module unsupported: verify the OS/architecture and Node version listed above.
  • Slow transcription: select Tiny in /voice-settings.

Upgrade and removal

pi update npm:@maddeye/pi-voice
pi remove npm:@maddeye/pi-voice

Removing the package does not remove downloaded models. Delete ~/.pi/agent/pi-voice-models/ and ~/.pi/agent/pi-voice.json to remove cached data and settings.

Development

npm ci
npm run check
pi -e ./extensions/voice.ts

Before release, verify one real recording on every supported OS/architecture.