Boilerplate to stand up a SPA app using Zig 0.9 for webassembly and Vite. Commands sent using WAPC.
- Get npm/node
- Get zig 0.9
- Get gyro for package management
- Create a deps.zig by running "gyro fetch"
- Build wasm payload
npm install
to setup vite dependenciesnpm run dev
to start your dev server- Point your browser at localhost:3000
- zig-wasm-dom inspiration on how one might pass js objects back and forth
- tetris much bigger example
- go's syscall example implementation of an api to give a wasm guest control over a js host env.