Catalog npm
Back to packageRELEASE DETAILS

0.1.0

npm

@0xkobold/pi-web

Web search and content extraction for pi agents — DuckDuckGo/SearX search, cascade fetching (fast → readability → Playwright), deep research

fetchpi-extensionpi-packageplaywrightscrapingsearchweb
Published9 Apr 2026
Direct dependencies5
Transitive dependenciesNot calculated

README

Current package documentation

pi-web

Web search and content extraction for pi-coding-agent — cascade fetching, multi-engine search, deep research.

Installation

pi install npm:@0xkobold/pi-web

Or as part of the meta-extension:

pi install npm:@0xkobold/pi-kobold

Features

  • Cascade Fetching — Fast HTML → Readability → Playwright for JS sites
  • Multi-Engine Search — DuckDuckGo (default) + SearXNG (fallback)
  • Deep Research — Search + fetch + synthesize from multiple sources
  • Playwright Pool — Browser reuse with concurrency limits and retries
  • Optional Dependency — Playwright is optional; fast fetch works without it

Tools

ToolDescription
web_fetchFetch and extract content from a URL
web_searchSearch web, optionally fetch content from results
web_researchDeep research: search + fetch + multi-source synthesis

Commands

CommandDescription
/deep-fetch <url>Fetch JS-rendered content using Playwright
/web-search-deep <query>Search + fetch from top results

Parameters

web_fetch

ParameterTypeDefaultDescription
urlstringrequiredFull URL to fetch
max_lengthnumber5000Maximum characters to retrieve
use_playwrightbooleanfalseForce Playwright for JS content
timeout_msnumber15000Timeout in ms (max: 60000)
ParameterTypeDefaultDescription
querystringrequiredSearch query
limitnumber5Number of results (1-10)
fetch_contentbooleanfalseFetch full content from top results
fetch_sourcesnumber3How many sources to fetch

web_research

ParameterTypeDefaultDescription
questionstringrequiredResearch question
sourcesnumber5Number of sources to analyze (1-10)

Architecture

┌────────────────────────────────────────┐
│              pi-web                     │
├─────────────┬──────────────────────────┤
│  Search     │  Content Extraction      │
│  ─────────  │  ──────────────────────  │
│  DuckDuckGo │  1. Fast fetch (HTML)    │
│  SearXNG    │  2. Readability (regex)  │
│             │  3. Playwright (JS)       │
├─────────────┴──────────────────────────┤
│        Playwright Browser Pool          │
│        (concurrency: 2, pool TTL: 2m)  │
└────────────────────────────────────────┘

Development

cd packages/pi-web
bun install
bun run build

Optional: Playwright

For JavaScript-rendered content, install Playwright:

npm install playwright
npx playwright install chromium

Without Playwright, web_fetch still works using fast HTML fetch and readability extraction.

Downloads & popularity

Awaiting observations

No metric observations yet

Download counts and popularity will appear here as the collector receives them.

Declared dependencies 5

Native requirements
5 direct targetsNot calculated transitive count
Package / targetRequirementRelationship
typescript
Environment
{
  "local_name": "typescript",
  "alias": false,
  "peer_metadata": null
}
^6.0.2development
@types/node
Environment
{
  "local_name": "@types/node",
  "alias": false,
  "peer_metadata": null
}
^20.19.37development
@sinclair/typebox
Environment
{
  "local_name": "@sinclair/typebox",
  "alias": false,
  "peer_metadata": null
}
>=0.32.0peer
@mariozechner/pi-coding-agent
Environment
{
  "local_name": "@mariozechner/pi-coding-agent",
  "alias": false,
  "peer_metadata": null
}
>=0.65.0peer
playwright
Environment
{
  "local_name": "playwright",
  "alias": false,
  "peer_metadata": null
}
^1.40.0optional

Distribution files

1 collected
Distribution 1

Source distribution

Source file
Checksums from source
{
  "shasum": "406b45e8bb32a7e99a6d7585934fe2a9925ac4ff",
  "tarball": "https://registry.npmjs.org/@0xkobold/pi-web/-/pi-web-0.1.0.tgz",
  "fileCount": 10,
  "integrity": "sha512-MXpH4FeIfgKDxQtkYlpzWRiMO8iY7zzeYPJn67HYl11IcumKEby38fuNo16udWaD5E9nci62c/w84QPuvb1tuA==",
  "signatures": [
    {
      "sig": "MEYCIQCQiMYMK71HSBSySEbjXWklkH3yn3qa3V/YD4yTgiKJ2gIhALvxvD4q0BWk/h4TrhYTOrZ4+OOxemJyW+xrRVxndl4x",
      "keyid": "SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"
    }
  ],
  "unpackedSize": 77688
}

Repository

PENDING
0xkobold/pi-web

Shared repository data · GitHub

License detected in repository
Not collected

Metadata history

Meaningful changes
Current collected state Current

Observed since 21 Oct, 09:03 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package_version:0ad7fa487edefac4f23f969e61a8fef53f9f1a673b1f36a0d2ecab4bb1165996

Other collected versions

0.2.010 AprView all collected versions →