Dataset Viewer
Duplicate
The dataset viewer is not available for this split.
Cannot load the dataset split (in streaming mode) to extract the first rows.
Error code:   StreamingRowsError
Exception:    CastError
Message:      Couldn't cast
name: string
version: string
description: string
main: string
type: string
scripts: struct<start: string, dev: string, build: string, build:win: string, build:mac: string, build:linux: (... 8 chars omitted)
  child 0, start: string
  child 1, dev: string
  child 2, build: string
  child 3, build:win: string
  child 4, build:mac: string
  child 5, build:linux: string
keywords: list<item: string>
  child 0, item: string
author: string
license: string
devDependencies: struct<electron: string, electron-builder: string>
  child 0, electron: string
  child 1, electron-builder: string
build: struct<appId: string, productName: string, directories: struct<output: string>, files: list<item: st (... 137 chars omitted)
  child 0, appId: string
  child 1, productName: string
  child 2, directories: struct<output: string>
      child 0, output: string
  child 3, files: list<item: string>
      child 0, item: string
  child 4, win: struct<target: string, icon: string>
      child 0, target: string
      child 1, icon: string
  child 5, mac: struct<target: string, icon: string>
      child 0, target: string
      child 1, icon: string
  child 6, linux: struct<target: string, icon: string>
      child 0, target: string
      child 1, icon: string
lockfileVersion: int64
packages: struct<: struct<name: string, version: string, license: string, devDependencies: struct<electron: st (... 64063 chars omitted)
  child 0, : struct<name: string, version: string, license: string, devDependencies: struc
...
n: string
      child 1, resolved: string
      child 2, integrity: string
      child 3, dev: bool
      child 4, license: string
      child 5, peer: bool
      child 6, dependencies: struct<archiver-utils: string, compress-commons: string, readable-stream: string>
          child 0, archiver-utils: string
          child 1, compress-commons: string
          child 2, readable-stream: string
      child 7, engines: struct<node: string>
          child 0, node: string
  child 323, node_modules/zip-stream/node_modules/archiver-utils: struct<version: string, resolved: string, integrity: string, dev: bool, license: string, peer: bool, (... 285 chars omitted)
      child 0, version: string
      child 1, resolved: string
      child 2, integrity: string
      child 3, dev: bool
      child 4, license: string
      child 5, peer: bool
      child 6, dependencies: struct<glob: string, graceful-fs: string, lazystream: string, lodash.defaults: string, lodash.differ (... 138 chars omitted)
          child 0, glob: string
          child 1, graceful-fs: string
          child 2, lazystream: string
          child 3, lodash.defaults: string
          child 4, lodash.difference: string
          child 5, lodash.flatten: string
          child 6, lodash.isplainobject: string
          child 7, lodash.union: string
          child 8, normalize-path: string
          child 9, readable-stream: string
      child 7, engines: struct<node: string>
          child 0, node: string
requires: bool
to
{'name': Value('string'), 'version': Value('string'), 'lockfileVersion': Value('int64'), 'requires': Value('bool'), 'packages': {'': {'name': Value('string'), 'version': Value('string'), 'license': Value('string'), 'devDependencies': {'electron': Value('string'), 'electron-builder': Value('string')}}, 'node_modules/@develar/schema-utils': {'version': Value('string'), 'resolved': Value('string'), 'integrity': Value('string'), 'dev': Value('bool'), 'license': Value('string'), 'dependencies': {'ajv': Value('string'), 'ajv-keywords': Value('string')}, 'engines': {'node': Value('string')}, 'funding': {'type': Value('string'), 'url': Value('string')}}, 'node_modules/@electron/asar': {'version': Value('string'), 'resolved': Value('string'), 'integrity': Value('string'), 'dev': Value('bool'), 'license': Value('string'), 'dependencies': {'commander': Value('string'), 'glob': Value('string'), 'minimatch': Value('string')}, 'bin': {'asar': Value('string')}, 'engines': {'node': Value('string')}}, 'node_modules/@electron/asar/node_modules/brace-expansion': {'version': Value('string'), 'resolved': Value('string'), 'integrity': Value('string'), 'dev': Value('bool'), 'license': Value('string'), 'dependencies': {'balanced-match': Value('string'), 'concat-map': Value('string')}}, 'node_modules/@electron/asar/node_modules/minimatch': {'version': Value('string'), 'resolved': Value('string'), 'integrity': Value('string'), 'dev': Value('bool'), 'license': Value('string'), 'dependencies': {'brace-e
...
'string'), 'yargs-parser': Value('string')}, 'engines': {'node': Value('string')}}, 'node_modules/yargs-parser': {'version': Value('string'), 'resolved': Value('string'), 'integrity': Value('string'), 'dev': Value('bool'), 'license': Value('string'), 'engines': {'node': Value('string')}}, 'node_modules/yauzl': {'version': Value('string'), 'resolved': Value('string'), 'integrity': Value('string'), 'dev': Value('bool'), 'license': Value('string'), 'dependencies': {'buffer-crc32': Value('string'), 'fd-slicer': Value('string')}}, 'node_modules/zip-stream': {'version': Value('string'), 'resolved': Value('string'), 'integrity': Value('string'), 'dev': Value('bool'), 'license': Value('string'), 'peer': Value('bool'), 'dependencies': {'archiver-utils': Value('string'), 'compress-commons': Value('string'), 'readable-stream': Value('string')}, 'engines': {'node': Value('string')}}, 'node_modules/zip-stream/node_modules/archiver-utils': {'version': Value('string'), 'resolved': Value('string'), 'integrity': Value('string'), 'dev': Value('bool'), 'license': Value('string'), 'peer': Value('bool'), 'dependencies': {'glob': Value('string'), 'graceful-fs': Value('string'), 'lazystream': Value('string'), 'lodash.defaults': Value('string'), 'lodash.difference': Value('string'), 'lodash.flatten': Value('string'), 'lodash.isplainobject': Value('string'), 'lodash.union': Value('string'), 'normalize-path': Value('string'), 'readable-stream': Value('string')}, 'engines': {'node': Value('string')}}}}
because column names don't match
Traceback:    Traceback (most recent call last):
                File "/src/services/worker/src/worker/utils.py", line 99, in get_rows_or_raise
                  return get_rows(
                         ^^^^^^^^^
                File "/src/libs/libcommon/src/libcommon/utils.py", line 272, in decorator
                  return func(*args, **kwargs)
                         ^^^^^^^^^^^^^^^^^^^^^
                File "/src/services/worker/src/worker/utils.py", line 77, in get_rows
                  rows_plus_one = list(itertools.islice(ds, rows_max_number + 1))
                                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                File "/usr/local/lib/python3.12/site-packages/datasets/iterable_dataset.py", line 2690, in __iter__
                  for key, example in ex_iterable:
                                      ^^^^^^^^^^^
                File "/usr/local/lib/python3.12/site-packages/datasets/iterable_dataset.py", line 2227, in __iter__
                  for key, pa_table in self._iter_arrow():
                                       ^^^^^^^^^^^^^^^^^^
                File "/usr/local/lib/python3.12/site-packages/datasets/iterable_dataset.py", line 2251, in _iter_arrow
                  for key, pa_table in self.ex_iterable._iter_arrow():
                                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                File "/usr/local/lib/python3.12/site-packages/datasets/iterable_dataset.py", line 494, in _iter_arrow
                  for key, pa_table in iterator:
                                       ^^^^^^^^
                File "/usr/local/lib/python3.12/site-packages/datasets/iterable_dataset.py", line 384, in _iter_arrow
                  for key, pa_table in self.generate_tables_fn(**gen_kwags):
                                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                File "/usr/local/lib/python3.12/site-packages/datasets/packaged_modules/json/json.py", line 265, in _generate_tables
                  self._cast_table(pa_table, json_field_paths=json_field_paths),
                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                File "/usr/local/lib/python3.12/site-packages/datasets/packaged_modules/json/json.py", line 120, in _cast_table
                  pa_table = table_cast(pa_table, self.info.features.arrow_schema)
                             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                File "/usr/local/lib/python3.12/site-packages/datasets/table.py", line 2272, in table_cast
                  return cast_table_to_schema(table, schema)
                         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                File "/usr/local/lib/python3.12/site-packages/datasets/table.py", line 2218, in cast_table_to_schema
                  raise CastError(
              datasets.table.CastError: Couldn't cast
              name: string
              version: string
              description: string
              main: string
              type: string
              scripts: struct<start: string, dev: string, build: string, build:win: string, build:mac: string, build:linux: (... 8 chars omitted)
                child 0, start: string
                child 1, dev: string
                child 2, build: string
                child 3, build:win: string
                child 4, build:mac: string
                child 5, build:linux: string
              keywords: list<item: string>
                child 0, item: string
              author: string
              license: string
              devDependencies: struct<electron: string, electron-builder: string>
                child 0, electron: string
                child 1, electron-builder: string
              build: struct<appId: string, productName: string, directories: struct<output: string>, files: list<item: st (... 137 chars omitted)
                child 0, appId: string
                child 1, productName: string
                child 2, directories: struct<output: string>
                    child 0, output: string
                child 3, files: list<item: string>
                    child 0, item: string
                child 4, win: struct<target: string, icon: string>
                    child 0, target: string
                    child 1, icon: string
                child 5, mac: struct<target: string, icon: string>
                    child 0, target: string
                    child 1, icon: string
                child 6, linux: struct<target: string, icon: string>
                    child 0, target: string
                    child 1, icon: string
              lockfileVersion: int64
              packages: struct<: struct<name: string, version: string, license: string, devDependencies: struct<electron: st (... 64063 chars omitted)
                child 0, : struct<name: string, version: string, license: string, devDependencies: struc
              ...
              n: string
                    child 1, resolved: string
                    child 2, integrity: string
                    child 3, dev: bool
                    child 4, license: string
                    child 5, peer: bool
                    child 6, dependencies: struct<archiver-utils: string, compress-commons: string, readable-stream: string>
                        child 0, archiver-utils: string
                        child 1, compress-commons: string
                        child 2, readable-stream: string
                    child 7, engines: struct<node: string>
                        child 0, node: string
                child 323, node_modules/zip-stream/node_modules/archiver-utils: struct<version: string, resolved: string, integrity: string, dev: bool, license: string, peer: bool, (... 285 chars omitted)
                    child 0, version: string
                    child 1, resolved: string
                    child 2, integrity: string
                    child 3, dev: bool
                    child 4, license: string
                    child 5, peer: bool
                    child 6, dependencies: struct<glob: string, graceful-fs: string, lazystream: string, lodash.defaults: string, lodash.differ (... 138 chars omitted)
                        child 0, glob: string
                        child 1, graceful-fs: string
                        child 2, lazystream: string
                        child 3, lodash.defaults: string
                        child 4, lodash.difference: string
                        child 5, lodash.flatten: string
                        child 6, lodash.isplainobject: string
                        child 7, lodash.union: string
                        child 8, normalize-path: string
                        child 9, readable-stream: string
                    child 7, engines: struct<node: string>
                        child 0, node: string
              requires: bool
              to
              {'name': Value('string'), 'version': Value('string'), 'lockfileVersion': Value('int64'), 'requires': Value('bool'), 'packages': {'': {'name': Value('string'), 'version': Value('string'), 'license': Value('string'), 'devDependencies': {'electron': Value('string'), 'electron-builder': Value('string')}}, 'node_modules/@develar/schema-utils': {'version': Value('string'), 'resolved': Value('string'), 'integrity': Value('string'), 'dev': Value('bool'), 'license': Value('string'), 'dependencies': {'ajv': Value('string'), 'ajv-keywords': Value('string')}, 'engines': {'node': Value('string')}, 'funding': {'type': Value('string'), 'url': Value('string')}}, 'node_modules/@electron/asar': {'version': Value('string'), 'resolved': Value('string'), 'integrity': Value('string'), 'dev': Value('bool'), 'license': Value('string'), 'dependencies': {'commander': Value('string'), 'glob': Value('string'), 'minimatch': Value('string')}, 'bin': {'asar': Value('string')}, 'engines': {'node': Value('string')}}, 'node_modules/@electron/asar/node_modules/brace-expansion': {'version': Value('string'), 'resolved': Value('string'), 'integrity': Value('string'), 'dev': Value('bool'), 'license': Value('string'), 'dependencies': {'balanced-match': Value('string'), 'concat-map': Value('string')}}, 'node_modules/@electron/asar/node_modules/minimatch': {'version': Value('string'), 'resolved': Value('string'), 'integrity': Value('string'), 'dev': Value('bool'), 'license': Value('string'), 'dependencies': {'brace-e
              ...
              'string'), 'yargs-parser': Value('string')}, 'engines': {'node': Value('string')}}, 'node_modules/yargs-parser': {'version': Value('string'), 'resolved': Value('string'), 'integrity': Value('string'), 'dev': Value('bool'), 'license': Value('string'), 'engines': {'node': Value('string')}}, 'node_modules/yauzl': {'version': Value('string'), 'resolved': Value('string'), 'integrity': Value('string'), 'dev': Value('bool'), 'license': Value('string'), 'dependencies': {'buffer-crc32': Value('string'), 'fd-slicer': Value('string')}}, 'node_modules/zip-stream': {'version': Value('string'), 'resolved': Value('string'), 'integrity': Value('string'), 'dev': Value('bool'), 'license': Value('string'), 'peer': Value('bool'), 'dependencies': {'archiver-utils': Value('string'), 'compress-commons': Value('string'), 'readable-stream': Value('string')}, 'engines': {'node': Value('string')}}, 'node_modules/zip-stream/node_modules/archiver-utils': {'version': Value('string'), 'resolved': Value('string'), 'integrity': Value('string'), 'dev': Value('bool'), 'license': Value('string'), 'peer': Value('bool'), 'dependencies': {'glob': Value('string'), 'graceful-fs': Value('string'), 'lazystream': Value('string'), 'lodash.defaults': Value('string'), 'lodash.difference': Value('string'), 'lodash.flatten': Value('string'), 'lodash.isplainobject': Value('string'), 'lodash.union': Value('string'), 'normalize-path': Value('string'), 'readable-stream': Value('string')}, 'engines': {'node': Value('string')}}}}
              because column names don't match

Need help to make the dataset viewer work? Make sure to review how to configure the dataset viewer, and open a discussion for direct support.

Chahua Markdown Video Studio

Chahua Markdown Video Studio Version Electron

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 Markdown button).
  • 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.



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

  1. Open the app with npm start.
  2. Markdown tab
    • Paste or edit your deck in the editor.
    • Use Load Sample Deck for a guided example.
    • Click Sync Markdown to parse slides, refresh the timeline, and update the stage text.
  3. Timeline tab
    • Review total duration and per-slide timings.
    • Confirm asset checklist items (images, audio) and resolve pending markers.
  4. Presentation Settings tab
    • Select a preset; the choice updates frontmatter (presentation.preset with a template fallback) and restyles the stage.
    • Presentation Settings is the recommended system going forward; the legacy template field remains only so decks from earlier versions still render correctly.
  5. Export tab
    • Adjust video.resolution, video.fps, and video.quality. Values sync back to frontmatter.
  6. Preview / Export
    • Preview Timeline plays the parsed deck against the live stage.
    • Export Video records a WebM through the native VideoRenderer and 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

![Feature Demo](assets/image/screenshot.png)

---

# 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 subtitle
  • duration: N - Slide duration in seconds (default: 5)
  • Standard Markdown: lists, bold, italic, images

Frontmatter Options:

  • presentation.preset: default, professional, minimal, creative
  • presentation.fonts.heading|body|code: Any supported font token from presentation-config.js
  • presentation.colors.primary|accent|background: Hex colors (e.g. #3b82f6)
  • presentation.animations.slideTransition: fade, slide, none
  • video.resolution: 1920x1080, 1280x720, 3840x2160
  • video.fps: 30, 60
  • video.quality: 0.8 - 1.0
  • template: 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


Security Posture

  • security-core.js blocks 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.js and src/shared/markdown-parser.js are under active development—follow progress in docs/EN|TH/MARKDOWN_VIDEO_PLAN.md under Immediate Sprint Focus.
  • src/renderer/js/presentation-config.js unifies preset management while templates.js remains 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

  1. Fork the repository.
  2. Create a feature branch (git checkout -b feature/markdown-parser-upgrade).
  3. Update or add tests when touching the parser, renderer, or security layers.
  4. 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.

Stars, feedback, and roadmap suggestions are always appreciated!


Transform markdown into motion.

Downloads last month
2