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-window-chrome

v0.1.2

Published

DSH web 插件:Wails 桌面壳窗口交互——无边框拖拽热区、双击最大化、侧栏底部 DevTools 入口(纯浏览器环境自动休眠)

Readme

dsh-window-chrome

DSH web 插件:为 Wails 桌面壳补上窗口交互——无边框窗口的拖拽热区、任意 --wails-draggable: drag 区域的双击最大化/还原、侧栏底部的 DevTools 快捷入口。

面向 dsh 桌面壳(Wails)。纯浏览器里 window._wails 不存在,所有窗口行为自动休眠,无副作用,装了也不影响浏览器使用。

安装

dsh plugin --profile web add dsh-window-chrome

重启 dsh web(桌面壳 = 关掉窗口重开)后生效。注意:DevTools 双击最大化需要桌面壳 Go 侧有对应的 titlebar-dblclick / open-devtools 事件处理(dsh 桌面壳已内置;自制壳请参考 wails AllowSimpleEventEmit)。

行为

| 行为 | 触发 | |---|---| | 拖拽热区 | 会话头部切换的过渡帧里,在中央栏顶部挂一个透明热区(aria-hidden,CSS body:has() 零延迟显隐),保证无边框窗口此时仍可拖动;老 WebView2 无 :has() 时有 interval 兜底 | | 双击最大化 | 双击任何 --wails-draggable: drag 区域,经 wails:event:emit:titlebar-dblclick 通道通知 Go 侧窗口进程切换最大化 | | DevTools 入口 | 侧栏底部按钮(宽栏 = 图标+文字,窄栏 = 仅图标),点击经 wails:event:emit:open-devtools 由 Go 侧 OpenDevTools() 响应 |

样式全部取自主题 token(--dsw-alias-*),跟随当前皮肤与深浅色。

卸载

dsh plugin --profile web remove dsh-window-chrome

开发

| 文件 | 作用 | |---|---| | lib/client.js | 客户端半:拖拽热区、双击最大化、DevTools 底栏按钮(这些行为此前由桌面壳 main.go 经 ExecJS 注入) | | cordis.patch.yml | bundle patch:官方层之后插入本插件 row |

无宿主半逻辑(lib/index.js 为空壳导出)。本地开发:dsh plugin --profile web add C:/path/to/dsh-window-chrome;改 lib/client.js 有约 500ms 热替换。