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-weekly-hot

v0.4.0

Published

Weekly hot DSH plugins ranking panel: trending (7/30/90-day star-growth) and curated topic leaderboards, rendered as a self-healing sidebar entry below the New Session button in the dsh web GUI.

Readme

dsh-weekly-hot

DSH

DSH Web UI 的「每周热门插件」榜单插件:飙升榜(7/30/90 天 Star 增长 + 更新活跃度加权)与精选主题榜(社区 awesome 列表 + 主题标签)。零服务器、零运行时依赖(仅 React peer),数据全部由浏览器直连 GitHub 获取。

界面预览

面板截图

功能

  • 入口:右缘悬浮按钮(🔥 本周热门插件)随时点开;设置 → 插件 → 每周热门插件 也有官方入口;不喜欢悬浮按钮可在设置里关闭
  • 定时弹窗:到期自动弹出最新榜单,间隔可选 关闭/每天/每周/每两周/自定义分钟数(默认每周),面板 ⚙️ 设置与设置页均可修改;手动打开会重置计时
  • 外观自定义:面板宽度(360–720px 滑杆)、背景图片(默认 DSH 插画 / 无 / 自定义 URL)、背景透明度,面板 ⚙️ 设置即时生效
  • 加载与限流:加载时大号旋转指示 + 骨架屏;GitHub 限流时不再报英文错误——显示「X 分 X 秒后自动重试」倒计时并在配额恢复时自动重试,有缓存则直接展示缓存数据
  • 飙升榜topic:dsh-plugin 全量检索 × localStorage 星标基线差值(首访无基线时按近期活跃度估算并标注「估算」);新仓库加权、近 30 天推送活跃度加权
  • 精选主题榜:解析 awesome-dsh-plugin / Oh-My-DSH 等社区精选 README,按 #UI #工具 #记忆 #工作流 #视觉 #多模态 主题分桶,主题不足时用 topics/描述推导补齐
  • 插件卡片:名称 + GitHub 链接、README 首句描述(raw.githubusercontent 懒加载补全)、topics/主题标签、★ 数、增长数、一键安装
  • 一键安装:浏览器 POST 到宿主侧 /api/dsh-weekly-hot/install(仅回环可达),宿主执行 dsh plugin --profile web add github:<owner>/<repo>;失败时展示 stderr 与手动命令
  • 额度管理:展示 GitHub API 剩余额度与恢复倒计时;设置页可填 Token(仅存浏览器 localStorage)
  • 缓存与降级:搜索缓存 1h、精选列表缓存 6h、README/包校验缓存 24h;限流时自动回落缓存数据并提示
  • 验证与排除:package.json dsh 字段校验(卡片 ✓ 标记),排除 deepseek-ai 官方核心仓库与归档仓库

安装

# npm(推荐)
dsh plugin --profile web add dsh-weekly-hot
# GitHub
dsh plugin --profile web add "github:XCNXNXNX/dsh-weekly-hot"
# 或本地开发
dsh plugin --profile web add link:C:/tool/DeepSeek/DeepSeekHarness/my-plugins/dsh-weekly-hot

重启 dsh web 生效。

配置

config.json(随插件分发,改后刷新生效):

{
  "榜单配置": {
    "飙升榜": { "时间窗口": [7, 30, 90], "最小Star数": 0, "榜单长度": 50 },
    "精选主题榜": { "主题列表": ["UI", "工具", "记忆", "工作流", "视觉", "多模态"], "每主题数量": 10 }
  },
  "数据源": {
    "优先使用社区精选": true,
    "社区精选列表": ["https://raw.githubusercontent.com/…/README.md"],
    "GitHub Token": ""
  },
  "UI": { "自动刷新间隔": 3600, "默认榜单": "飙升榜", "默认时间窗口": 7 }
}

Token 也可在面板 ⚙️ 设置中填写(优先于文件,仅存 localStorage)。

数据来源

  • GitHub Search API:topic:dsh-plugin(权威索引)+ 仓库元数据(stars/forks/topics/pushed_at)
  • raw.githubusercontent.com:README 首句、package.json dsh 字段校验
  • 社区精选:awesome-dsh-plugin、Oh-My-DSH(面板底部标注实际来源)

飙升榜的增长数为本地基线差值:GitHub API 不提供历史 Star 快照,插件每次刷新记录一次观测值,跨周期的增长会在下一个窗口精确显示。

开发

npm install   # 或 pnpm install
npm run build # esbuild 双产物(lib/index.js 宿主半体 + lib/client.js 浏览器半体)+ tsc 类型

结构:src/index.ts 宿主半体(安装 route);src/client/ 浏览器半体(launcher.ts 悬浮按钮、panel-mount.tsx 独立 React root 弹窗、store.ts 控制器与定时弹窗调度、services/ GitHub 与精选数据、utils/scoring.ts 飙升加权)。