Skip to main content

dup-presenter — Interactive 3D & Cinema Production Studio

Demo video

DUP Presenter

mcp-name: io.github.Gruver87/dup-presenter

CI Release License: MIT Python 3.12+ Node 22 DUP Presenter MCP server – quality and maintenance score on Glama DUP Presenter MCP server – card on Glama

Declarative 3D Product Presentation Engine by DUP Labs (JSON/Markdown deck → neural TTS + STFT de-esser + dynamic music ducking + word-level karaoke captions → Remotion 4 3D slides & cosmic themes → broadcast −16 LUFS 1080p/9:16 MP4 + fail-closed Media QA Gate + Publish Pack).

It builds reproducible product 3D presentations (16:9 and 9:16) with live code, real screenshots, UI recordings, holographic 3D architecture, KPI metrics, and fact checks against the repository source — without manual video editing.

English · Русский


Demo videos (GitHub Releases)

MP4 files are not committed to git (100 MB limit). Ready renders with subtitles .srt/.vtt, chapters, and Media QA Gate reports are published in GitHub Releases:

1. DUP Labs Universe — Director's Cut (RU & EN, 1080p)

The whole DUP Labs ecosystem as a cinema-style film, rendered end-to-end by DUP Presenter. Each language version has its own release with MP4, subtitles .srt/.vtt and chapters.

Russian version English version
DUP Labs Universe RU DUP Labs Universe EN

2. DUP Protocol Cosmos (quantum_ledger · RU & EN)

Russian version (229.4 s, −16.0 LUFS, Edge Neural dmitry) English version (245.5 s, −16.06 LUFS, Kokoro am_michael)
DUP Protocol Cosmos RU DUP Protocol Cosmos EN

3. DUP Market Radar Showcase v2 (142 s, −16 LUFS, Media QA PASS)

Watch the demo: DUP Market Radar


Pipeline architecture

decks/<slug>.json  (or examples/*.md -> scripts/md_deck.py)
   │
   ▼  python scripts/build_deck.py decks/<slug>.json --render
1. Fail-closed schema validation + deck_doctor + optional Claim Audit (--audit-repo)
2. Voiceover RU (Edge TTS dmitry + offline Silero v5 eugene) / EN (Kokoro-82M v1.0 am_michael)
   + STFT de-esser + speech detector for dynamic music ducking
   + word-level caption timings (Edge WordBoundary for RU / local faster-whisper ASR for EN)
   + procedural SFX (transition whoosh + UI pop)
3. Render in Remotion 4 (TransitionSeries fade/slide/wipe + 12 themes + 20 slide templates + 2 specialized radar 3D templates)
4. Audio mastering to -16.0 LUFS / -1.5 dBTP (two-pass ffmpeg loudnorm, 48 kHz AAC 320 kbps)
5. Media QA Gate (ffprobe + LUFS + True Peak + dead-air check) -> out/<slug>_qa.json
6. Publish Pack: out/<slug>.srt/.vtt, _chapters.txt, _post_copy.md, _metadata.json, _thumb.png

Detailed diagram and module map: docs/ARCHITECTURE.md · Full deck schema: docs/DECK_SCHEMA.md.


20 slide templates (type) + 2 specialized 3D radar templates

Template Description
hero_3d Title slide with a gradient, colored badges and a rotating 3D cube (backfaceVisibility: hidden)
protocol_cosmos Central rotating crypto reactor, 6 concave 3D stations with fiber-optic beams and a red fail-closed shield
ledger_layers 3D stack of architecture layers (3–6 layers) with step-by-step focus and a localized GUARANTEE: / ГАРАНТИЯ: badge
tx_journey Transaction lifecycle: Merkle tree collapse, prev_hash block linking and a SEALED ✓ stamp
mesh_network 3D topology of 3–4 network nodes with block propagation pulses, consistency probes and recovery cards
versus_split A vs B comparison (two concave 3D columns, a pulsing VS center and a VERDICT badge)
chart_story Animated charts (bar, line, donut) with spring-animated value growth and labels
stat_burst Dynamic hook slide for the first 3–5 seconds (a giant floating number/thesis + energy ring)
broll_cinematic Full-screen cinematic slide with Ken Burns, vignetting and thesis cards
cinema_clip Full-screen video with no frames or diagrams: cinema.src (MP4 under public/, duration read via ffprobe, looped to the voiceover) or a stock background from background_query. If the file is missing, the build fails (fail-closed)
code_split Split screen: thesis on the left, a 3D window with real code on the right, animated line by line
screen_split Split screen with real screenshots and a virtual camera with auto-zoom (focus: {x, y, zoom})
ui_recording Live recording of a UI scenario via Playwright (scripts/record_ui.py) with duration auto-fitted through ffprobe
arch_flow 3D architecture pipeline with animated packet flows
kpi Key metrics (1–4 cards; in quantum_ledger — concave shelves and floating numbers)
timeline Step-by-step pipeline / roadmap (2–6 steps)
terminal Animated terminal output
quote Quote in a 3D card (title, up to 220 characters) with attribution in subtitle
outro_3d Closing slide with a repository link, badges, a tagline and a 3D cube
model_3d Full-screen turntable of a local .glb model (model3d.model, under public/); rotation is deterministic per frame and a load failure fails the render

Two additional domain-specific 3D templates (radar_arena, radar_heart_3d) are also supported in ALLOWED_TYPES (22 total).

Any slide can set audio_viz: "bars" for a 32-bar spectrum driven by its own narration. Voices can also be optional adapters, openai:<voice> or elevenlabs:<voice_id> (cloud, env key, per-host egress approval, refused under --offline-only), or qwen3:<name> (local GPU and local weights; implemented, but verified only against a mocked model, not on real GPU hardware). See docs/DECK_SCHEMA.md.

New studio tools (Idea Engine, Presets, Thumbnail Studio, Video Pack)

# A) Built-in Idea Engine (7 genres, offline templates / Ollama / Cloud / DeepSeek, 1 step -> deck draft)
python scripts/idea_engine.py --topic "Python vs Rust in 2026" --genre versus_battle --lang en --write-first
# LLM modes are fail-closed: --mode ollama (local), --mode cloud (OPENAI_API_KEY or DEEPSEEK_API_KEY),
# --mode deepseek (needs DEEPSEEK_API_KEY; model DEEPSEEK_MODEL, default deepseek-chat).
# Keys come only from environment variables; if the provider fails, templates are NOT substituted.
python scripts/idea_engine.py --topic "The Big Bang" --lang en --mode deepseek --write-first

# B) Clickable 1280x720 cover generator (Thumbnail Studio)
python scripts/thumbnail_studio.py --deck decks/dup-protocol-cosmos.json --badge "0 FLOAT · 48H PASS" --out out/cover.png

# C) Multi-format Video Pack (16:9 + 9:16 Short + translation + cover + combined QA manifest)
python scripts/video_pack.py decks/radar-pro.json --translate-to en --preset cinema_cosmos --plan-only

Studio in the web console (python scripts/console_server.py --open)

All features are optional; the CLI (build_deck.py, idea_engine.py, publish_pack.py) works as before.

Tab What it does
01 · New video Build from a local folder or GitHub; Idea Engine with optional web search for fresh facts (LLM modes Ollama / Cloud only)
02 · Editor Drag-and-drop images and video (up to 100 MB) from Windows, from an https link, or from a search of Wikimedia / NASA / Openverse straight onto a slide; asset inspector with license info (CC BY / CC BY-SA are added to _post_copy.md automatically); timeline with slide reordering and voiceover preview; storyboard and master approval
03 · Merge Combine several MP4 files into one, with format and audio alignment
05 · 3D Studio Image-to-3D (Tripo3D / Fal.ai) and .glb preview in a Three.js viewport (rotate, zoom, grid)

Keys are only Windows user environment variables, never files in the repository. Without a key the feature refuses explicitly (fail-closed); there is no substitution:

Variable Used for
SERPER_API_KEY or BRAVE_API_KEY Web search for Idea Engine (Serper takes priority)
TRIPO_API_KEY or FAL_KEY 3D model generation from an image
DUP_LLM_API_KEY / DEEPSEEK_API_KEY / OPENAI_API_KEY Cloud LLM for plans and ideas
[Environment]::SetEnvironmentVariable("SERPER_API_KEY", "<key>", "User")
# the console picks up a new key from the registry without restart (refresh the page);
# for CLI scripts open a NEW PowerShell window

The console listens only on 127.0.0.1 and rejects requests with a foreign Host (DNS rebinding) and cross-site POSTs from other browser tabs.

12 visual themes (theme)

Single source of truth: src/themes.ts ↔ scripts/theme_catalog.py.

  • Dark: quantum_ledger (concave cosmic 3D funnel, 22 transaction beams, concave shelves and floating text), neon_cyber (default), cosmic_radar, terminal_green, deep_ocean, sunset_orange, cyber_magenta, aurora_purple, mono_graphite.
  • Light: minimal_light, paper_warm, corporate_blue.

Caption styles (caption_style)

  • box (default) — the whole line in a neat panel.
  • karaoke — word-by-word highlight as the speech plays. Timing sources, in priority order:
    1. Russian Edge TTS voices (WordBoundary) give exact per-word timing from the TTS.
    2. English voices (Kokoro-82M, Silero EN) get exact timing from local recognition with faster-whisper (base.en, CPU).
    3. If the ASR package is not installed, words are estimated proportionally to their length, and the log says estimated explicitly (honest status, no faked result).
  • bold — large white text with a shadow and no panel (for vertical 9:16 videos).

Presentation from Markdown (no JSON)

python scripts/md_deck.py examples/md-talk-demo.md --out decks/md-talk-demo.json
python scripts/build_deck.py decks/md-talk-demo.json --render

Supported types: hero_3d, outro_3d, kpi, timeline. An unclear line, an unknown key or an unsupported type gives a fail-closed refusal with the line number; no file is created.


Quick start

For a quick first test (~1 min of video), use decks/studio-universal-demo-v2.json instead of radar-pro.json in the commands below.

# Install dependencies
npm ci
pip install numpy scipy httpx playwright edge-tts kokoro-onnx faster-whisper

# Full build + render + -16 LUFS + Media QA + Publish Pack
python scripts/build_deck.py decks/radar-pro.json --render

# Quick preview of ONE slide (seconds instead of minutes)
python scripts/build_deck.py decks/radar-pro.json --only-slide s5 --render

# Save one PNG frame per slide without a full MP4 render
python scripts/build_deck.py decks/radar-pro.json --preview-stills

# Strict offline mode (Privacy Lock: no network TTS and no stock sources)
python scripts/build_deck.py decks/radar-pro.json --offline-only --render

# Audit the deck's facts against a real repository before the build
python scripts/claim_audit.py decks/radar-pro.json --repo C:\path\to\repo

# Make a vertical 9:16 Short (~50–60 s) from a 16:9 deck
python scripts/make_cutdown.py decks/radar-pro.json

# Translate a deck RU <-> EN (keeping code, numbers and URLs)
python scripts/translate_deck.py decks/radar-pro.json --to en

# Automatic capture of a clean UI / scenario with Playwright
python scripts/capture_ui.py --url http://127.0.0.1:8080 --out live_ui.png --focus-selector "table"
python scripts/record_ui.py --scenario <your-scenario>.json   # format: see the docstring in scripts/record_ui.py

# Start the local web console (Markdown import and caption_style selection supported)
python scripts/console_server.py --open

# Start the MCP server (stdio JSON-RPC 2.0 for Cursor / Claude)
python scripts/mcp_server.py

# Publish an MP4 (>100 MB) and the Publish Pack to a GitHub Release
python scripts/github_release_uploader.py --mp4 out/radar-pro.mp4 --repo Gruver87/dup-presenter --dry-run

MCP server (21 stdio tools, 3 catalog resources + one per deck, 3 prompts)

scripts/mcp_server.py speaks newline-delimited JSON-RPC 2.0 over stdio. It negotiates MCP protocol 2025-11-25 and still accepts 2024-11-05. In 2025-11-25 sessions, tool results include structuredContent that matches each tool's outputSchema; text content is always included for older clients.

  • Tools: list_decks, get_slide, update_slide, insert_slide, remove_slide, move_slide (slide edits are dry-run unless write: true; every result must pass validate_deck), generate_ideas, idea_to_deck, critique_deck, auto_fix_deck, plan_video_pack, render_thumbnail, audit_deck_claims, make_short_cutdown, run_media_qa, pronunciation_dictionary, build_publish_pack, deck_doctor, render_deck, render_status, preview_stills (include_images: true returns downscaled PNGs inline).
  • Resources: dup://catalog/themes, dup://catalog/templates, dup://docs/deck-schema, dup://decks/<file>.
  • Prompts: create-product-video, audit-and-fix, make-short.
  • Agent Skill: skills/dup-presenter/SKILL.md describes the pipeline and the rules for agents.

Add to Cursor (.cursor/mcp.json) or Claude Desktop:

{
  "mcpServers": {
    "dup-presenter": {
      "command": "python",
      "args": ["/absolute/path/to/dup-presenter/scripts/mcp_server.py"]
    }
  }
}

pip install . in a checkout also provides dup-presenter-mcp, dup-presenter-console and dup-presenter. The package is not published to PyPI. The wheel is a launcher only: it does not contain scripts/, decks/, public/ or Remotion, so outside the checkout set DUP_PRESENTER_HOME=/path/to/dup-presenter. A wrong path is refused; it does not fall back to another location.

Or use one of the two container profiles in the Dockerfile:

Target Contents Use for
lite Python, ffmpeg, pinned requirements.txt validation, audit, slide edits, Media QA, publish pack. Render tools return a clear error.
full lite + Node 22, Remotion, headless Chromium, pinned narration engines (requirements-tts.txt) everything, including narration, stills and renders
docker build --target lite -t dup-presenter:lite .
docker run -i --rm dup-presenter:lite

docker build --target full -t dup-presenter:full .
docker run -i --rm \
  -v "$PWD/assets:/app/assets:ro" \
  -v "$PWD/public:/app/public" \
  -v "$PWD/models:/app/models:ro" \
  -v "$PWD/out:/app/out" \
  dup-presenter:full

Mounts for full: public/ must be writable because narration WAVs are written to public/voice/. models/kokoro holds the Kokoro-82M weights for English narration; they are not in git or in the image. Edge TTS (the default Russian voice) needs outbound HTTPS. Silero (torch) is not installed in the image, so offline Russian narration is not available inside the container.

Pronunciation dictionary

Edit config/pronunciation.json, or use the web console API GET/POST /api/pronunciation.

What is not published to Git

  • decks/dup-protocol.json, decks/dup-protocol-story.json, decks/dup-protocol-cosmos.json and decks/dup-protocol-cosmos-en.json reference local screenshots in public/screens/dup-protocol/ (listed in .gitignore). On a clean clone deck_doctor returns missing screen file, and rendering does not start (fail-closed).
  • out/ (MP4 renders and reports), work/, public/voice/, public/music/, public/ui_recordings/, public/uploads/ (console uploads), public/models3d/ (3D models), models/ and secrets/ are not committed to git.

Tests and checks

npx tsc --noEmit
python -m py_compile scripts/*.py
python -m unittest discover -s tests -v

# Live check of the web console in Chromium (the console must be running on the right port)
python scripts/console_server.py --port 8790 --no-auto-ollama
python scripts/console_ui_check.py --url http://127.0.0.1:8790/

# Live check of the 3D viewport: loading a real .glb (Three.js served locally via /vendor/three/, fully offline)
python scripts/glb_viewer_check.py --url http://127.0.0.1:8790/

# 1-frame Remotion render smoke (verifies Rspack bundle, offline fonts, inputProps and Chromium render)
python scripts/ci_render_smoke.py

# Click audit of the console: every visible button/checkbox on every tab is clicked once.
# POST/PUT/DELETE are intercepted and get a mock response (nothing is published or written); report: out/preview/click_audit.json
python scripts/console_click_audit.py --url http://127.0.0.1:8790/

# Backup of user data outside git (decks, work/ with licenses, uploads, 3D models; keys are not copied)
powershell -ExecutionPolicy Bypass -File scripts\backup_user_data.ps1 -Destination "D:\DUP_backup"

Current CI status: npx tsc --noEmit, npx eslint src, py_compile, ruff --select F, the full Python unit/gate test suite in tests/ (including a live Playwright UI recording test; the Windows Credential Manager round-trip test is skipped on Linux) and a 1-frame Remotion render smoke (scripts/ci_render_smoke.py, which also fails if a Remotion temp bundle is left behind) run on every push/PR in .github/workflows/ci.yml. Python test dependencies are pinned in requirements-dev.txt.

Documentation and the DUP Labs ecosystem

Licenses of third-party components

  • dup-presenter license: MIT (see LICENSE). It covers the project's code and templates. It does not grant any rights to Remotion or other third-party components.
  • Disclaimer: the software is provided "as is". The user is responsible for content, visual rights, keys and compliance with platform rules. See DISCLAIMER.md.
  • Remotion: free license for individuals and teams of up to 3 people (remotion.dev/docs/license/pricing). Check Remotion's terms before commercial use.
  • Silero TTS v5 (MIT), Kokoro-82M ONNX (Apache-2.0), faster-whisper (MIT), Edge TTS (online Microsoft service).

Metadata

Release files for dup-presenter 0.1.8

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for dup-presenter 0.1.8
File Size Uploaded Provenance Actions
dup_presenter-0.1.8.tar.gz 120.2 kB Without provenance Details for dup_presenter-0.1.8.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for dup-presenter 0.1.8
File Interpreter ABI Platform Actions
dup_presenter-0.1.8-py3-none-any.whl Python 3 none any Details for dup_presenter-0.1.8-py3-none-any.whl

Total release size: 133.3 kB

Release files / dup_presenter-0.1.8.tar.gz

Download URL dup_presenter-0.1.8.tar.gz
Size 120.2 kB
Tags Source
SHA-256 checksum
How to use checksums
661e07eaeae9d69b75bfb281e978a0273aac8e580e87c6619aa9e7bbf72f40be
BLAKE2b-256 checksum
How to use checksums
5d7aeeec4ea670cf0a914b6a2e34fa5262b7b69eaaa383b775564a920ba11440
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.4

Release files / dup_presenter-0.1.8-py3-none-any.whl

Download URL dup_presenter-0.1.8-py3-none-any.whl
Size 13.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
47d6dbb79dd74319981e67c1e2487f0e441e2620ccfb667e779832ab1b7beb27
BLAKE2b-256 checksum
How to use checksums
69006dc4358ab2b035ad5d1f6e2a3226f99ec384c9e4117557271d7cb4b61a4c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.4

Security for dup-presenter 0.1.8

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page