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

pai-voice-server

v1.0.3

Published

Installation package for PAI Voice Server - Text-to-speech notification service

Readme

PAI Voice Server Installation Package

Installation package for PAI Voice Server - Text-to-speech notification service using ElevenLabs API.

Installation

Global Installation (Recommended)

npm install -g pai-voice-server

This installs the pai-voice-server command globally.

Install Voice Server

# Install the voice server
pai-voice-server install

# Or preview installation first
pai-voice-server install --dry-run

Service Mode Installation (Recommended for Production)

Install with enhanced reliability features:

pai-voice-server install --service-mode

Service mode includes:

  • Automatic crash recovery - Service restarts if it crashes
  • Throttled restarts - 10-second interval prevents rapid restart loops
  • Separate log files - stdout and stderr logged separately for easier debugging
  • Explicit port configuration - PORT set in LaunchAgent environment

Log locations:

  • Standard mode: ~/Library/Logs/pai-voice-server.log (combined)
  • Service mode: ~/.claude/pai-voice-server/logs/voice-server.log (stdout)
  • Service mode: ~/.claude/pai-voice-server/logs/voice-server-error.log (stderr)

Usage

Commands

# Install
pai-voice-server install              # Install voice server
pai-voice-server install --dry-run    # Preview installation

# Service Management
pai-voice-server start                # Start the service
pai-voice-server stop                 # Stop the service
pai-voice-server restart              # Restart the service
pai-voice-server status               # Show service status
pai-voice-server status --verbose     # Show detailed status with logs

# Updates & Maintenance
pai-voice-server update               # Update to latest version
pai-voice-server update --dry-run     # Preview update
pai-voice-server verify               # Verify installation integrity

# Uninstall
pai-voice-server uninstall            # Uninstall voice server
pai-voice-server uninstall --preserve-logs  # Keep log files
pai-voice-server uninstall --backup   # Create backup before removal

Options

  • --dry-run - Preview changes without making them
  • --yes, -y - Skip confirmation prompts
  • --verbose - Show detailed output
  • --force, -f - Force operation (install/update)
  • --service-mode, -s - Install with enhanced service features (crash recovery, separate logs)
  • --help, -h - Show help message
  • --version, -v - Show version information

Installation Location

The voice server is installed to:

  • Installation: ~/.claude/pai-voice-server/
  • LaunchAgent: ~/Library/LaunchAgents/com.pai.voice-server.plist
  • Logs: ~/Library/Logs/pai-voice-server.log

Prerequisites

  • macOS: Currently macOS only (uses LaunchAgent)
  • Bun: Required for running the server (install Bun)
  • Node.js: 18.0.0 or higher (for installation tool)
  • ElevenLabs API Key: Required for voice functionality (get API key)

Configuration

Add your ElevenLabs API key to ~/.env:

echo "ELEVENLABS_API_KEY=your_api_key_here" >> ~/.env
echo "ELEVENLABS_VOICE_ID=s3TPKV1kjDlVtZbl4Ksh" >> ~/.env

Features

  • Dry-run mode: Preview all changes before making them
  • Smart updates: Preserves your customizations during updates
  • Service management: Start, stop, restart with simple commands
  • Health checks: Verify installation integrity
  • Detailed status: See complete service information
  • Verbose logging: Debug issues with detailed output

Examples

Fresh Installation

# Preview installation
pai-voice-server install --dry-run

# Install
pai-voice-server install

# Check status
pai-voice-server status

Update Workflow

# Check current status
pai-voice-server status

# Preview update
pai-voice-server update --dry-run

# Perform update
pai-voice-server update

# Verify installation
pai-voice-server verify

Troubleshooting

# Check detailed status
pai-voice-server status --verbose

# Verify installation
pai-voice-server verify

# View logs
tail -f ~/Library/Logs/pai-voice-server.log

# Restart service
pai-voice-server restart

Update Preservation

When you run pai-voice-server update, the updater automatically:

  • ✅ Detects your customized files (like voices.json)
  • ✅ Preserves them during updates
  • ✅ Only updates server core files
  • ✅ Creates backups of replaced files

API Usage

Once installed and running, the server provides a REST API:

Health Check

curl http://localhost:8888/health

Send Notification

curl -X POST http://localhost:8888/notify \
  -H "Content-Type: application/json" \
  -d '{
    "message": "Task completed successfully",
    "voice_id": "s3TPKV1kjDlVtZbl4Ksh"
  }'

Development

Local Testing

cd setup/
npm link                      # Link globally for testing
pai-voice-server install --dry-run

Building Distribution

cd setup/
npm run build                 # Bundle dist/ files
npm pack                      # Test package contents

Support

  • Repository: https://github.com/pai/voice-server
  • Issues: https://github.com/pai/voice-server/issues
  • Documentation: Main README

License

MIT