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-scorecard

v0.2.0

Published

DSH plugin health scorecard: quality & security audit, rankings, search and score history across the dsh-plugin ecosystem, with a workspace-persisted catalog. 插件体检评分卡:质量/安全审计、榜单、搜索与历史评分曲线(目录持久化)。

Downloads

315

Readme

dsh-plugin-scorecard

DSH 插件体检评分卡:质量与安全审计、榜单与搜索。Quality & security scorecard, rankings and search for the dsh-plugin ecosystem.

一个 Cordis 插件,把「哪些插件值得装、哪个有风险」变成可执行的评分与报告:

  • plugin_sync_catalog 同步 GitHub dsh-plugin topic 目录(star 排序,可配上限)
  • plugin_audit <名称> 对单个插件出体检报告:0-100 分、A/B/C/D 等级、信号明细、证据链;高危安装脚本一票否决(🚨 封顶 30 分)
  • plugin_top 榜单(按评分 / star / 最近更新)
  • plugin_search <关键词> 语义搜索目录
  • plugin_history <名称> 历史评分曲线(时间/分数/等级、趋势方向)

评分模型

| 维度 | 满分 | 说明 | |---|---|---| | 维护活跃度 | 30 | 最近 push、star 量、是否归档 | | 文档质量 | 25 | README、描述、许可证、标签 | | npm 可装性 | 15 | npm 包存在性、更新度、周下载 | | 安全 | 30 | 安装脚本高危模式(curl|sh、/dev/tcp、base64 -d、iex…)、外部主机回连 |

等级:A ≥80 · B ≥60 · C ≥40 · D <40。命中高危模式 → 封顶 30 分 + 🚨 不推荐。

安装

dsh plugin add dsh-plugin-scorecard

或编辑 profile 的组合:cordis.patch.yml 已内置 insert 条目(id: dsh-plugin-scorecard)。

配置(可选)

| 字段 | 默认 | 说明 | |---|---|---| | githubToken | "" | GitHub Token,提升 API 限额(无 Token 时 60 次/小时) | | securityScan | true | 是否扫描安装脚本 | | cacheTtlMs | 900000 | 目录缓存 TTL(含工作区文件缓存) | | catalogFile | .dsh/scorecard-catalog.json | 目录持久化文件(会话工作区内) | | historyFile | .dsh/scorecard-history.json | 评分历史文件(会话工作区内) | | historyMaxEntries | 100 | 历史快照条数上限 | | maxCatalogSize | 200 | 每次同步的仓库数上限 |

开发

node --check lib/index.js
node test/scorer.test.mjs   # 主模块方式(沙箱里勿用 node --test)
node test/format.test.mjs

路线图

  • v0.2 ✅:目录持久化(JSON 缓存)+ 历史评分曲线(plugin_history)
  • v0.3:Web 设置页榜单(ui-settings-plugins 扩展点)+ 开放数据导出 JSON
  • v0.4:企业审计报告导出 / 私有化

License

MIT