{"library":"reveal-compiler-explorer","title":"Reveal Compiler Explorer","description":"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.","language":"javascript","status":"active","last_verified":"Fri May 01","install":{"commands":["npm install reveal-compiler-explorer"],"cli":null},"imports":["import RevealCompilerExplorer from 'reveal-compiler-explorer'","const RevealCompilerExplorer = require('reveal-compiler-explorer').default","import RevealCompilerExplorer from 'reveal-compiler-explorer'"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"import Reveal from 'reveal.js';\nimport RevealCompilerExplorer from 'reveal-compiler-explorer';\n\nlet deck = new Reveal({\n  plugins: [ RevealCompilerExplorer ],\n  // Optional: configure the plugin\n  revealCompilerExplorer: {\n    defaultCompiler: 'g82',\n    defaultLanguage: 'c++'\n  }\n});\ndeck.initialize();","lang":"javascript","description":"Shows how to import the plugin and add it to a reveal.js instance, with optional configuration.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}