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

@jmcombs/pi-tavily-search

v2.0.1

Published

Pi extension that performs real-time web search via the Tavily API.

Readme

@jmcombs/pi-tavily-search

A Pi coding agent extension that adds real-time web search via the Tavily API.

Install

# Globally (recommended)
pi install npm:@jmcombs/pi-tavily-search

# For a single session, without installing
pi -e npm:@jmcombs/pi-tavily-search

A Tavily API key is required. Sign up at tavily.com (free tier available) to get one, then configure it using one of the methods below.

What It Adds

  • Tool: tavily_search — performs an advanced Tavily web search and returns up to five formatted results (title, URL, content) plus the raw API response under details.raw. The tool is callable by the LLM whenever it needs current information from the public web.

Configuration

You must configure a Tavily API key. Pi resolves the key in this order:

  1. AuthStorage under the tavily key (~/.pi/agent/auth.json) — recommended.
  2. The TAVILY_API_KEY environment variable.

Option 1 — ~/.pi/agent/auth.json (recommended)

Plain key

{
  "tavily": {
    "type": "api_key",
    "key": "tvly-..."
  }
}

Shell-resolved key (macOS Keychain)

{
  "tavily": {
    "type": "api_key",
    "key": "!security find-generic-password -ws tavily"
  }
}

Shell-resolved key (1Password)

{
  "tavily": {
    "type": "api_key",
    "key": "!op read 'op://Personal/tavily/credential'"
  }
}

Shell-resolved key (pass)

{
  "tavily": {
    "type": "api_key",
    "key": "!pass show tavily"
  }
}

The !-prefixed value is executed by your shell at lookup time, so no secret is ever stored on disk in plaintext.

Option 2 — environment variable

export TAVILY_API_KEY="tvly-..."

Behavior Notes

  • Search depth: advanced
  • Max results returned: 5
  • The tool honors Pi's abort signal — pressing Esc during a search cancels the HTTP request.
  • If the API key is missing the tool returns an error result with a helpful configuration hint instead of throwing.
  • Non-2xx responses from Tavily surface as tool errors (with status, status text, and response body) rather than throwing.

Requirements

  • Pi >= 0.72.0 (uses AuthStorage and ExtensionAPI)
  • Node >= 20.6.0
  • A Tavily API key

Development

This package lives in the pi-extensions monorepo.

# From the repo root
npm ci
npm run check       # full quality gate

# Try local changes against a real pi session
pi -e ./packages/tavily-search

The smoke test in index.test.ts does not mock the Tavily API; it only verifies registration shape. Real end-to-end behavior is exercised via pi -e.

License

MIT © Jeremy Combs