cpp-on-the-web
OfficialCompile C++ to high-performance web apps with WebAssembly.
AuthorGoogleChrome
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This Skill solves the common challenge of getting C and C++ code to run efficiently in modern web browsers, eliminating the steep learning curve of Emscripten configuration, build flag selection, and browser-specific compatibility pitfalls.
Core Features & Use Cases
- Emscripten Setup & Build Guidance: Step-by-step instructions for installing the Emscripten SDK, selecting recommended compilation flags for modern ES6 module output, and optimizing build size and performance for web deployment.
- JS/C++ Interop Best Practices: Guidance for using Embind for safe, class-based interoperability between C++ and JavaScript, plus support for async C++ execution via Asyncify or JSPI when calling JavaScript functions from C++.
- Library Porting Workflows: Detailed instructions for porting existing C/C++ libraries to the web using standard build systems (CMake, autoconf) or Docker for cross-platform builds, including handling common constraints like browser file I/O, threading, and networking.
- Use Case Example: Use this Skill to port a C++ image processing library to run directly in the browser for client-side photo editing, avoiding the need to rewrite the entire library in JavaScript.
Quick Start
Use the cpp-on-the-web skill to compile your C++ project to a modern ES6 WebAssembly module with optimized flags and Embind interop for browser use.
Dependency Matrix
Required Modules
None requiredComponents
referencesassets
💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: cpp-on-the-web Download link: https://github.com/GoogleChrome/modern-web-guidance-src/archive/main.zip#cpp-on-the-web Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 537,000+ vetted skills library on demand.