Hi Manuel,
As far as I know, you are best off with a hardware barcode scanner, you can have those already from 24 euro off. A reader that would scan QR too, might be a bit more expensive, but will probably start at 35 euro.
There are a couple of libraries that can read QR, or barcode's using the cam of a computer/phone. Those are nice for simple things but are terribly slow and unpredictable. When you need to scan any real volume, a dedicated hardware reader is still the way to go.
If you want to stick with cam,
XZing is a good place to start (not JS, but you can find more there). Based on that there is
QuaggeJS
Hope this helps
Regards
Sander