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-rich-msg

v0.1.2

Published

Rich content message renderer for DeepSeek Harness: declarative JSON rendered as themed, interactive message UI, with fence and tool-bridge channels.

Readme

dsh-rich-msg

DeepSeek Harness(DSH)的富内容消息渲染插件:把声明式 JSON 渲染成跟随宿主主题、可交互的消息内容。

功能

  • 双输出通道:Markdown fence(```rich-msg,兼容上游 rich-ui)与 Tool Bridge(rich_msg_publish 暂存 + 最终回答 ref 引用);两条通道共用同一渲染器。
  • 只渲染最终回答:推理过程、工具调用阶段、中间步骤中的内容不渲染;工具暂存内容只有被最终回答明确引用后才显示。
  • 组件:布局(stack/row/grid/card/carousel/divider/meta)、文本与 callout/code、实体列表与详情、图库与图片灯箱、卡片指标/进度/状态/表格(排序筛选)/图表(bar/line/area/donut/scatter)、流程 diagram、分层 layers、图片/视频/音频、popover/tooltip、输入/选择/滑块/开关/复选/单选/分段/tabs、条件渲染与安全表达式。
  • 交互:本地 set/toggle/reset、复制、打开链接、发消息回传;控件状态按会话持久化。
  • 主题:颜色/字体/圆角/阴影取自 DSH 主题变量,支持浅色、深色与 390px 移动端。
  • 安全:严格 Schema 校验、无 HTML/JS 执行、无 eval、URL 白名单、大小/深度/数量上限、会话隔离;交互只由用户触发。
  • 模型中立:不注入 system prompt、persona 或 skill,不规定模型何时/如何使用富内容。
  • 工具:rich_msg_validate(Schema 校验)、rich_msg_publish(校验并存入会话 Artifact,返回引用 id)。

许可证

MIT。

本项目基于 kyoukisu/dsh-rich-ui(MIT,Copyright (c) 2026 kyoukisu)的源码进行独立开发与重构,上游版权声明保留在 LICENSE;与上游作者无隶属、合作或背书关系。

图标来自 lucide(ISC)。

技术文档见 docs/。