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

@mrclrchtr/supi-web

v1.12.0

Published

SuPi Web extension — fetch web pages as clean Markdown (web_fetch_md) and library docs via Context7 (web_docs_search, web_docs_fetch)

Readme

@mrclrchtr/supi-web

Adds web-page fetching and library-documentation lookup tools to the pi coding agent.

Install

pi install npm:@mrclrchtr/supi-web

For local development:

pi install ./packages/supi-web

Web tools in action

What you get

After install, pi gets three tools:

| Tool | Purpose | |------|---------| | web_fetch_md | Fetch a web page and convert it to clean Markdown for LLM ingestion | | web_docs_search | Search Context7 for library IDs and metadata before fetching docs | | web_docs_fetch | Fetch up-to-date documentation for a known Context7 library |

web_fetch_md

Fetches a public URL and returns clean Markdown.

Parameters

| Parameter | Type | Required | Default | Description | |-----------|------|----------|---------|-------------| | url | string | ✓ | — | http:// or https:// URL to fetch | | output_mode | "auto" | "inline" | "file" | — | "auto" | How to return the result | | abs_links | boolean | — | true | Absolutize relative links and images | | timeout_ms | number | — | 30000 | Fetch timeout in milliseconds |

Output modes

  • auto — returns Markdown inline if ≤15,000 characters; otherwise writes to a temporary file and returns the path
  • inline — always returns Markdown inline
  • file — always writes to a temporary file and returns the path

Behavior

  • Only accepts real http:// or https:// URLs
  • Access-controlled pages (login, paywall) should be skipped — ask the user for an allowed source instead
  • Plain-text responses are wrapped in fenced code blocks
  • Links and images are absolutized by default; set abs_links: false to keep them relative

web_docs_search

Searches Context7 for library IDs before fetching documentation.

Parameters

| Parameter | Type | Required | Description | |-----------|------|----------|-------------| | library_name | string | ✓ | Library name to search for (e.g. "react", "next.js") | | query | string | ✓ | What you're trying to do — used for relevance ranking |

Results return as a Markdown table with library ID, name, description, trust score, benchmark score, snippet count, and available versions.

web_docs_fetch

Retrieves documentation context for a known Context7 library.

Parameters

| Parameter | Type | Required | Default | Description | |-----------|------|----------|---------|-------------| | library_id | string | ✓ | — | Context7 library ID (e.g. /facebook/react, /vercel/next.js) | | query | string | ✓ | — | Specific question about the library | | raw | boolean | — | false | When true, returns JSON-serialized snippet objects instead of Markdown |

Default mode returns pre-formatted Markdown. Set raw: true when you need structured JSON for programmatic use.

Typical workflow

  1. web_docs_search — find the right library ID
  2. Pick a library_id from the results
  3. web_docs_fetch — retrieve focused, version-aware docs

Skip step 1 if you already know the exact Context7 library_id.

Context7 API key

web_docs_search and web_docs_fetch use Context7 through @upstash/context7-sdk.

If CONTEXT7_API_KEY is set in your environment, the SDK uses it automatically for higher rate limits. Without a key, the tools still work with lower defaults.