Gathering detailed insights and metrics for vue-qrcode-reader
Gathering detailed insights and metrics for vue-qrcode-reader
Gathering detailed insights and metrics for vue-qrcode-reader
Gathering detailed insights and metrics for vue-qrcode-reader
qrcode-reader-vue3
A set of Vue.js components for detecting and decoding QR codes.
vue-barcode-reader
Vue barcodes and QR codes scanner
@dargmuesli/vue-qrcode-reader
A set of Vue.js components for detecting and decoding QR codes.
vue-qrcode-reader-polyfill
A set of Vue.js components for detecting and decoding QR codes.
A set of Vue.js components for detecting and decoding QR codes.
npm install vue-qrcode-reader
Typescript
Module System
Min. Node Version
Node Version
NPM Version
TypeScript (56.01%)
Vue (41.91%)
Nix (1.33%)
JavaScript (0.73%)
Shell (0.02%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
MIT License
2,235 Stars
378 Commits
348 Forks
35 Watchers
22 Branches
30 Contributors
Updated on Jul 15, 2025
Latest Version
5.7.2
Package Id
vue-qrcode-reader@5.7.2
Unpacked Size
198.99 kB
Size
59.00 kB
File Count
15
NPM Version
10.8.2
Node Version
18.20.8
Published on
Apr 22, 2025
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
2
21
A set of Vue.js components for detecting QR codes and various other barcode formats right in the browser:
QrcodeStream
continuously scans frames from a camera stream.QrcodeDropZone
is an empty region where you can drag-and-drop images to be decoded.QrcodeCapture
is a classic file upload field, instantly scanning all files you select.All components are responsive. Beyond that, close to zero styling. Make them fit your layout. Usage is simple and straight forward:
1<qrcode-stream @detect="onDetect"></qrcode-stream>
1methods: { 2 onDetect (detectedCodes) { 3 // ... 4 } 5}
Run
1npm install vue-qrcode-reader
You can import the components independantly
1import { QrcodeStream, QrcodeDropZone, QrcodeCapture } from 'vue-qrcode-reader' 2 3const MyComponent = { 4 // 5 components: { 6 QrcodeStream, 7 QrcodeDropZone, 8 QrcodeCapture 9 } 10 11 // ... 12}
or register all of them globally right away
1import Vue from 'vue' 2import VueQrcodeReader from 'vue-qrcode-reader' 3 4Vue.use(VueQrcodeReader)
Include the following JS file:
https://unpkg.com/vue-qrcode-reader/dist/vue-qrcode-reader.umd.js
Make sure to include it after Vue:
1<script src="./vue.js"></script> 2<script src="./vue-qrcode-reader.umd.js"></script>
All components are automatically registered globally. Use kebab-case to reference them in your templates:
1<qrcode-stream></qrcode-stream> 2<qrcode-drop-zone></qrcode-drop-zone> 3<qrcode-capture></qrcode-capture>
QrcodeStream
.error
event to investigate errors.barcode-detector
-> zxing-wasm
-> zxing-cpp
, and file detection issues in the highest-level repository where the problem first occurs.The default value for the formats
prop is "['qr_code']"
, which reflects the setting before the formats
prop was available.
You'll need to add other barcode formats to this prop to detect those types of barcodes.
Check out this demo.
Support is dropped but you can downgrade to vue-qrcode-reader v3.* or lower.
That Wasm file implements the QR code detector. Unfortunately, it's not very convenient to bundle this file with the package. So by default we fetch it at runtime from a CDN. That's an issue for offline applications or applications that run in a network with strict CSP policy. For a workaround see: https://github.com/gruhn/vue-qrcode-reader/issues/354
torch
is not supported on my device, although it has a flashlight.Support for torch
is inconsistent across devices, cameras and browsers and operating systems.
On some devices the rear camera supports torch
but the front camera doesn't,
even if the front camera actually has a flashlight.
Furthermore, torch
is not supported on iOS at all (last checked iOS 17.1).
Visit this page with your device.
The list of links represents all cameras installed on the device.
If you click, the camera should be loaded.
Below the camera view the JSON object of "capabilities" is printed.
If it doesn't contain the key/value pair "torch": true
then flashlight is not supported for that camera.
This JSON object provided as payload of the camera-on
event.
No vulnerabilities found.
Reason
no dangerous workflow patterns detected
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
packaging workflow detected
Details
Reason
Found 9/28 approved changesets -- score normalized to 3
Reason
1 commit(s) and 2 issue activity found in the last 90 days -- score normalized to 2
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Reason
24 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-07-07
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More