Installing a desktop application on your computer is dangerous, don't do it. I'm also aware that this site is strongly in favor of in browser solutions as opposed to desktop solutions.
Having said this, still the fastest way to run a chess engine is running it as a native executable. Of course you cannot do this in a browser.
I hope you belive that Gorilla WebSocket that has 4385 stars and 785 forks on GitHub is not malware:
Now, this module has an example callled 'command':
It runs a system process and at the same time serves a web page on localhost in which you can type in a command that goes to the standard input of this process and get the response coming from this process printed in the browser window.
The engine is just a process, so you can manually run a native chess engine in the browser already using this simple example.
The only thing is that you have to type in commands and get the raw analysis output which is not very readable.
If you add some graphical interface and thinking output processing to this program, it can become an engine server which lets you analyze chess positions in your browser at native speed without the need to compile the engine into some format that the browser can run ( with performance loss ).
Just an idea.