How elementdavv/internet_archive_downloader works
Internet Archive Downloader is a browser extension that turns borrowed Internet Archive and full-view HathiTrust books into streamed downloads. Users configure a format and optional page range, start a job from the book page, and receive a PDF or per-leaf image archive; README also describes parallel jobs and embedded multilingual text. core/js/base.js is the sampled job coordinator, with PDF/ZIP writers and a queue. Font parsing and layout are a substantial internal capability. Other platform and format details are based on README statements and tree paths; unsampled implementation links are omitted or marked unverified.
Main entry points: base.js Job Coordinator · TTFFont.js TrueType Parsing · archive1.js Archive Controls · hathitrust1.js Hathi Controls
Components 18
Book Capture
- Archive Controls
core/js/archive1.js - Hathi Controls
core/js/hathitrust1.js - Page Integration
core/js/contents.js - Download Settings
core/js/popup.js
Download Jobs
- Job Coordinator
core/js/base.js - Leaf Queue
core/js/utils/queue.js - Leaf Retrieval
core/js/base.js
Document Output
- Stream Writer
core/js/utils/streamsaver.js - PDF Generation
core/js/pdf/document.js - ZIP Generation
core/js/zip/document.js - Image Decoding
core/js/utils/image_decoder.js
Font Processing
- TrueType Parsing
core/js/fontkit/TTFFont.js - Glyph Layout
core/js/fontkit/layout/LayoutEngine.js - Unicode Properties
core/js/fontkit/thirdparty/unicode-properties/index.js - Font Subsetting
core/js/fontkit/subset/TTFSubset.js
Other components
- Book Reader
- Internet Archive
- HathiTrust
Connections 19
- Book Reader → Archive Controls: starts download
- Book Reader → Hathi Controls: starts download
- Internet Archive → Archive Controls: provides book page
- HathiTrust → Hathi Controls: provides book page
- Archive Controls → Job Coordinator: dispatches job
- Hathi Controls → Job Coordinator: dispatches job
- Download Settings → Job Coordinator: configures job
- Job Coordinator → Leaf Queue: enqueues leaves
core/js/base.js - Job Coordinator → Leaf Retrieval: retrieves leaves
core/js/base.js - Leaf Retrieval → Internet Archive: fetches leaves
- Leaf Retrieval → HathiTrust: fetches leaves
- Job Coordinator → Stream Writer: streams output
core/js/base.js - Job Coordinator → PDF Generation: selects PDF
core/js/base.js - Job Coordinator → ZIP Generation: selects ZIP
core/js/base.js - Job Coordinator → Image Decoding: decodes images
- PDF Generation → TrueType Parsing: embeds text fonts
- TrueType Parsing → Glyph Layout: shapes text
core/js/fontkit/TTFFont.js - Glyph Layout → Unicode Properties: reads properties
- TrueType Parsing → Font Subsetting: creates subset
core/js/fontkit/TTFFont.js