For client side there is https://hardenedjs.org/
And Cloudflare OS does some fancy things with iframes + capnweb iirc
Will take a deeper look into the Cloudflare OS source - thanks!
Will take a deeper look into the Cloudflare OS source - thanks!