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

@zhaeng/dsh-fs-ssh

v0.1.0

Published

SSH/SFTP filesystem provider for DeepSeek Harness

Readme

@zhaeng/dsh-fs-ssh

English | 中文

@deepseek-ai/dsh-fs 能力在 SFTP 之上的 Service Provider:SshFileSystem(默认导出)经由共享的 ctx.ssh 连接池在单台远程主机上实现 FileSystem 操作。@zhaeng/dsh-fs-routing 为每个 host key 构造一个实例并把 ssh:// 工作区路由过去;该类也可通过 static inject = ['ssh'] 独立挂载。

Behavior

  • 解析 —— resolve(path, { cwd }) 依次从 ssh:// cwd、ssh:// 路径、构造期 host hint 取主机,以 profile 远程 cwd 为基准解析远程路径并在主机上规范化;规范后的远程路径即不透明的 targetKey。
  • 每操作一条 SFTP 通道 —— 每次 stat/read/write/list 都在池化客户端上开启 SFTP 会话并在操作结束后关闭,调用之间不残留通道状态。
  • 并发写安全 —— 写与编辑按目标路径经内部锁链串行;writeText 遵守 FsWriteIntent 期望,editText 以与本地后端相同的输出词表做字面字符串替换。
  • 错误映射 —— SFTP 失败映射为 FsError 码(缺失路径为 FS_NOT_FOUND,其余 FS_IO_ERROR),消息携带 display path,工具层的渲染与本地失败一致。

Model Experience

Indirectly, through dsh-tool-fs and dsh-tool-fs-search, which render remote reads, writes, edits, and listings exactly as local ones.

KV Cache effect

No direct invalidation; the named consumers own any request-prefix changes.

Known Limitations and Deferred Work

  • 不受限 —— 远程 SSH 账号的权限是唯一边界;本地沙箱栈无法约束 SFTP 操作,对其直接旁路。
  • 无分块流 —— streamText 整文件读取并作为单个 chunk 产出;增量 SFTP 流待有消费者需要时再实现。
  • 无符号链接保留复制与目录移动 —— 写入走原子整文件替换;listDir 之外的递归操作属于调用方。