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-refresh-button

v1.0.0

Published

Adds a floating page-refresh button and restores the F5 / Ctrl+R reload shortcuts in DSH desktop (harmless on web too).

Readme

dsh-refresh-button

给 DSH 桌面端补回网页刷新能力的极小插件(web 端装了也不碍事)。

背景

DSH 桌面端是 Electron 壳,但"刷新页面"菜单(role: "reload",自带 F5 / Ctrl+R 加速键)只在 development 构建里注册,正式版什么都没有。

功能

  • 悬浮 ⟳ 按钮:默认贴右下角,可拖动(位置记住在 localStorage), 单击即整页刷新(等价 web 端按 F5)。
  • 快捷键:F5 / Ctrl+R(Cmd+R)恢复刷新,capture 阶段拦截。

结构

  • lib/index.js — 宿主半边,空 apply(),只为让插件挂进 Loader (reasoning-slider 同款模式)。
  • lib/client.js — ModuleLoader 工厂,exports.inject = [](不依赖任何宿主服务); apply 内部等 document.body 就绪再注入(ModuleLoader 可能在 DOM 早期执行插件)。
  • cordis.patch.yml — insert 自身包名。这一行不可省:loader 行是 client-module 系统发现 dsh.client 声明、向页面下发 lib/client.js 的依据;没有它 bundle 只会"已安装、重启后生效"地永远空转。

安装(本地插件,file: 依赖)

在目标 profile 的 package.json:

"dependencies": { "dsh-refresh-button": "file:<本地项目目录>" },
"dsh": { "profile": { "bundles": [ "dsh-refresh-button" ] } }

然后 pnpm install 并重启 DSH。

兼容性

  • 无 peerDependencies,宿主版本兼容检查直接通过。
  • 纯 client 行为,无宿主 API 依赖,理论上跨 0.1.5 / 0.1.7 均可用。