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-desktop-bridge

v1.0.1

Published

Loopback-only Host handshake and registration Bridge for DSH Desktop

Readme

dsh-plugin-desktop-bridge 1.0

这个 npm 包是最小化的 DSH Desktop Host Bridge,不是 Electron 应用,不包含浏览器客户端或布局,也不提供 launcher 命令。

通过正常 DSH 命令安装到共享 Web profile:

dsh plugin --profile web add dsh-plugin-desktop-bridge@^1.0.1
dsh web --port 0 --no-open

Host 绑定 127.0.0.1,在 $DSH_HOME/desktop-hosts 下原子写入当前用户私有的实例登记,并提供 GET /__dsh_desktop/v1/handshake。请求必须携带登记中的随机 256 位 bearer token;协议主版本、Bridge 版本、token、重定向、实例身份或回环限制不匹配时都会明确失败。

Bridge 只做外部 Electron 壳无法从 Host 外部完成的事情:在 DSH 内提供带认证的握手,并登记/清理正在运行的 Host 实例。BrowserWindow 生命周期、renderer 健康、布局、原生目录选择、托盘、恢复和进程所有权全部归 Electron 壳。

发布包不会自行安装 DSH、WebServer、Cordis、Loader 或 invariants;这些服务属于当前运行的 Host。若在 profile 内携带另一套锁定版本,会让 Web 页面解析到不兼容的 Host 内部实现。

只有“可信附加”和“按登记自动发现已运行 Host”需要该插件。仅启动已知本地命令或加载用户固定 URL 并不需要插件。若完全删除插件,就必须放弃可信自动发现、接受未经验证的页面,或把同一协议加入 DSH 核心。

详见 Bridge/插件服务。