# zxing-wasm: 7.9 out of 10

A strong pick. 1st of 9 in [QR codes and barcodes](https://elestia.ai/opensource/qr-barcodes/index.md).

zxing-wasm compiles the ZXing-C++ engine to WebAssembly and ships it with TypeScript types. It reads and writes about 45 barcode formats in browsers, Node.js, Bun and Deno. For decoding in JavaScript today it is the strongest open-source choice, but it has one main maintainer and fetches its wasm file from a CDN by default.

**Best for:** Developers who need fast, accurate reading of QR codes and many 1D/2D barcode formats, from images or camera frames, on any JS runtime.

## Scores

- **Overall: 7.9** (likely 6.9 to 8.9)
  - Claude Opus 5.5 (7.5): For reading barcodes it is the best-maintained and most capable open-source engine among the peers. jsQR, html5-qrcode and ZXing JS are stalled or looking for maintainers. Its size, the CDN default and having one maintainer keep it from being the default for everyone. For simple QR generation, node-qrcode or qrcode.react are lighter picks.
  - GPT-6.2 Sol (8.3): It is the strongest listed choice for projects that need both reading and writing across several barcode formats. It offers a more active release cadence than ZXing JS, while node-qrcode is simpler for QR generation alone. WebAssembly deployment overhead, concentrated maintenance, and limited evidence from real-world scans keep it below a category-wide default.
- **Needed by many: 4.4** (likely 3.4 to 5.5)
  - Claude Opus 5.5 (5.0): Reading and making barcodes is a clear but sizeable niche: retail, logistics, ticketing and auth apps. This tool covers both reading and writing on every major runtime, which is broader than most peers. Most people who only need to make a QR code would pick a lighter library.
  - GPT-6.2 Sol (3.8): Barcode work is a distinct need in retail, inventory, ticketing, and similar workflows. Running in browsers, Node.js, Bun, and Deno makes the library applicable across those workflows. The developer survey measures runtime use, so the share of projects that actually need barcodes remains uncertain.
- **Helps a lot: 8.2** (likely 7.2 to 9.2)
  - Claude Opus 5.5 (8.0): ZXing-C++ is the best-maintained open-source barcode engine, and this build exposes it with good types and subpath builds for reading or writing only. A vendor benchmark found it fast, with very high precision and strong QR and Data Matrix rates, but weaker on degraded 1D codes than a commercial SDK. The large wasm file and the CDN loading setup are real costs.
  - GPT-6.2 Sol (8.4): The typed API covers image decoding and barcode generation, with documented format selection and asset loading. Version 3.1.7 beat jsQR on decode speed and correct reads in ForgeSworn’s tests. The WASM payload and deployment setup add work. Test results vary by format and image quality, and published benchmarks leave mobile camera performance uncertain.
- **Holds up over time: 7.3** (likely 5.9 to 8.4)
  - Claude Opus 5.5 (7.0): It is very active: 97 commits, 12 releases and a release six days before the read date, with only 2 open issues. It also tracks the actively developed zxing-cpp upstream. The main risk is that one maintainer does most of the work without funding. Major versions (v1 to v3) changed the API, but legacy branches are still kept.
  - GPT-6.2 Sol (7.6): The project shipped 12 releases and recorded 97 commits in a year, a faster cadence than ZXing JS and most listed peers. Recent releases include upstream decoding fixes and older Safari support. Release activity appears concentrated with one maintainer, funding for the wrapper is unclear, and the v3 format-name changes add upgrade work.
- **Used widely: 5.1** (likely 3.5 to 6.4)
  - Claude Opus 5.5 (6.0): Downloads rose about 42x in a year (from 517K to 21.7M per 4 weeks), far above the 4.1 median. Most of them likely come through barcode-detector and the scanner components built on it. Direct dependents (2) and stars (298) are tiny next to its peers, so few projects pick it directly. Still, it is the engine under many scanner apps.
  - GPT-6.2 Sol (4.1): Four-week downloads grew about 42× year over year, the fastest increase among the listed peers and well above the 4.1× catalog baseline. The barcode-detector wrapper pins zxing-wasm and has a similar weekly download volume, so indirect installs likely account for much of that growth. Ecosyste.ms found two dependent repos and two packages, and the repo has 298 stars, both low beside jsQR and ZXing JS. npm lists more dependent packages than ecosyste.ms, leaving the size and growth of direct adoption uncertain.
- **Vouched for: 5.8** (likely 4.4 to 7.2)
  - Claude Opus 5.5 (5.0): Popular scanner wrappers build on it through barcode-detector. A commercial vendor chose it as the open-source baseline to benchmark against. I found no survey coverage, few independent write-ups, and no Hacker News or Bluesky attention, so the evidence is thin.
  - GPT-6.2 Sol (6.5): React-ZXing switched from ZXing JS to this engine via barcode-detector, which Vue Qrcode Reader also uses. A mobile-key app documents its use, and external benchmarks show strong QR results alongside weaker reads on some challenging barcodes. The benchmarks come from competing tool authors, and broad production or satisfaction data are scarce.
- **Safe: 7.4** (likely 6.0 to 8.7)
  - Claude Opus 5.5 (7.0): It has no advisories, only 2 dependencies and an MIT licence (upstream code is Apache 2.0 and BSD). By default it fetches executable wasm from a third-party CDN at runtime. That is a supply-chain and privacy concern, which you can avoid by self-hosting, and the exported SHA256 helps you check the file. There is no Scorecard, and one person publishes releases.
  - GPT-6.2 Sol (7.8): The package uses MIT, has two direct type dependencies, and has no npm advisories in the OSV snapshot. GitHub Actions runs tests before publishing and is configured to attach npm provenance. Recent releases picked up upstream security fixes and addressed a decoder memory bug. The default CDN load adds a third party at runtime, and the missing Scorecard and unverified publisher count leave some uncertainty.

## Good

- It is built on ZXing-C++, which is actively developed and decodes faster and more accurately than the JS ports jsQR and ZXing JS.
- One API reads and writes QR, Data Matrix, Aztec, PDF417, EAN/UPC, Code 128 and many more formats.
- It ships types and separate reader, writer and full builds, and runs in browsers, Node.js, Bun, Deno and WeChat mini programs.
- It is released often (12 releases last year), and it exports the build hash and upstream commit so you can verify the wasm file.

## Bad

- By default the wasm binary loads from jsDelivr. To self-host it you must configure prepareZXingModule.
- The wasm payload is large: about 1 MiB for the reader and about 1.5 MiB for the full build, far more than JsBarcode or node-qrcode.
- There is no camera or scanning UI. You need barcode-detector or a wrapper component for live scanning.
- Almost all of the work is done by one maintainer, and it has no listed funding.

## The numbers

- Downloads, 4 weeks: 22M
- In a year: ×42
- GitHub stars: 298
- Commits, 12 months: 97
- Last npm release: Nov 2026
- Advisories, 24 months: 0
- Licence: MIT
- GitHub: https://github.com/Sec-ant/zxing-wasm
- npm: https://www.npmjs.com/package/zxing-wasm

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.
