A plugin for reveal.js that integrates the Compiler Explorer (godbolt.org) to display live code compilation and assembly output within presentations. Current stable version 1.6.2 (as of 2021-10-22). The package allows presenters to embed editable code snippets that compile with various compilers (GCC, Clang, MSVC) and show assembly, execution results, and optimizations. Key differentiators include tight integration with reveal.js slide decks, support for multiple languages (C, C++, Rust, etc.), and customizable compiler options. Release cadence appears low with sporadic updates. Compared to standalone Compiler Explorer embeds, this plugin provides seamless navigation and keyboard shortcuts within presentations.
npm install reveal-compiler-explorerNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows how to import the plugin and add it to a reveal.js instance, with optional configuration.
Upgrade reveal.js to version 4 or later.
Use import RevealCompilerExplorer from 'reveal-compiler-explorer' instead of the named import.
Rename 'compiler' to 'defaultCompiler' in the plugin configuration.
Change to import RevealCompilerExplorer from 'reveal-compiler-explorer'
Run npm install reveal-compiler-explorer
Use const RevealCompilerExplorer = require('reveal-compiler-explorer').default