jsQR
Keep, but not for new work. 8th of 9 QR codes and barcodes.
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
Overall4.6
How strongly do we recommend it for a new project today?
Claude Opus 5.5: 4.0, likely 3.0 to 5.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.
- npm latestPublishedAt: No release since 2021
- peers zxing-wasm: Active, with 97 commits last year and a release in November 2026
- github.com/cozmo/jsQR/issues: Decoding bugs go unanswered
GPT-6.2 Sol: 5.1, likely 4.0 to 6.2
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.
- github.com/cozmo/jsQR: Documents the small, standalone raw-pixel decoder.
- forgesworn.github.io/qr/performance.html: Pinned benchmark shows better accuracy and lower latency for zxing-wasm on the tested inputs.
- github.com/Sec-ant/zxing-wasm: Documents multi-format decoding and the WebAssembly asset requirement.
- npm latestPublishedAt and peers: jsQR last published in 2021. zxing-wasm published in November 2026.
Needed by many3.4
How many developers need a tool for this job?
Claude Opus 5.5: 3.5, likely 2.5 to 4.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.
- github description: A QR code reading library only; it takes raw images
- scanbot.io/blog/popular-open-source-javascript-barcode-scanners: Supports only QR codes and has no camera handling
GPT-6.2 Sol: 3.3, likely 2.1 to 4.6
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.
- github.com/cozmo/jsQR: Documents standalone QR decoding from RGBA pixels in browser and Node.js workflows.
- 2025.stateofjs.com/en-US/other-tools: Surveys JavaScript runtimes without measuring demand for QR decoding.
- github.com/Sec-ant/zxing-wasm: Shows the wider barcode reading and writing scope available in the category.
Helps a lot5.1
How well does it do the job for those who need it?
Claude Opus 5.5: 4.5, likely 3.5 to 5.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.
- github.com/cozmo/jsQR/issues: Many open reports of codes it fails to read, with no maintainer replies
- unpkg.com/qr@0.5.0/README.md: Measured 18 ms per op against 6 ms for paulmillr-qr; similar results on blurred images
- npm hasTypes: Ships TypeScript types
- github.com/danimoh/qr-scanner-benchmark: Nimiq built an improved fork because the original has limits
GPT-6.2 Sol: 5.7, likely 4.6 to 6.8
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.
- github.com/cozmo/jsQR: Documents the input, polarity settings, and result fields.
- cdn.jsdelivr.net/npm/jsqr@1.4.0/package.json: The published package declares bundled TypeScript types.
- github.com/cozmo/jsQR/issues/251: A user reports version 23 failures even with a clean canvas render.
- forgesworn.github.io/qr/performance.html: Third-party tests pin jsQR 1.4.0 and compare exact reads and timing with zxing-wasm.
- cam2qr.com: Separate synthetic tests show good inverted-code results and weaker low-contrast detection.
Holds up over time2.3
Will it still be a good choice in two years?
Claude Opus 5.5: 2.0, likely 1.0 to 3.5
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.
- npm latestPublishedAt: 2021-04-24, with 0 versions in the last year
- github commitsLastYear: 0 commits; 18 pull requests open
- scanbot.io/blog/popular-open-source-javascript-barcode-scanners: States that jsQR development is dormant
- unpkg.com/qr@0.5.0/README.md: Calls jsQR dead
GPT-6.2 Sol: 2.6, likely 1.6 to 3.8
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.
- npm latestPublishedAt and versionsLastYear: The latest publication was April 2021, with zero versions in the past year.
- github commitsLastYear and openPullRequests: Zero commits in the past year and 18 open pull requests.
- github.com/cozmo/jsQR/commits: The default branch history ends in August 2021.
- github.com/cozmo/jsQR/pull/252: The proposed version 23 alignment fix remains open.
- github.com/Sec-ant/zxing-wasm/releases/tag/v3.1.7: The competing decoder shipped version 3.1.7 in November 2026.
Used widely5.8
How many use it, and is that growing?
Claude Opus 5.5: 6.0, likely 5.0 to 7.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.
- npm downloadsLast4Weeks: 25.7M, against 2.9M a year earlier
- dependents: 8,418 repositories and 313 packages
- peers zxing-wasm: 21.7M downloads, up about 42x a year
- bluesky posts: Only 1 post in 24 months
GPT-6.2 Sol: 5.6, likely 4.5 to 6.8
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.
- npm downloadsLast4Weeks, npm downloadsSame4WeeksYearAgo, and medianDownloadsRatio: The 8.8× increase exceeds the 4.1× catalog median.
- dependents and peers: The index found 8,418 repositories and 313 npm packages. zxing-wasm downloads rose about 42×.
- github stars, bluesky posts, and hackerNews stories: 4,052 stars, one Bluesky link about multi-code reading, and zero matched Hacker News stories.
- github.com/sinchang/qrcode-parser/blob/master/package.json: A downstream wrapper installs jsQR as a runtime dependency.
Vouched for4.8
Who stands behind it being good?
Claude Opus 5.5: 3.5, likely 2.5 to 5.0
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.
- github.com/danimoh/qr-scanner-benchmark: Nimiq qr-scanner builds on an improved jsQR
- dev.to/jdg2896/how-to-reliably-read-qr-codes-in-nodejs-502i: Informal recommendation as a replacement for qrcode-reader
- hackerNews stories: No stories
GPT-6.2 Sol: 6.0, likely 4.8 to 7.2
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.
- raw.githubusercontent.com/gchq/CyberChef/master/src/core/lib/QRCode.mjs: CyberChef imports jsQR and calls it to decode images.
- github.com/nimiq/qr-scanner/blob/master/package.json: Nimiq lists the jsqr-es6 variant as a build dependency.
- raw.githubusercontent.com/danimoh/qr-scanner-benchmark/master/result.txt: The older comparison reports 78 of 80 partly out-of-focus images decoded by jsQR.
- forgesworn.github.io/qr/performance.html: Recent comparative testing found fewer exact text matches than zxing-wasm.
- reddit.com/r/javascript/comments/1qpvy2t/askjs_help_with_scanning_qr_codes: A developer reports failed scans on receipts despite successful reads on clean examples.
Safe6.0
How safe is it to depend on?
Claude Opus 5.5: 6.0, likely 4.5 to 7.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.
- advisories total: 0 advisories
- npm dependencies: 0 dependencies
- scorecard score: 2.3; Maintained, Security-Policy and Fuzzing all score 0
- github license: Apache-2.0
GPT-6.2 Sol: 5.9, likely 4.5 to 7.2
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.
- npm dependencies and license: Zero runtime dependencies and a permissive Apache-2.0 licence.
- advisories total and last24Months: OSV lists zero advisories overall.
- scorecard score and checks: Overall 2.3, code review 2, branch protection and fuzzing 0, packaging and signing unscored.
- github.com/cozmo/jsQR/security/policy: GitHub detects no published repository security policy.
- npmjs.com/package/jsqr?activeTab=dependents: The indexed npm package page lists two collaborators.
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
- npm downloads, 4 weeks
- 26M ×8.8 in a year
- GitHub stars
- 4.1k
- Commits, 12 months
- 0
- npm version
- 1.4.0 Apr 2021
- Versions, 12 months
- 0
- Advisories, 24 months
- 0 of 0 ever
- OpenSSF Scorecard
- 2.3 out of 10, Nov 2026
- Licence
- Apache-2.0
Read on 21 November 2026 from GitHub (cozmo/jsQR), npm (jsqr), 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