What does HackerNews think of wagi?

Write HTTP handlers in WebAssembly with a minimal amount of work

Language: Rust

Compile a CGI program in any language to WASI, then use https://github.com/deislabs/wagi to run it.
Yeah of course! They've got STDIN/STDOUT/STDERR and I've built a Virtual Filesystem. But if you're using WASI binaries locally they don't have that restriction.

You might be interested in WAGI: https://github.com/deislabs/wagi

And to catch up on WASI: https://xeiaso.net/talks/unix-philosophy-logical-extreme-was...

I've always loved the simplicity and flexibility of CGI.

To check my understanding: since CGI just takes a raw request over stdin and returns a response over stdout, would a WCGI wasm module be compatible with WAGI[1] and vice-versa?

[1] https://github.com/deislabs/wagi

Yup, but they have a lot of different awesome projects on the fire, it can be hard to know which one to use:

- https://github.com/deislabs/runwasi

- https://github.com/deislabs/hippo

- https://github.com/deislabs/wagi

- https://github.com/deislabs/krustlet

The description at the end of the article sounds like CGI, on WASM, which is what WAGI is.