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-session-harbor

v0.2.13

Published

Manage local and SSH device sessions from one DeepSeek Harness sidebar.

Readme

Session Harbor

English · 简体中文

本机与 SSH 远端会话放在同一工作台的「已置顶」「活跃」「工作中」「已完成」四组中。点击远端行,在当前主区域打开该设备的原生会话界面。本机侧栏和外壳保留。

使用

  • 打开「设置 → Session Harbor SSH」,从本机 SSH 配置选择主机或输入 user@host。这里可以重连、断开和移除已保存的设备。SSH 认证使用本机 OpenSSH 配置和 SSH agent,远端需要安装 DSH。
  • 在同一份会话列表中直接切换本机和远端会话。分组折叠、整行打开和键盘操作适用于两种会话。时间显示在会话标题右侧,远端会话的主机名显示在右上。
  • 「新会话」沿用当前浏览器上一次成功创建会话所用的可用设备和项目,直接打开原生输入区。设备支持本机默认模式时,沿用本机 DSH 设置。
  • 「添加工作区」在本机和 SSH 设备上共用双栏目录弹窗。可以使用面包屑或直接输入路径,查看隐藏文件夹,并在所选设备上新建文件夹。
  • 原生正文、输入、模型、附件、审批与用户问答由该设备独立的官方 DSH Client 运行时装配。界面语言跟随本机工作台,会话操作发送到所属设备。
  • 置顶使用所属设备的 DSH 状态,完成使用该设备插件的持久状态。等待审批或问答的普通会话列在「活跃」组顶部,该组标题会显示待操作数量。普通运行结束保留两秒缓冲,再回到「活跃」组。「已置顶」和「已完成」优先于「工作中」。
  • 会话菜单提供打开、置顶、完成、重命名、分叉、复制 ID 与归档。离线写操作禁用。项目管理在独立入口中进行,会话右键菜单不提供删除项目操作。
  • 「已置顶」和「活跃」在列表上方,「工作中」和「已完成」固定在底部。「已置顶」无会话可显示时隐藏。各组可以折叠,行数较多时在组内滚动。「工作中」从空组变为有会话时自动展开,「已完成」默认收起。深浅主题使用宿主主题变量,减弱动态效果时停止状态图标旋转。底部按钮可切回原生侧栏。

版本与依赖

旧版「T3 会话侧边栏」使用另一包名。升级时先从 DSH 插件管理器卸载旧版,再安装 Session Harbor。原有会话、置顶、已完成状态和 SSH 主机设置可继续使用。

本版本为 0.2.13,支持 DSH 0.2.2-rc.3 和 0.2.2-rc.5。工作台会为已就绪的 SSH 连接在后台初始化远端客户端,切换会话时复用该客户端。侧栏使用宿主导航下方的可用高度,空间不足时切换为整份列表滚动。活动远端会话接收其自己的快捷键,左栏继续由本机窗口控制。

插件启动后会自动尝试连接在「设置 → Session Harbor SSH」里保存的设备。启动远端 DSH 进程前,缺少 Session Harbor 时安装本机版本,远端较旧时升级到本机版本,远端同版或更新时跳过安装。遇到旧版「T3 会话侧边栏」时,先安装并启用 Session Harbor 再移除旧包,安装失败时保留旧插件。远端需要 Node.js 和 pnpm 或 npm,且其 npm 源需提供本机插件版本。安装失败时 SSH 设置会显示提示,连接仍会继续。远端原生会话需要与本机匹配的 DSH 版本。

侧栏保留这些设备的最近一次同步数据,移除设备时清除相应的本地缓存。标记已完成或重新激活会在会话所属机器上使用同一 DSH 数据目录的 Session Harbor 实例之间同步。该设备上另行运行的 DSH 进程需要重启才能加载刚安装的版本。

远端首次安装时,既有非空、未归档、未运行的普通会话会执行一次完成状态迁移,已有迁移记录会保留。置顶与完成横跨两个存储服务,失败后重新读取实际状态。对于远端已创建而回包丢失的跨连接重试,无法保证分布式 exactly-once。

构建与验证

在仓库根目录运行以下命令。

npm --prefix dsh-session-harbor ci
node tools/build-client.mjs
node tools/build-client.mjs --check
node --test dsh-session-harbor/*.test.js

构建生成包内的 client.remote-runtime.js。测试覆盖连接世代、协议、认证资源路由、存储隔离、状态合并、创建幂等、导航生命周期及快捷键所有权。旧 jsdom 行结构脚本已停用。它曾把远端点击无效果当成成功,无法验证当前原生运行时。

已在现有 Desktop 0.2.2-rc.5 工作台通过只读探针加载 wsl 和 2060 各一条已有会话,确认两台设备的原生对话与可编辑输入框均挂载。发送目标使用官方客户端和隔离传输验证。真实远端消息、审批、附件以及右栏的视觉效果仍需对应操作验收。

更新本机已加载的 Host 模块时,按插件管理器的应用结果重启 DSH。通过当前页面的 Client Inspect 可以确认已连接工作台上的入口注册。

完整设计与验收范围见远端会话设计。

许可

分组规则与会话行呈现参考 T3 Code 的 095611d1 版本(MIT,© T3 Tools Inc.)。本仓库使用 MIT 许可。DSH 原生组件在运行时从已安装的可信官方资源加载。T3 Code