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

@szhl/dsh-tencent-docs

v1.0.1

Published

DeepSeek Harness plugin: connect Tencent Docs end to end — a composer menu row with QR authorization and a document picker, plus the official Tencent Docs MCP server, so the model gains mcp__tencent-docs__* tools.

Readme

@szhl/dsh-tencent-docs

腾讯文档 / Tencent Docs —— 一次授权,两件事:输入框里能选文档并插进草稿,模型能真正读到那份文档。

安装

dsh plugin --profile desktop add @szhl/dsh-tencent-docs

--profile 换成你自己的 profile 名(桌面版是 desktop);dsh plugin 会把后面的参数转交给 profile 里的 pnpm。装完重启 DSH 生效。

一个包,两行配置

| 行 | 作用 | | --- | --- | | tencent-docs-connector | 面板、二维码授权、文档列表/搜索、@ 提及源、登出;把授权令牌写入 $DSH_HOME/tencent-docs-token | | tencent-docs-mcp | 挂载官方腾讯文档 MCP server(https://docs.qq.com/openapi/mcp),从同一个令牌文件读 Authorization,给模型 mcp__tencent-docs__* 工具 |

两行必须在一起才完整:connector 往草稿里放的是文档标题,模型靠 mcp__tencent-docs__* 的 manage.search_file 用标题反查出 file id,再去读内容。

用法

  1. 输入框点「+」→「腾讯文档」→ 面板内用微信/QQ 扫码授权(也可以在面板里手动粘贴 token)。
  2. 授权后搜索或从最近列表里选一个文档,它会以 腾讯文档《标题》: 的形式进入草稿;用 @ 触发源则插入带文档名的引用胶囊,提交时序列化成 file id。
  3. 面板头部的「已连接」胶囊可点:第一下上膛、第二下登出(rail 里也有同名按钮)。登出会删掉令牌与在途授权码。

备注

  • 令牌文件位置与手工写入方式: printf '%s' '<TOKEN>' > ~/.dsh/tencent-docs-token && chmod 600 ~/.dsh/tencent-docs-token (也可在 https://docs.qq.com/open/auth/mcp.html 自助获取,免费额度 2000 次/天。)
  • MCP 那行在组合加载时读取令牌,所以换账号/登出后需要重载 DSH 才会作用到模型侧工具。
  • failOnStartupError: false 是有意的:令牌失效只该损失工具,不该拖垮整个启动(启动失败会走恢复路径,把所有第三方 bundle 一起禁掉)。
  • 需要 @deepseek-ai/dsh-client-ui-conversation。

宿主路由

GET /tencent-docs.state、POST /tencent-docs.auth、POST /tencent-docs.auth/poll、POST /tencent-docs.files、POST /tencent-docs.token、POST /tencent-docs.signout、POST /tencent-docs.diag。全部经 ctx.connection.requestRejection 的信任围栏,只应答本机操作者自己的浏览器。

许可

MIT © 2026 suzhilin