nisconder/npm-safe-fordsh

Gives the agent 14 npm-safety tools that inspect a package's metadata and published tarball before you decide to install it.

Answers the question an agent normally skips — what is actually inside this package — before an install happens. It exposes 14 agent tools around a check_package entry point that takes a package name with an optional version, forceRefresh and deep flag, and reports the latest version, an overall security level and score, and the individual findings behind them. The deep scan reads the same-origin published tarball, verifies npm integrity metadata rather than trusting the registry listing, and inspects what it finds there, including suspicious lifecycle scripts and install hooks. For a metadata-only pass you skip the deep flag and get a fast check. The report is meant to be read by the model mid-task, so the numbers arrive with explanations the agent can act on instead of a bare pass or fail.

Tools & Capabilities ★ 4
View on GitHub ↗

Install

dsh plugin --profile tui add @npm-safe/dsh-tool-npm-safe --allow-build=better-sqlite3

Copied from the README verbatim, including the build permission: --allow-build=better-sqlite3 grants build permission only to the SQLite driver behind the local cache, and pnpm keeps blocking install scripts from everything else. The README's own install line targets the tui profile; substitute your profile name if you run a different one. Restart a running profile after installing.

Compatibility

Node.js 22.19 or newer, with Corepack for the repository's own build. The README is explicit about scope, and the page repeats it: this is an evidence tool, not a firewall — it does not intercept shell commands and does not automatically block npm, pnpm, yarn or DSH plugin installs. You get the check by having the agent run it and by configuring your workflow to require a check of the exact version before installing. The repository pins a release tarball of @npm-safe/core under vendor/ through a workspace override, and its packages are aligned to the 0.1.0-rc.6 family, so upgrades have to stay aligned.

Details

Alternatives

lemonadesaltbagel/dsh-veil · MrWeiCodes/dsh-permgate · Likenttt/garmin-connect-plugin-for-dsh

More plugins in Tools & Capabilities

Browse more in Tools & Capabilities

Guides for Tools & Capabilities plugins