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

@okw/stt

v1.0.0

Published

Text to Speech CLI using ElevenLabs API

Readme

stt - Text to Speech CLI 🎤

Give your AI agent a voice using ElevenLabs API. Streams audio directly to your terminal.

Why?

AI coding agents can use this CLI to speak to you - announce completions, read errors aloud, or provide audio feedback while you work.

Requirements

# macOS
brew install mpv

Setup

Set your ElevenLabs API key:

export ELEVENLABS_API_KEY=your_api_key_here

Usage

# Basic usage (recommended)
npx @okw/stt "Hello, world!"

# Save to file instead of playing
npx @okw/stt -o output.mp3 "Hello, world!"

# Use a different voice
npx @okw/stt -v CwhRBWXzGAHq8TQ4Fs17 "Hello, world!"

# Adjust speech speed
npx @okw/stt --speed 1.5 "Faster speech"

# Use audio tags (v3 model)
npx @okw/stt "I'm so excited! [laughs] This is amazing!"

Global Installation

If you use it frequently, install globally:

npm install -g @okw/stt
stt "Hello, world!"

Give Your AI Agent a Voice

Add this to your AGENTS.md to let your AI agent speak:

## Voice Output

You can speak to the user using: `npx @okw/stt "Your message"`

Use sparingly for:
- Task completion announcements
- Critical errors
- When user explicitly asks for voice output

Keep messages to 1-2 sentences. Don't read everything aloud.

Options

| Option | Description | Default | | --------------------- | ------------------------------- | ---------------------- | | -v, --voice <id> | Voice ID | UgBBYS2sOqTuMpoF3BR0 | | -m, --model <id> | Model ID | eleven_v3 | | -s, --stability <n> | Voice stability (0-1) | 0.5 | | -b, --boost <n> | Similarity boost (0-1) | 0.75 | | --speed <n> | Speech speed (0.5-2.0) | 1.0 | | -o, --output <file> | Save to file instead of playing | - |

Available Voices

Run this to list available voices:

curl -s "https://api.elevenlabs.io/v1/voices" \
  -H "xi-api-key: $ELEVENLABS_API_KEY" | \
  jq -r '.voices[] | "\(.voice_id) | \(.name)"'

Popular premade voices:

| ID | Name | | ---------------------- | --------------------------- | | CwhRBWXzGAHq8TQ4Fs17 | Roger - Laid-Back, Casual | | EXAVITQu4vr4xnSDxMaL | Sarah - Mature, Reassuring | | IKne3meq5aSn9XLyUdCD | Charlie - Deep, Confident | | onwK4e9ZLuTAKqWW03F9 | Daniel - Steady Broadcaster | | pFZP5JQG7iQjIQuC4Bku | Lily - Velvety Actress |

Models

| Model | Description | | ------------------------ | ------------------------------------ | | eleven_v3 | Most expressive, supports audio tags | | eleven_turbo_v2_5 | Low latency, good quality | | eleven_flash_v2_5 | Ultra-low latency (<75ms) | | eleven_multilingual_v2 | Best for non-English |

License

MIT