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

@riemannre3/dsh-roleplay

v0.1.7

Published

DSH-native Tavern character-card, opening and worldbook runtime.

Readme

DSH RolePlay

npm version GitHub Release License: MIT

DSH RolePlay 是 DeepSeek Harness 的角色扮演插件。项目方向是 Agent RolePlay;当前版本先解决 SillyTavern 角色卡及其常用生态在 DSH 中的导入和运行。

支持 Character Card V2/V3、多个开场、世界书、预设、Persona、Regex、EJS、MVU、TavernHelper 常用接口和卡内前端。

DSH RolePlay 的卡库、对话和卡内界面

卡库、对话和右侧功能页在同一个界面里。选卡、换开场、调世界书或查看脚本状态,不用离开当前对话。

Windows 安装

1. 准备 Node.js

需要以下任一 Node.js 版本:

  • Node.js 22.19.0 至 22.x
  • Node.js 24.13.1 至 24.x

在 PowerShell 中检查当前版本:

node --version
npm --version

如果命令不存在,先从 Node.js 官网 安装符合要求的版本,再重新打开 PowerShell。

2. 安装 DeepSeek Harness

npm install --global @deepseek-ai/[email protected]

安装完成后检查命令是否可用:

dsh --version

3. 安装 DSH RolePlay

dsh plugin --profile web add @riemannre3/dsh-roleplay

这条命令会把插件安装到 DSH 的 web profile。更新插件时再次执行同一条命令即可。

4. 启动 DSH Web

dsh web

保持这个 PowerShell 窗口运行,打开终端中显示的本机地址。

首次使用时:

  1. 打开“设置 → 模型”。
  2. 选择模型提供商,填写 API Key 和模型名称。
  3. 回到“对话”,进入左侧“酒馆”。
  4. 点击“导入”,选择 Character Card V2/V3 的 PNG 或 JSON。
  5. 展开角色卡,选择开场并创建新游戏。

进入对话后,页面右侧可以打开世界书、预设、Regex、前端、卡片和 Persona。

5. 启用与停用

在 DSH 设置中启用或停用 DSH RolePlay

打开“设置 → 插件 → DSH RolePlay”,可以随时启用或停用插件。停用后,“酒馆”入口和相关运行能力不会加载;已经导入的角色卡和会话数据仍会保留,重新启用即可继续使用。

6. 下载与帮助

下载最新版 · npm · 问题反馈

下载演示卡

安装插件后,可以下载这些 Character Card V3 PNG,直接从“酒馆 → 导入”开始:

来源、改作说明和许可证见 演示卡说明。

角色卡

角色卡详情页

角色描述、场景、首条消息、备选开场和扩展字段都可以直接查看和编辑。支持 Character Card V2/V3 的 PNG 与 JSON。

Persona

Persona 管理页

Persona 独立管理,可以在不同对话中切换,不必反复改角色卡。

世界书

世界书编辑页

世界书条目有触发词、插入位置、顺序和启用状态。角色卡自带的世界书会随卡导入,也可以单独调整。

预设与上下文

对话补全预设编辑页

预设按槽位编辑,角色描述、世界书、历史消息和系统提示的顺序可以直接调整。

一次真实请求的上下文装配结果

发送前可以检查本轮实际上下文,看到每一段内容来自哪里,以及最终使用的角色和 Token。

MVU、EJS 与卡内前端

卡内界面与前端运行面板

卡内 HTML、按钮和 iframe 可以直接显示在消息里。右侧前端页集中查看脚本、运行事件、MVU 状态和错误;EJS、Regex 与 TavernHelper 常用接口也由兼容层接入。

头图和各功能页来自不同演示内容,用来检查现代对话界面、复杂世界书、变量更新和卡内脚本。来源、修改内容和许可见 内容与许可说明。

现在支持

  • Character Card V2/V3 PNG 与 JSON
  • 多开场、世界书、预设、Persona 与 Regex
  • EJS、iframe、MVU 与 TavernHelper 常用接口
  • 卡内 HTML、交互按钮和独立前端运行状态
  • 会话保存、刷新恢复与重启恢复

更新

dsh plugin --profile web add @riemannre3/dsh-roleplay
dsh web

卸载

dsh plugin --profile web remove @riemannre3/dsh-roleplay

离线安装

从 Releases 下载 .tgz 文件:

dsh plugin --profile web add C:\Downloads\dsh-roleplay-<version>.tgz
dsh web

源码构建

git clone https://github.com/RiemannRe3/DSH-RolePlay.git
cd DSH-RolePlay
npm ci --legacy-peer-deps
npm run build
dsh plugin --profile web add .
dsh web

License

插件代码使用 MIT License。演示角色卡及截图中的卡片内容按 CC BY 4.0 使用,详见 THIRD_PARTY_NOTICES.md。