A great idea but the last time I worked with WASM, using something like Wasmtime's shared host functions https://github.com/bytecodealliance/rfcs/blob/main/accepted/... they had quite the overhead. Maybe things have changed and have become less heavy.
Thank you for the styling tip, I'll see what I can do it does look wonky.