mujingquan835/Dawang-ppt
About
极速纯 Node 中文演示组版引擎 · Sparkline/占比/漏斗/架构等现代 Web UI 组件一键直出 · 每页 4 套零丢内容版式与 11 套配色一键切换 · 离线 Studio 工作台与原生可编辑 PPTX
AI & Machine LearningMeasured star growth
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- 0
- in 1 month
- Collecting history
Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.
README.en.md
OriginalDawang-PPT
Pure-Node Fast Presentation Engine · Modern Web UI Aesthetics · Zero-Lag Offline HTML Studio · Native Editable PPTX Export
Turn raw notes, spreadsheets, screenshots, and business reports into a single self-contained offline-editable HTML Studio and a native editable PPTX in seconds. AI automatically composes modern Web UI components on one click, and recipients can open the delivered HTML directly in Chrome/Edge with zero installation to edit text, drag/align elements, switch between 4 zero-loss layouts per slide or 11 palettes in one click, and export to PPTX/PDF/PNG.
中文文档 · Installation & Usage · Showcase · Authoring Approach

Key Highlights
- 35 Modern Web UI & Executive Structure Components (AI Auto-Composed · 100% Native PPTX Editable): Inspired by Tremor, shadcn/ui, Magic UI, Aceternity UI, Kibo UI, ReUI, Origin UI, Tailark, Linear, Stripe, and AntV Infographic. Powered by a two-tier Card Density & Anti-Empty-Box Engine (
fitCardHeight,extractCardMetric, aspect-aware horizontal metric split), covering:- Data & Charts: Sparkline KPIs, Tremor Category Breakdown (
breakdown), Multi-Period SLA Tracker (tracker), Smooth SVG Radial Gauges (gauges), Grouped/Stacked Bar Charts (barChart), Multi-Line/Area/Combo Charts (lineChart), and Ranked BarLists (rankList). - Strategy & Infographics: 2×2 Quadrant Matrix (
matrix), Issue→Cause→Solution Diagnosis Trio (diagnosis), SaaS Feature Matrix (featureMatrix), Conversion Funnel (funnel), Hub & Spoke (hub), Pyramid Stack (pyramid), Orbit Growth Flywheel (orbit), Iceberg Root-Cause Model (iceberg), and Multi-Axis Radar Scorecards (radar). - Executive & Roadmap: Executive One-Pager Bento (
execBrief), Project Spec Cards (specCard), OKR Goal Trees (okr), Risk & Mitigation Strips (risks), Multi-Lane Gantt / Kanban Boards (gantt), Dual-Track Roadmaps (dualTrack), Quote & Owner Cards (quotes), Auto Top Segmented Section Nav Tabs (PILL-02), plus Section Dividers (role: "section") and Executive Closings (role: "closing")—every slide with 4 zero-loss switchable variants.
- Data & Charts: Sparkline KPIs, Tremor Category Breakdown (
- Refined Dual-Font Hierarchy & High-Density Resilience: Bundles Source Han Sans SC (400 Regular body / 700 Bold headings / 900 Heavy figures) + YouSheBiaoTiHei (auto-applied to covers & ≤10-char short titles), with adaptive 2-line long-headline wrapping and a
compactlayout fallback tier so dense single-slide cases never overflow or auto-split pages. - Screenshot & Tall Poster Framed Contain Mode (
fit: "contain"): Automatically distinguishes desktop UI/dashboard screenshots (kind: "screenshot", rendered inside a subtle browser window chrome card) and vertical campaign posters (kind: "poster", centered inside a gallery mat frame) to keep edges, axes, and labels 100% uncropped across HTML and PPTX, while keeping live photos crisp withcoverframing and50% 25%portrait top protection. - Offline Studio v4 Editor (
file://Ready):- 4 Zero-Content-Loss Switchable Layouts per Slide automatically composed by
report-deck.mjsfrom real slide data (e.g. Segmented Bar ↔ Ranked Bars ↔ Bento Tiles, Centered Funnel ↔ Step Cards ↔ Ladder Bars, Hub ↔ Layered Pipeline, Horizontal Stepper ↔ Vertical Timeline ↔ Ribbon Band), with instant switching and⌘Zundo. - One-Click 11 Three-Tone Palettes (9 light + 2 dark flagship themes), automatically remapping every slide and every stored layout variant.
- Minimal Topbar & Figma-style Canvas: clean
Text / Shape / Imagetoolbar, marquee multi-select, smart snapping & distribution, in-place image cropping, and 80% smaller single-file HTML via dynamic font subsetting & deduplicated asset pooling.
- 4 Zero-Content-Loss Switchable Layouts per Slide automatically composed by
- Role-Aware Ingestion, Layout-Decoupled Lint & Sub-2s Pure-Node Pipeline:
dawang.mjs ingestmerges folders,--draft,--history, and--noteinputs into paginatedcontact-sheet.pngvolumes +IMG-XX/TBL-XXshort IDs;dawang.mjs outline:lintpre-validates layout-decoupled plans;dawang.mjs fast:buildcompiles HTML, native PPTX, and DOM-checkedpreview.pngwithout Chrome in under 2s.

Quick Start
Requires Node.js 22+ (primarily tested on macOS + Chrome). Viewers/editors of delivered HTML files need no installation at all.
git clone https://github.com/mujingquan835/Dawang-ppt.git
cd Dawang-ppt/skills/dawang-ppt
npm ci --prefix project
node scripts/install.mjs
node scripts/dawang.mjs doctor
Once doctor reports ready: true, invoke dawang-ppt in your AI coding agent (Claude Code, Codex, Cursor, Antigravity) or build directly via CLI:
# 1. Role-aware multi-source ingest + paginated contact sheets + IMG-XX/TBL-XX short IDs
node skills/dawang-ppt/scripts/dawang.mjs ingest "<materials_dir>" --draft "<draft.pptx>" --history "<history.pptx>" --note "<instructions>" --out "<tmp_dir>"
# 2. Optional: render a layout-decoupled outline review table
node skills/dawang-ppt/scripts/dawang.mjs outline:lint "<outline.json>" --md "<tmp_dir>/outline-plan.md"
# 3. Pure-Node fast build to HTML + PPTX + preview grid
node skills/dawang-ppt/scripts/dawang.mjs fast:build "<outline.json>" "<out.html>" --pptx "<out.pptx>" --preview "<preview.png>"
See README.md, USAGE.md, LICENSE, and NOTICE.md for full details.
Explore related projects
Loading…