Create a Markdown file with fenced code blocks:
bunx sakuga render examples/demo.mdTo render git history for a file:
bunx sakuga git README.mdTo specify an output path, pass --output or -o:
bunx sakuga render --output examples/demo.mp4 examples/demo.mdTo limit commits for git history:
bunx sakuga git --commits 5 README.mdTo render newest โ oldest instead:
bunx sakuga git --reverse README.mdNote: With @effect/cli@0.73.0, options must appear before positional args.
--format,-f: Output container (mp4orwebm, default:mp4).--output,-o: Output path (defaults to the input name + format extension).--verbose,-v: Show FFmpeg output and detailed logging.--commits,-c: Number of commits to render forsakuga git(default:10).--reverse: Render newest to oldest forsakuga git.--language,-l: Override the syntax highlighting language forsakuga git.--theme,-t: Shiki theme for syntax highlighting (default:github-dark).--background,-bg: Fallback background color (default:#0b0b0b).--foreground,-fg: Fallback foreground color (default:#e6e6e6).--font-family,-ff: Font family for rendering (default:SFMono-Regularstack).--font-size,-fs: Font size in pixels (default:24).--line-height,-lh: Line height in pixels (default:34).--padding,-p: Padding around the code block in pixels (default:64).--width,-w: Minimum width of the rendered video in pixels (default:0for auto).--height,-h: Minimum height of the rendered video in pixels (default:0for auto).--fps,-r: Frames per second (default:60).--block-duration,-bd: Duration of each code block in seconds (default:2).--transition,-tr: Transition duration between slides in milliseconds (default:800).--transition-drift,-td: Pixel drift applied during transitions (default:8).--tab-replacement,-tb: String used to replace tabs (default:" ").
Sakuga builds scenes concurrently when possible to maximize performance.
Made with ๐ฅ pastry
