← Catalog

@pi-in-go/pigpen-rpiv-web-tools

Go port of @juicesharp/rpiv-web-tools: web_search over ten backends (Brave, Tavily, Serper, Exa, You.com, Jina, Firecrawl, Perplexity, SearXNG, Ollama), web_fetch and /web-tools; nothing starts until a tool runs

ExtensionPigpen

Install

Install with PiG

pig install npm:@pi-in-go/pigpen-rpiv-web-tools
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. This one is published by the PiG project from the Pigpen repository; that is not a verification claim.

Pi manifest JSON

The pi field of package.json.

{
  "extensions": [
    "extensions/rpiv-web-tools"
  ]
}

README

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

rpiv-web-tools (Go port)

A Go extension for PiG that gives the model the live web: web_search, which queries a search API and returns titled results with URLs and snippets, web_fetch, which reads an http(s) page as text, and /web-tools, which picks the backend and stores its key. Ten backends are supported: Brave, Tavily, Serper, Exa, You.com, Jina, Firecrawl, Perplexity, SearXNG and Ollama (SearXNG and Ollama can be your own instance, so queries never leave your network). It is a port of @juicesharp/rpiv-web-tools 2.12.0 by juicesharp (see CREDITS.md), made with the extension porting Skill. It needs no Node runtime, and starts no process and makes no network call until a tool runs.

Install

pig install ./components/rpiv-web-tools

or take the pig-essentials Piglet, which selects it.

Use

web_search needs a key. Run /web-tools, pick a provider and paste its key (SearXNG and Ollama ask for a base URL, then an optional key), or export the provider's variable: BRAVE_SEARCH_API_KEY, TAVILY_API_KEY, SERPER_API_KEY, EXA_API_KEY, YOUCOM_API_KEY, JINA_API_KEY, FIRECRAWL_API_KEY, PERPLEXITY_API_KEY, SEARXNG_API_KEY with SEARXNG_URL, OLLAMA_API_KEY with OLLAMA_HOST. Keys are read from the environment and the config file, never from anywhere else; web_fetch alone needs no key. /web-tools --show prints the resolved configuration with every key masked.

The active provider is WEB_SEARCH_PROVIDER, else the config's provider, else brave; a single web_search call can name another with provider, which needs its own credentials (there is no silent fallback). Keys are stored per provider in ~/.config/rpiv-web-tools/config.json ($XDG_CONFIG_HOME when set) with mode 0600, and an environment variable wins over the file. The config also takes baseUrls.<provider>, guidance.<tool> (the prompt snippet and guidelines the model sees) and interceptors.github. A malformed file reads as empty, and a wrong-typed field costs that field alone.

web_fetch refuses anything but http and https, and a URL whose host is a private, loopback, link-local or metadata address however it is written (127.1, 0x7f000001, [0::1], full-width digits: the host is read as Node's URL parser reads it, and the request goes to that address). Like the original, it does not resolve host names first: a name that resolves to a private address, localhost. with its trailing dot, an IPv4-mapped IPv6 address and a redirect to a private address are fetched, and the body is read whole before it is truncated. A provider with its own fetch (Tavily, Exa, You.com, Jina, Firecrawl, Ollama) uses it; otherwise the page is fetched directly, HTML is turned into text and large bodies are truncated to 2000 lines or 50 KB, the full text being written to a temp file whose path is in the result.

Differences from the original

  • No GitHub interceptor yet. The original can answer a github.com URL from a cached shallow clone (opt-in, interceptors.github). This port does not implement it, so while the option is on, web_fetch of a repository root, blob or tree URL is refused with a tool error, not fetched like any other page: @pi-in-go/pigpen-rpiv-web-tools (Go port) does not support the GitHub URL interceptor (interceptors.github) yet. Install the original extension, npm:@juicesharp/rpiv-web-tools@2.12.0, which runs unchanged in PiG. /web-tools --show says so too. With the option off (the default) nothing changes. See port/PORT.md (slice 2).
  • Renderers return lines (the Go SDK cannot return a TUI component), laid out at the width the host gives.
  • Network failures read as in Node. A transport failure reads fetch failed, as Node's fetch reports it.

The proof that it matches the original is in port/PORT.md.