@offmiijin/pi-web-search

Pi extension — search the web via DuckDuckGo, Bing, and Brave. Returns structured results for LLM consumption.

Packages

Package details

extension

Install @offmiijin/pi-web-search from npm and Pi will load the resources declared by the package manifest.

$ pi install npm:@offmiijin/pi-web-search
Package
@offmiijin/pi-web-search
Version
1.0.0
Published
Jun 26, 2026
Downloads
91/mo · 12/wk
Author
offmiijin
License
MIT
Types
extension
Size
113.5 KB
Dependencies
2 dependencies · 0 peers
Pi manifest JSON
{
  "extensions": [
    "./index.ts"
  ]
}

Security note

Pi packages can execute code and influence agent behavior. Review the source before installing third-party packages.

README

pi-web-search

Pi extension — search the web via DuckDuckGo, Bing, and Brave.

Registers three tools:

  • web_search — Searches DuckDuckGo (lite + html), falls back to Bing RSS, then Brave Search HTML. Returns up to 10 structured results per query.
  • web_fetch — Fetches full page content from URLs, strips HTML/navigation, saves clean text.
  • web_agent — Orchestrates multi-branch research: tracks searches + fetches, suggests next steps.

Install

# npm
pi install npm:@offmiijin/pi-web-search

# git
pi install git:github.com/offmiijin/pi-web-search

Usage

web_search({ query: "latest Python version 2025" })
→ 10 results with title, URL, snippet

web_fetch({ urls: ["https://python.org/downloads/"] })
→ Clean text saved to /tmp/page_<date>_<random>/

web_agent({ goal: "Research best CLI tools 2025" })
→ Starts tracked research session

Development

npm install
npx vitest run

License

MIT