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

opencode-whisper

v0.1.3

Published

Voice-to-prompt plugin for OpenCode. Record audio and transcribe via Groq Whisper.

Downloads

75

Readme

OpenCode Voice (opencode-whisper)

A simple voice-to-prompt TUI plugin for OpenCode. It allows you to record your speech and transcribe it directly into the prompt using the Groq Whisper API, skipping the need to manually type.

Prerequisites

Before using this plugin, make sure you have the following:

  • ffmpeg: Must be installed on your system and accessible in your system's PATH.
  • Groq API Key: You need a valid Groq API key exported as the GROQ_API_KEY environment variable. (get a free key from here Groq Console)

Installation

Install the plugin globally using the OpenCode plugin manager:

opencode plugin -g opencode-whisper

Usage

  1. Make sure your API key is exported in your environment:
    export GROQ_API_KEY="your-groq-api-key"
  2. Start OpenCode.
  3. Press Alt+R (or your configured keybind) to start recording.
  4. Speak your prompt.
  5. Press Alt+R again to stop recording and transcribe your speech.
  6. (Optional) Press Alt+C to cancel an active recording.

Configuration

The plugin works out of the box, but you can override its default settings if you wish. The configuration is stored in your OpenCode TUI config file, located at ~/.config/opencode/tui.json.

You can pass an options object along with the plugin name. Here are the default options you can override:

{
  "plugin": [
    ["opencode-whisper", {
      "model": "whisper-large-v3-turbo",
      "apiUrl": "https://api.groq.com/openai/v1/audio/transcriptions",
      "autoSubmit": false,
      "pulseDevice": "default",
      "keybind": "alt+r",
      "keybind_cancel": "alt+c",
      "showToast": true
    }]
  ]
}

Options Breakdown:

  • model: The Whisper model to use.
  • apiUrl: The transcription API endpoint (default is Groq's).
  • autoSubmit: Whether to automatically submit the prompt immediately after transcription.
  • pulseDevice: The audio input device to record from.
  • keybind: The shortcut key to start and stop the recording.
  • keybind_cancel: The shortcut key to cancel an ongoing recording.
  • showToast: Whether to show UI toast notifications for the recording/transcription state.