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-comfyui-rp

v0.2.10

Published

ComfyRP Bridge:装在 DSH 里的本地文生图自动化桥。捕获会话正文 → 提示词会话 → 本地 ComfyUI 出图 → 图片回到右侧栏 / 悬浮球 / 图库。不依赖外部桥进程,也不调用 LLM。

Readme

ComfyRP Bridge

装在 DSH 里的本地文生图自动化桥。

DSH 会话 → ComfyRP Bridge → 提示词会话 → 本地 ComfyUI → 图片回 DSH

自动把会话正文送去写成提示词,再调本机 ComfyUI 出图,最后把图片送回右侧栏、悬浮球和图库。聊天、出图、看图在同一个界面里完成。

全屏看图:图片和聊天并排

安装

需要本地 ComfyUI,DSH 0.2.x。

dsh plugin --profile web add dsh-comfyui-rp

装完重启 DSH。插件市场里也能装;还没发 npm 时用仓库地址:

dsh plugin --profile web add git+https://github.com/bmhty123/dsh-comfyui-rp.git

改代码用本地目录装法:node tools/install.mjs --apply(卸载加 --uninstall)。

装好打开右侧栏,在「开始」里点 ComfyRP。

第一次使用

  1. 设置 → ComfyUI:填地址(默认 http://127.0.0.1:8188),点「测试连接」。
  2. 工作流:导入 ComfyUI 的 API JSON →「解析预览」→ 确认正面 / 负面 / 分辨率 / 输出节点 → 保存 → 启用。
  3. 设置 → 正文来源 / 提示词来源:默认跟随当前会话,也可以指定别的会话。
  4. 概览:打开「自动投递正文」,需要自动出图再打开「自动出图」。
  5. 先手动试一次:填正文或附加消息,点「投递最新正文」。

概览(左)和工作台(右)

能做什么

  • 自动出图:捕获正文 → 解析提示词 → 出图 → 归档,全自动;投递和出图可分开开关。纯黑图会自动换种子重生成,进行中可以随时点「停止自动补图」。
  • 投递:正文来源和提示词来源分开,可指到另一个会话甚至另一台 DSH;附加消息放正文最上面或最下面,投递成功后自动留空。
  • 看图:右侧栏面板、全屏、悬浮球、悬浮图片框。翻页、下载、收藏、刷新、删除、圆角;自己拖过 / 缩过之后,切图不再改回初始大小。
  • 跟图:滚动正文自动切图,连续图按段落比例拆位置,可切光标跟图、手动偏移、清空定位。
  • 工作台:三种提示词格式(内置 / 全部匹配 / 自定义标签)、多套正负面、标题、原文锚点、分辨率、连续图、LoRA、随机种子、干跑。
  • 图库:当前会话 / 全部 / 收藏夹 / 回收站,收藏是复制副本,删错了能还原。
  • 工作流与 LoRA:导入 ComfyUI API JSON,自动识别正面 / 负面 / 分辨率 / 输出节点,支持占位符和节点映射;LoRA 支持堆 / 单 / Power / Stacker / Tag,可改名、调强度、存回工作流。

工作流(左)和图库(右)

常用操作

  • 让下一轮自动出图:概览打开「自动投递正文」+「自动出图」,保持右侧栏或悬浮球开着。
  • 临时手动出一张:悬浮球 → 铅笔菜单 →「请求生成」,读来源会话的最新正文。
  • 只重做一张:图片框 → 重新生成 →「仅此图」;整套重来选「全部」。
  • 找图:图库 → 当前会话 / 全部 / 收藏夹 / 回收站。
  • 一键找菜单:在图片上单击一下,四角按钮和铅笔菜单一起亮出来,5 秒没操作自动收回;再点铅笔就能收起。
  • 调图片框大小:鼠标滚轮,或触屏双指捏合(以两指中点为中心放大缩小)。
  • 找对会话:Tavern 里一个角色下的会话标题都叫同一个名字,下拉会给同名的补「首条消息 · 条数」;只有人物卡开场(还没写正文)的会话会被拦下,不会把开场白当正文投出去。
  • 会话没更新:概览右上「检测」,或设置里会话旁的「刷新」。
  • 清理跟图定位:图片框 → 更多 →「清空定位」,只清当前会话,之后按比例重新分配。

说明

  • 图片按当前聊天归档;换正文来源不改变图片归属。
  • 数据存在 DSH 数据目录下,设置里能看到和修改。
  • 悬浮球和图片框限制在 DSH 窗口内;右侧栏默认收起,从会话标题栏展开。
  • 远程会话要求两台 DSH 都装本插件。
  • 提示词质量取决于你选的提示词会话,推荐搭配 anima-tagger(本插件不包含、不修改它)。

许可

MIT License,见 LICENSE。ComfyUI 节点识别思路参考了 dsh-tavern-image,完整声明见 THIRD_PARTY_NOTICES.md。