# cozmo/jsQR

A pure javascript QR code reading library. This library takes in raw images and will locate, extract and parse any QR code found within.

Repository: https://github.com/cozmo/jsQR
Canonical: https://ross.abutalabs.com/products/jsqr
Homepage: https://cozmo.github.io/jsQR/
Language: TypeScript
License: Apache-2.0
License Family: permissive
Topics: qrcode, qr-parsing-library, typescript, qr, qrcode-reader, qr-code, qr-scanner
Last push: 2026-05-15T21:13:24+00:00

## Health v2 (maintenance only)
Score: 69/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 82, release rhythm 35, longevity 100
- inputs: {"age_days": 3918, "days_push": 110, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 4026, forks 615 (observed 2026-08-28T04:08:32.611012+00:00)

## What it is
jsQR is a pure JavaScript QR code reading library that takes raw image data (RGBA pixel arrays) and locates, extracts, and parses any QR code within it. It is platform-agnostic, working in browsers, Node.js, or with module bundlers, and can decode from webcam streams, uploaded images, or backend processes.

## Use cases
- decode qr codes from images in javascript
- scan qr codes from webcam stream in browser
- read qr codes in a node.js backend
- extract qr code data from uploaded images
- add qr code scanning to a web app without native dependencies
- parse qr codes from canvas imagedata

## When to choose
- you need a dependency-free, pure JavaScript QR decoder
- you want the same decoding logic across browser and Node.js
- you already have image data (ImageData, canvas, or decoded PNG/JPEG) and just need QR extraction
- you need to decode QR codes with inverted colors (white on black)

## When to avoid
- you need to generate QR codes rather than read them
- you need to scan other barcode formats like EAN or Code128
- you want a turnkey camera-scanning component with UI included
- you need native-level performance for high-volume image processing

## Facets
- artifact type: library
- maturity: stable
- function: image-processing, parser, computer-vision
- domain: computer-vision, web-development, frontend
- platform: browser, cross-platform
- tags: qr-code, qr-decoder, typescript, barcode-scanning, nodejs

## Member repositories
- cozmo/jsQR (main) score 69

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:08:32.611012+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T18:23:53.589777+00:00, confidence not recorded.
  - readme: https://github.com/cozmo/jsQR (fetched 2026-08-28T04:08:32.611012+00:00, sha 78fde30d8b3c)
  - homepage: https://cozmo.github.io/jsQR/ (fetched 2026-08-29T09:16:52.390358+00:00, sha dc16a20cb77e)
  - registry_npm: https://registry.npmjs.org/jsqr (fetched 2026-08-29T09:16:52.399743+00:00, sha 2caf8a46006e)
- Data as of 2026-08-30T08:39:29.467469+00:00.
