# kamalaboueidd/omnishift architecture

> Architecture diagram of the GitHub repository kamalaboueidd/omnishift, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-29). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/kamalaboueidd/omnishift
- Repository: https://github.com/kamalaboueidd/omnishift

## Overview

OmniShift is a browser-based, zero-egress media and document converter. Users stage local files, choose a conversion or merge target, run work through the batch/worker runtime, then download the generated output. The README also documents image resizing, PDF and presentation conversion, structured-data conversion, sample presets, telemetry, and bilingual RTL/theme support. Edges follow shown imports or documented behavior; some UI and worker-dispatch wiring is not visible in the excerpts, so it is omitted or marked unverified.

Main entry points: [`src/workers/transmute.worker.js`](https://github.com/kamalaboueidd/omnishift/blob/main/src/workers/transmute.worker.js) (Worker dispatcher), [`src/App.jsx`](https://github.com/kamalaboueidd/omnishift/blob/main/src/App.jsx) (Studio coordinator), [`src/components/StagedFilesWorkbench.jsx`](https://github.com/kamalaboueidd/omnishift/blob/main/src/components/StagedFilesWorkbench.jsx) (Staged workbench), [`src/hooks/useBatchTransmute.js`](https://github.com/kamalaboueidd/omnishift/blob/main/src/hooks/useBatchTransmute.js) (Batch queue)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_workspace["Studio workspace"]
  node_app["Studio coordinator<br/>[App.jsx]"]
  node_drop["File dropzone"]
  node_staging["Staged workbench"]
  node_resize["Resize workbench"]
  node_presets["Sample presets<br/>[SamplePresets.jsx]"]
  node_batch["Batch queue"]
  node_queuehud["Queue display<br/>[BatchQueueHUD.jsx]"]
  node_visualdiff["Visual diff"]
  node_controls["Format controls"]
end

subgraph group_runtime["Conversion runtime"]
  node_workerpool["Worker pool<br/>[workerPool.js]"]
  node_fallback["Local fallback<br/>[localFallback.js]"]
  node_worker["Worker dispatcher"]
  node_memory[("Blob lifecycle<br/>[memoryManager.js]")]
end

subgraph group_engines["Format engines"]
  node_imaging["Image conversion<br/>[imageEngine.js]"]
  node_pdf["PDF conversion<br/>[pdfEngine.js]"]
  node_presentation["Presentation conversion"]
  node_data["Data conversion<br/>[dataEngine.js]"]
  node_svg["SVG conversion<br/>[svgEngine.js]"]
  node_resizemath["Resize math<br/>[resizeMath.js]"]
end

subgraph group_support["Interface and support"]
  node_guide["Technical guide<br/>[GuidePage.jsx]"]
  node_telemetry["Telemetry display<br/>[TelemetryHUD.jsx]"]
  node_i18n["Translations<br/>[translations.js]"]
  node_language["Language context"]
  node_theme["Theme context<br/>[ThemeContext.jsx]"]
  node_main["Application bootstrap<br/>[main.jsx]"]
end

node_user(("Local user"))

node_user -->|"selects files"| node_drop
node_user -->|"loads samples"| node_presets
node_drop -->|"submits files"| node_app
node_app -->|"renders"| node_staging
node_app -->|"renders"| node_resize
node_app -->|"navigates to"| node_guide
node_app -->|"runs batch"| node_batch
node_staging -->|"renders"| node_controls
node_staging -->|"renders"| node_visualdiff
node_staging -->|"uses"| node_memory
node_resize -->|"uses"| node_resizemath
node_resize -->|"uses"| node_memory
node_batch -->|"submits work"| node_workerpool
node_batch -->|"releases URLs"| node_memory
node_batch -->|"downloads output"| node_user
node_workerpool -->|"uses fallback"| node_fallback
node_workerpool -.->|"dispatches work"| node_worker
node_worker -->|"routes work"| node_imaging
node_worker -->|"routes work"| node_pdf
node_worker -->|"routes work"| node_presentation
node_worker -->|"routes work"| node_data
node_worker -->|"routes work"| node_svg
node_pdf -->|"converts via"| node_presentation
node_imaging -->|"computes dimensions"| node_resizemath
node_svg -->|"computes dimensions"| node_resizemath
node_main -->|"mounts"| node_app
node_main -->|"provides context"| node_language
node_main -->|"provides context"| node_theme
node_language -->|"reads strings"| node_i18n

click node_app "https://github.com/kamalaboueidd/omnishift/blob/main/src/App.jsx"
click node_drop "https://github.com/kamalaboueidd/omnishift/blob/main/src/components/TransmuteDropzone.jsx"
click node_staging "https://github.com/kamalaboueidd/omnishift/blob/main/src/components/StagedFilesWorkbench.jsx"
click node_resize "https://github.com/kamalaboueidd/omnishift/blob/main/src/components/ResizeWorkbench.jsx"
click node_presets "https://github.com/kamalaboueidd/omnishift/blob/main/src/components/SamplePresets.jsx"
click node_batch "https://github.com/kamalaboueidd/omnishift/blob/main/src/hooks/useBatchTransmute.js"
click node_queuehud "https://github.com/kamalaboueidd/omnishift/blob/main/src/components/BatchQueueHUD.jsx"
click node_workerpool "https://github.com/kamalaboueidd/omnishift/blob/main/src/lib/workerPool.js"
click node_fallback "https://github.com/kamalaboueidd/omnishift/blob/main/src/lib/localFallback.js"
click node_worker "https://github.com/kamalaboueidd/omnishift/blob/main/src/workers/transmute.worker.js"
click node_memory "https://github.com/kamalaboueidd/omnishift/blob/main/src/lib/memoryManager.js"
click node_imaging "https://github.com/kamalaboueidd/omnishift/blob/main/src/workers/engines/imageEngine.js"
click node_pdf "https://github.com/kamalaboueidd/omnishift/blob/main/src/workers/engines/pdfEngine.js"
click node_presentation "https://github.com/kamalaboueidd/omnishift/blob/main/src/workers/engines/presentationEngine.js"
click node_data "https://github.com/kamalaboueidd/omnishift/blob/main/src/workers/engines/dataEngine.js"
click node_svg "https://github.com/kamalaboueidd/omnishift/blob/main/src/workers/engines/svgEngine.js"
click node_resizemath "https://github.com/kamalaboueidd/omnishift/blob/main/src/utils/resizeMath.js"
click node_visualdiff "https://github.com/kamalaboueidd/omnishift/blob/main/src/components/VisualDiffViewer.jsx"
click node_controls "https://github.com/kamalaboueidd/omnishift/blob/main/src/components/ConversionControls.jsx"
click node_guide "https://github.com/kamalaboueidd/omnishift/blob/main/src/components/GuidePage.jsx"
click node_telemetry "https://github.com/kamalaboueidd/omnishift/blob/main/src/components/TelemetryHUD.jsx"
click node_i18n "https://github.com/kamalaboueidd/omnishift/blob/main/src/i18n/translations.js"
click node_language "https://github.com/kamalaboueidd/omnishift/blob/main/src/context/LanguageContext.jsx"
click node_theme "https://github.com/kamalaboueidd/omnishift/blob/main/src/context/ThemeContext.jsx"
click node_main "https://github.com/kamalaboueidd/omnishift/blob/main/src/main.jsx"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_app,node_drop,node_staging,node_resize,node_presets,node_batch,node_queuehud,node_visualdiff,node_controls,node_user toneBlue
class node_workerpool,node_fallback,node_worker,node_memory toneAmber
class node_imaging,node_pdf,node_presentation,node_data,node_svg,node_resizemath toneMint
class node_guide,node_telemetry,node_i18n,node_language,node_theme,node_main toneRose
```

## Components

### Studio workspace

- [Studio coordinator](https://github.com/kamalaboueidd/omnishift/blob/main/src/App.jsx): `src/App.jsx`
- [File dropzone](https://github.com/kamalaboueidd/omnishift/blob/main/src/components/TransmuteDropzone.jsx): `src/components/TransmuteDropzone.jsx`
- [Staged workbench](https://github.com/kamalaboueidd/omnishift/blob/main/src/components/StagedFilesWorkbench.jsx): `src/components/StagedFilesWorkbench.jsx`
- [Resize workbench](https://github.com/kamalaboueidd/omnishift/blob/main/src/components/ResizeWorkbench.jsx): `src/components/ResizeWorkbench.jsx`
- [Sample presets](https://github.com/kamalaboueidd/omnishift/blob/main/src/components/SamplePresets.jsx): `src/components/SamplePresets.jsx`
- [Batch queue](https://github.com/kamalaboueidd/omnishift/blob/main/src/hooks/useBatchTransmute.js): `src/hooks/useBatchTransmute.js`
- [Queue display](https://github.com/kamalaboueidd/omnishift/blob/main/src/components/BatchQueueHUD.jsx): `src/components/BatchQueueHUD.jsx`
- [Visual diff](https://github.com/kamalaboueidd/omnishift/blob/main/src/components/VisualDiffViewer.jsx): `src/components/VisualDiffViewer.jsx`
- [Format controls](https://github.com/kamalaboueidd/omnishift/blob/main/src/components/ConversionControls.jsx): `src/components/ConversionControls.jsx`

### Conversion runtime

- [Worker pool](https://github.com/kamalaboueidd/omnishift/blob/main/src/lib/workerPool.js): `src/lib/workerPool.js`
- [Local fallback](https://github.com/kamalaboueidd/omnishift/blob/main/src/lib/localFallback.js): `src/lib/localFallback.js`
- [Worker dispatcher](https://github.com/kamalaboueidd/omnishift/blob/main/src/workers/transmute.worker.js): `src/workers/transmute.worker.js`
- [Blob lifecycle](https://github.com/kamalaboueidd/omnishift/blob/main/src/lib/memoryManager.js): `src/lib/memoryManager.js`

### Format engines

- [Image conversion](https://github.com/kamalaboueidd/omnishift/blob/main/src/workers/engines/imageEngine.js): `src/workers/engines/imageEngine.js`
- [PDF conversion](https://github.com/kamalaboueidd/omnishift/blob/main/src/workers/engines/pdfEngine.js): `src/workers/engines/pdfEngine.js`
- [Presentation conversion](https://github.com/kamalaboueidd/omnishift/blob/main/src/workers/engines/presentationEngine.js): `src/workers/engines/presentationEngine.js`
- [Data conversion](https://github.com/kamalaboueidd/omnishift/blob/main/src/workers/engines/dataEngine.js): `src/workers/engines/dataEngine.js`
- [SVG conversion](https://github.com/kamalaboueidd/omnishift/blob/main/src/workers/engines/svgEngine.js): `src/workers/engines/svgEngine.js`
- [Resize math](https://github.com/kamalaboueidd/omnishift/blob/main/src/utils/resizeMath.js): `src/utils/resizeMath.js`

### Interface and support

- [Technical guide](https://github.com/kamalaboueidd/omnishift/blob/main/src/components/GuidePage.jsx): `src/components/GuidePage.jsx`
- [Telemetry display](https://github.com/kamalaboueidd/omnishift/blob/main/src/components/TelemetryHUD.jsx): `src/components/TelemetryHUD.jsx`
- [Translations](https://github.com/kamalaboueidd/omnishift/blob/main/src/i18n/translations.js): `src/i18n/translations.js`
- [Language context](https://github.com/kamalaboueidd/omnishift/blob/main/src/context/LanguageContext.jsx): `src/context/LanguageContext.jsx`
- [Theme context](https://github.com/kamalaboueidd/omnishift/blob/main/src/context/ThemeContext.jsx): `src/context/ThemeContext.jsx`
- [Application bootstrap](https://github.com/kamalaboueidd/omnishift/blob/main/src/main.jsx): `src/main.jsx`

### Other components

- **Local user**

## Connections

- Local user → File dropzone: selects files
- Local user → Sample presets: loads samples
- File dropzone → Studio coordinator: submits files (evidence: `src/App.jsx`)
- Studio coordinator → Staged workbench: renders (evidence: `src/App.jsx`)
- Studio coordinator → Resize workbench: renders (evidence: `src/App.jsx`)
- Studio coordinator → Technical guide: navigates to (evidence: `src/App.jsx`)
- Studio coordinator → Batch queue: runs batch (evidence: `src/App.jsx`)
- Staged workbench → Format controls: renders (evidence: `src/components/StagedFilesWorkbench.jsx`)
- Staged workbench → Visual diff: renders (evidence: `src/components/StagedFilesWorkbench.jsx`)
- Staged workbench → Blob lifecycle: uses (evidence: `src/components/StagedFilesWorkbench.jsx`)
- Resize workbench → Resize math: uses (evidence: `src/components/ResizeWorkbench.jsx`)
- Resize workbench → Blob lifecycle: uses (evidence: `src/components/ResizeWorkbench.jsx`)
- Batch queue → Worker pool: submits work (evidence: `src/hooks/useBatchTransmute.js`)
- Batch queue → Blob lifecycle: releases URLs (evidence: `src/hooks/useBatchTransmute.js`)
- Batch queue → Local user: downloads output (evidence: `src/hooks/useBatchTransmute.js`)
- Worker pool → Local fallback: uses fallback (evidence: `src/lib/workerPool.js`)
- Worker pool → Worker dispatcher: dispatches work
- Worker dispatcher → Image conversion: routes work (evidence: `src/workers/transmute.worker.js`)
- Worker dispatcher → PDF conversion: routes work (evidence: `src/workers/transmute.worker.js`)
- Worker dispatcher → Presentation conversion: routes work (evidence: `src/workers/transmute.worker.js`)
- Worker dispatcher → Data conversion: routes work (evidence: `src/workers/transmute.worker.js`)
- Worker dispatcher → SVG conversion: routes work (evidence: `src/workers/transmute.worker.js`)
- PDF conversion → Presentation conversion: converts via (evidence: `src/workers/engines/pdfEngine.js`)
- Image conversion → Resize math: computes dimensions (evidence: `src/workers/engines/imageEngine.js`)
- SVG conversion → Resize math: computes dimensions (evidence: `src/workers/engines/svgEngine.js`)
- Application bootstrap → Studio coordinator: mounts (evidence: `src/main.jsx`)
- Application bootstrap → Language context: provides context (evidence: `src/main.jsx`)
- Application bootstrap → Theme context: provides context (evidence: `src/main.jsx`)
- Language context → Translations: reads strings (evidence: `src/context/LanguageContext.jsx`)
