A C and C++ execution addon for Slidev’s Monaco Runner, powered by Coliru’s compilation API. Mark a code block with {monaco-run} and the slide compiles and runs it live, in front of the audience.

Features #
- In-slide execution: write, compile, and run C/C++ without leaving the presentation.
- Configurable toolchain: compiler, standard (C2x, C++20, and friends), optimization level, flags, and linked libraries, all from frontmatter.
- Per-slide overrides on top of the global configuration.
- Compiler output filtering: show the noise only when it matters.
Tech #
- TypeScript on top of Slidev’s addon system
- Coliru API for remote compilation
- Published on npm as
slidev-addon-cpp-runner
What I learned #
- How Slidev’s Monaco Runner addon architecture works from the inside.
- Wrapping a remote compilation API with sane defaults and type-safe configuration.
- Publishing and maintaining a reusable addon on npm.