Last updated 28 November 2026 · bundled third-party code
Every library the app uses is vendored into app/vendor/ and served from this app's own origin. There is no CDN, no remote font, no analytics script and no tag manager. The deployed CSP in _headers restricts scripts to 'self', which is what makes that claim testable rather than aspirational.
| Component | File | Used for |
|---|---|---|
| fflate | vendor/fflate.min.js | Creating ZIP archives, extracting them, and the deflate used by PDF output. MIT. |
| pdf-lib | vendor/pdf-lib.min.js | Reading, merging, splitting, rotating and rewriting PDF files. MIT. |
| pdf.js (pdfjs-dist 6.5.438) | vendor/pdfjs.classic.js, assets/pdfjs-worker-src.js, assets/pdfjs-boot.js | Reading embedded PDF text and rendering pages to images. Apache-2.0 (Mozilla Foundation); the build embeds the Apache notice inline. Local build transform: the ESM export clause becomes a browser global, import.meta is removed from two unused Node/WASM paths, and the module body is wrapped in a strict IIFE so its minified declarations cannot collide with other scripts. The worker is created from a same-document blob: URL, so the portable single-file build needs no sibling file. No WASM, no eval, no network. |
| QR Code generator for JavaScript | vendor/qrcode.js | Encoding QR symbols. MIT (Kazuhiko Arase / davidshimjs). One local change: UTF-8 is encoded with TextEncoder instead of the upstream charCodeAt loop, which mishandled surrogate pairs and added a spurious byte-order mark. |
| ZXing JS | vendor/zxing.min.js | Decoding QR codes and 1D barcodes when the browser has no native BarcodeDetector. Apache-2.0; the UMD build also carries a BSD-3-Clause notice for jai-imageio. |
OpenCV.js (@techstark/opencv-js 5.0.0-release.1) | vendor/opencv/opencv.js | Paper normalisation for the document scanner: morphological closing, Gaussian blur and resize. Apache-2.0. Local CSP transform: Emscripten's embind and emval invokers are generated with new Function, which this app's CSP forbids; they are replaced with equivalent closures over the same captures. The public API and every algorithm call are unchanged, and no eval or new Function remains. node tools/patch-opencv.mjs --check verifies the vendored file. |
The app's own code under assets/ is original to this project. Geometry — corner detection, perspective correction, rotation and the screen/moire path — lives in assets/scan-core.js and is implemented directly on typed arrays. The paper enhancement (illumination normalisation, white snap, optical-density gain) is a deterministic port of a validated OpenCV prototype and runs through the vendored OpenCV.js in a Web Worker, so a 3.3 MP page never blocks the interface. The bundled libraries are shipped unmodified apart from the documented UTF-8, ESM-to-classic and CSP-invoker transforms above. All remain the property of their respective authors under their own licence terms. The definitive licence texts and the exact upstream versions are in THIRD_PARTY_NOTICES.md at the repository root; this page lists what is bundled so the shipped files can be audited against it. No GPL, AGPL or LGPL code is added by this app. The PDF engine needs no WebAssembly and no network. The installed app additionally bundles Tesseract.js v7.0.0 and its Apache-2.0 WebAssembly core for local OCR; its models are shipped in assets/ocr/ and no document is ever uploaded. The single-file portable build does not include OCR or OpenCV.js; its scanner falls back to the earlier typed-array cleanup.
The app registers only the formats it can actually decode. HEIC and HEIF are deliberately not registered: they cannot be opened yet, and opening one says "HEIC is not supported yet" rather than advertising a desktop build that does not exist. See Privacy for what the app stores and Terms of use for the free licence.