license: other
language:
- en
tags:
- code-analysis
- static-analysis
- javascript
- electron
- emoji-cleaner
- junk-sweeper
- plugin-management
- desktop-app
- electron-app
- security
Chahua Markdown Video Studio
Author every slide, timing, and presentation configuration in markdown—preview and export videos without leaving your deck.
Chahua Markdown Video Studio turns a single markdown file into a cinematic video. Frontmatter drives presentation presets, export settings, and security-sensitive metadata while the renderer timeline stays perfectly in sync between preview and export.
Why Markdown-First?
- Single source of truth for content, timings, transitions, narration cues, and assets.
- Deterministic timeline JSON shared by the renderer and upcoming headless export pipeline.
- Presentation presets round-trip through frontmatter so writers and designers stay aligned.
- Actionable diagnostics inside the Markdown tab highlight validation issues in context.
Key Capabilities
- Markdown editor with live sync and diagnostics (
Sync Markdownbutton). - Timeline tab showing per-slide durations, timecodes, and tracked assets.
- Export tab for resolution, FPS, and quality settings backed by frontmatter.
- Presentation settings panel (transitioning from static templates) that writes preset choices back into the deck and restyles the preview.
- Secure preload bridge (
security-core.js) enforcing filesystem, hashing, and rate limits.
Current focus is WebM preview/export. Legacy GIF export returns after the shared timeline engine stabilises.
Table of Contents
- Quick Start
- Markdown Authoring Workflow
- Markdown Format Cheatsheet
- Application Layout
- Documentation
- Project Structure
- Security Posture
- Development Notes
- Contributing
- Credits & Contact
Quick Start
# Clone the repository
git clone https://github.com/chahuadev/chahuadev-markdown-presenter.git
# Enter the project
cd chahuadev-markdown-presenter
# Install dependencies
npm install
# Launch the app
npm start
Optional scripts:
npm run dev # Verbose logging
npm run build # Package the Electron app
Markdown Authoring Workflow
- Open the app with
npm start. - Markdown tab
- Paste or edit your deck in the editor.
- Use
Load Sample Deckfor a guided example. - Click
Sync Markdownto parse slides, refresh the timeline, and update the stage text.
- Timeline tab
- Review total duration and per-slide timings.
- Confirm asset checklist items (images, audio) and resolve pending markers.
- Presentation Settings tab
- Select a preset; the choice updates frontmatter (
presentation.presetwith atemplatefallback) and restyles the stage. - Presentation Settings is the recommended system going forward; the legacy
templatefield remains only so decks from earlier versions still render correctly.
- Select a preset; the choice updates frontmatter (
- Export tab
- Adjust
video.resolution,video.fps, andvideo.quality. Values sync back to frontmatter.
- Adjust
- Preview / Export
Preview Timelineplays the parsed deck against the live stage.Export Videorecords a WebM through the nativeVideoRendererand saves it securely.
Markdown Format Cheatsheet
---
presentation:
preset: professional
fonts:
heading: "'Montserrat', 'Arial', sans-serif"
colors:
accent: "#60a5fa"
animations:
slideTransition: slide
template: professional # legacy fallback for older builds
video:
resolution: 1920x1080
fps: 60
quality: 0.95
---
# Introduction
subtitle: Markdown Video Studio
duration: 4
Welcome to the Markdown-first workflow.
---
# Feature Highlights
duration: 6
- Native WebM encoding with MediaRecorder API
- Real-time preview and timeline visualization
- Frontmatter configuration sync
- Truly offline-first architecture

---
# Conclusion
subtitle: Built with Electron + Canvas
duration: 5
Thank you for watching!
Slide Syntax:
- Each slide separated by
--- # Title- Main heading (required)subtitle: text- Optional subtitleduration: N- Slide duration in seconds (default: 5)- Standard Markdown: lists, bold, italic, images
Frontmatter Options:
presentation.preset:default, professional, minimal, creativepresentation.fonts.heading|body|code:Any supported font token frompresentation-config.jspresentation.colors.primary|accent|background:Hex colors (e.g.#3b82f6)presentation.animations.slideTransition:fade, slide, nonevideo.resolution:1920x1080, 1280x720, 3840x2160video.fps:30, 60video.quality:0.8 - 1.0template:Legacy fallback key while presets fully replace template cards
Extended directives for transitions and narration cues are outlined in docs/EN/MARKDOWN_VIDEO_PLAN.md.
Application Layout
- Stage (left panel): live preview of intro, timeline snapshot, and outro styled by the active preset.
- Markdown: editor, diagnostics panel, summary card, and quick actions (load sample, import from disk, open workspace folder).
- Timeline: total runtime, per-slide breakdown, and asset checklist with availability status.
- Export: video configuration controls bound to frontmatter.
- Presentation Settings: preset gallery with font/color/animation controls that keep markdown frontmatter in sync.
Documentation
- MARKDOWN_VIDEO_PLAN: English / ไทย – Roadmap covering presentation presets, safe zones, and native exporter milestones.
- CHANGELOG: English / ไทย – Release history and upcoming feature checkpoints.
- CONTRIBUTING: English / ไทย – Contribution workflow, coding standards, and review expectations.
- CODE_OF_CONDUCT: English / ไทย – Community guidelines for respectful collaboration.
Project Structure
- .gitignore
- .npmignore
- LICENSE
- SECURITY.md
- package.json
- package-lock.json
- npm-runner.bat
- assets/
- docs/
- src/
- workspace/
- README.md
node_modules/– Installed dependencies (omitted from this list by design).
Security Posture
security-core.jsblocks path traversal, enforces extension and size limits, validates hashes, and rate-limits operations.- The Security button surfaces telemetry (operation count, uptime, cache stats, rate limit entries).
- Renderer access to the filesystem and export locations flows exclusively through vetted IPC handlers.
Development Notes
- The legacy code-upload scene workflow has been retired; markdown is now the authoritative input.
src/renderer/js/app.jsandsrc/shared/markdown-parser.jsare under active development—follow progress indocs/EN|TH/MARKDOWN_VIDEO_PLAN.mdunder Immediate Sprint Focus.src/renderer/js/presentation-config.jsunifies preset management whiletemplates.jsremains only for backwards compatibility.- Current export method: Native WebM recording using Canvas API + MediaRecorder (no external dependencies).
- Upcoming milestones: Enhanced timeline engine, schema validation with actionable diagnostics, and OS-native MP4/GIF exporters scoped in the roadmap documents.
Contributing
- Fork the repository.
- Create a feature branch (
git checkout -b feature/markdown-parser-upgrade). - Update or add tests when touching the parser, renderer, or security layers.
- Submit a pull request summarising how your change advances the markdown-first roadmap.
Please read the roadmap documents in docs/EN or docs/TH before proposing major architectural shifts.
Credits & Contact
Chahua Development Co., Ltd.
- Website: chahuadev.com
- Email: chahuadev@gmail.com
- GitHub: @chahuadev
Stars, feedback, and roadmap suggestions are always appreciated!
Transform markdown into motion.
