Elestia Open Source Ratings
7.9

zxing-wasm

A strong pick. 1st of 9 QR codes and barcodes.

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.

WebsiteGitHubnpm

Scores

Overall7.9

How strongly do we recommend it for a new project today?

Claude Opus 5.5: 7.5, likely 6.5 to 8.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, likely 7.2 to 9.2

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 many4.4

How many developers need a tool for this job?

Claude Opus 5.5: 5.0, likely 4.0 to 6.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, likely 2.7 to 5.0

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 lot8.2

How well does it do the job for those who need it?

Claude Opus 5.5: 8.0, likely 7.0 to 9.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, likely 7.3 to 9.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 time7.3

Will it still be a good choice in two years?

Claude Opus 5.5: 7.0, likely 5.5 to 8.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, likely 6.3 to 8.8

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 widely5.1

How many use it, and is that growing?

Claude Opus 5.5: 6.0, likely 4.5 to 7.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.

  • npm downloadsLast4Weeks: 21.7M now vs 517K a year ago
  • dependents: Only 2 repos and 2 packages counted
  • npmjs.com/package/barcode-detector: Widely used polyfill that depends on zxing-wasm

GPT-6.2 Sol: 4.1, likely 2.5 to 5.8

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 for5.8

Who stands behind it being good?

Claude Opus 5.5: 5.0, likely 3.5 to 6.5

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, likely 5.2 to 7.8

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.

Safe7.4

How safe is it to depend on?

Claude Opus 5.5: 7.0, likely 5.5 to 8.5

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.

  • advisories total: 0 advisories
  • npm dependencies: 2 dependencies
  • github.com/Sec-ant/zxing-wasm: jsDelivr default URL; ZXING_WASM_SHA256 export
  • scorecard: No Scorecard available

GPT-6.2 Sol: 7.8, likely 6.5 to 8.9

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

npm downloads, 4 weeks
22M ×42 in a year
GitHub stars
298
Commits, 12 months
97
npm version
3.1.7 Nov 2026
Versions, 12 months
12
Advisories, 24 months
0 of 0 ever
OpenSSF Scorecard
None
Licence
MIT

Read on 21 November 2026 from GitHub (Sec-ant/zxing-wasm), npm (zxing-wasm), OSV and the OpenSSF Scorecard.

QR codes and barcodes

  1. 7.9zxing-wasm
  2. 7.4bwip-js
  3. 7.2qrcode.react
  4. 6.5JsBarcode
  5. 6.1QR Code Styling
  6. 6.0node-qrcode
  7. 5.5ZXing JS
  8. 4.6jsQR
  9. 4.1html5-qrcode
Compare all 9 on six scores