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

@stratusagent/tool-web

v0.6.0

Published

Web fetching for Stratus agents: retrieve a URL as readable text, with no browser and a shared address policy

Readme

@stratusagent/tool-web

web.fetch: retrieve a URL and get back the text a reader would keep. No browser, no JavaScript, no Chromium — this is what an agent reaches for twenty times for every once it needs browser.*.

Install and enable

npm install @stratusagent/tool-web
// ~/.stratus/config.json — a trusted config only
{
  "plugins": {
    "@stratusagent/tool-web": { "enabled": true }
  }
}

Then the agent's soul decides, per identity:

---
id: ava
tools: [web.fetch]
---

Risk model

| Tool | Risk | What approval mode does | | --- | --- | --- | | web.fetch | gated | interactive asks at the terminal, remote asks in Slack, headless refuses. It reaches a service outside Stratus at an address the agent chose, which is the line 03 draws. |

Approval decides whether; the address policy decides where, and it is not the same question. An approver looking at https://example.com/report has approved that URL — not the redirect it answers with.

Settings

| Key | Default | What | | --- | --- | --- | | allowedHosts | none | Hosts exempt from the address check, by name or literal address. The narrow override: one internal service an agent is meant to reach. | | allowPrivateAddresses | false | Reach any non-global address. The trusted-workstation posture — it turns the SSRF protection off rather than adjusting it. | | maxBytes | 400000 | Stop reading here; the result says truncated. | | timeoutMs | 20000 | Give up on the whole exchange. | | maxRedirects | 5 | Hops to follow before refusing. | | userAgent | StratusAgent/0.5 … | What to send. |

All of them can be set per agent under agents, and allowedHosts in particular should be: an exemption written once at the top level is an exemption every agent gets.

What it refuses, and where

The address policy is @stratusagent/egress, the same module @stratusagent/tool-browser uses — not a copy of it. A second implementation would not drift into a style difference; the stale one would be an SSRF hole. Both packs are tested against the same table of hostile URLs, which is what fails if the module is ever forked.

  • Schemes: http: and https:. file:, data:, and javascript: are refused before anything is fetched — this process can read the files a file: URL names.
  • Addresses: every non-global address in both families — loopback, RFC 1918, carrier-NAT, link-local (where cloud instance metadata lives), IPv6 unique-local and link-local, multicast, and the IPv4-mapped, NAT64, and 6to4 forms that write the same addresses a different way.
  • Every hop: redirects are followed one at a time and each one faces the policy from scratch, so a public URL that answers 302 Location: http://169.254.169.254/ is a refusal rather than a fetch.
  • The connection itself: the socket's own DNS resolution is the one that gets checked. Resolving a name to validate it and letting the client resolve it again to connect is DNS rebinding with extra steps.