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

@0xkobold/pi-web

v0.2.0

Published

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

Readme

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

| Tool | Description | |------|-------------| | web_fetch | Fetch and extract content from a URL | | web_search | Search web, optionally fetch content from results | | web_research | Deep research: search + fetch + multi-source synthesis |

Commands

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

Parameters

web_fetch

| Parameter | Type | Default | Description | |-----------|------|---------|-------------| | url | string | required | Full URL to fetch | | max_length | number | 5000 | Maximum characters to retrieve | | use_playwright | boolean | false | Force Playwright for JS content | | timeout_ms | number | 15000 | Timeout in ms (max: 60000) |

web_search

| Parameter | Type | Default | Description | |-----------|------|---------|-------------| | query | string | required | Search query | | limit | number | 5 | Number of results (1-10) | | fetch_content | boolean | false | Fetch full content from top results | | fetch_sources | number | 3 | How many sources to fetch |

web_research

| Parameter | Type | Default | Description | |-----------|------|---------|-------------| | question | string | required | Research question | | sources | number | 5 | Number 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.