How unheat/kites works
Kites is a Chrome extension for translating manga and webtoon images in-browser, with a companion Studio and an optional provider worker. The principal flow starts with a page image or crop, passes through extension messaging into image analysis and translation, then renders translated text back into the reading experience. The graph also preserves chapter reading, model controls, Studio editing/export, and worker services. Several implementation links are based on README descriptions; unsampled subsystem internals and their exact dispatch paths are not inferred.
Main entry points: PipelineOrchestrator.ts Image pipeline · EngineSelectionPanel.tsx Engine controls · index.tsx Manga reader · index.ts Job coordinator
Components 30
Reading experience
- Manga reader
src/content/index.tsx - Media targeting
src/content/mediaTargets.ts - Chapter reader
src/content/ChapterReaderModal.tsx - Chapter ZIP export
src/content/chapterZip.ts
Translation runtime
- Job coordinator
src/background/index.ts - Job storage
src/db.ts - Image pipeline
src/offscreen/services/PipelineOrchestrator.ts - Text detection
src/offscreen/engines/ocr/PaddleOcrEngine.ts - OCR registry
src/offscreen/engines/ocr/ocrRegistry.ts - Bubble detection
src/offscreen/engines/bubble/NeuralBubbleEngine.ts - Text translation
src/offscreen/services/TranslationManager.ts - Background repair
src/offscreen/engines/inpaint/LamaBaseInpaintEngine.ts - Text typesetting
src/offscreen/engines/typeset/AutoBalloonTypesetter.ts - Manga colorization
src/offscreen/engines/color/MangaColorizeEngine.ts - Geometry utilities
src/shared/utils/geometry.ts
Models and settings
- Hardware selection
src/offscreen/utils/hardware.ts - Engine controls
src/popup/components/EngineSelectionPanel.tsx - Engine ordering
src/shared/engineOrdering.ts - Custom providers
src/shared/customApi.ts - Translation preferences
src/shared/glossary.ts - Color tiers
src/shared/colorTiers.ts - Inpaint tiers
src/shared/inpaintTiers.ts - Font presets
src/shared/renderFontPresets.ts - Site rules
src/shared/siteRules.ts
Studio editing
- Studio editor
src/studio/Studio.tsx - Studio dashboard
src/App.tsx - Studio export
src/studio/export/psdExport.ts
Provider worker
- Translation API worker
worker/src/index.ts
Other components
- External AI provider
- Reader
Connections 28
- Reader → Manga reader: uses
README.md - Manga reader → Media targeting: targets media
src/content/index.tsx - Manga reader → Job coordinator: sends requests
- Job coordinator → Image pipeline: dispatches jobs
- Job coordinator → Job storage: stores jobs
src/background/index.ts - Image pipeline → Text detection: detects text
- Image pipeline → Bubble detection: detects bubbles
- Image pipeline → Text translation: translates text
- Image pipeline → Background repair: repairs backgrounds
- Image pipeline → Text typesetting: lays out text
- Image pipeline → Manga colorization: colorizes artwork
- Text detection → OCR registry: resolves tier
src/offscreen/engines/ocr/PaddleOcrEngine.ts - Text detection → Hardware selection: checks WebGPU
src/offscreen/engines/ocr/PaddleOcrEngine.ts - Engine controls → Engine ordering: orders engines
src/popup/components/EngineSelectionPanel.tsx - Engine controls → Custom providers: configures providers
- Engine controls → Translation preferences: configures translation
- Engine controls → Color tiers: configures color
src/popup/components/EngineSelectionPanel.tsx - Engine controls → Inpaint tiers: configures repair
src/popup/components/EngineSelectionPanel.tsx - Engine controls → Font presets: configures fonts
src/popup/components/EngineSelectionPanel.tsx - Manga reader → Site rules: matches site rules
src/content/index.tsx - Manga colorization → Geometry utilities: uses geometry
src/offscreen/engines/color/MangaColorizeEngine.ts - Manga reader → Chapter reader: opens reader
src/content/index.tsx - Chapter reader → Chapter ZIP export: exports chapter
src/content/index.tsx - Studio dashboard → Job storage: loads jobs
src/App.tsx - Studio dashboard → Studio editor: opens editor
src/App.tsx - Studio editor → Studio export: exports artwork
- Text translation → Translation API worker: optional remote translation
- Translation API worker → External AI provider: dispatches requests