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-web-scout

v0.1.1

Published

No-key web search extension for Pi, with provider architecture ready for keyed search APIs.

Downloads

296

Readme

pi-web-scout

No-key web search extension for Pi. It registers a web_search tool and starts with providers that do not require API keys.

Goals

  • No install lifecycle scripts.
  • No native dependencies.
  • No shell execution.
  • No credential command execution.
  • Provider architecture ready for future keyed APIs such as Brave, Serper, Tavily, Exa, etc.

Install

pi install npm:pi-web-scout

Try locally

pi -e ./pi-web-scout

Commands

/web-scout-status

Shows active config and provider status.

Tool

web_search

{
  "query": "latest TypeScript release notes",
  "max_results": 5,
  "provider": "auto",
  "mode": "first_success"
}

web_read

{
  "url": "https://example.com/docs",
  "max_chars": 12000
}

web_read fetches public HTTP(S) pages, follows validated redirects, blocks localhost/private/metadata IPs, strips noisy HTML, and returns readable text. It does not run JavaScript or launch a browser.

Recommended model flow: call web_search first, choose relevant result URLs, then call web_read on the best sources instead of relying on snippets alone.

Current no-key providers:

  • duckduckgo — DuckDuckGo HTML endpoint.
  • marginalia — Marginalia Search public endpoint.
  • jina — Jina Search endpoint without an API key.

Current keyed providers, disabled by default:

  • brave — Brave Search API, env-only key resolution.

Planned keyed providers:

  • Serper, Tavily, Exa, etc.

Config

Optional project config:

.pi/pi-web-scout.json

{
  "enabled": true,
  "defaultProvider": "auto",
  "fallbackChain": ["duckduckgo", "marginalia", "jina"],
  "maxResults": 5,
  "providers": {
    "duckduckgo": { "enabled": true },
    "marginalia": { "enabled": true },
    "jina": { "enabled": true },
    "brave": { "enabled": false, "apiKeyEnv": "PI_WEB_SCOUT_BRAVE_API_KEY" }
  }
}

The extension currently reads project config only and does not write config files. Invalid config fails fast with a clear error.

mode: "combine" queries all enabled providers in the fallback chain, deduplicates URLs, and ranks repeated results higher with a simple reciprocal-rank score.

Compatibility aliases

web_search accepts these argument aliases:

  • maxResultsmax_results
  • provider: "ddg""duckduckgo"
  • mode: "first-success""first_success"

web_read accepts:

  • maxCharsmax_chars

Security notes

This package intentionally avoids:

  • postinstall, preinstall, prepare
  • child_process
  • eval / new Function
  • shell-based credential resolution
  • writes outside the project
  • browser automation / JavaScript execution

Search queries are sent to the selected provider.

Brave API key

Brave keys are available from the Brave Search API dashboard:

https://api.search.brave.com/app/keys

After creating a key, export it before starting Pi:

export PI_WEB_SCOUT_BRAVE_API_KEY="..."

Then enable Brave in .pi/pi-web-scout.json:

{
  "fallbackChain": ["brave", "duckduckgo", "marginalia", "jina"],
  "providers": {
    "brave": { "enabled": true, "apiKeyEnv": "PI_WEB_SCOUT_BRAVE_API_KEY" }
  }
}