In case your first instinct (like mine) was to browse through the implementation, the javascript is at https://github.com/VSRemoter/LuxPDF/blob/main/script.js

Thanks. I'll add the answer to my own question too: pdfLib is the dependency at work to make it work in the browser runtime.

Yes, I can't believe I didn't attach on the main site, will do this asap haha