/barcode-scanner

A Progressive Web Application (PWA) that scans barcodes of various formats, using the Barcode Detection API.

Primary LanguageCSSMIT LicenseMIT

Barcode Scanner

Barcode/QR code Scanner

A Progressive Web Application (PWA) that scans barcodes of various formats, using the Barcode Detection API.

NOTE: The Barcode Detection API is part of the Fugu project. Currently it is supported only on Chromium browsers in MacOS and Android. For non-supporting browsers, a polyfill is used, but is limited to just QR Codes.

Live demo

Features

  • Scan barcodes from web camera
  • Scan barcodes from image files
  • Copy detected barcode to clipboard
  • Share detected barcode via Web Share API (Android)
  • If barcode is a URL, offer option to open in new tab
  • Offer to save detected barcodes to history (local storage)

Screenshots

Camera scan File scan

Development

Install dependencies

$ npm install

Start development server

$ npm run start -- --open

Build for production

$ npm run build

License

The MIT License (MIT)