RoRoTo
On-device

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

ComponentUsed forLicenseCopyright
pdf-libReading and writing PDFMITAndrew Dillon
tslibTypeScript helpers inside pdf-libApache-2.0Microsoft Corporation
PDF.jsRendering pages, extracting textApache-2.0Mozilla Foundation
JSZipBuilding archivesMITStuart Knightley
heic2anyDecoding HEICMITAlex Corvi
qrcode-generatorGenerating QR codesMITKazuhiko Arase
jsQRReading QR codesApache-2.0Cozmo
pdf-encrypt-liteEncrypting PDFMITPDFSmaller.com
pdf-decryptDecrypting PDF (AES-256, RC4)MITPDFSmaller.com
Tesseract.jsOptical character recognitionApache-2.0Kevin Kwok and contributors
tesseract-coreThe OCR engine itself, in WebAssemblyApache-2.0Tesseract OCR / Leptonica
tessdata eng, chi_simLanguage models for OCRApache-2.0The 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/.

ComponentLicenseCopyright
regenerator-runtimeMITFacebook, Inc.
bufferMITFeross Aboukhadijeh
ieee754BSD-3-ClauseFeross Aboukhadijeh
zlib.jsMITimaya

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.

ComponentLicenseCopyright
tiktoken (algorithm and vocabularies)MITOpenAI
js-tiktoken (source of the rank data)MITdqbd

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:

If something is missing or attributed to the wrong party, write to RoRoToCode@gmail.com and it will be corrected.