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-client-ui-latest

v0.1.0

Published

DSH web client plugin: a "最新 / Latest" button that jumps to and follows the latest conversation (and its newest message) with one click.

Readme

dsh-client-ui-latest

DSH(DeepSeek Harness)Web 客户端插件:「最新」按钮 — 一键跳转并追踪到最新对话

点击「最新」后:

  • 如果当前打开的不是最新对话,自动打开最新会话(按最近更新时间排序);
  • 把会话滚动到最新一条消息,并在随后的 8 秒内持续追踪(新消息流式输出时自动钉在底部);
  • 用户向上滚动(滚轮向上 / 拖动滚动条)会立即解除追踪;
  • 当前会话就是最新对话时,点击只回到最新消息。

界面入口

| 位置 | 行为 | | --- | --- | | 会话标题栏操作区「最新」按钮 | 始终可用;有更新的对话时显示提示圆点与「最新对话:<标题>」提示 | | 输入框工具行(发送键左侧)图标按钮 | 仅在存在更新的对话时出现,点击跳转 |

原理

DSH 的双面客户端插件(dsh.client 声明):

  • node halflib/index.js):空的 cordis apply,让插件进入 Loader 行;
  • browser halflib/client.js):通过 window.__ModuleLoader__.load({ id, factory }) 注册, 导出 apply(ctx)injectdsh-client-modules 的 node half 扫描到 package.jsondsh.client 声明后,将 exports["./client"] 作为 /plugins/<id>/client.js 提供给浏览器,并注入到 window.__DSH_BOOT__

UI 复用会话标准插槽(由 @deepseek-ai/dsh-client-ui-conversation 声明):

  • conversation.session.header.actions — 标题栏操作区;
  • conversation.input.right — 输入框工具行右端。

追踪实现:监听 [data-conversation-scroll] 滚动容器(聊天视图自带的滚动视口), 用 ResizeObserver 在内容增长时钉到 scrollHeight,滚轮上滑或滚动条上拖即解除。

安装(本地 profile)

# 1. 安装到 web profile(推荐用 dsh plugin 转发 pnpm)
dsh plugin --profile web add file:C:/path/to/dsh-client-ui-latest

# 2. 在 ~/.dsh/profiles/web/cordis.patch.yml 中加入浏览器插件行(见下)
# 3. 重启 dsh web 生效(GUI 设置页 → 运行时依赖 → 重启 dsh)
# ~/.dsh/profiles/web/cordis.patch.yml
- insert:
    - id: ui-latest
      name: dsh-client-ui-latest

发布到 npm

# 1. 登录 npm
npm login

# 2. 发布(建议先改成正式包名,如 @your-scope/dsh-client-ui-latest)
npm publish

# 3. 用户安装
dsh plugin --profile web add @your-scope/dsh-client-ui-latest

发布清单(package.json 关键字段):

| 字段 | 说明 | | --- | --- | | exports["./client"] | 浏览器 half 入口,dsh-client-modules 按此路径提供 /plugins/<id>/client.js | | dsh.client.platform | 必须是 "web" 才会进入浏览器插件清单 | | dsh.client.inject | 所依赖的 @deepseek-ai/* 客户端包(进入 boot 图的注入边) | | peerDependencies | 只声明 peer 依赖,不打包任何 @deepseek-ai/* 依赖 |

注意:dsh.client 包必须保持零 runtime dependencies —— 浏览器 half 只允许 require 平台种子模块(reactreact/jsx-runtime@deepseek-ai/dsh-client-ui-primitives 等),其余能力通过 ctx 服务(slots / sessions / locale)获取。