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

@vibe-x/dsh-html-workbench

v0.3.0

Published

DeepSeek Harness 插件:在右侧栏预览并可视化编辑 agent 生成的 HTML(复用/拉起本地 html-workbench 服务)。

Downloads

745

Readme

HTML Workbench DSH Plugin

在 DeepSeek Harness(DSH)的右侧栏预览并可视化编辑 agent 生成的 HTML 文件。它复用(或拉起)HTML Workbench 的本地 Python 服务,把 GrapesJS 编辑器内嵌到页面 iframe 里,直接改文案/样式/图片、切 Preview 验证交互、Save 写回磁盘。

只托管源码,不做编译/打包。插件通过 shell 服务拉起仓库里已生成的 runnable workbench(skill/html-workbench/scripts/workbench.py,由根目录 npm run buildservice/ 生成)。

目录结构

dsh-plugin/
├── src/
│   ├── host.js      # Host 半函数体(返回 { inject, apply })——动态与静态共用
│   ├── client.js    # Client 半函数体(返回 { inject, apply })——动态与静态共用
│   └── index.js     # 静态 Host 入口:读取 host.js 并 re-export
├── dsh.plugin.json  # 插件清单
├── cordis.patch.yml # 静态装载的 profile 补丁(--patch)
├── package.json
└── README.md

src/host.jssrc/client.js 里的 return { ... }唯一事实源——同一段函数体同时服务两种装载方式。

装载方式

动态热装载(开发期热调试,当前使用中)

src/host.js / src/client.js 的文本分别作为 code.host / code.client 提交给 cordis_define,再 cordis_run。零停机,源码只存在于运行中的 DSH 进程里,进程重启后需重新装载。

host.js 默认用本机仓库内的 skill/html-workbench/scripts/workbench.py 拉起服务。

静态装载(后续发布 NPM 时再接入)

cordis.patch.yml + package.jsondsh.bundle 已就绪;Client 半的静态 bundle(window.__ModuleLoader__.load)尚未接入,动态 Client 已可用。

服务生命周期(副作用管理)

  • 注册时apply 里异步 startService(),先 health 探测 4317;已在运行则复用(不认领),否则 shell.start 后台拉起 workbench.py serve
  • 卸载时ctx.effect 的 disposer kill() 掉本插件自己启动的那个进程;复用的服务不误杀。

RPC 接口(Client → Host)

| method | 入参 | 返回 | | -------- | ----------- | -------------------------------------- | | list | — | { ok, running, owned, port, assets } | | status | — | { ok, running, owned, port, info } | | open | { file } | { ok, url, reused, port } |

assets 来自监听 tools/result,收集 write/edit 工具产出的 .html 文件路径。