# Vendored libraries — sources and licenses

Vendored 2026-08-16 from the npm registry via cdn.jsdelivr.net, exact
versions pinned below. Files are UNMODIFIED (the no-build rule works in our
favor for license compliance — nothing here is concatenated or minified into
our own code). Loaded lazily as classic scripts only when needed.

## exifreader.js
- Package: `exifreader@4.43.0` (`dist/exif-reader.js`, UMD)
- Source: https://github.com/mattiasw/ExifReader
- License: **MPL-2.0** (file-level copyleft; requires this credit and a link,
  both given here). Used for HEIC/hardened photo metadata parsing.

## libheif/ (libheif.js + libheif.wasm)
- Package: `libheif-js@1.19.8` (`libheif-wasm/` split build, unmodified)
- Source: https://github.com/catdad-experiments/libheif-js — a build of
  https://github.com/strukturag/libheif (with libde265)
- License: **LGPL-3.0** — full text in `libheif/LICENSE`. Kept as separate,
  unmodified files (js + wasm) per LGPL §4; replaceable by any user by
  swapping these files. Loaded lazily, only when a browser without native
  HEIF support needs to decode a .heic for a thumbnail. WEB ONLY — never
  bundle this into the iOS app (App Store + LGPL relinking is contentious).

## fflate.js
- Package: `fflate@0.8.3` (`umd/index.js`)
- Source: https://github.com/101arrowz/fflate
- License: **MIT**. Used for the "export my record" zip.

## confetti.js
- Package: `canvas-confetti@1.9.4` (`dist/confetti.browser.js`)
- Source: https://github.com/catdad/canvas-confetti
- License: **ISC**. Used, sparingly, when your team won.

## jsqr.js
- Package: `jsqr@1.4.0` (`dist/jsQR.js`, UMD)
- Source: https://github.com/cozmo/jsQR
- License: **Apache-2.0**. Used ONLY by the regression page (`/tests/`) to
  decode the QR the stub painter draws; the app itself never decodes a code.
  Vendored 2026-09-06 so the offline-labelled row stops importing from a CDN
  at run time.
