# ZXing JS: 5.5 out of 10

Reasonable, with limits. 7th of 9 in [QR codes and barcodes](https://elestia.ai/opensource/qr-barcodes/index.md).

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

- **Overall: 5.5** (likely 4.5 to 6.5)
  - Claude Opus 5.5 (4.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.
  - GPT-6.2 Sol (6.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.
- **Needed by many: 4.2** (likely 3.1 to 5.4)
  - Claude Opus 5.5 (4.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.
  - GPT-6.2 Sol (3.9): 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.
- **Helps a lot: 6.1** (likely 5.1 to 7.1)
  - Claude Opus 5.5 (5.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.
  - GPT-6.2 Sol (7.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.
- **Holds up over time: 3.9** (likely 2.8 to 5.4)
  - Claude Opus 5.5 (3.0): 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.
  - GPT-6.2 Sol (4.8): 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.
- **Used widely: 5.1** (likely 4.0 to 6.2)
  - Claude Opus 5.5 (5.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.
  - GPT-6.2 Sol (4.6): 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.
- **Vouched for: 5.3** (likely 4.2 to 6.4)
  - Claude Opus 5.5 (4.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.
  - GPT-6.2 Sol (6.5): 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.
- **Safe: 6.7** (likely 5.6 to 7.8)
  - Claude Opus 5.5 (6.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.
  - GPT-6.2 Sol (6.9): 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.

## 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

- Downloads, 4 weeks: 12M
- In a year: ×6.4
- GitHub stars: 3k
- Commits, 12 months: 25
- Last npm release: Apr 2026
- Advisories, 24 months: 0
- Licence: Apache-2.0
- GitHub: https://github.com/zxing-js/library
- npm: https://www.npmjs.com/package/@zxing/library

Scores run from 0 to 10 and are the mean of the scores of AI reviewers (Claude Opus 5.5, GPT-6.2 Sol), made on 22 November 2026 from GitHub, npm, OSV, OpenSSF Scorecard, ecosyste.ms, Hacker News and Bluesky data and a web search. The ecosyste.ms count of repositories that use a project is far too low for projects that grew in the last few years, and some reviews quote it. Overall is the reviewers' own judgement for a new project today, not an average of the parts. An AI wrote them and can be wrong.
