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-lan-access

v0.1.2

Published

DeepSeek Harness 插件:局域网二维码 —— 手机扫码即可在局域网内访问/操作电脑。支持 npx 一键安装。

Readme

dsh-plugin-lan-access

DeepSeek Harness 插件:局域网二维码 —— 手机扫码即可在同一局域网内访问/操作你的电脑。 桌面版侧边栏的「手机访问」入口即来自本插件。

功能

  • 侧边栏底部「手机访问」按钮 → 弹出二维码面板
  • 二维码内容 = http://<局域网IP>:<端口>(自动优先真实网段)
  • 自动检测"局域网访问是否开启",未开启时给出引导
  • 黑白主题、中英文自动适配

安装(npx 一键)

npx dsh-plugin-lan-access
# 自定义 DSH_HOME:
npx dsh-plugin-lan-access --dsh-home D:/my-dsh

安装器会:

  1. 把插件复制到 $DSH_HOME/profiles/web/node_modules/@dsh-desktop/lan-access
  2. 生成注入 patch:$DSH_HOME/lan-access.patch.yml

然后启动(局域网默认关闭,仅本机可用):

dsh web --patch $HOME/.dsh/lan-access.patch.yml --port 3080

开启手机局域网访问

在 patch 文件顶部追加(将 webserver 绑定 0.0.0.0):

- id: webserver
  config:
    host: '0.0.0.0'
    port: !!js ctx.webStartup.port ?? 3080
- insert:
    - id: lan-access
      name: '@dsh-desktop/lan-access'

⚠️ 开启后同一局域网内的设备都能访问(无登录鉴权)。只应在可信网络开启。

手动安装(不通过 npx)

npm install -g dsh-plugin-lan-access    # 或 npm install dsh-plugin-lan-access
# 或从源码:
git clone https://github.com/yansenlei/dsh-plugin-lan-access
cd dsh-plugin-lan-access && npm install && npm run build
# 然后复制 lib/ 到 profile 的 node_modules 并注入 patch(同上)

工作原理

  • Node 半部lib/index.js):注册 /lan-info 路由;webserver 绑定 0.0.0.0 时, DSH webRuntime 自动收集局域网 IPv4 并放行 browser-trust。
  • 浏览器半部src/client.tsxlib/client.js):fetch('/lan-info') → qrcode 渲染二维码。

开发

npm install
npm run build     # 产出 lib/client.js

许可

MIT