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

pi-telebridge

v1.4.0

Published

A pi extension that creates a two-way relay between your active pi coding agent session and a Telegram bot.

Downloads

839

Readme

pi-telebridge

A pi extension that creates a two-way relay between your active pi coding agent session and a Telegram bot. Enable it per-session with /telegram, then interact with your session from your phone.

  • Agent → Phone: Every final assistant response is forwarded to your Telegram chat
  • Phone → Agent: Your Telegram replies are injected as user messages into the session
  • Voice Messages: Voice, audio, and video note messages are downloaded and forwarded to the agent for transcription
  • Photos: Photos are downloaded and forwarded to the agent for viewing/analysis

Both the pi TUI and Telegram inputs coexist — you can use either at any time.

Install

pi install npm:pi-telebridge

Setup

  1. Create a bot with @BotFather on Telegram and copy the token
  2. In pi, run /telegram setup
  3. Enter your bot token when prompted
  4. Send any message to your bot on Telegram — this links your chat ID
  5. Done! Config is saved to ~/.pi/agent/telebridge.json

Environment Variables (optional)

You can skip the interactive setup by setting these beforehand:

| Variable | Purpose | |----------|---------| | TELEGRAM_BOT_TOKEN | Bot token from @BotFather | | TELEGRAM_CHAT_ID | Your Telegram chat ID |

Usage

| Command | Description | |---------|-------------| | /telegram | Toggle relay on/off for this session | | /telegram setup | Guided setup: enter bot token, discover chat ID | | /telegram status | Show connection state, chat ID, relay status |

When the relay is enabled:

  • A 📡 TG indicator appears in the footer
  • Every assistant response is forwarded to your Telegram chat
  • Messages you send to the bot are injected into the pi session
  • Voice/audio messages are downloaded to ~/.pi/agent/voice_messages/ and forwarded as [Voice message received: <path>]
  • Photos are downloaded to ~/.pi/agent/photo_messages/ and forwarded as [Photo received: <path>]
  • If the agent is idle, your message starts a new turn; if busy, it's queued as a follow-up

Security

  • Only messages from your configured chat_id are accepted
  • All other Telegram messages are silently ignored
  • Bot token and chat ID are stored locally in ~/.pi/agent/telebridge.json

License

MIT