Browser QR Scanning
live demo: https://qr-scan.netlify.com
install
npm i
run
npm run start
open browser to http://localhost:3005
You can generate a QR code with: https://qrcode.surge.sh
About
The actual scanning is done in a WebWorker using the zbar library which is written in C++
Zbar is compiled to WebAssembly using Emscripten. More details on how that's done here
The app communicates with the WebWorker(wasm-worker.js file) using a library called rawr