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

@shuji0o0/plugin-scaffold

v1.0.0

Published

DeepSeek Harness plugin generator: a model tool plus a sidebar entry that generate Cordis plugin code skeletons.

Readme

plugin-scaffold

DeepSeek Harness(DSH)的「插件生成器」插件:一个模型工具 + 一个侧边栏入口,用来生成符合 cordis-plugin-development 规范的 Cordis 插件代码骨架。

功能

  1. plugin_scaffold 模型工具(host 端注册) 在对话里让 agent 按「名称 + 平台 + 类型」生成插件骨架代码,可直接用于 cordis_define。

  2. 侧边栏「插件生成器」入口(client 端 DOM 注入) 排在「技能中心」下方,与任务看板 / SSH / 技能中心风格一致;点击打开浮层,产出可粘贴到对话里的提示。

安装

发布到 npm 后:

npx -y @deepseek-ai/dsh plugin --profile web add @shuji0o0/plugin-scaffold

若 dsh 提示 declares no dsh.bundle,说明装到了旧版本,请用 npm view @shuji0o0/plugin-scaffold version 查看版本后显式指定版本号安装。

安装完成后重启 DSH,侧边栏会出现「插件生成器」入口,模型工具 plugin_scaffold 也会生效。

使用

方式一:对话调用

直接说「用插件生成器生成一个名为 xxx 的 tool 类型 host 插件」,agent 会调用 plugin_scaffold 工具生成骨架。

方式二:侧边栏入口

点击侧边栏「插件生成器」→ 填写插件名 / 平台 / 类型 → 「生成提示」→ 复制提示粘贴到对话。

生成的骨架类型

| kind | 生成内容 | 平台 | | --- | --- | --- | | basic | 空骨架(服务 / 事件占位) | host | | tool | 注册模型工具(harness.registerTool) | host | | event | 监听事件(ctx.on) | host | | ui | 注册 Client Slot UI(slots.inject + React.createElement) | client | | rpc | Client→Host 通信(harness.handle + host.call) | both |

目录结构

plugin-scaffold/
├── index.js           # host 端:注册 plugin_scaffold 工具
├── client.js          # client 端:侧边栏入口 + 浮层(__ModuleLoader__ 工厂格式)
├── cordis.patch.yml   # dsh bundle patch:挂载 host 行
├── package.json
├── README.md
├── README.zh-CN.md
└── LICENSE

许可

MIT