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-credential-guard

v0.1.0

Published

DeepSeek Harness plugin: deny read/read_image/grep/glob calls whose path matches credential-store or secret-file patterns (.credentials.yaml, .env, .ssh, id_* keys, ...).

Readme

dsh-plugin-credential-guard

DeepSeek Harness 插件:拒绝模型对凭据存储与密钥文件的读取。

背景

harness 的文件读取在所有权限模式下都不受限(fs-sandbox 只拦写)。因此模型可以直接 read $DSH_HOME/.credentials.yaml、项目 .env~/.ssh 密钥等,把密钥内容带进模型上下文。本插件在工具层关上这扇门。

效果

注册一个 tools.guardread / read_image / grep / glob 的目标路径若命中敏感模式(.credentials.yaml.env.ssh/id_* 密钥、.npmrc.netrc.pgpass),直接拒绝并返回 [credential-guard] ... 原因。

安装

dsh plugin --profile web add dsh-plugin-credential-guard

挂载(profile cordis.patch.yml 或 agent preset):

- id: credential-guard
  name: dsh-plugin-credential-guard
  config:
    tools: [read, read_image, grep, glob]
    # patterns 可覆盖默认列表(见 lib/patterns.js 的 DEFAULT_PATTERNS)

边界(诚实声明)

  • 只拦工具调用(read/read_image/grep/glob 的路径参数)。pwsh/bashcat ~/.dsh/.credentials.yaml 仍然可读——那需要宿主侧修复(启动后 scrub 进程环境、或在 fs-sandbox 层拦截读)。本插件是外部插件能做的最大范围。
  • 匹配是路径级(basename / 目录段),不做内容嗅探。

开发

npm test