How to cut and export audio in JavaScript?

BH

All I’m trying to do is create a basic Audio Editor in the browser, no server, which allows the user to select in and out times for various input audio clips, imported in the “bin”, and decide when they should end, and make cuts the the middle etc. and place them together, and finally, export it all

I could just record through all of the cut audio using the MediaRecorder API, stopping and starting at each cut point etc., but that would take a lot of time, when using Premeire for example, its usually able to export a very long audio-edit sequence in a few seconds, I would like to get something like this in browser-JavaScript, but I don’t know how to?

I’ve seen mp3-cuter but that’s only for NodeJS, is there anything similar for Browser-JavaScript?