ZXing JS
Reasonable, with limits. 7th of 9 QR codes and barcodes.
ZXing JS is a pure TypeScript port of the Java ZXing library. It reads many 1D and 2D barcode formats and writes a few. It still works and is widely installed, but its README says it is in maintenance mode and is looking for maintainers. For new scanning work, zxing-wasm (a WebAssembly build of the actively developed ZXing-C++) is usually the better pick.
Best for: Projects that already use it, or that need a multi-format barcode reader in pure JavaScript and cannot ship WebAssembly.
Scores
Overall5.5
How strongly do we recommend it for a new project today?
Claude Opus 5.5: 4.5, likely 3.5 to 5.5
It still works for multi-format scanning in pure JavaScript and stays widely installed. It is in maintenance mode and asks for maintainers, and zxing-wasm now does the same job faster and more accurately with active development. Keep it where it runs, but for new scanning work choose zxing-wasm, or jsQR if you only need to read QR codes.
- github.com/zxing-js/library: Maintenance mode only
- peers zxing-wasm: 97 commits last year, 21.7M downloads, growing fast
- strich.io/comparison-with-oss.html: Weak on hard codes
GPT-6.2 Sol: 6.5, likely 5.4 to 7.5
ZXing JS is a reasonable choice for new multi-format scanners that need a typed JavaScript decoder without a WebAssembly asset. For teams that can ship WebAssembly, zxing-wasm is the stronger general-purpose choice because it writes more formats and releases more actively. For generation alone, node-qrcode is simpler for QR output and bwip-js covers many more barcode types. Maintenance mode and limited current evidence on scan reliability keep ZXing JS below the category leaders.
- github.com/zxing-js/library/releases/tag/v0.23.0: Recent decoding improvements and broader format coverage.
- github.com/zxing-js/library/blob/master/README.md: The project remains in maintenance mode.
- github.com/Sec-ant/zxing-wasm: Broader reading and writing with a separate WebAssembly asset.
- peers zxing-wasm commitsLastYear, latestPublishedAt: 97 commits and a November 2026 release.
- github.com/soldair/node-qrcode: Direct QR rendering APIs for browser and server.
- github.com/metafloor/bwip-js: Supports generation for over 100 barcode types and standards.
Needed by many4.2
How many developers need a tool for this job?
Claude Opus 5.5: 4.5, likely 3.5 to 5.5
Reading barcodes from images or a camera is a clear but limited need, found mainly in retail, logistics, ticketing and inventory apps. The library is mostly a reader. Its encoding side is thin, while QR generation, the larger part of the category, is served by other packages.
- github description: Multi-format 1D/2D barcode image processing
- npm-compare.com/@zxing/library,html5-qrcode,jsqr,qr-scanner,qrcode-reader: Compared mainly against scanning and decoding libraries
GPT-6.2 Sol: 3.9, likely 2.6 to 5.2
Barcode scanning serves a distinct set of workflows such as inventory, ticketing, and document capture. ZXing JS covers several of those workflows with a framework-independent decoder for browser and server use. The State of JavaScript results give no direct estimate of how many developers need barcode tooling, so the range is wide.
- raw.githubusercontent.com/zxing-js/library/v0.23.0/README.md: Format coverage, browser support, and raw-pixel decoding.
- 2025.stateofjs.com/en-US/libraries: General library survey has no ZXing JS results.
- docs.oracle.com/en/industries/hospitality/cruise/property_management/23.3/ohclm/G39310_01.pdf: Documents use in hospitality software.
Helps a lot6.1
How well does it do the job for those who need it?
Claude Opus 5.5: 5.0, likely 4.0 to 6.0
Its format coverage is broad, and it ships TypeScript types and a well-known API, so AI coding agents write code for it reliably. Tests by others show weak reading of fine or degraded 1D codes and of Aztec and Data Matrix. A port in JavaScript is also slower than the WebAssembly build of ZXing-C++. zxing-wasm does the same job better for most people.
- strich.io/comparison-with-oss.html: Benchmark by a vendor: missed fine Code 128 and Aztec codes
- dynamsoft.com/codepool/benchmark-barcode-reading-javascript-zxing-wasm-dynamsoft-barcode-reader.html: Benchmark covers zxing-wasm, the newer ZXing engine
- npm hasTypes: Built-in types
- ZXing-C++ vs Java port: The C++ engine has moved ahead of the Java and JS ports
GPT-6.2 Sol: 7.2, likely 6.1 to 8.2
Version 0.23.0 adds MaxiCode decoding and logs unexpected decoder errors. Its typed reader was faster than jsQR in an external synthetic QR benchmark, with mixed results on distorted images. The main example leaves several imports implicit, and the generic writer handles QR only. User reports of missed scans and limited current testing across formats leave real-world accuracy uncertain.
- github.com/zxing-js/library/releases/tag/v0.23.0: MaxiCode decoding and improved error visibility.
- npm hasTypes: Built-in TypeScript declarations.
- github.com/Datawalke/cam2qr/blob/main/docs/benchmarks.md: Competing project measured fast QR decoding and weaker results on noisy frames.
- github.com/zxing-js/library/issues/653: Open report includes QR images that failed to decode.
- raw.githubusercontent.com/zxing-js/library/v0.23.0/README.md: Core decoding example omits several imports.
- raw.githubusercontent.com/zxing-js/library/v0.23.0/src/core/MultiFormatWriter.ts: The generic writer dispatches only to the QR writer.
- raw.githubusercontent.com/zxing-js/library/v0.23.0/src/index.ts: Data Matrix has its own writer export.
Holds up over time3.9
Will it still be a good choice in two years?
Claude Opus 5.5: 3.0, likely 2.0 to 4.5
The README says the project is in maintenance mode, takes only contributed patches and wants new maintainers. In the last year it had 25 commits and 2 releases, and the Scorecard rates Maintained at 0. It is not archived, but the ecosystem is moving to zxing-wasm, and the npm-compare page reports a new Node >=24 engines requirement.
- github.com/zxing-js/library: README: maintenance mode only, maintainer wanted
- github commitsLastYear: 25 commits, 2 releases in the last year
- scorecard Maintained: Score 0
- npm-compare.com/@zxing/library,html5-qrcode,jsqr,qr-scanner,qrcode-reader: Manifest declares Node >=24
GPT-6.2 Sol: 4.8, likely 3.5 to 6.2
The repository recorded 25 commits over the year, and one account published both April releases after a 20-month gap. The project relies on contributed patches and has a modest donation budget and no active roadmap. An open QR decoding report and an Angular install conflict show the support and upgrade costs users can encounter. The April releases show that meaningful fixes can still land, while the pace of future releases remains uncertain.
- github commitsLastYear, releasesLastYear, openIssues, openPullRequests: 25 commits, two releases, 179 open issues, and 13 open pull requests.
- github.com/zxing-js/library/releases: Release history shows the long gap and the same release account.
- github.com/zxing-js/library/blob/master/README.md: Patch-driven maintenance and no active roadmap.
- opencollective.com/zxing-js: Estimated annual donation budget of $750.
- github.com/zxing-js/library/issues/653: August decoding report remains open.
- github.com/zxing-js/ngx-scanner/issues/613: A user reported an npm install conflict after upgrading related ZXing packages.
Used widely5.1
How many use it, and is that growing?
Claude Opus 5.5: 5.5, likely 4.5 to 6.5
It had 12.5M downloads in 4 weeks, up from 1.9M a year before. That ratio of 6.4 is above the median of 4.1, but much of it comes through html5-qrcode and the @zxing wrappers. Its 2,062 dependent repos put it in the middle of the peers, below jsQR and node-qrcode, and there are no Hacker News stories or Bluesky posts. Direct choices are likely in the tens of thousands.
- npm downloadsLast4Weeks: 12.47M, against 1.94M a year ago
- dependents repos: 2,062 repos and 223 packages
- peers html5-qrcode: 8.7M downloads, depends on @zxing/library
- bluesky posts: 0 posts
GPT-6.2 Sol: 4.6, likely 3.4 to 5.8
Downloads rose 6.44 times year over year, above the catalog median of 4.1 times and behind most listed peers. Tracked use sits near the middle of the category, with 2,062 dependent repositories and 223 dependent npm packages. Browser wrappers can drive indirect installs, and projects that bundle a copy can go uncounted, so direct adoption is uncertain.
- npm downloadsLast4Weeks, downloadsSame4WeeksYearAgo; medianDownloadsRatio: 12.47 million versus 1.94 million downloads, or 6.44 times growth.
- dependents repos, packages; github stars; peers: 2,062 repositories, 223 packages, and 2,950 stars. jsQR has about four times as many tracked repositories.
- github.com/zxing-js/browser/blob/v0.2.0/package.json: The browser wrapper declares the core as a peer dependency.
- github.com/mebjas/html5-qrcode/blob/master/src/zxing-html5-qrcode-decoder.ts: html5-qrcode uses a bundled fork.
Vouched for5.3
Who stands behind it being good?
Claude Opus 5.5: 4.0, likely 3.0 to 5.0
It carries the ZXing name, and html5-qrcode and the Angular ngx-scanner are built on it. The current independent write-ups mostly call it unmaintained or point to newer engines. The detailed benchmarks come from commercial vendors and show middling accuracy.
- scanbot.io/blog/popular-open-source-javascript-barcode-scanners: Calls zxing-js no longer maintained
- strich.io/comparison-with-oss.html: Mixed results in a vendor benchmark
- dependents packages: 223 dependent packages
GPT-6.2 Sol: 6.5, likely 5.3 to 7.7
Oracle Hospitality lists ZXing JS 0.21.3, and html5-qrcode ships a fork of its decoder. Offline Barcode Reader uses it for Aztec and PDF417 and as a fallback. These deployments show practical value across formats, while the available benchmark covers synthetic QR images and the developer survey offers no package-specific satisfaction data.
- docs.oracle.com/en/industries/hospitality/cruise/property_management/23.3/ohclm/G39310_01.pdf: Oracle lists @zxing/library in its Cruise Shipboard licensing manual.
- github.com/mebjas/html5-qrcode/blob/master/src/zxing-html5-qrcode-decoder.ts: Another catalog project ships a fork of the decoder.
- offline-barcode-reader.com/licenses: A deployed web app uses ZXing JS for Aztec and PDF417 and as a fallback.
- github.com/Datawalke/cam2qr/blob/main/docs/benchmarks.md: Reproducible third-party benchmark with a limited synthetic corpus.
- 2025.stateofjs.com/en-US/libraries: No package-specific satisfaction or retention results.
Safe6.7
How safe is it to depend on?
Claude Opus 5.5: 6.5, likely 5.5 to 7.5
It has no advisories, one runtime dependency and an Apache-2.0 licence, so the attack surface is small. The Scorecard is 3.5. It has no security policy, weak code review and unpinned dependencies, and with few active maintainers a future issue could be fixed slowly.
- advisories total: 0 advisories
- npm dependencies: 1 dependency
- scorecard score: 3.5, Security-Policy 0, Code-Review 3
- github license: Apache-2.0
GPT-6.2 Sol: 6.9, likely 5.7 to 8.0
OSV lists zero advisories, and the Apache-2.0 package has one required dependency and an optional encoding package. GitHub Actions built, tested, and published 0.23.0 with npm provenance, and npm lists two collaborators. The 3.5 OpenSSF Scorecard reflects weak review, dependency pinning, and workflow token permissions, and the repository lacks a security policy. The advisory record gives little evidence about how the project would handle a reported vulnerability.
- advisories total, last24Months; npm dependencies, license: Zero OSV advisories, one required dependency, and Apache-2.0.
- scorecard score, checks: 3.5 overall, with Code-Review at 3, Pinned-Dependencies at 1, and Token-Permissions and Fuzzing at 0.
- raw.githubusercontent.com/zxing-js/library/v0.23.0/package.json: Lists the optional text encoding package.
- raw.githubusercontent.com/zxing-js/library/v0.23.0/.github/workflows/npmpublish.yml: The release workflow builds, tests, and publishes with OIDC permissions.
- github.com/zxing-js/library/actions/runs/25093960648/attempts/1: Successful build and publish jobs for 0.23.0.
- npmjs.com/package/%40zxing/library: npm lists two package collaborators.
- github.com/zxing-js/library/security: GitHub reports no security policy.
Good
- It decodes many formats from one API, including QR, Data Matrix, Aztec, PDF417, Code 128 and EAN, and it can also encode some of them.
- It is pure TypeScript with built-in types, one dependency and no WebAssembly to load.
- Wrappers build on it, such as @zxing/browser and @zxing/ngx-scanner, and html5-qrcode depends on it.
- It has no known security advisories and uses the permissive Apache-2.0 licence.
Bad
- Its README says it is in maintenance mode: it takes only contributed bug fixes, has no roadmap and is asking for new maintainers.
- Independent tests find it weak on fine, faded or damaged 1D codes, and its reading of Aztec and Data Matrix is unreliable.
- zxing-wasm, the WebAssembly build of the C++ ZXing, is faster, supports more formats and gets far more commits.
- 179 issues are open, and the OpenSSF Scorecard is only 3.5, with no security policy and unpinned dependencies.
The numbers
- npm downloads, 4 weeks
- 12M ×6.4 in a year
- GitHub stars
- 3k
- Commits, 12 months
- 25
- npm version
- 0.23.0 Apr 2026
- Versions, 12 months
- 2
- Advisories, 24 months
- 0 of 0 ever
- OpenSSF Scorecard
- 3.5 out of 10, Oct 2026
- Licence
- Apache-2.0
Read on 21 November 2026 from GitHub (zxing-js/library), npm (@zxing/library), OSV and the OpenSSF Scorecard.
QR codes and barcodes
- 7.9zxing-wasm
- 7.4bwip-js
- 7.2qrcode.react
- 6.5JsBarcode
- 6.1QR Code Styling
- 6.0node-qrcode
- 5.5ZXing JS
- 4.6jsQR
- 4.1html5-qrcode