A fully-featured C code editor and compiler that runs entirely in your browser. Uses Monaco Editor and Clang compiled to WebAssembly via Wasmer SDK.
bun run setup # Install deps & download clang (~30MB, one-time)
bun run dev # Start dev server
bun run build # Build for production
bun run preview # Preview production builddist/ contains the static site after bun run build. Upload it to any static host (GitHub Pages, Netlify, Vercel, etc).
For best performance, set these headers:
Cross-Origin-Opener-Policy: same-origin
Cross-Origin-Embedder-Policy: require-corp
If you can't set headers, the service worker will polyfill (may require reload).
All dependencies are managed via Bun:
| Package | Purpose |
|---|---|
| monaco-editor | Code editor (VS Code UI) |
| vite | Build tool & dev server |
| typescript | Type safety |
bun outdated # Check for updates
bun update # Update all
bun add <pkg> # Add/update specific package
bun run build # Rebuild- Real Clang compiler (not an interpreter)
- Standard C library (stdio.h, etc)
- Monaco Editor (syntax, shortcuts)
- Example programs included
- Stdin support
- 100% client-side
- C code is written to a virtual FS
- Clang (WASM) compiles to WebAssembly
- Output runs in-browser
On first load, Clang (~30MB) is downloaded & cached.
- Bun (package manager and runtime)
- Modern browser (WebAssembly, SharedArrayBuffer)
MIT