Documentation
Run code in the browser
AutoLabDocs compiles and runs C++, C, Python and JavaScript entirely in the user's browser via WebAssembly — no execution server, no Docker, no per-run cost.
Runs on the host
Every program executes on the visitor's own CPU, inside the browser.
Four languages
JS & Python work asset-free; C/C++ via a clang-in-WASM toolchain.
Real interactive I/O
input(), cin >> and prompt() block for real input — like a terminal.
Zero backend
No execution server to attack, queue, or scale. Infinite scale at $0.
Quickstart#
The entire runtime lives in lib/runtime/ and is driven through one tiny interface. Pick an engine by filename and run:
example
import { getRunnerForFile } from "@/lib/runtime";
const runner = getRunnerForFile("main.py");
await runner.run({
filename: "main.py",
code: 'print("Hello from your own browser!")',
onEvent: (e) => {
if (e.type === "output") terminal.write(e.data);
if (e.type === "exit") console.log("done", e.code);
},
});That's the whole surface area: run(), sendInput(), and stop().
Where to next#
Built by Adithya Hegde Kota
The execution engine, the stdin channel, the WASM toolchain wiring — all designed and built by Adithya Hegde Kota.
See the SDK & Promotion License