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

@weclio/pi-web-search

v0.2.0

Published

Pi extension for native web search with Tavily search and fetch fallback.

Readme

@weclio/pi-web-search

Standalone Pi extension for native web search, with Tavily search and page extraction as a fallback. No separate Tavily extension is needed.

Install

pi install -l npm:@weclio/pi-web-search

After installation, restart Pi from the project directory.

Routing

  • OpenAI OAuth (openai-codex) on the official https://chatgpt.com/backend-api endpoint uses native search by default, regardless of model ID.

  • Other endpoints opt in with web-search.json in the Pi agent directory (usually ~/.pi/agent, or PI_CODING_AGENT_DIR). Match the provider, effective base URL and model ID. Example for a gateway already verified to support Responses web search:

    [
      { "provider": "my-gateway", "baseUrl": "https://gateway.example/v1", "modelId": "verified-model-id" }
    ]
  • Without a matching native route, configuring Tavily enables both web_search (find pages) and web_fetch (read a known public URL). On the native route neither Tavily tool is active. Tavily receives the query or URL(s), not the conversation.

  • Tools Off or PI_WEB_SEARCH=0 disables both routes. Routing happens before requests; it does not retry a rejected native request with Tavily.

Native injection currently supports OpenAI Responses, Codex Responses and Azure OpenAI Responses. A listed endpoint on another protocol falls back to Tavily if available. The extension does not infer web search support from the protocol alone.

Results keep source URLs without an extra plugin. With Weclio citations loaded, successful Tavily search and fetch results also receive citation markers next to their evidence.

Tavily API key

  1. Copy the bundled tavily.example.json to tavily.json in your Pi agent directory (usually ~/.pi/agent, or PI_CODING_AGENT_DIR if set).
  2. Set the apiKey field to your Tavily API key. The next turn reads the file; no restart is needed.

A non-empty TAVILY_API_KEY environment variable takes precedence. tavily.json stores the key in plaintext: keep it private. Share the empty example, not a file with a live key.

Development

Requires Pi >=1.0.2. Run npm run check from the workspace or npm run typecheck / npm test from this directory.