Skip to content

alexisbouchez/hypercode

Repository files navigation

Hypercode

Discord

Interactive Go lessons in the browser. You edit Go code in the editor and run it; execution is handled by Yaegi (the Go interpreter) compiled to WebAssembly.

Clone and run

git clone https://github.com/alexisbouchez/hypercode.git
cd hypercode

Install dependencies (npm or bun):

npm install
# or
bun install

Start the dev server:

npm run dev
# or
bun dev

Open http://localhost:3000.

Building the WASM module

The repo ships prebuilt public/yaegi.wasm and public/wasm_exec.js. To rebuild them you need Go and the project’s script:

./scripts/build-wasm.sh

This compiles the wasm/ Go package (Yaegi + a small stdlib subset) to WebAssembly and copies wasm_exec.js from your Go installation. Optional: install Binaryen for wasm-opt to shrink the binary.

Zig course

The Zig lessons need public/zig/zig.wasm and public/zig/zig-stdlib.tar.gz. See public/zig/README.md for details. If those files are missing, the UI will show “Zig runtime failed to load” instead of loading forever.

License

LICENSE

About

Learn by doing. Interactive courses that run in your browser. Write code, get instant feedback.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors