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-providers-az-cf

v0.1.2

Published

Minimal Pi web providers extension for OpenAI-compatible/Azure Responses API and Cloudflare Browser Rendering markdown.

Readme

pi-web-providers-az-cf

Minimal Pi web providers extension for the provider set used in this environment:

| Pi tool | Provider | | --- | --- | | web_search | OpenAI-compatible / Azure OpenAI Responses API | | web_answer | OpenAI-compatible / Azure OpenAI Responses API | | web_research | OpenAI-compatible / Azure OpenAI Responses API | | web_contents | Cloudflare Browser Rendering markdown endpoint |

This package is intentionally not a general provider marketplace. It is inspired by mavam/pi-web-providers, but keeps a narrow allowlist and uses direct fetch calls instead of vendor SDK runtime dependencies.

Runtime dependency policy

Runtime dependencies are currently empty. This is a preference, not dogma: future runtime dependencies should be added only when their maintenance/correctness benefits clearly justify their supply-chain surface.

Current SDK tradeoff:

  • openai: acceptable if needed later; official SDK has no runtime dependencies, but is large for our tiny Responses API subset.
  • cloudflare: avoided; the SDK pulls a much larger dependency tree and generated client surface for one markdown endpoint.

Configuration

The extension reads ~/.pi/agent/web-providers.json, compatible with the shape used by upstream:

{
  "tools": {
    "search": "openai",
    "contents": "cloudflare",
    "answer": "openai",
    "research": "openai"
  },
  "providers": {
    "cloudflare": {
      "credentials": { "api": "CLOUDFLARE_API_TOKEN" },
      "accountId": "CLOUDFLARE_ACCOUNT_ID"
    },
    "openai": {
      "baseUrl": "https://YOUR_AZURE_RESOURCE.cognitiveservices.azure.com/openai/v1/",
      "credentials": { "api": "AZURE_OPENAI_API_KEY" },
      "options": {
        "search": { "model": "gpt-4.1" },
        "answer": { "model": "gpt-4.1" },
        "research": { "model": "o4-mini-deep-research" }
      }
    }
  }
}

Credential values can be:

  • literal strings,
  • environment variable names such as AZURE_OPENAI_API_KEY, or
  • !command references whose stdout is used as the secret.

Do not commit real secrets.

OpenAI/Azure auth headers

providers.openai.authHeader is optional:

{ "authHeader": "bearer" }

Allowed values:

  • bearer
  • api-key
  • both

If omitted, the extension uses api-key for Azure-looking hosts ending in .openai.azure.com or .cognitiveservices.azure.com, and Authorization: Bearer otherwise.

Commands

/web-providers

Shows the config path.

/web-providers init

Writes a template config to ~/.pi/agent/web-providers.json.

Development

npm install
npm run check
npm test
npm run build

Live Pi smoke test through tmux:

npm run e2e:pi

The smoke test uses the real local Pi config and may spend provider quota. Override the tool/prompt if needed:

PI_WEB_PROVIDERS_E2E_TOOL=web_search \
PI_WEB_PROVIDERS_E2E_PROMPT='Use web_search exactly once for query "OpenAI Responses API" with maxResults 1.' \
npm run e2e:pi

Publishing

The package is published from GitHub Actions using npm trusted publishing/OIDC.

Trusted publisher settings on npm should match:

  • provider: GitHub Actions
  • repository: arpagon/pi-web-providers-az-cf
  • workflow filename: publish.yml
  • environment: npm
  • allowed action: npm publish

Create a version commit/tag and push the tag to publish:

npm version patch
git push --follow-tags

Non-goals

The following providers are intentionally out of scope unless explicitly re-approved:

brave, claude, codex, custom, exa, firecrawl, gemini, linkup, ollama,
parallel, perplexity, serper, tavily, valyu