The best usage example of WASI I know of is the Zig compiler: https://ziglang.org/news/goodbye-cpp/