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

@liaozhi/dsh-post-gen

v0.6.1

Published

DeepSeek Harness plugin: 海报设计工作流(风格库 + 点选),生图/编辑/多模态依赖 dsh-qw-tool 插件。

Readme

dsh-post-gen

DeepSeek Harness 插件:海报设计工作流。 它提供海报风格库(poster_gen_get_all_poster_skills / poster_gen_pick_poster_skill / poster_gen_use_poster_skill)与工作流剧本;实际生图 / 编辑 / 多模态分析依赖 dsh-qw-tool 插件的工具(qw_gen_image / qw_edit_image / qw_multimodal_chat)。

依赖

  • dsh-qw-tool(必须同装):提供千问图像工具并管理 API Key。 在「千问图像工具」设置里配好千问 API Key 并打开「启用」开关。
  • 在「海报设计」设置里安装至少一个海报 skill 并打开「启用海报设计」。

功能

| 工具 | 说明 | |---|---| | poster_gen_get_all_poster_skills | 查询风格库轻量目录(name/标题/说明/标签/预览图) | | poster_gen_pick_poster_skill | 候选风格卡片点选(库内模板含 {{styleBrief}}/{{requirements}} 占位符) | | poster_gen_use_poster_skill | 直接使用指定 skill:按 name 取回其生图提示词模板(跳过候选点选;设置面板「使用这个 skill」按钮复制的提示词即引导走它) |

工作流:查库 → 点选(或用户点名时用 poster_gen_use_poster_skill 直取)→ 用 dsh-qw-tool 的 qw_gen_image/qw_edit_image 生成、qw_multimodal_chat 看图分析。

skill 库面板:按"进入库的时间"倒序展示(越新越靠前,详情弹窗显示添加时间)、支持 模糊搜索(标题/名称/说明/标签,空格分隔多关键词 AND)、每行 3 个卡片;详情弹窗的说明区 限高滚动,标题旁「使用这个 skill」按钮一键把"直接使用该 skill"的提示词复制进剪贴板。

  • 插件自更新:设置面板标题行的更新条一键检查 npm 最新版并更新——host 半三级定位安装 profile(包根上溯 / link 开发副本按 realpath 反查 / 启动 argv 候选),先经 dsh plugin list --json 校验官方通道可见,再执行官方命令 dsh plugin --profile <name> add <pkg>@<latest>(见 src/self-update.ts);client 半经 client-hmr 就地热替换,host 半重启 DeepSeek Harness 后生效;link 开发副本同样可更新(官方 add 会把开发链接替换为 registry 版本)。

开发(HMR)

一次安装进 profile(client half 的发现依赖包名解析,必须安装而非 --patch 插路径):

dsh plugin --profile web add <本目录的绝对路径>

每个开发会话两个终端:

# 终端 1:构建监视器(tsc --watch + tsdown --watch,持续重写 lib/)
pnpm dev

# 终端 2:harness(叠加开发 overlay,重新启用 HMR 并监听 lib/)
dsh web --patch <本目录>/cordis.dev.yml --no-open

构建 / 发布

pnpm typecheck && pnpm build

files 白名单只带运行必需的产物(lib/index.js、lib/invariant.js、 lib/client.js、cordis.patch.yml、assets),发布前建议 pnpm pack 检查内容。 用户侧安装步骤同普通 DSH 插件:dsh plugin --profile web add dsh-post-gen(并确保同时安装 dsh-qw-tool)。