How engineer12-garko/litecome works
LiteCompress is a static, privacy-first video-compression web app. Users select or drop videos, choose a compression preset, and run jobs in a queue; the app returns downloadable, previewable MP4 output. For long videos, it can checkpoint segments for recovery and assemble them when complete. The graph separates intake, orchestration, encoding, and local state, with preview and offline caching as supporting capabilities. App orchestration and the worker are shown from excerpts; some UI and recovery details are documented or referenced but not fully sampled.
Main entry points: app.js App orchestration · file-manager.js File manager · compression-worker.js Compression worker · index.html File selection UI
Components 14
Video intake
- File selection UI
index.html - File manager
js/file-manager.js
Job workflow
- App orchestration
js/app.js - Job queue
js/job-queue.js - Compression presets
js/presets.js - Preview manager
js/preview.js - File utilities
js/utils.js
Compression
- Compression engine
js/compression-engine.js - Compression worker
js/compression-worker.js - FFmpeg.wasm
Local state
- Job and history store
js/persistence-store.js - Segment checkpoint store
js/checkpoint-store.js - Offline asset cache
sw.js
Other components
- User
Connections 15
- User → File selection UI: selects videos
- File selection UI → File manager: provides files
js/file-manager.js - File manager → File utilities: filters files
js/file-manager.js - File manager → App orchestration: passes accepted files
js/file-manager.js - App orchestration → Job queue: runs jobs
js/app.js - App orchestration → Compression presets: selects settings
js/app.js - App orchestration → Compression engine: requests compression
js/app.js - Compression engine → Compression worker: dispatches tasks
js/compression-engine.js - Compression worker → FFmpeg.wasm: encodes and assembles
js/compression-worker.js - App orchestration → Job and history store: saves jobs and history
js/app.js - App orchestration → Segment checkpoint store: reads and writes segments
js/app.js - App orchestration → Preview manager: manages previews
js/app.js - App orchestration → File utilities: formats output
js/app.js - Offline asset cache → File selection UI: caches app assets
sw.js - Compression worker → Segment checkpoint store: reads segments for assembly
js/compression-worker.js