@unfa sadly such design is totally unlike what Rack does internally.
I have similar goals that I want for it, because I want this wasm UI to be able to control a remote instance. But as it stands it is just not possible. Either some very smart tricks need to be found, or major engine rework to be done, before this is even possible.