02 — Host & guest
Your program never touches the world. It asks.
An app compiles to one WebAssembly module, the guest, which asks the host for everything it needs.
Host · flyt serve
HTTP in
HTTP out
Secrets
Guest · shop.wasmhandlers · rules · entities · pagesno sockets · no clock · no disk · no randomness · no floats
Store
Clock & random
Deploys
A request arrives
host → guestIn Go
http.HandleFunc("/carts/", addLine)