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

@npm-safe/dsh-tool-npm-safe

v0.1.4

Published

DeepSeek Harness plugin that blocks risky npm installs with metadata and deep supply-chain scans

Readme

@npm-safe/dsh-tool-npm-safe

Version License Language Node

A DeepSeek Harness (dsh) tool plugin that exposes the @npm-safe/core-dsh supply-chain security engine as 14 dsh tools. AI agents can call package security scans directly inside a conversation, acting as a "check before you install" gate.

If this plugin is useful in your workflow, please Star the repository so other DSH users can find it.

Installation

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

The package declares a DSH bundle and activates cordis.patch.yml automatically. The --allow-build flag grants install-script permission only to the SQLite driver used for the local cache; pnpm continues blocking build scripts from other dependencies. Restart an already-running profile after installation.

Peer Dependencies

This plugin requires the following peer packages (all from the same RC family):

| Package | Version | |---|---| | @deepseek-ai/cordis | ^4.0.1 | | @deepseek-ai/dsh-tools | 0.1.0-rc.6 | | @deepseek-ai/dsh-jobs-local | 0.1.0-rc.6 |

Quick Start

Configure a model provider in DSH, then ask the agent to scan a package. A DeepSeek API key is only required when DeepSeek is your selected provider.

dsh --profile tui
Deep-scan fast-glob before installing it. Explain every finding.

Tools

The plugin registers the following 14 tools in a dsh session:

| Tool | Purpose | Execution | |---|---|---| | check_package | Check one package; optional deep tarball inspection | Foreground (signal-forwarded) | | check_packages | Check multiple packages; optional deep inspection | Foreground (rate-limited) | | search_packages | Keyword search of the npm registry | Foreground | | watch_add | Add a package to the watchlist | Foreground | | watch_remove | Remove a package from the watchlist | Foreground | | watch_list | List all watched packages | Foreground | | rules_list | List all scan rules with status | Foreground | | rule_enable | Enable a scan rule (persisted) | Foreground | | rule_disable | Disable a scan rule (persisted) | Foreground | | rule_set_severity | Override a rule's severity (persisted) | Foreground | | settings_get | Read an engine setting | Foreground | | settings_set | Write an engine setting (persisted) | Foreground | | ci_scan | Dependency gate scan; optional deep inspection | Foreground | | refresh_all | Refresh all watched packages | Background (ctx.jobs.start) |

Usage Examples

Check a single package

> Use check_package to check lodash

[email protected]: safe (85/100, 2 findings)

For higher assurance before installation, ask the agent to set deep: true:

> Deep-scan lodash with check_package before installing it

[email protected]: safe (82/100, 2 findings); deep scan complete, 154 files, integrity verified

Deep mode downloads the published tarball, rejects cross-origin downloads, verifies npm integrity metadata, and inspects bounded source content entirely in memory. It is optional because archive downloads add latency and bandwidth.

Batch check

> Use check_packages to check lodash, express, and axios

lodash: safe (85/100, 2 findings)
express: suspicious (62/100, 5 findings)
axios: safe (90/100, 1 findings)

CI gate scan

> Use ci_scan to scan dependencies

dir: /project
dependencies: 142
fail level: dangerous
failed: false
safe: 130
suspicious: 10
dangerous: 2

Background refresh

> Use refresh_all to refresh all watched packages

Background refresh job started: job-abc123

Engine

This plugin is powered by @npm-safe/core-dsh, a fork of @npm-safe/core re-architected for dsh integration. The engine provides:

  • 10 metadata rules plus 12 deep-content rules for archive integrity, unsafe paths, remote shell execution, obfuscation, process execution, secrets, and binaries
  • SQLite-backed caching with TTL-based staleness (default 1 hour)
  • TokenBucket rate limiter (5 tokens/s, 10 burst) to prevent registry throttling
  • Typed API for programmatic use

Original Repository

  • This plugin: https://github.com/nisconder/npm-safe-forDSH
  • Engine original repository: https://github.com/nisconder/npm-safe
  • dsh platform: https://github.com/deepseek-ai/deepseek-harness

License

Apache-2.0 — Copyright 2026 Nisconder, InfiniteScope, Escap1ng, StoryBegins.