Gathering detailed insights and metrics for @zxing/library
Gathering detailed insights and metrics for @zxing/library
Gathering detailed insights and metrics for @zxing/library
Gathering detailed insights and metrics for @zxing/library
vue-zxing
基于zxing-js/library插件封装的vue组件,组件可以扫描解析二维码、条形码。
@nuintun/qrcode
A pure JavaScript QRCode encode and decode library.
zxing-library2
TypeScript port of ZXing multi-format 1D/2D barcode image processing library with inverse barcode support
zxing-library-with-attempts
TypeScript port of ZXing multi-format 1D/2D barcode image processing library.
Multi-format 1D/2D barcode image processing library, usable in JavaScript ecosystem.
npm install @zxing/library
Typescript
Module System
Min. Node Version
Node Version
NPM Version
99.2
Supply Chain
99.4
Quality
79
Maintenance
100
Vulnerability
79
License
TypeScript (94.15%)
Java (5.69%)
JavaScript (0.16%)
Total Downloads
38,979,688
Last Day
12,352
Last Week
291,191
Last Month
1,234,327
Last Year
13,779,585
Apache-2.0 License
2,702 Stars
1,213 Commits
556 Forks
45 Watchers
14 Branches
57 Contributors
Updated on Jul 02, 2025
Minified
Minified + Gzipped
Latest Version
0.21.3
Package Id
@zxing/library@0.21.3
Unpacked Size
9.02 MB
Size
1.46 MB
File Count
1,346
NPM Version
10.7.0
Node Version
18.20.4
Published on
Aug 21, 2024
Cumulative downloads
Total Downloads
Last Day
-2.4%
12,352
Compared to previous day
Last Week
-5.6%
291,191
Compared to previous week
Last Month
2.7%
1,234,327
Compared to previous month
Last Year
28.3%
13,779,585
Compared to previous year
1
35
1
The project is in maintenance mode, meaning, changes are driven by contributed patches. Only bug fixes and minor enhancements will be considered. The Barcode Scanner app can no longer be published, so it's unlikely any changes will be accepted for it. There is otherwise no active development or roadmap for this project. It is "DIY".
If it doesn't, we gonna make it.
ZXing ("zebra crossing") is an open-source, multi-format 1D/2D barcode image processing library implemented in Java, with ports to other languages.
See Projects and Milestones for what is currently done and what's planned next. 👀
1D product | 1D industrial | 2D |
---|---|---|
UPC-A | Code 39 | QR Code |
UPC-E | Code 93 | Data Matrix |
EAN-8 | Code 128 | Aztec |
EAN-13 | Codabar | PDF 417 |
ITF | ||
RSS-14 | ||
RSS-Expanded (not production ready!) |
NOTE: While we do not have the time to actively maintain zxing-js anymore, we are open to new maintainers taking the lead.
See Live Preview in browser.
Note: All the examples are using ES6, be sure is supported in your browser or modify as needed, Chrome recommended.
npm i @zxing/library --save
or
yarn add @zxing/library
On iOS-Devices with iOS < 14.3 camera access works only in native Safari and not in other Browsers (Chrome,...) or Apps that use an UIWebView or WKWebView. This is not a restriction of this library but of the limited WebRTC support by Apple. The behavior might change in iOS 11.3 (Apr 2018?, not tested) as stated here
iOS 14.3 (released in december 2020) now supports WebRTC in 3rd party browsers as well 🎉
The browser layer is using the MediaDevices web API which is not supported by older browsers.
You can use external polyfills like WebRTC adapter to increase browser compatibility.
Also, note that the library is using the TypedArray
(Int32Array
, Uint8ClampedArray
, etc.) which are not available in older browsers (e.g. Android 4 default browser).
You can use core-js to add support to these browsers.
In the PDF 417 decoder recent addition, the library now makes use of the new BigInt
type, which is not supported by all browsers as well. There's no way to polyfill that and ponyfill libraries are way to big, but even if PDF 417 decoding relies on BigInt
the rest of the library shall work ok in browsers that doesn't support it.
There's no polyfills for BigInt
in the way it's coded in here.
1// use with commonJS 2const { MultiFormatReader, BarcodeFormat } = require('@zxing/library'); 3// or with ES6 modules 4import { MultiFormatReader, BarcodeFormat } from '@zxing/library'; 5 6const hints = new Map(); 7const formats = [BarcodeFormat.QR_CODE, BarcodeFormat.DATA_MATRIX/*, ...*/]; 8 9hints.set(DecodeHintType.POSSIBLE_FORMATS, formats); 10 11const reader = new MultiFormatReader(); 12 13const luminanceSource = new RGBLuminanceSource(imgByteArray, imgWidth, imgHeight); 14const binaryBitmap = new BinaryBitmap(new HybridBinarizer(luminanceSource)); 15 16reader.decode(binaryBitmap, hints);
See Contributing Guide for information regarding porting approach and reasoning behind some of the approaches taken.
Special thanks to all the contributors who have contributed for this project. We heartly thankful to you all.
And a special thanks to @aleris who created the project itself and made available the initial QR code port.
No vulnerabilities found.
Reason
no dangerous workflow patterns detected
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
Found 6/11 approved changesets -- score normalized to 5
Reason
2 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 1
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
detected GitHub workflow tokens with excessive permissions
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
26 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-06-30
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