Barcode reader in PWA

I’m needing a barcode reader in my pwa and have been fumbling around with Quagga, to varying degrees of success but ultimately failure. Partly the problem lies with me, fluent in Basic and a rookie in Javascript.

What is the best path for me to get a pwa reading barcodes?