html5-qrcode
Keep, but not for new work. 9th of 9 QR codes and barcodes.
html5-qrcode is a browser library that scans QR codes and many barcode formats from the camera or an image file, with a ready-made scanner UI. It is easy to set up, but its README says it is in maintenance mode with no fixes or merged pull requests, and the last release came out in April 2023. Keep it where it already works, and look at a maintained option such as zxing-wasm or ZXing-based tools for new work.
Best for: Prototypes and small internal web apps that need a drop-in camera scanner UI quickly and can accept unfixed camera bugs.
Scores
Overall4.1
How strongly do we recommend it for a new project today?
Claude Opus 5.5: 3.5, likely 2.5 to 4.5
It is still the quickest way to put a camera scanner UI on a web page, and downloads are rising. But it is officially in maintenance mode, has had no release since 2023 and has known camera bugs on mobile that will not be fixed. Keep it where it works. For new work, pick a maintained decoder such as zxing-wasm and add your own camera UI.
- github.com/mebjas/html5-qrcode: Maintenance mode; no fixes
- peers zxing-wasm: 97 commits last year, published 2026-11-15, 21.7M downloads per 4 weeks
- scanbot.io/blog/quagga2-vs-html5-qrcode-scanner: Reports of camera and decoding problems
GPT-6.2 Sol: 4.7, likely 3.6 to 5.8
The ready-made camera and upload interface still saves work on prototypes and existing integrations. For most new projects, zxing-wasm is a stronger choice if the team can build its scanner interface. The maintenance pause and documented iOS camera problems weigh most, and the fit depends on which devices the app must support.
- scanapp.org/html5-qrcode-docs/docs/intro: A complete scanner can be embedded with little code.
- github.com/mebjas/html5-qrcode: The current maintenance notice rules out near-term fixes and merges.
- github.com/dgahagan/shelf/issues/12: Shelf needed a different decoder for iOS Safari.
- github.com/Sec-ant/zxing-wasm: The alternative reads multiple code formats from images across runtimes.
- peers.zxing-wasm: Recent commits and releases support the stronger maintenance outlook.
Needed by many3.5
How many developers need a tool for this job?
Claude Opus 5.5: 3.5, likely 2.5 to 5.0
Only reading codes in the browser from a camera or an image is in scope. That is a clear niche inside the category, which also covers generating codes. Apps for check-in, inventory, payments and ticketing need it, but most web projects do not.
- github.com/mebjas/html5-qrcode: Browser camera and file scanner only; no generation
- category scope: Code generation (node-qrcode, qrcode.react) serves more projects than scanning
GPT-6.2 Sol: 3.4, likely 2.2 to 4.6
Browser scanning serves workflows such as inventory and asset management, and the library works across frontend frameworks. Its scope is limited to reading codes in a browser. The State of JavaScript survey offers no direct estimate of how many developers need barcode scanning.
- github.com/mebjas/html5-qrcode: Browser-based reading with examples for several frameworks.
- docs.oracle.com/en/applications/peoplesoft/financials-and-supply-chain-management/9.2.057/hwsw-fscm/defining-peoplesoft-asset-management-requirements.html: Asset management is a concrete use for camera scanning.
- 2025.stateofjs.com/en-US/features: The browser API survey does not measure barcode scanning.
Helps a lot5.8
How well does it do the job for those who need it?
Claude Opus 5.5: 5.0, likely 4.0 to 6.0
It does a lot: a ready-made UI, a low-level API, many formats, torch and zoom, and types. But users and outside reviews report camera failures on iOS and on some Android Chrome devices, and weak reads of low-contrast or inverted codes. None of these will be fixed. WASM ports of the C++ ZXing, such as zxing-wasm, decode more reliably.
- scanbot.io/blog/quagga2-vs-html5-qrcode-scanner: Easy setup and broad formats; camera and iOS problems; trouble with difficult codes
- bugs.webkit.org/show_bug.cgi?id=273046: Camera freeze in iOS WKWebView reported with html5-qrcode
- npm hasTypes: Ships TypeScript types
- npm-compare.com/@zxing/library,html5-qrcode,jsqr,qr-scanner,qrcode-reader: Package size is about 2.63 MB, against 524 kB for qr-scanner
GPT-6.2 Sol: 6.5, likely 5.3 to 7.6
Version 2.3.8 makes it easy to add live and file scanning for common 1D and 2D formats. Its types and examples help with integration, and custom camera flows need explicit cleanup. Shelf shipped a fallback after seeing weaker detection on iOS Safari. Performance across current devices remains uncertain because the available comparisons cover limited setups.
- scanapp.org/html5-qrcode-docs/docs/intro: Documents the scanner UI, file input, and camera lifecycle.
- npm.hasTypes: The package includes TypeScript declarations.
- github.com/dgahagan/shelf/issues/12: Shelf shipped a ZXing fallback for iOS Safari.
- scanbot.io/blog/popular-open-source-javascript-barcode-scanners: A commercial SDK vendor compares scanner features and flags the larger bundle.
Holds up over time1.9
Will it still be a good choice in two years?
Claude Opus 5.5: 1.5, likely 1.0 to 3.0
The maintainer says in the README that the project is in maintenance mode, with no fixes and no merged pull requests. The repository has had one commit in the past year and no release since April 2023. One person controls it, and that person is looking for a new owner. A fork or a new owner could change this, which is why the range goes up to 3.
- github.com/mebjas/html5-qrcode: README: 'maintenance mode until further notice', seeking new owners
- github commitsLastYear / releasesLastYear: 1 commit and 0 releases in the last year
- npm latestPublishedAt: Last publish was 2023-04-15
- github openIssues: 420 open issues against 337 closed
GPT-6.2 Sol: 2.3, likely 1.4 to 3.5
The latest release was in April 2023, and the repository recorded one commit in the past year. The author described a single primary maintainer and plans to move further development to imagecodes. The repository now says fixes and merges are paused, while zxing-wasm continues to release updates.
- github.commitsLastYear, github.releasesLastYear, github.openPullRequests: One commit, zero releases, and 32 open pull requests.
- github.com/mebjas/html5-qrcode/releases/tag/v2.3.8: GitHub still marks v2.3.8 as the latest release.
- github.com/mebjas/html5-qrcode: The maintenance notice says fixes and pull request merges are paused.
- github.com/mebjas/html5-qrcode/discussions/747: The maintainer explains the pause and the planned move to imagecodes.
- peers.zxing-wasm: 97 commits in the past year and a November 2026 npm release.
Used widely4.8
How many use it, and is that growing?
Claude Opus 5.5: 5.0, likely 4.0 to 6.0
Downloads rose from about 0.99M to 8.7M per 4 weeks. That ratio of about 8.8x is above the 4.1 median, and similar to its peers. Its 820 dependent repositories are far behind jsQR (8,418) and ZXing JS (2,062). It is still often found and picked for browser scanning, but it is no longer growing faster than the category as a whole.
- npm downloadsLast4Weeks: 8.69M, against 0.99M a year earlier
- dependents.repos: 820 repos and 52 packages depend on it
- github stars: 6,253 stars
- peers: jsQR has 8,418 dependent repos; ZXing JS has 2,062
GPT-6.2 Sol: 4.5, likely 3.2 to 5.9
Four-week installs rose from 988,000 to 8.69 million, or 8.8 times year over year against the catalog median of 4.1 times. That is a gain in relative install activity, and the repository has 6,253 stars. The indexed counts of 820 repositories and 52 packages trail ZXing JS and jsQR on dependent repositories. CI and framework installs can inflate npm counts, while vendored and CDN copies make direct use harder to count.
- npm.downloadsLast4Weeks, npm.downloadsSame4WeeksYearAgo, medianDownloadsRatio: 8.8 times year-over-year growth versus the 4.1 times median.
- github.stars, dependents, peers: 6,253 stars, with fewer indexed dependent repos than ZXing JS or jsQR.
- bluesky.posts, hackerNews.stories: Three Bluesky links compared with zero for ZXing JS and one for jsQR, plus zero matched Hacker News stories.
- github.com/frappe/frappe/blob/develop/package.json: Frappe installs it as a framework dependency.
- github.com/dgahagan/shelf/issues/12: Shelf uses a vendored copy that bypasses npm installs.
- jsdelivr.com/package/npm/html5-qrcode: A CDN build offers another installation route.
Vouched for4.7
Who stands behind it being good?
Claude Opus 5.5: 3.0, likely 2.0 to 4.5
Many tutorials and small apps use it, and Debian packages it. I found no well-known company or framework that publicly builds on it. Independent write-ups now mostly warn that it is unmaintained, and there are no Hacker News stories and almost no Bluesky posts.
- sources.debian.org/src/node-html5-qrcode/2.3.8%2Brepack-5/README.md: Packaged in Debian
- scanbot.io/blog/quagga2-vs-html5-qrcode-scanner: Vendor comparison that calls it effectively unmaintained
- hackerNews.stories / bluesky.posts: 0 stories and 3 posts with no engagement
GPT-6.2 Sol: 6.4, likely 5.2 to 7.6
Oracle distributes the library with PeopleSoft FSCM, and Frappe uses it for its documented scanner API. Shelf also uses it and published a concrete case where another decoder worked better on iOS. These deployments show the library is practical, while the available device tests are too limited to establish consistently strong scan reliability.
- docs.oracle.com/en/applications/peoplesoft/financials-and-supply-chain-management/licensing-information-user-manual-for-peoplesoft-financials-and-supply-chain-management-9-2/open-source-or-other-separately-licensed-software-included-peoplesoft-fscm-9-2.html: Oracle lists html5-qrcode as a distributed PeopleSoft FSCM component.
- docs.frappe.io/framework/user/en/api/scanner: Frappe builds its public scanner API on html5-qrcode.
- github.com/dgahagan/shelf/issues/12: A downstream project reports where it kept the library and where it switched.
Safe5.3
How safe is it to depend on?
Claude Opus 5.5: 5.0, likely 4.0 to 6.5
The npm package has no runtime dependencies, has no known advisories and uses the Apache-2.0 licence. On the other side, the OpenSSF Scorecard is 2.1, with no code review, no security policy and unsigned releases. One maintainer publishes it, and it gets no fixes. Its bundled zxing-js decoder is old code that nobody patches.
- advisories.total: 0 known advisories
- scorecard.score: 2.1; Code-Review is 1, Security-Policy and Maintained are 0
- npm dependencies: 0 runtime dependencies
- npm license: Apache-2.0, a permissive licence
GPT-6.2 Sol: 5.5, likely 4.3 to 6.7
OSV lists zero advisories, the Apache-2.0 licence permits commercial use, and npm installs no runtime dependencies. The package still bundles ZXing. The 2.1 OpenSSF Scorecard shows weak code review and zero scores for release signing and security policy. Paused maintenance makes the response to a future issue hard to predict.
- advisories.total, npm.license, npm.dependencies: Zero OSV advisories, Apache-2.0, and zero declared runtime dependencies.
- scorecard.score, scorecard.checks: 2.1 overall, with weak code review and zero scores for signing, security policy, and fuzzing.
- github.com/mebjas/html5-qrcode/blob/v2.3.8/src/zxing-html5-qrcode-decoder.ts: The release imports a vendored ZXing build.
- github.com/mebjas/html5-qrcode/blob/v2.3.8/package.json: The release script builds locally and runs npm publish.
- github.com/mebjas/html5-qrcode/security: GitHub shows no repository security policy or published advisories.
Good
- Html5QrcodeScanner gives a working camera scanner, with permission handling and a UI, in about ten lines.
- It reads many 1D and 2D formats, including QR, Data Matrix, PDF417, EAN, UPC and Code 128.
- It ships TypeScript types, has no runtime dependencies on npm, and uses the Apache-2.0 licence.
- It supports torch, zoom, scanning from image files and the native BarcodeDetector as an experiment.
Bad
- The README says it is in maintenance mode: no bug fixes, no merged pull requests, and the owner is looking for a new owner.
- There has been no release since v2.3.8 in April 2023, and about 420 issues are open.
- Users report camera failures on some iOS and Android browsers, and poor reads of low-contrast or inverted codes.
- Its decoding comes from the zxing-js port, which is also only maintained at a low level.
The numbers
- npm downloads, 4 weeks
- 8.7M ×8.8 in a year
- GitHub stars
- 6.3k
- Commits, 12 months
- 1
- npm version
- 2.3.8 Apr 2023
- Versions, 12 months
- 0
- Advisories, 24 months
- 0 of 0 ever
- OpenSSF Scorecard
- 2.1 out of 10, Nov 2026
- Licence
- Apache-2.0
Read on 21 November 2026 from GitHub (mebjas/html5-qrcode), npm (html5-qrcode), 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