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

@aethrekh/pisces-echo

v0.1.0-beta.0

Published

Echo — opt-in TTS for Pi sessions. Reads assistant responses aloud using platform system speech (no API key required).

Readme

Echo

Opt-in TTS layer for Pi sessions. Reads assistant responses aloud using the platform's built-in speech engine — no API key, no cloud service, no extra dependencies.

Disabled by default. Enable with a .echo.json config file in your workspace or globally.

Installation

pi install npm:@aethrekh/pisces-echo

Quick start

Create .echo.json in your project root (or run /echo --setup for the interactive wizard):

{ "mode": "assist", "voice": "Samantha", "sounds": true }

Restart Pi. Echo sets a status line and begins classifying responses.

Modes

| Mode | What it speaks | |---|---| | "silent" | Nothing — no speech, no system prompt injection (default) | | "verbose" | Every assistant response, full text, markdown stripped | | "assist" | Only on: build/test completions, failures, confirmations, destructive operations | | "companion" | Assist + wins, notable observations, interesting patterns |

assist and companion are LLM-driven: the model appends a hidden <echo> JSON block to every response classifying whether to speak and what to say. Echo strips the block before it reaches your terminal and fires TTS only when speak: true.

verbose bypasses classification entirely — it speaks every response directly without any model involvement.

Config reference

{
  "mode": "assist",      // "silent" | "verbose" | "assist" | "companion"
  "voice": "Samantha",   // any voice name from `say -v ?`, or "auto" for system default
  "sounds": true         // play a system sound cue before each spoken line
}

Config is loaded from the first file found in this order:

  1. .echo.json in the current workspace root
  2. ~/.pi/echo.json (global default)

If neither exists, Echo defaults to silent — no audio, no injection.

Setup wizard

Run /echo --setup (or just /echo) from any Pi session to launch the interactive wizard:

  1. Voice picker — scrollable list of installed English voices (say -v ?). Navigate with ↑/↓ and hear each voice speak a sample line as you scroll. Press Enter to confirm.
  2. Mode picker — four options, each speaks a characteristic sample phrase in your chosen voice.
  3. Sounds toggle — plays the actual sound cue so you know what you're opting into.
  4. Write location — always writes to .echo.json in the current workspace, then optionally to ~/.pi/echo.json as a global default.

Platform support

| Platform | TTS engine | Voice selection | |---|---|---| | macOS | say | Any voice from say -v ? (e.g. Samantha, Daniel, Alex) | | Linux | espeak | Voice name per espeak conventions (e.g. en+f3) | | Windows | PowerShell SAPI | System.Speech.Synthesis.SpeechSynthesizer |

Speech is fire-and-forget — Pi never blocks waiting for audio to finish. Sending a new message stops any in-progress speech.

System sound cues:

| Priority | macOS | Linux | |---|---|---| | success | Glass.aiff | complete.oga (if present) | | error | Basso.aiff | dialog-error.oga | | warning | Purr.aiff | dialog-warning.oga | | info | Pop.aiff | falls back silently |

How LLM classification works

In assist and companion modes, Echo appends a [REQUIRED — Echo voice layer] instruction to the system prompt. The model is told to append a structured JSON block at the end of every response:

<echo>{"speak":true,"summary":"Build complete. No warnings.","priority":"success"}</echo>

Echo's message_end handler strips the block before it reaches your terminal. If speak: true, it fires the sound cue then calls say (or equivalent) with the summary text. Summaries are capped at 12 words by the model instruction — direct and characterful, not verbose.

If the model omits the block or produces malformed JSON, Echo silently no-ops. Use verbose mode if you need guaranteed audio without relying on model compliance.

Pi lifecycle hooks used

| Hook | Action | |---|---| | resources_discover | Loads config via event.cwd — the workspace path | | session_start | Sets footer status: echo: assist · Samantha | | before_agent_start | Injects <echo> classification instruction (assist/companion only) | | message_end | Extracts <echo> block, strips from display, fires TTS | | turn_start | Stops any in-progress speech when user sends next message | | session_shutdown | Stops speech, clears config |