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

@yrfns/pi-agent-reach

v0.3.0

Published

Native pi extension wrapping Agent Reach CLI for 14 internet channels — search, read, status for Twitter, Reddit, Bilibili, 小红书, YouTube, GitHub, RSS, V2EX, LinkedIn

Readme

pi-agent-reach

Native pi extension wrapping Agent Reach CLI as native pi tools.

What It Does

Gives your pi agent access to Agent Reach's 14 internet channels via 3 native tools:

| Tool | Description | |------|-------------| | reach_search | Search 8 channels: web (Exa AI), Twitter, Reddit, Bilibili, 小红书, LinkedIn, GitHub, V2EX | | reach_read | Read any URL — auto-detects platform (YouTube/Bilibili subtitles, social posts, RSS, web via Jina Reader) | | reach_status | Doctor check — shows all channels, active backends, health status |

Plus 2 slash commands: /reach-status and /reach-setup.

Installation

# Install from npm (listed on https://pi.dev/packages)
pi install npm:pi-agent-reach

Or clone manually:

git clone https://github.com/YrFnS/pi-agent-reach.git ~/.pi/agent/extensions/pi-agent-reach

Setup

Run /reach-setup inside pi — it automatically installs everything:

  1. pip install agent-reach — Agent Reach CLI
  2. agent-reach install --channels=all — all upstream CLIs (twitter-cli, bili-cli, opencli, etc.)
  3. npm install -g mcporter + Exa MCP config — semantic web search
  4. ffmpeg — podcast transcription support
  5. yt-dlp JS runtime config

No manual steps needed.

Browser Cookies (Twitter, Reddit, 小红书, LinkedIn)

These platforms require browser authentication. On macOS/Linux, Agent Reach auto-extracts cookies from your default browser — no setup needed.

On Windows, browser cookie databases are encrypted and locked by the OS. To use these channels:

  1. Log into x.com / reddit.com / xiaohongshu.com / linkedin.com in your browser

  2. Set environment variables with your cookie values:

    # For Twitter/X
    setx TWITTER_AUTH_TOKEN "your_auth_token"
    setx TWITTER_CT0 "your_ct0"
  3. Get cookie values from: Browser → F12 → Application → Cookies → x.com

Usage

Once installed, the agent automatically has access to reach_search, reach_read, and reach_status tools.

Search Examples

"Search Twitter for discussions about AI agents"
"Search 小红书 for restaurant recommendations"
"Search Bilibili for Python tutorials"
"Reddit search for Rust vs Go"

Read Examples

"Read this link: https://example.com/article"
"What's this YouTube video about: https://youtube.com/watch?v=xxx"
"Read this B站 video: https://bilibili.com/video/BVxxx"
"Read this tweet: https://twitter.com/user/status/xxx"

Status

"Check if Agent Reach is working"
"Run /reach-status"

Tested Channels

| Channel | Status | Notes | |---------|--------|-------| | Web (Jina Reader) | ✅ | Works out of the box | | YouTube | ✅ | Subtitles via yt-dlp | | GitHub | ✅ | Search via gh CLI | | Reddit | ✅ | Search via OpenCLI | | Bilibili | ✅ | Search via bili-cli | | RSS | ✅ | Via feedparser | | V2EX | ⚠️ | API timeout on some networks | | Twitter/X | ⚠️ | Needs browser cookies (Windows) | | 小红书 | ⚠️ | Needs browser cookies (Windows) | | LinkedIn | ⚠️ | Needs browser cookies + MCP fix | | Exa Search | ⚠️ | mcporter hangs on Windows |

6 channels work out of the box. 7 need browser cookies (Windows) or have upstream CLI issues.

Skill

The extension includes the original Agent Reach SKILL.md and all reference docs (references/search.md, references/social.md, references/web.md, references/video.md, references/dev.md, references/career.md) so the agent knows exactly how to route queries across platforms and backends.

Architecture

  • Extension (index.ts): Registers 3 tools + 2 commands via pi.registerTool() and pi.registerCommand()
  • Tools call Agent Reach's upstream CLIs via pi.exec() — twitter-cli, bili-cli, opencli, rdt-cli, yt-dlp, mcporter, gh CLI, curl+Jina
  • Auto-fallback: If a platform-specific backend fails, falls back to Exa web search or Jina Reader
  • Output truncation: 200 lines / 50KB default, expandable in TUI
  • Session integration: Shows Agent Reach version in footer status bar on startup

Requirements

  • pi coding agent
  • Agent Reach CLI (Python)
  • Individual upstream tools (installed by agent-reach install): mcporter, exa, twitter-cli, bili-cli, opencli, rdt-cli, yt-dlp, gh

License

MIT