In a nutshell, if you can find a library that runs in the browser, it will ‘work’.
If you need it in a VR experience, you have to find something that renders in a WebGL context.
Someone last year was doing some work in this area that you can find here: [SOLVED] Multi-threaded operations in WebXR; Editor vs Published