Licenses and third-party components
What was written here, and what comes from open source
This page lists every piece of external code roroto uses, with its license and its copyright holder. The site's own code is released under the MIT license; the libraries keep their own, and the Apache-2.0 ones are not relicensed by that MIT grant.
Every library is served from /vendor/ on this domain, and no external CDN is called at runtime. That is not only a privacy decision: it also means the license copies travel with the code, which is what section 4 of the Apache license asks for.
Bundled libraries
| Component | Used for | License | Copyright |
|---|---|---|---|
| pdf-lib | Reading and writing PDF | MIT | Andrew Dillon |
| tslib | TypeScript helpers inside pdf-lib | Apache-2.0 | Microsoft Corporation |
| PDF.js | Rendering pages, extracting text | Apache-2.0 | Mozilla Foundation |
| JSZip | Building archives | MIT | Stuart Knightley |
| heic2any | Decoding HEIC | MIT | Alex Corvi |
| qrcode-generator | Generating QR codes | MIT | Kazuhiko Arase |
| jsQR | Reading QR codes | Apache-2.0 | Cozmo |
| pdf-encrypt-lite | Encrypting PDF | MIT | PDFSmaller.com |
| pdf-decrypt | Decrypting PDF (AES-256, RC4) | MIT | PDFSmaller.com |
| Tesseract.js | Optical character recognition | Apache-2.0 | Kevin Kwok and contributors |
| tesseract-core | The OCR engine itself, in WebAssembly | Apache-2.0 | Tesseract OCR / Leptonica |
| tessdata eng, chi_sim | Language models for OCR | Apache-2.0 | The Tesseract OCR project |
JSZip is dual-licensed MIT / GPLv3; it is used here under the MIT option.
What Tesseract.js carries inside
tesseract.min.js and worker.min.js are webpack builds with four further dependencies embedded. Their notices ship alongside in /vendor/tesseract/.
| Component | License | Copyright |
|---|---|---|
| regenerator-runtime | MIT | Facebook, Inc. |
| buffer | MIT | Feross Aboukhadijeh |
| ieee754 | BSD-3-Clause | Feross Aboukhadijeh |
| zlib.js | MIT | imaya |
Tokenizer: the algorithm is tiktoken's, the code is ours
The token counter runs the BPE algorithm and the three vocabularies from OpenAI's tiktoken (MIT), with the rank data exported through js-tiktoken (MIT). The browser implementation, src/static/bpe.js, was written for this site: upstream rescans an array on every pass (O(n²)), while this one uses a linked list with a binary heap and lazy deletion (O(n log n)). No source code was copied. The immediate reason is practical — on a long Chinese paragraph upstream's approach stalls on a phone.
| Component | License | Copyright |
|---|---|---|
| tiktoken (algorithm and vocabularies) | MIT | OpenAI |
| js-tiktoken (source of the rank data) | MIT | dqbd |
Written here
These tools have no external code dependency and are implemented against the published format specifications:
- AI image prompt — all three parsers are hand-written: PNG tEXt / zTXt / iTXt, JPEG APP1 EXIF (tag 0x9286) and the WebP RIFF EXIF chunk
- GGUF inspector — metadata block and tensor table, plus a windowed reader that fetches only the slices it needs (the vocabulary arrays run to tens of MB and have to be skipped, not loaded)
- Token counter — the interface and the statistics; the BPE algorithm is described above
Specifications consulted: W3C PNG (3rd edition), ISO/IEC 10918-1 and EXIF 2.32, Google's WebP container specification, the GGUF format from ggml/llama.cpp, and ISO 32000-2. These are public technical standards, not source code that can be copied.
Full license texts
Copies distributed with the site:
- Apache License 2.0, full text
- MIT license, full text
- Complete list of third-party components, including embedded dependencies and versions
If something is missing or attributed to the wrong party, write to RoRoToCode@gmail.com and it will be corrected.