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-creator

v0.1.0-rc.2

Published

中文内容复用包生成器:贴一个链接或一段素材,生成带来源引用的小红书图文、公众号长文、短视频脚本三格式内容包

Readme

dsh-creator | 中文内容复用包生成器

给内容创作者的 DeepSeek Harness 插件:贴一个链接或一段素材,生成带来源引用的小红书图文、公众号长文、短视频脚本三格式内容包——一次创作,三平台成品,本地导出,人工确认。

An out-of-tree plugin for DeepSeek Harness: paste a link or raw material, generate a Xiaohongshu post, an official-account article and a short-video script in one pack — with provenance, local export, human confirmation.

快速开始 · 功能 · 工作原理 · 内容包格式 · 安全与合规 · 许可证

快速开始

要求:DeepSeek Harness 0.1.0-rc.6+,机器上有 pnpm。

dsh plugin --profile web add dsh-creator
dsh web

装完打开 http://127.0.0.1:3080,设置 → 通用设置 → 内容创作。

功能

  • 两种素材输入:粘贴一个 URL(Host 侧抓取正文,SSRF 防护)或直接粘贴文本
  • 三格式一次生成:小红书图文(≤20字标题+300-600字正文+标签+配图建议)、公众号长文(# 标题+导语+小节+CTA)、短视频脚本(钩子+口播+分镜+字幕要点)
  • 生成在会话里:插件把结构化指令注入当前 DSH 会话,你看得见、改得了、按回车才执行——零自动发布、零账号授权、零后台任务
  • 来源引用(Provenance):原文快照 + URL + 抓取时间随内容包保存;生成指令明确禁止编造素材里没有的事实
  • 本地导出:一个素材 = 一个内容包目录,全部 Markdown/JSON 可迁移格式,写入工作区 content-packs/
  • 人工确认:导出由你点击,文件落盘为止——不碰任何平台 API

工作原理

粘贴素材 ──→ [读取] ──→ 素材预览
                              ↓
                    [发送生成指令]
                              ↓
              结构化指令注入当前 DSH 会话
              (可见、可改、回车确认)
                              ↓
                    宿主 Agent 生成三格式
                    (带标记协议输出)
                              ↓
                    [检测并导出]
                              ↓
              从会话历史提取标记块
              → 校验 → 写入 content-packs/

三步流程

  1. 读取素材:粘贴 URL 或文本 → 点「读取素材」→ 面板显示预览
  2. 发送生成指令:选格式(默认三选)→ 点「发送」→ 指令进入当前会话输入框 → 回车执行 → Agent 生成(约 30 秒)
  3. 检测并导出:等生成完成 → 重开设置 → 重填素材 → 点「检测并导出」→ 内容包写入工作区

标记协议

生成指令要求 Agent 在输出中用 HTML 注释标记三个格式块(dsh-creator:begin xhs / end xhs 等),插件按标记确定性切分+逐模板校验,不依赖自然语言解析。

内容包格式

一个素材 = 工作区 content-packs/ 下一个目录:

content-packs/2026-08-16-标题slug/
├── pack.json      # 结构化清单:来源、模板版本、生成时间
├── source.md      # 素材快照(provenance 唯一真相)
├── xhs.md         # 小红书:标题+正文+标签+配图建议
├── mp.md          # 公众号:标题+导语+小节+CTA
└── video.md       # 短视频:钩子+口播+分镜+字幕要点

全部 Markdown/JSON,不锁在 DSH 会话里——复制到任何地方都能用。

安全与合规

| 风险 | 对策 | |---|---| | SSRF | 仅 http/https;禁环回/内网/链路本地(解析后校验 IP);3s 超时;512KB 上限;重定向逐跳复验 | | 平台 ToS | 不做任何自动发布与账号授权;产物到本地文件为止 | | 抄袭与编造 | 来源快照随包;指令硬约束禁止编造;尾注引用对照 | | 插件权限 | 不申请文件系统之外的能力;写文件仅限 content-packs/ |

从源码构建

npm install && npm run build
# 本地试装: dsh plugin --profile web add file:$(pwd)

致谢

  • 皮肤插件 dsh-skin-center 提供了本项目的插件架构基础(DOM 盖章、自有路由、构建管线)。
  • DeepSeek Harness 的 "一切皆插件" 架构使本插件成为可能。

许可证

MIT。本项目与 DeepSeek 官方无隶属关系。