flyt

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 → guest
POST /carts/c_81/lines → handlers.add_line
In Gohttp.HandleFunc("/carts/", addLine)