dshbase

插件目录 / UI & Skins / dsh-deck-builder

dsh-deck-builder

已验证 · 实测可装 Blaczz

✓ 持续维护 基于 2 个官方 DSH 包 纯 TypeScript

查看 GitHub ↗ ← 返回插件目录

1Stars
0Forks
0未关闭 issue
TypeScript语言
2026-08-15最近推送
跨平台平台

功能简介

Markdown转HTML演示文稿插件,支持主题和键盘导航

✅
我们的评价
可用 — 实测通过,早期项目

Markdown转HTML演示文稿插件,支持主题和键盘导航 实测能干净安装、正常启动。早期项目,但功能可用。

「已验证」表示我们的自动化 CI 在干净 profile 里实际执行了 dsh plugin add 并启动成功——仅此而已。功能描述与版本兼容性均为作者声明。这不是安全审计,也不代表对第三方代码的背书。

README

dsh-deck-builder 📽️

A DeepSeek Harness tool plugin: convert Markdown into a self-contained HTML presentation (slides) — themes, keyboard navigation, zero dependencies, zero core changes.

English | 简体中文

A DeepSeek Harness (DSH) pure tool plugin that registers the deck_build tool, letting the agent turn any Markdown (research reports, meeting notes, course outlines…) into a single-file HTML deck the user opens directly in a browser — ←/→ to navigate, f for fullscreen, one slide per page when printing. All generation logic is zero-dependency pure functions, and the output is fully self-contained (inline CSS/JS, no external assets, no network).

✨ Features

  • deck_build tool: markdown → HTML slides, returns output path / slide count / bytes.
  • Three themes: deepseek / light / dark, CSS variables inlined.
  • Smart splitting: splits on --- / *** / ___ rules, falling back to H1/H2 headings when no rules exist.
  • Full Markdown rendering: headings, paragraphs, ordered/unordered lists, code blocks, blockquotes, bold/italic, inline code, links, images.
  • Zero dependencies, zero core changes: pure ctx.tools.register, no client bundle, no network, no external assets.
  • Pure-function tested: splitting / rendering / escaping / self-containment all covered by unit tests.

📦 Install

Prereqs: DSH (dsh web works), Node ≥ 22.19, pnpm.

# From GitHub (prebuilt lib/ committed)
dsh plugin --profile web add "github:Blaczz/dsh-deck-builder#main"

# Local directory
cd dsh-deck-builder && npm install --legacy-peer-deps && npm run build
dsh plugin --profile web add ./dsh-deck-builder

Restart dsh web after install, then ask the agent to "turn this into slides" or have it call deck_build directly.

🎬 Usage

In a conversation, ask the agent to build a deck:

Turn this research report into slides using the deepseek theme:
<markdown content>

The agent calls deck_build, producing deck-<title>.html. Open it and use ←/→ or space to navigate, f for fullscreen, and print/export to PDF for one-slide-per-page.

Or call the tool manually:

{
  "markdown": "# Title\nbody\n\n---\n\n# Slide 2\nmore",
  "title": "My Deck",
  "theme": "deepseek",
  "outputPath": "slides/my-deck.html"
}

🛠️ Development

npm install --legacy-peer-deps
$env:DSH_NODE_MODULES = "$env:USERPROFILE\.dsh\profiles\node_modules"
npm run setup:dsh-workspace
npm run verify                          # ★ one-shot gate: clean + typecheck + test + build
npm test                                # vitest (19 tests: splitting / rendering / self-containment / themes / escaping)

Layout

dsh-deck-builder/
├── package.json            # dsh.bundle.patch (pure tool plugin, no client half)
├── cordis.patch.yml        # bundle patch layer
├── scripts/                # build (tsc only) / clean / setup-dsh-workspace / verify
├── src/
│   ├── deck.ts             # ★ pure generation: splitSlides / renderBlocks / renderDeck
│   ├── theme.ts            # theme tokens (light/dark/deepseek)
│   └── index.ts            # host half: registers the deck_build tool
└── tests/                  # deck generation + manifest contract

🧩 Ecosystem positioning

  • Fills a gap: the DSH Slides/PPT category previously had only dsh-openmaic (teaching) and dsh-k12-lesson-builder; a general "Markdown → presentation" tool was missing, even though mdPresenter proved the demand.
  • Technical route: pure tool plugin (ctx.tools.register + defineTool), reusing the self-contained-HTML artifact shape of hccccc01333/dsh-report-html.
  • Zero core changes: single-file output + zero-dependency pure functions + ctx.effect registration.

⚖️ License

MIT © 2026 Blaczz. An independent community plugin, not affiliated with DeepSeek Harness.

安装

🧩 让 Agent 自动装(推荐)

装一次目录插件,之后本站所有插件都能让 DeepSeek Harness 自动找、自动装:

dsh plugin add dshbase-catalog

然后对 agent 说「帮我装 dsh-deck-builder」,它会在目录里找到并自动安装。文档:dshbase-catalog · 已验证场景包。

该插件是 GitHub 源码(未发 npm)——直接从仓库装:

Web profile:

dsh plugin --profile web add github:Blaczz/dsh-deck-builder

Headless(CLI)profile:

dsh plugin --profile headless add github:Blaczz/dsh-deck-builder

实测报告

验证通过:从 GitHub 源码完成 L1 安装 + L2 加载 + L3 运行(dsh 0.1.0-rc.6)。

使用场景

改变 dsh 的外观或交互方式——一套主题、皮肤或新面板,重塑工作区。

适合谁

在 web UI 里一待几小时、想让它按自己的习惯好看又好用的人。

二次开发建议

皮肤、面板和主题 token 是扩展点——写新皮肤、加面板,或与上游配色同步 token。

安全:尚未扫描——我们的每日静态扫描将很快覆盖它。

分享徽章

UI & Skins 里更多

浏览全部 7797 个插件 →