How jaiz-lana/kilat works
KiLat is a browser-based, local file-processing application with an offline PWA shell. The main user flow is selecting a tool and local files, processing them in the browser, then downloading or previewing results. The tree and excerpts expose the student/document engine and service worker, but not index.html or the general image, PDF, and audio implementations; those README capabilities are retained as directory-level subsystems, with their wiring left unasserted. Relationship evidence is therefore limited to the sampled engine, service worker, and README.
Main entry points: studentEngine.js Student tool dispatcher · index.html Preview and downloads · sw.js Offline cache worker · security.js HTML sanitization
Components 20
Tool interface
- Tool selection
index.html - Local file inputs
index.html - Preview and downloads
index.html
Student documents
- Student tool dispatcher
studentEngine.js - Target PDF compression
studentEngine.js - Document signatures
studentEngine.js - Thesis page numbers
studentEngine.js - ID watermarking
studentEngine.js - Document scanner
studentEngine.js - Image OCR
studentEngine.js
File processing
- Image compression
index.html - PDF tools
index.html - Audio extraction
index.html - Batch ZIP output
index.html
Offline runtime
- Offline cache worker
sw.js - Installable app metadata
manifest.webmanifest
Local safety
- HTML sanitization
security.js
Other components
- Browser user
- Browser APIs
- Tesseract OCR
Connections 27
- Browser user → Tool selection: selects tool
README.md - Browser user → Local file inputs: chooses files
README.md - Tool selection → Student tool dispatcher: dispatches
- Local file inputs → Student tool dispatcher: provides files
- Student tool dispatcher → Target PDF compression: dispatches
studentEngine.js - Student tool dispatcher → Document signatures: dispatches
studentEngine.js - Student tool dispatcher → Thesis page numbers: dispatches
studentEngine.js - Student tool dispatcher → ID watermarking: dispatches
studentEngine.js - Student tool dispatcher → Document scanner: dispatches
studentEngine.js - Student tool dispatcher → Image OCR: dispatches
studentEngine.js - Image OCR → Tesseract OCR: loads engine
studentEngine.js - Target PDF compression → Browser APIs: uses browser APIs
studentEngine.js - Document signatures → Browser APIs: uses canvas
studentEngine.js - Thesis page numbers → Browser APIs: saves PDF
studentEngine.js - ID watermarking → Batch ZIP output: creates ZIP
studentEngine.js - Document scanner → Batch ZIP output: creates ZIP
studentEngine.js - Student tool dispatcher → Preview and downloads: delivers results
- Browser user → Image compression: uses
README.md - Browser user → PDF tools: uses
README.md - Browser user → Audio extraction: uses
README.md - Image compression → Preview and downloads: produces files
- PDF tools → Preview and downloads: produces files
- Audio extraction → Preview and downloads: produces files
- Browser user → Offline cache worker: visits app
README.md - Offline cache worker → Installable app metadata: caches asset
sw.js - Offline cache worker → Browser APIs: stores cache
sw.js - HTML sanitization → Browser APIs: sanitizes markup
security.js