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

@ssk_dev/pi-web-access-lean

v0.47.0

Published

Lean Pi web access extension with full features: 153 initial tokens (86.9% fewer than current upstream).

Readme

@ssk_dev/pi-web-access-lean

Token benchmark: Lean 153, upstream [email protected] 1,165 — 86.9% fewer.

See my full setup for Pi

简体中文

A lightweight Pi wrapper for pi-web-access. It preserves the full upstream web search and browsing engine while compressing four separate tools into a single, compact tool schema.

Context Footprint Benchmark

With only this extension enabled, its recurring model-facing initialization contribution is:

| Variant | Tool and prompt contribution | Total | | --- | --- | ---: | | Lean @ssk_dev/[email protected] | web_access (153) | 153 | | Upstream [email protected] | web_search (338) + source_check (225) + fetch_content (372) + get_search_content (230) | 1,165 |

This saves 1,012 tokens (86.9%). Measured with Pi 1.4.0 in separate temporary processes with empty working directories and configuration. Built-in tools, skills, context files, session history, user messages, unrelated extensions, runtime UI, and slash commands are excluded; before_agent_start additions are included. Tokens are a fixed character-proxy estimate using ceil(characters / 4), not provider tokenizer billing.

Core Features

  • Full upstream capabilities: Web search, result pagination, source verification, and page fetching all work as intended.
  • Unified tool interface: Consolidates web_search, source_check, fetch_content, and get_search_content under one web_access tool.
  • Direct local PDF extraction: Supports fetching local PDF documents directly (op: "fetch" with paths such as R:/doc.pdf, Windows paths, and file:///...), which is blocked in upstream by SSRF guards. Extracted Markdown is saved locally with page and character counts.
  • Minimal prompt overhead: Everyday operations use concise string inputs. Detailed schemas and advanced parameters stay out of the prompt until queried via help.

Installation

pi install npm:@ssk_dev/pi-web-access-lean

Do not load this alongside another pi-web-access wrapper to avoid duplicate tool registrations.

Usage

The model interacts with a single tool:

web_access

| op | Purpose | input | | --- | --- | --- | | search | Search the web | Query string | | check | Check a claim or source | Claim string | | fetch | Fetch a URL or local PDF | URL or local PDF path | | get | Continue a stored result | Response ID | | help | Show full parameters | Operation name |

Simple example:

{ "op": "search", "input": "Pi coding agent extensions" }

For batch or advanced parameters, pass a JSON object encoded as the input string. Use help only when you need the complete upstream schema.

Mistakes are tolerated: an omitted op is inferred from unambiguous fields (responseId, url/urls, claim, query/queries, or a bare URL/PDF path vs. plain text), an object input is stringified, and upstream fields placed at the top level are merged into input (a field that disagrees with input is rejected with an error, never silently dropped).

Versions

Upstream runtime is pinned to [email protected].

Development

npm ci
npm run check

License

MIT. This project wraps the MIT-licensed pi-web-access.