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

@khorsheed/dsh-quote

v0.1.5

Published

Quote anything: selecting text pops an action menu — quote into the current session (to the composer), quote into a side chat (as a side-chat ref), copy; other plugins register their own action rows through the ctx.quoteActions registry, and the side-chat

Downloads

908

Readme

@khorsheed/dsh-quote

English | 中文

看到哪句想追问,选中它,一键引用进输入框。

想拿助手回复里的一段话、文件预览里的一段内容来追问,以前得手动复制、切回输入框、粘贴,再写一句「你上面说的这段……」。装上引用,在 DSH 里选中任意一段文字,旁边就会浮出一个小菜单:点「引用到当前会话」,这段话带着出处进了输入框,你接着写问题就行;它不会替你发出去。

能做什么

  • 选中就能引用:助手回复、文件预览、灵感空间的文章里,选中文字就出菜单;在输入框里选字不会打扰你。
  • 自带出处:从文件里引用会写上文件名,从文章里引用会写上文章标题,agent 一看就知道你在说哪段。
  • 不会弄乱你写了一半的话:输入框里已经有字,引用接在后面另起一段,不覆盖;引用后面另起一行,接着打字就是你的问题。
  • 点一下核对引了什么:引用在输入框里是个小标签,点开能看全文。
  • 发出去也好认:发出的消息里,引用显示成一张带出处的卡片。
  • 顺手复制:不想引用,点「复制」直接拿走原文。
  • 别的插件也能加选项:装了灵感画布,菜单里会多一个「存为画布卡片」;装了灵感空间,在文章里会多一个「记笔记」。

安装

在 DSH 的「插件 → 添加插件」里输入下面的包名,点安装:

@khorsheed/dsh-basic

引用会跟着「基础体验」一起装好。装完打开任意会话,选中一段文字试试。

已知限制

  • 引用的是纯文字:表格、代码块会变成普通文本,也不能跳回原文的位置。
  • 输入框里的引用标签是一整块,不能逐字改,按退格整块删掉。
  • 页面滚动或缩放时菜单会先收起,重新选一下就好。

Compatibility

需要 DSH 0.1.5-rc.1 或更新版本,已在 0.2.1-rc.1 上验证。

给开发者

  • 选区菜单的工作方式、其他插件往菜单里加选项的接口(ctx.quoteActions)、各宿主版本上的降级,见完整参考。
  • 也可以单独安装:在「添加插件」里输入 @khorsheed/dsh-quote,或 dsh plugin --profile web add @khorsheed/dsh-quote,重启后生效;本插件不存任何数据,卸载无残留。
  • 隶属 dsh-plugins,问题与贡献请到该仓库;变更见 CHANGELOG.md。