# b-bcoder/file-converter-pro-1 architecture

> Architecture diagram of the GitHub repository b-bcoder/file-converter-pro-1, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-16). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/b-bcoder/file-converter-pro-1
- Repository: https://github.com/b-bcoder/file-converter-pro-1

## Overview

File Converter Pro is a local Electron desktop app. Users add files or folders, choose formats, convert and monitor per-file status, then save results or package successes in an optionally encrypted ZIP; failed items can be retried. App.tsx owns the conversion workflow and calls the conversion service, which handles image/PDF work and dispatches media or transcription through Electron when available. The main process provides native FFmpeg, Whisper, file staging/output, and update capabilities. README capabilities are retained; unsampled implementation links are omitted where evidence is unavailable.

Main entry points: [`App.tsx`](https://github.com/b-bcoder/file-converter-pro-1/blob/FCP-Windows/App.tsx) (Converter UI), [`services/fileConverter.ts`](https://github.com/b-bcoder/file-converter-pro-1/blob/FCP-Windows/services/fileConverter.ts) (Format conversion), [`electron-main.cjs`](https://github.com/b-bcoder/file-converter-pro-1/blob/FCP-Windows/electron-main.cjs) (Desktop operations), [`preload.js`](https://github.com/b-bcoder/file-converter-pro-1/blob/FCP-Windows/preload.js) (Electron bridge)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_interface["User interface"]
  node_app["Converter UI<br/>[App.tsx]"]
  node_entry["React entry<br/>[index.tsx]"]
end

subgraph group_conversion["Conversion workflow"]
  node_types["Conversion state<br/>[types.ts]"]
  node_convert["Format conversion<br/>[fileConverter.ts]"]
  node_ffmpeg["FFmpeg engine"]
  node_zip["ZIP packaging<br/>[App.tsx]"]
end

subgraph group_desktop["Desktop services"]
  node_electron["Electron bridge<br/>[preload.js]"]
  node_main["Desktop operations<br/>[electron-main.cjs]"]
  node_localfiles[("Local files")]
  node_github["GitHub Releases"]
end

subgraph group_localization["Localization"]
  node_translations["Translations<br/>[i18n.ts]"]
end

node_user(("Desktop user"))

node_user -->|"selects and converts"| node_app
node_entry -->|"mounts"| node_app
node_app -->|"calls conversions"| node_convert
node_app -->|"tracks files"| node_types
node_convert -.->|"runs media jobs"| node_ffmpeg
node_app -->|"packages successes"| node_zip
node_app -.->|"uses desktop API"| node_electron
node_convert -->|"dispatches native work"| node_electron
node_electron -->|"invokes IPC"| node_main
node_main -.->|"stages and writes"| node_localfiles
node_main -.->|"checks releases"| node_github
node_app -->|"renders localized text"| node_translations

click node_app "https://github.com/b-bcoder/file-converter-pro-1/blob/FCP-Windows/App.tsx"
click node_entry "https://github.com/b-bcoder/file-converter-pro-1/blob/FCP-Windows/index.tsx"
click node_types "https://github.com/b-bcoder/file-converter-pro-1/blob/FCP-Windows/types.ts"
click node_convert "https://github.com/b-bcoder/file-converter-pro-1/blob/FCP-Windows/services/fileConverter.ts"
click node_zip "https://github.com/b-bcoder/file-converter-pro-1/blob/FCP-Windows/App.tsx"
click node_electron "https://github.com/b-bcoder/file-converter-pro-1/blob/FCP-Windows/preload.js"
click node_main "https://github.com/b-bcoder/file-converter-pro-1/blob/FCP-Windows/electron-main.cjs"
click node_translations "https://github.com/b-bcoder/file-converter-pro-1/blob/FCP-Windows/i18n.ts"

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_entry,node_user toneBlue
class node_types,node_convert,node_ffmpeg,node_zip toneAmber
class node_electron,node_main,node_localfiles,node_github toneMint
class node_translations toneRose
```

## Components

### User interface

- [Converter UI](https://github.com/b-bcoder/file-converter-pro-1/blob/FCP-Windows/App.tsx): `App.tsx`
- [React entry](https://github.com/b-bcoder/file-converter-pro-1/blob/FCP-Windows/index.tsx): `index.tsx`

### Conversion workflow

- [Conversion state](https://github.com/b-bcoder/file-converter-pro-1/blob/FCP-Windows/types.ts): `types.ts`
- [Format conversion](https://github.com/b-bcoder/file-converter-pro-1/blob/FCP-Windows/services/fileConverter.ts): `services/fileConverter.ts`
- **FFmpeg engine**
- [ZIP packaging](https://github.com/b-bcoder/file-converter-pro-1/blob/FCP-Windows/App.tsx): `App.tsx`

### Desktop services

- [Electron bridge](https://github.com/b-bcoder/file-converter-pro-1/blob/FCP-Windows/preload.js): `preload.js`
- [Desktop operations](https://github.com/b-bcoder/file-converter-pro-1/blob/FCP-Windows/electron-main.cjs): `electron-main.cjs`
- **Local files**
- **GitHub Releases**

### Localization

- [Translations](https://github.com/b-bcoder/file-converter-pro-1/blob/FCP-Windows/i18n.ts): `i18n.ts`

### Other components

- **Desktop user**

## Connections

- Desktop user → Converter UI: selects and converts (evidence: `README.md`)
- React entry → Converter UI: mounts (evidence: `index.tsx`)
- Converter UI → Format conversion: calls conversions (evidence: `App.tsx`)
- Converter UI → Conversion state: tracks files (evidence: `App.tsx`)
- Format conversion → FFmpeg engine: runs media jobs
- Converter UI → ZIP packaging: packages successes (evidence: `App.tsx`)
- Converter UI → Electron bridge: uses desktop API
- Format conversion → Electron bridge: dispatches native work (evidence: `services/fileConverter.ts`)
- Electron bridge → Desktop operations: invokes IPC (evidence: `preload.js`)
- Desktop operations → Local files: stages and writes
- Desktop operations → GitHub Releases: checks releases (evidence: `README.md`)
- Converter UI → Translations: renders localized text (evidence: `App.tsx`)
