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

v0.1.1

Published

DSH 插件:在 VS Code 内嵌的 DSH Web 输入框里恢复 Cmd/Ctrl+C/V/X/A 复制/粘贴/剪切/全选(经扩展主机的原生剪贴板中转)。

Downloads

313

Readme

dsh-clipboard-bridge

在 VS Code 内嵌的 DeepSeek Harness Web 输入框里恢复 复制 / 粘贴 / 剪切 / 全选(Cmd/Ctrl + C/V/X/A)。

为什么需要它

DSH Web GUI 被 VS Code 扩展以跨源嵌套 iframe 嵌入时,VS Code 自带的剪贴板桥接(菜单快捷键 → 主进程 → document.execCommand)只能到达 webview 的顶层文档,伸不进嵌套 iframe,于是输入框的复制粘贴失灵。本插件在 iframe 内部拦截快捷键,并通过 window.parent 把系统剪贴板读写转发给扩展主机(vscode.env.clipboard,走 Electron 原生剪贴板)。

安装

dsh plugin --profile web add dsh-clipboard-bridge

重启 dsh web 后生效。通常由 DeepSeek Harness for VS Code 扩展在激活时自动安装,无需手动执行。

工作原理

插件(iframe 内) 拦截 Ctrl/⌘+C/V/X/A
   │  postMessage
   ▼
扩展外层 webview(转发)
   │  vscodeApi.postMessage
   ▼
扩展主机 vscode.env.clipboard.readText()/writeText()   ← Electron 原生剪贴板
   │  回传
   ▼
插件把文本经 slash/input-insert-text 插到输入框光标处 / 读选中文本

纯浏览器(顶层窗口,非 iframe)里插件保持休眠,不影响原生剪贴板。