# Local QR and barcode vendors

These libraries are downloaded and served as local files. No CDN, tracking request,
account or remote QR-generation service is used at runtime. They load only when
the relevant utility runs.

| Library | Upstream source | License | Adaptation |
| --- | --- | --- | --- |
| Nayuki QR Code generator | https://www.nayuki.io/page/qr-code-generator-library | MIT (embedded in the source) | Append the ES-module export. |
| jsQR 1.4.0 | https://github.com/cozmo/jsQR | Apache-2.0, `jsqr-LICENSE.txt` | Wrap the original UMD bundle with local CommonJS bindings and append the export. |
| JsBarcode 3.12.3 | https://github.com/lindell/JsBarcode | MIT, `jsbarcode-LICENSE.txt` | Bind the original bundle’s entry return, export it, suppress global registration, and use its data renderer. |
| ZXing 0.23.0 | https://github.com/zxing-js/library | Apache-2.0, `zxing-LICENSE.txt` | Wrap the original UMD bundle with local CommonJS bindings and append the export. |

`*.original.js` preserve the downloaded snapshots. `prepare-vendors.mjs` rebuilds
the small module adaptations without modifying the original library algorithms.
`manifest.json` records source URLs and SHA-256 hashes. The wrappers are tested
in Node and use the same exported modules in the browser.

QR encoding is independently checked using jsQR decoding of rendered RGBA
matrices. PNG export uses a browser canvas. Barcode SVG is constructed from the
library’s encoding data, with XML-escaped captions, integer-width bars and quiet
margins. Generated EAN/UPC symbols do not register or assign retail identifiers.

Official references checked on 2026-10-21:

- https://www.nayuki.io/page/qr-code-generator-library
- https://github.com/cozmo/jsQR#usage
- https://github.com/lindell/JsBarcode#retrieve-the-barcode-values-so-you-can-render-it-any-way-youd-like
- https://github.com/zxing-js/library
