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-vditor

v1.1.0

Published

Vditor IR Markdown 输入框接管 DSH 聊天输入卡片,附带附件路径胶囊、动态 placeholder 与用户消息 Markdown 渲染(KaTeX/Mermaid/代码块增强)

Readme

dsh-vditor

npm version License: MIT Vditor 3.11.3

让 DSH 的聊天输入更顺手——用 Vditor 即时渲染输入框,把你想说的写得漂亮、看得清楚。

预览

欢迎页

欢迎页

基础功能演示:代码块高亮、KaTeX 数学公式、Mermaid 图表

基础功能演示

附件路径胶囊

文件胶囊

体验亮点

边写边渲染的输入框

  • Markdown 所见即所得:代码块高亮、KaTeX 数学公式、Mermaid 图表即时渲染
  • 斜杠命令:输入 / 快速唤起 /goal /compact /permission /plan /export /feedback /model,实时过滤
  • @ 引用文件:输入 @ 在工作区文件里实时搜索、一键插入,Windows 路径正确渲染

附件与图片

  • 附件路径胶囊:选择文件后以胶囊形式展示,中文文件名与 Windows 反斜杠路径均正确显示(乱码与转义问题已修复),发送时路径自动附入消息
  • 粘贴图片自动保存:剪贴板图片直接落盘到工作区,生成路径胶囊

更完整的消息展示

  • 完整 Markdown 渲染:用户消息里的代码块带高亮、语言徽标和复制按钮,公式、图表正常显示
  • 主题自适应:跟随亮色 / 暗色主题自动切换

自带完整工具行

  • 模型选择器:切换模型与推理等级,直接写入会话
  • 权限菜单:切换审批 / 访问模式(含 Full access 二次确认)
  • 命令目录:一键唤起 /goal /compact /permission /plan /export /feedback /model
  • 上下文用量环:实时显示上下文占用百分比与系统/工具/消息构成
  • 动态 placeholder:根据会话状态智能切换提示文案(含计划模式、被阻塞原因)

安装

版本要求:DSH ≥ 0.1.2-rc.1(conversation.composer.bar 重构为整个常驻输入区之后的客户端 API)。

通过 dsh plugin 命令(推荐)

dsh plugin --profile web add github:zhy201810576/dsh-vditor

通过 npm 安装

在 profile 目录(如 ~/.dsh/profiles/web):

pnpm add dsh-vditor

然后在 profile 的 package.json 的 dsh.profile.bundles 数组中加入 "dsh-vditor",重启 DSH 生效。

从本地源码挂载

在 profile 目录(如 ~/.dsh/profiles/web):

pnpm add "file:path/to/dsh-vditor"

然后在 profile 的 package.json 的 dsh.profile.bundles 数组中加入 "dsh-vditor",重启 DSH 生效。

注意:Vditor 从 https://unpkg.com/[email protected] 动态加载,运行时需要联网。

说明

  • 附件只引用路径、不拷贝文件内容,模型会自行读取文件。
  • 若同时启用本插件的动态(会话内)版本,会与正式版重复注册,请停用其中一个。

License

本项目遵循 MIT License。