← Catalog

@lexiupon/pi-web-search

Single-tool Exa-powered web search and URL reading for Pi coding agent — lean fork of pi-web-access

Extension

Install

Install with PiG

pig install npm:@lexiupon/pi-web-search

Install with Pi

pi install npm:@lexiupon/pi-web-search
Review before installing

Packages run code with your permissions and influence agent behavior. Catalog inclusion is not a security audit. Review the source before installing a third-party package.

Pi manifest JSON

The pi field of package.json.

{
  "extensions": [
    "./index.ts"
  ]
}

README

Written by the package's publisher, shown as published in version 0.3.0 (README.md). PiG does not review it.

Lean web search for Pi, powered by Exa. A lean fork of nicobailon/pi-web-access.

npm version License: MIT

Install

pi install npm:@lexiupon/pi-web-search

Works immediately with no API keys — Exa MCP provides zero-config search. For direct API access, add your key to ~/.pi/web-search.json:

{
  "exaApiKey": "exa-..."
}

Requires a recent Pi release using the @earendil-works/pi-* package namespace.

What's Available

ToolDescription
webSingle web tool: mode: "search" finds sources, mode: "read" reads one known URL, mode: "get" reloads a stored result by resultId
/searchInteractive command to browse stored web results
Activity monitorCtrl+Shift+W to view live request/response activity

Content extraction uses a robust fallback chain: Readability → RSC parser → Jina Reader. Full parameter reference and examples are in TOOLS.md.

Configuration

All config lives in ~/.pi/web-search.json. Every field is optional.

{
  "exaApiKey": "exa-...",
  "githubClone": {
    "enabled": true,
    "maxRepoSizeMB": 350,
    "cloneTimeoutSeconds": 30,
    "clonePath": "/tmp/pi-github-repos"
  },
  "shortcuts": {
    "activity": "ctrl+shift+w"
  }
}

EXA_API_KEY env var takes precedence over config file values. Config changes require a Pi restart.

How It Works

web({ mode: "search", query })
  → Exa (direct API with key, MCP without)

web({ mode: "read", url })
  → GitHub URL?  Clone repo, return file contents + local path
  → HTTP fetch → PDF? Extract text, save to ~/Downloads/
               → HTML? Readability → RSC parser → Jina Reader
               → Text/JSON/Markdown? Return directly

web({ mode: "get", resultId })
  → Load stored search or URL-read results from the current session

Limitations

  • PDFs are text-extracted only (no OCR for scanned documents).
  • GitHub branch names with slashes may misresolve file paths; the clone still works and the agent can navigate manually.
  • Non-code GitHub URLs (issues, PRs, wiki) fall through to normal web extraction.

Comparison with Other Pi Search Extensions

ExtensionBackendsDifferentiator
nicobailon/pi-web-accessPerplexity, Gemini, ExaUpstream — curator, YouTube, video
ronnieops/pi-search-hub12 backendsRRF combine mode, auto-fallback
code-yeongyu/pi-websearch11 backends + native OpenAI/AnthropicProvider routing, keyless DDG
ayagmar/pi-codex-web-searchOpenAI Codex CLIWraps local codex CLI
iaptsiauri/pi-surfBrave + custom providersScout subagent, pluggable providers
NicoAvanzDev/pi-web-extensionBrave, DDG (keyless)Prompt steering, token-aware

This project's niche: GitHub cloning + Exa MCP zero-config in a lean package, now exposed through a single web tool for simpler model tool-calling. No multi-provider routing, no browser UI, no video.