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-plugin-inspector

v0.9.0

Published

Know what a DeepSeek Harness plugin does before you install it — static pre-install analysis of a plugin directory or tarball

Readme

dsh-plugin-inspector

Know what a plugin does before you install it.

dsh-inspect reads a DeepSeek Harness plugin — a directory, an npm tarball, or a published package fetched by name and checked against the hash the registry published — and tells you what it declares and what its code is capable of. It does not install it, build it, import it, spawn it, or evaluate any part of it.

$ dsh-inspect --from-npm [email protected]

📖 Full documentation

Why

dsh plugin add is a thin pnpm forwarder: it passes your arguments to pnpm verbatim, and a plugin is ordinary Node code that runs in the agent's process at the agent's uid. Nothing between the registry and that process tells you what the code can reach.

The full argument →

Install

Node ^22.19.0 || >=24.

npm install -g dsh-plugin-inspector
dsh-inspect --help

From a checkout instead — lib/ is generated, so a fresh clone has no dsh-inspect until built:

git clone https://github.com/CharlotteN7/dsh-plugin-inspector
cd dsh-plugin-inspector
pnpm install && pnpm run build
node lib/cli.js --help

Usage

dsh-inspect <target> [options]
dsh-inspect --from-npm <name>[@<version>] [options]

  --from-npm <spec>       Fetch from the registry, verify dist.integrity, read the
                          provenance attestation if there is one, analyse in memory.
  --registry <url>        Registry base URL for --from-npm.
  --json                  Emit the machine-readable JSON document on stdout.
  --fail-on <severity>    Exit 1 at or above this severity.  (default: high)
  --no-color              Plain text, no ANSI.

Exit codes are the CI contract:

| Code | Meaning | |---|---| | 0 | Analysis completed; nothing at or above --fail-on | | 1 | Analysis completed; at least one finding at or above --fail-on | | 2 | Analysis could not be performed |

2 is deliberately distinct from 1. A job that cannot tell "the analyzer broke" from "the plugin is clean" is the failure this split exists to prevent.

Full usage, and getting a package without installing it →

What it looks for

Findings are tiered by how much you should trust them:

| Tier | What it means | |---|---| | Facts | No severity, always emitted — what the package declares about itself | | Tier A | Decidable from a structured declaration. A real verdict. | | Tier B | AST capability detection — "this plugin can do X" | | Tier C | Heuristic; "we cannot read this" is itself the finding |

Every check, by tier →

What it deliberately does not flag

A critical is only worth reading if it is rare, so the two tables that decide one — the core rows A2 treats as security-relevant, and the capability seams A23, B1 and B15 do — are kept small on a stated rule: a row is in when disabling it fails open or silently removes evidence. A row that fails closed when removed is out, however security-adjacent its name reads, and so is one whose absence takes a feature away and grants nothing.

The rows checked against that rule and kept out are named with their reasons, so you can tell "we checked and it does not qualify" from "we never looked". Excluded is not unreported: disabling any core row is still an A3 finding.

What is deliberately not a finding →

The ceiling

This is not a malware scanner and it cannot be one. Capability is decidable from source; intent is not. Every Tier B check has a one-line bypass, and the tool says so per finding rather than implying a completeness it does not have. What it does guarantee is that it never runs the code it analyses — asserted from outside the unit suite by a CI canary whose fixture writes sentinel files from preinstall, postinstall, prepare, !!js config, !!js disabled, and module top level. Any sentinel on disk after a full analysis is a release blocker.

What is not statically decidable → · What it reports on the real ecosystem →

Development

nvm use 22           # Node ^22.19.0 || >=24, and pnpm 11
pnpm install
pnpm run typecheck
pnpm run test:coverage
pnpm run test:e2e

Two checks need a network and are therefore not part of CI, which is what lets the unit suite claim that analysing a package touches nothing outside the process. Both run on a weekly cron and on request. pnpm run sweep measures severity calibration against a corpus of forty published packages, pinned in tests/ecosystem-baseline.json; the baseline records the build that measured it and a unit test fails unless that matches the version in package.json, so a version bump is not finished until the sweep has been re-run against it. pnpm run sync diffs the harness ground truth in src/knowledge.ts against a published harness release, because every Tier A verdict is a claim about what one harness version does with a declaration.

Design decisions and their rationale live in ADR.md. Security policy is in SECURITY.md.

License

MIT