webassembly-wasi-experiments

What happens here ?

  1. c/c-app.c was compiled to .wasm (you can see it in the network inspector)
  2. The c-app.js script which is running inside the browser compiles and executes that wasm file
  3. This runs inside the wasmer runtime which emulates file system bindings (our original program thinks it is interacting with a real file system)

Bellow is the content of the ./tmp.txt file "written" on the emulated file system: