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

dsh-web-allowlist-fetch

v0.2.1

Published

IP/domain allowlist web_fetch provider for DeepSeek Harness: lets web_fetch reach allowlisted hosts/IPs freely (incl. proxy fake-IP addresses like 198.18.x.x) while keeping the default public-IP safety check for everything else.

Readme

dsh-web-allowlist-fetch

IP/domain allowlist web_fetch provider for DeepSeek Harness.

web_fetch in Harness refuses any host that resolves to a non-public IP (the http provider's isPublicIpAddress / unicast guard). In proxy environments that use RFC 2544 fake-IP (Clash / Surge / Mihomo TUN mode, the 198.18.0.0/15 range), ordinary public domains resolve to fake, non-public IPs and get blocked — so fetching an otherwise-fine site fails with URL hostname "…" resolves to a non-public IP address.

This plugin registers a web_fetch provider (id: allowlist) that:

  • allowlists the hosts / IPs / CIDRs you configure, and fetches them freely (bypassing the public-IP guard — a fake-IP address is fine once its domain or the fake IP range is allowlisted);
  • keeps the stock public-IP safety check for every other host, so the default posture is unchanged.

The allowlist is editable from the web client's Settings → 插件配置 surface; see Configuration.

Install

Publish this package (or install from your git URL), then in your Harness home:

dsh plugin --profile web add dsh-web-allowlist-fetch

The bundle's cordis.patch.yml registers the provider and routes web.config.fetchProviderallowlist.

install-time note: a patch row targets a Cordis row by id and replaces its whole config. The bundled patch therefore sets the full web config (both fetchProvider and searchProvider). Edit searchProvider in the patch to match your search setup, or the value set by another layer will be overwritten.

Configuration

The allowlist is exposed as a settings namespace (dsh-web-allowlist-fetch) and edited from the Settings → 插件配置 surface in the web client: open the plugin's card and edit the allowlist (one host/IP entry per line). A committed override lands in $DSH_HOME/settings.yaml and applies on the next fetch without restarting.

The composed default (what the card starts from) is the bundle's patch — edit it in your profile's cordis.patch.yml (or the settings layer):

- insert:
    - id: web-fetch-allowlist
      name: dsh-web-allowlist-fetch
      config:
        allowlist: []
- id: web
  config:
    fetchProvider: allowlist
    searchProvider: ddg

You can also set the namespace directly in your settings layer:

dsh-web-allowlist-fetch:
  allowlist:
    - weather.com            # this domain + any subdomain
    - 198.18.0.0/15          # Clash fake-IP range (any host resolving here)
    - 127.0.0.1              # a single IP literal

Entry forms

| Form | Matches | | ----------------- | -------------------------------------------------- | | example.com | example.com and every *.example.com | | .example.com | example.com and every subdomain | | *.example.com | every subdomain | | 192.168.1.10 | that exact IP literal | | 198.18.0.0/15 | any host/IP within that CIDR network | | 2001:db8::/32 | any host/IP within that IPv6 CIDR network |

How it behaves

  • Allowlisted host/IP → fetched directly via global fetch (follows redirects). Body decoded as text/html and capped at maxBodyChars.
  • Non-allowlisted host that resolves only to public IPs → fetched directly.
  • Non-allowlisted host resolving to any non-public IP → rejected with a descriptive error (unchanged from stock http behavior).

Safety

This is an escape hatch, not a blanket disable. Only entries you list are released from the public-IP guard. Do not allowlist 0.0.0.0/0, 198.18.0.0/0, or 10.0.0.0/8 unless you fully understand the implication for a model that can choose URLs — it would let the model reach your private network.

Development

pnpm install
pnpm run check   # build (tsdown) + node --test tests

Build output: lib/index.js (ESM). Host peers resolve from the Harness profile at runtime and stay external.