What are the web alternatives for electron.js’s desktopCapturer?

I am trying to move an electron screen recorder to a web-based version in React.

The electron.js version uses desktopCapturer to record the video and audio.

I need the ability to capture screen, audio and also need to be able to record clicks. So if a user presses anywhere in the screen the clicks should be captured with the coordinates

I was looking at a few libraries

Are there any other libraries for web that do the same to what desktopCapturer does in electron.js