# Third-party components roroto's own code is MIT-licensed (see `LICENSE`). The site bundles the following third-party libraries. Each keeps its own license; the Apache-2.0 ones are **not** relicensed by roroto's MIT license. Everything listed here is served from `roroto.com/vendor/` — no external CDN is called at runtime. Full license texts ship with the site at (`/licenses/third-party.txt`, `/licenses/apache-2.0.txt`, `/licenses/mit.txt`). ## Libraries | Component | Version | License | Copyright | Upstream | |---|---|---|---|---| | pdf-lib | 1.17.1 | MIT | Andrew Dillon | https://github.com/Hopding/pdf-lib | | tslib (bundled inside pdf-lib) | — | Apache-2.0 | Microsoft Corporation | https://github.com/microsoft/tslib | | PDF.js (pdfjs-dist) | 3.11.174 | Apache-2.0 | Mozilla Foundation, 2023 | https://github.com/mozilla/pdf.js | | JSZip | 3.10.1 | MIT or GPLv3 — **used here under MIT** | Stuart Knightley, 2009–2016 | https://github.com/Stuk/jszip | | heic2any | 0.0.4 | MIT | Alex Corvi | https://github.com/alexcorvi/heic2any | | qrcode-generator | 2.0.4 | MIT | Kazuhiko Arase, 2009 | https://github.com/kazuhikoarase/qrcode-generator | | qrcode-generator UTF-8 extension | — | MIT | Kazuhiko Arase, 2011 | (same repository) | | jsQR | 1.4.0 | Apache-2.0 | Cozmo, 2018-2020 | https://github.com/cozmo/jsQR | | @pdfsmaller/pdf-encrypt-lite | 1.2.0 | MIT | PDFSmaller.com | https://pdfsmaller.com | | @pdfsmaller/pdf-decrypt | — | MIT | PDFSmaller.com | https://pdfsmaller.com | | Tesseract.js | 7.0.0 | Apache-2.0 | Kevin Kwok and contributors | https://github.com/naptha/tesseract.js | | tesseract-core (WebAssembly) | — | Apache-2.0 | Tesseract OCR / Leptonica | https://github.com/naptha/tesseract.js-core | | tessdata `eng`, `chi_sim` (traineddata) | 4.0.0_best_int | Apache-2.0 | Tesseract OCR project | https://github.com/tesseract-ocr/tessdata_best | ### Bundled inside Tesseract.js `tesseract.min.js` and `worker.min.js` are webpack builds that embed further dependencies. Their notices ship alongside in `vendor/tesseract/tesseract.min.js.LICENSE.txt` and `vendor/tesseract/worker.min.js.LICENSE.txt`: | Component | License | Copyright | |---|---|---| | regenerator-runtime | MIT | Facebook, Inc., 2014–present | | buffer | MIT | Feross Aboukhadijeh | | ieee754 | BSD-3-Clause | Feross Aboukhadijeh | | zlib.js | MIT | imaya, 2012 | ## Tokenizer data The token counter uses vocabularies and a BPE algorithm that originate from OpenAI's tiktoken. The browser implementation in `src/static/bpe.js` is a **separate implementation written for this site** (linked list plus a binary heap, O(n log n) rather than tiktoken's O(n²) scan); no source code was copied from tiktoken or js-tiktoken. The algorithm itself, and the rank data shipped in `vendor/tiktoken/*.json`, come from those MIT-licensed projects. | Component | Version | License | Copyright | Upstream | |---|---|---|---|---| | tiktoken (algorithm and BPE ranks: cl100k_base, o200k_base, p50k_base) | — | MIT | OpenAI | https://github.com/openai/tiktoken | | js-tiktoken (source of the exported rank data) | 1.0.21 | MIT | dqbd | https://github.com/dqbd/tiktoken | See `项目/vendor/tiktoken/README.md` for how the data files were generated. ## First-party sub-projects | Component | License | Notes | |---|---|---| | vramfit | MIT | Separate repository by the same author (github.com/RoRoToCode/vramfit). Its own `LICENSE.txt` ships at `/tools/vramfit/LICENSE.txt`. | ## File format knowledge The image-metadata reader, the GGUF inspector and the PDF/EXIF/WebP parsers were written against published specifications rather than ported from an existing library: - PNG: W3C PNG (3rd edition), text chunks `tEXt` / `zTXt` / `iTXt` - JPEG: ISO/IEC 10918-1 APPn segments, EXIF 2.32 (TIFF IFD, tag 0x9286) - WebP: Google WebP container specification (RIFF, `EXIF` chunk) - GGUF: ggml/llama.cpp GGUF file format specification - PDF: ISO 32000-1 / 32000-2, Adobe supplement for AES-256 (R=6) Format specifications are not copyrighted works of authorship in the sense that code is; where sample structures were consulted, they came from the public specification documents. ## Rebuilding the license files If a library is upgraded, update its row here **and** replace the corresponding license copy under `项目/src/root/licenses/`. The build copies that directory to `/licenses/` verbatim.