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

@oleg_tarasov/pi-websearch-manager

v0.1.0

Published

Pi extension that routes web search tools between OpenAI/Codex web_run and extension-provided web tools by active model.

Downloads

554

Readme

pi-websearch-manager

A small Pi extension that keeps Codex web_run and extension-provided web-search tools from competing with each other.

It routes by the active model:

  • OpenAI Responses / OpenAI Codex models with web_run registered: enable web_run from pi-codex-conversion and hide managed extension web tools (web_search, code_search, fetch_content, get_search_content, web_fetch).
  • Other models, or OpenAI models without registered web_run: hide web_run and enable all registered managed extension web tools.

Install

pi install npm:@oleg_tarasov/pi-websearch-manager

Recommended package order in ~/.pi/agent/settings.json:

{
  "packages": [
    "npm:@howaboua/pi-codex-conversion",
    "npm:@juicesharp/rpiv-web-tools",
    "npm:@oleg_tarasov/pi-websearch-manager"
  ]
}

npm:pi-web-access is also supported instead of npm:@juicesharp/rpiv-web-tools. The manager also performs a deferred reconciliation after session_start and model_select, so it is resilient to minor load-order differences. Still, loading it after the web-search providers is the clearest setup.

Prerequisites

Install and configure Codex conversion plus one extension web-search package:

pi install npm:@howaboua/pi-codex-conversion
pi install npm:@juicesharp/rpiv-web-tools
# or: pi install npm:pi-web-access

Enable Codex web search in pi-codex-conversion:

{
  "tools": {
    "webRun": true
  }
}

You can edit ~/.pi/agent/pi-codex-conversion.json or use /codex in Pi.

Keep Codex conversion scoped to OpenAI/Codex unless you intentionally want it elsewhere:

{
  "scope": {
    "allProviders": false,
    "additionalProviders": []
  }
}

If you use OpenAI via the regular openai provider instead of openai-codex, configure pi-codex-conversion so web_run is supported for that provider, for example by adding "openai" to scope.additionalProviders when appropriate.

Behavior

This extension does not register its own search provider. It only changes the active tool list.

| Active model | Active search preference | Hidden tools | | --- | --- | --- | | OpenAI Responses model with registered web_run | web_run | web_search, code_search, fetch_content, get_search_content, web_fetch | | OpenAI Responses model without registered web_run | Registered extension web tools | web_run | | Non-OpenAI models | Registered extension web tools | web_run |

When routing to extension web tools, the manager enables every managed tool name that an installed extension registered. This supports pi-web-access (web_search, code_search, fetch_content, get_search_content) and @juicesharp/rpiv-web-tools (web_search, web_fetch). If no supported extension web tools are installed, no replacement tools are enabled.

The status line shows 🔍 web_run when Codex web search is active. When extension web tools are active, it shows the providing extension package name, such as 🔍 rpiv-web-tools or 🔍 pi-web-access; if that cannot be inferred unambiguously, it shows 🔍 ext. search. No status is shown when neither route has an active tool.

Command

/websearch-manager

Shows the current route and reapplies routing immediately.

Versioning and release process

This package uses Semantic Versioning.

For each release:

  1. Update package.json version.
  2. Update CHANGELOG.md.
  3. Run:
    npm run check
    npm pack --dry-run
  4. Commit the release.
  5. Tag it as vX.Y.Z and push the commit and tag.
  6. Publish:
    npm publish --access public

Development

npm install
npm run check

To test locally in Pi without installing from npm:

pi -e /Users/oleg/Projects/pi-websearch-manager