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

@lieliefengzhong/dsh-lan-access

v0.2.4

Published

Authenticated LAN HTTP and WebSocket port forwarding for DeepSeek Harness.

Readme

dsh-lan-access

一个只做局域网端口转发的 dsh 插件。dsh 继续监听 127.0.0.1,插件在局域网地址上开启带密钥的 HTTP/WebSocket 中继,因此手机或同一局域网的其他电脑可以访问当前这次 dsh web。插件会额外注入一小段兼容代码,让 dsh 把转发过来的页面仍视为当前本机 harness,否则工作区和设置会显示为空。

安装

从 GitHub 源码安装:

dsh plugin --profile web add https://github.com/younero/dsh-lan-access.git

也可以从 npm 安装已发布版本:

dsh plugin --profile web add @lieliefengzhong/dsh-lan-access

插件默认加入 profile,但转发默认关闭。安装后重启 dsh web 使配置生效。

配置

在 profile 的 cordis.patch.yml 中按 id 覆盖配置:

- id: dsh-lan-access
  config:
    enabled: true
    host: 0.0.0.0
    port: 8790
    # 不填则每次启动随机生成密钥并打印访问链接
    # token: 'your-strong-static-key'
    sessionTtlMs: 2592000000
    # true 时拒绝设置、凭据、目录选择和模型探测等高风险 RPC
    blockPrivileged: false

启动后终端会打印类似:

dsh-lan-access: 手机访问入口: http://192.168.1.23:8790/?k=<访问密钥>

手机和电脑在同一局域网时打开这个链接即可。密钥会换成签名 cookie,HTTP 请求和 WebSocket 升级都会转发到当前 dsh Web 服务,工作区和会话保持一致。

全网卡监听时,如果电脑有 Wi-Fi、VPN、Docker 等多个网络地址,终端会列出候选入口,请选择与手机所在网络对应的地址。指定 host 时只打印实际绑定的地址;host: 127.0.0.1 的入口仅供本机访问。

关闭或重载插件时会断开现有 HTTP 流和 WebSocket 连接。客户端断开后会释放对应的上游连接;上游响应中途断开时,客户端会收到连接中断。

将 blockPrivileged 设为 true 可以进一步限制手机端权限,但手机端将不能修改 DSH 设置、管理凭据、选择本机目录或探测模型。

安全说明

/api 可以驱动 dsh 的 agent、bash 和文件工具,相当于在电脑上执行命令。中继只适用于可信局域网;不要直接暴露到公网。需要跨公网访问时,请在这个 loopback 服务外面使用 Tailscale Serve、Cloudflare Tunnel 等带身份认证的隧道。

测试

npm test