# jsQR: 4.6 out of 10

Keep, but not for new work. 8th of 9 in [QR codes and barcodes](https://elestia.ai/opensource/qr-barcodes/index.md).

jsQR is a pure-JavaScript library that only reads QR codes, from raw pixel data. It has no dependencies, is still widely installed and works for simple cases. It has had no release since April 2021, and reliability problems reported in its issues go unanswered. For new work, zxing-wasm is a better reader: it is active and supports many formats.

**Best for:** Projects that need a tiny, dependency-free QR decoder for clean images or camera frames, in the browser or in Node, and that can live with a frozen library.

## Scores

- **Overall: 4.6** (likely 3.5 to 5.6)
  - Claude Opus 5.5 (4.0): jsQR still works and is easy to embed, but its development has stopped. Known decoding failures go unfixed, and it reads only QR codes. zxing-wasm reads more formats and is actively developed, so it is the better reader for new projects. Keep jsQR where it already runs, but pick something else for new work.
  - GPT-6.2 Sol (5.1): jsQR is a reasonable choice for a small feature that needs one QR result from pixels already in memory. For most new scanning projects, zxing-wasm offers better results in comparative testing, more formats, and active releases. The long gap in jsQR maintenance weighs heavily, while the value of avoiding a WebAssembly asset depends on the deployment.
- **Needed by many: 3.4** (likely 2.3 to 4.6)
  - Claude Opus 5.5 (3.5): Reading QR codes in JavaScript is a clear niche: ticketing, payments, check-in and device pairing apps. jsQR covers only the decoding half of the category's job, and only the QR format. Within that niche it runs on any runtime.
  - GPT-6.2 Sol (3.3): Reading QR codes is a distinct need in workflows such as check-in and device pairing. jsQR works across runtimes, but its raw-pixel input and single-code output cover a narrow slice of the category. The developer survey gives no direct estimate of how often projects need QR decoding.
- **Helps a lot: 5.1** (likely 4.1 to 6.2)
  - Claude Opus 5.5 (4.5): It decodes clean QR codes reliably, and its API and types are simple. Users report many failures, though: version 23 codes, light or transparent codes, large codes and some iOS cases. One benchmark measured it at about a third of the speed of a newer pure-JS decoder. zxing-wasm reads more formats and is actively improved, so jsQR is clearly behind it.
  - GPT-6.2 Sol (5.7): Version 1.4.0 has a small typed API, clear input documentation, and useful output for overlays and binary payloads. It returns one result, and users report that valid version 23 symbols can fail. In a third-party benchmark, it matched the expected text in 155 of 184 photos versus 171 for zxing-wasm, which also decoded the tested 720p frames faster. Results vary with image quality and workload.
- **Holds up over time: 2.3** (likely 1.3 to 3.7)
  - Claude Opus 5.5 (2.0): The last npm release is from April 2021, with no commits or releases in the last year. Issues about changelogs and release tags have gone unanswered since 2021. Independent sources call it dormant or dead, and people keep it working through forks. It is not archived, and with zero dependencies the frozen code keeps running.
  - GPT-6.2 Sol (2.6): The last npm release was in April 2021, and the collector recorded zero commits in the past year. A fix for version 23 decoding remains open, while zxing-wasm shipped a release in November 2026. The stable API and standard pixel input help existing integrations age well, but the timing of future fixes is uncertain.
- **Used widely: 5.8** (likely 4.8 to 6.9)
  - Claude Opus 5.5 (6.0): It has about 25.7M downloads in 4 weeks, up 8.8x on a year ago, above the 4.1 median. Much of that likely comes through other packages that depend on it (313 of them). It has 8,418 dependent repositories, behind node-qrcode and qrcode.react but well ahead of every other reader in the bundle. Old codebases account for much of its use, and zxing-wasm is growing faster.
  - GPT-6.2 Sol (5.6): Four-week npm downloads rose from 2.92 million to 25.71 million, or 8.8× year over year, ahead of the catalog median of 4.1×. Ecosyste.ms found 8,418 dependent repositories, more than for ZXing JS or html5-qrcode, though zxing-wasm downloads grew faster. Automated installs, downstream wrappers, and sparse public discussion make it hard to estimate how many new projects chose jsQR directly.
- **Vouched for: 4.8** (likely 3.7 to 6.1)
  - Claude Opus 5.5 (3.5): Nimiq's qr-scanner built on an improved fork of it. Commercial and independent write-ups describe it as lightweight and reliable for simple cases. No current independent benchmark rates it well, and most recent write-ups call it dormant. There is no survey data and no Hacker News coverage.
  - GPT-6.2 Sol (6.0): GCHQ’s CyberChef uses jsQR for its QR parsing operation, and Nimiq’s scanner builds with a jsQR-derived package. An older external benchmark found good results on out-of-focus photos, while recent tests and a user report show weaknesses on harder images. Published evidence supports specific uses, and developer satisfaction data are sparse.
- **Safe: 6.0** (likely 4.5 to 7.1)
  - Claude Opus 5.5 (6.0): It has zero dependencies, no known advisories and an Apache-2.0 licence, so the attack surface is small. Its OpenSSF Scorecard is 2.3, with no security policy, branch protection or SAST. Nobody is maintaining it, so a future bug would likely not be fixed. It parses untrusted images and has never been fuzzed.
  - GPT-6.2 Sol (5.9): The Apache-2.0 package has zero runtime dependencies, and OSV lists zero advisories. OpenSSF Scorecard gives it 2.3 out of 10, with weak code review and no detected security policy, branch protection, or fuzzing. npm lists two collaborators, while release safeguards and current patch response remain unclear after years without a publication.

## Good

- It is pure JavaScript with zero dependencies, and it runs the same way in browsers, Node and workers.
- The API is simple: you pass RGBA pixel data, width and height, and get back the decoded data and the code's location.
- It ships TypeScript types and has an Apache-2.0 licence.
- It is widely used, with about 8,400 dependent repositories, so examples are easy to find and AI agents know the API well.

## Bad

- It has had no release since 1.4.0 in April 2021, and no commits in the last year.
- It reads only QR codes: no 1D barcodes, no Data Matrix, and no QR generation.
- Many open issues report codes it fails to read, such as large versions, light or transparent codes, and some iOS cases, and none of them get answers.
- It is slower than WASM-based decoders, and it has no camera handling or UI.

## The numbers

- Downloads, 4 weeks: 26M
- In a year: ×8.8
- GitHub stars: 4.1k
- Commits, 12 months: 0
- Last npm release: Apr 2021
- Advisories, 24 months: 0
- Licence: Apache-2.0
- GitHub: https://github.com/cozmo/jsQR
- npm: https://www.npmjs.com/package/jsqr

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.
