# b-bcoder/fcp-file-converter-pro-linux-edition architecture

> Architecture diagram of the GitHub repository b-bcoder/fcp-file-converter-pro-linux-edition, 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/fcp-file-converter-pro-linux-edition
- Repository: https://github.com/b-bcoder/fcp-file-converter-pro-linux-edition

## Overview

FCP is a local Electron desktop converter. Users select files or folders, choose output formats, run and monitor conversions, then save files or package results as ZIPs; optional features include transcription, PDF text extraction, an encrypted ZIP vault, source staging, and interface preferences. The excerpts show the React app invoking conversion services and native operations through Electron’s preload bridge. Main-process IPC implementations are only partially sampled, so undocumented links are omitted; README-described capabilities remain represented.

Main entry points: [`App.tsx`](https://github.com/b-bcoder/fcp-file-converter-pro-linux-edition/blob/main/App.tsx) (Conversion interface), [`electron-main.cjs`](https://github.com/b-bcoder/fcp-file-converter-pro-linux-edition/blob/main/electron-main.cjs) (Electron IPC runtime), [`preload.js`](https://github.com/b-bcoder/fcp-file-converter-pro-linux-edition/blob/main/preload.js) (Electron preload API), [`services/fileConverter.ts`](https://github.com/b-bcoder/fcp-file-converter-pro-linux-edition/blob/main/services/fileConverter.ts) (Media conversion)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_ui["Desktop interface"]
  node_app["Conversion interface<br/>[App.tsx]"]
  node_translations["Translations<br/>[i18n.ts]"]
  node_renderer["React entry point<br/>[index.tsx]"]
  node_preferences["App preferences<br/>[App.tsx]"]
end

subgraph group_processing["Conversion workflow"]
  node_types["Conversion models<br/>[types.ts]"]
  node_image["Image conversion<br/>[fileConverter.ts]"]
  node_media["Media conversion<br/>[fileConverter.ts]"]
  node_transcription["Audio transcription<br/>[fileConverter.ts]"]
  node_pdftext["PDF text extraction<br/>[fileConverter.ts]"]
  node_ffmpegweb["Web FFmpeg engine<br/>[App.tsx]"]
  node_zip["ZIP packaging<br/>[App.tsx]"]
end

subgraph group_native["Local runtime"]
  node_bridge["Electron preload API<br/>[preload.js]"]
  node_main["Electron IPC runtime<br/>[electron-main.cjs]"]
  node_nativeffmpeg["Native FFmpeg<br/>[electron-main.cjs]"]
  node_whisper["Whisper runtime<br/>[electron-main.cjs]"]
  node_gpu["GPU detection<br/>[electron-main.cjs]"]
end

subgraph group_storage["Output and vault"]
  node_staging["Temporary staging<br/>[electron-main.cjs]"]
  node_output[("Local output files<br/>[electron-main.cjs]")]
  node_vault[("Encrypted ZIP vault<br/>[electron-main.cjs]")]
end

node_user(("Desktop user"))

node_user -->|"selects and runs"| node_app
node_renderer -->|"mounts"| node_app
node_app -->|"localizes interface"| node_translations
node_app -->|"uses models"| node_types
node_app -->|"converts images"| node_image
node_app -->|"converts media"| node_media
node_app -->|"requests transcription"| node_transcription
node_app -->|"extracts PDF text"| node_pdftext
node_app -->|"loads engine"| node_ffmpegweb
node_app -->|"packages results"| node_zip
node_image -->|"uses targets"| node_types
node_media -->|"uses targets"| node_types
node_transcription -->|"invokes native service"| node_bridge
node_media -->|"invokes native conversion"| node_bridge
node_app -->|"stages and saves"| node_bridge
node_bridge -->|"dispatches IPC"| node_main
node_main -->|"runs transcoding"| node_nativeffmpeg
node_main -->|"runs transcription"| node_whisper
node_main -->|"stages inputs"| node_staging
node_main -->|"writes files"| node_output
node_main -->|"encrypts ZIPs"| node_vault
node_main -->|"detects hardware"| node_gpu
node_app -->|"configures display"| node_preferences
node_app -->|"manages vault"| node_vault
node_app -->|"saves ZIP exports"| node_output

click node_app "https://github.com/b-bcoder/fcp-file-converter-pro-linux-edition/blob/main/App.tsx"
click node_translations "https://github.com/b-bcoder/fcp-file-converter-pro-linux-edition/blob/main/i18n.ts"
click node_types "https://github.com/b-bcoder/fcp-file-converter-pro-linux-edition/blob/main/types.ts"
click node_image "https://github.com/b-bcoder/fcp-file-converter-pro-linux-edition/blob/main/services/fileConverter.ts"
click node_media "https://github.com/b-bcoder/fcp-file-converter-pro-linux-edition/blob/main/services/fileConverter.ts"
click node_transcription "https://github.com/b-bcoder/fcp-file-converter-pro-linux-edition/blob/main/services/fileConverter.ts"
click node_pdftext "https://github.com/b-bcoder/fcp-file-converter-pro-linux-edition/blob/main/services/fileConverter.ts"
click node_ffmpegweb "https://github.com/b-bcoder/fcp-file-converter-pro-linux-edition/blob/main/App.tsx"
click node_zip "https://github.com/b-bcoder/fcp-file-converter-pro-linux-edition/blob/main/App.tsx"
click node_renderer "https://github.com/b-bcoder/fcp-file-converter-pro-linux-edition/blob/main/index.tsx"
click node_bridge "https://github.com/b-bcoder/fcp-file-converter-pro-linux-edition/blob/main/preload.js"
click node_main "https://github.com/b-bcoder/fcp-file-converter-pro-linux-edition/blob/main/electron-main.cjs"
click node_nativeffmpeg "https://github.com/b-bcoder/fcp-file-converter-pro-linux-edition/blob/main/electron-main.cjs"
click node_whisper "https://github.com/b-bcoder/fcp-file-converter-pro-linux-edition/blob/main/electron-main.cjs"
click node_staging "https://github.com/b-bcoder/fcp-file-converter-pro-linux-edition/blob/main/electron-main.cjs"
click node_output "https://github.com/b-bcoder/fcp-file-converter-pro-linux-edition/blob/main/electron-main.cjs"
click node_vault "https://github.com/b-bcoder/fcp-file-converter-pro-linux-edition/blob/main/electron-main.cjs"
click node_preferences "https://github.com/b-bcoder/fcp-file-converter-pro-linux-edition/blob/main/App.tsx"
click node_gpu "https://github.com/b-bcoder/fcp-file-converter-pro-linux-edition/blob/main/electron-main.cjs"

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_translations,node_renderer,node_preferences,node_user toneBlue
class node_types,node_image,node_media,node_transcription,node_pdftext,node_ffmpegweb,node_zip toneAmber
class node_bridge,node_main,node_nativeffmpeg,node_whisper,node_gpu toneMint
class node_staging,node_output,node_vault toneRose
```

## Components

### Desktop interface

- [Conversion interface](https://github.com/b-bcoder/fcp-file-converter-pro-linux-edition/blob/main/App.tsx): `App.tsx`
- [Translations](https://github.com/b-bcoder/fcp-file-converter-pro-linux-edition/blob/main/i18n.ts): `i18n.ts`
- [React entry point](https://github.com/b-bcoder/fcp-file-converter-pro-linux-edition/blob/main/index.tsx): `index.tsx`
- [App preferences](https://github.com/b-bcoder/fcp-file-converter-pro-linux-edition/blob/main/App.tsx): `App.tsx`

### Conversion workflow

- [Conversion models](https://github.com/b-bcoder/fcp-file-converter-pro-linux-edition/blob/main/types.ts): `types.ts`
- [Image conversion](https://github.com/b-bcoder/fcp-file-converter-pro-linux-edition/blob/main/services/fileConverter.ts): `services/fileConverter.ts`
- [Media conversion](https://github.com/b-bcoder/fcp-file-converter-pro-linux-edition/blob/main/services/fileConverter.ts): `services/fileConverter.ts`
- [Audio transcription](https://github.com/b-bcoder/fcp-file-converter-pro-linux-edition/blob/main/services/fileConverter.ts): `services/fileConverter.ts`
- [PDF text extraction](https://github.com/b-bcoder/fcp-file-converter-pro-linux-edition/blob/main/services/fileConverter.ts): `services/fileConverter.ts`
- [Web FFmpeg engine](https://github.com/b-bcoder/fcp-file-converter-pro-linux-edition/blob/main/App.tsx): `App.tsx`
- [ZIP packaging](https://github.com/b-bcoder/fcp-file-converter-pro-linux-edition/blob/main/App.tsx): `App.tsx`

### Local runtime

- [Electron preload API](https://github.com/b-bcoder/fcp-file-converter-pro-linux-edition/blob/main/preload.js): `preload.js`
- [Electron IPC runtime](https://github.com/b-bcoder/fcp-file-converter-pro-linux-edition/blob/main/electron-main.cjs): `electron-main.cjs`
- [Native FFmpeg](https://github.com/b-bcoder/fcp-file-converter-pro-linux-edition/blob/main/electron-main.cjs): `electron-main.cjs`
- [Whisper runtime](https://github.com/b-bcoder/fcp-file-converter-pro-linux-edition/blob/main/electron-main.cjs): `electron-main.cjs`
- [GPU detection](https://github.com/b-bcoder/fcp-file-converter-pro-linux-edition/blob/main/electron-main.cjs): `electron-main.cjs`

### Output and vault

- [Temporary staging](https://github.com/b-bcoder/fcp-file-converter-pro-linux-edition/blob/main/electron-main.cjs): `electron-main.cjs`
- [Local output files](https://github.com/b-bcoder/fcp-file-converter-pro-linux-edition/blob/main/electron-main.cjs): `electron-main.cjs`
- [Encrypted ZIP vault](https://github.com/b-bcoder/fcp-file-converter-pro-linux-edition/blob/main/electron-main.cjs): `electron-main.cjs`

### Other components

- **Desktop user**

## Connections

- Desktop user → Conversion interface: selects and runs (evidence: `README.md`)
- React entry point → Conversion interface: mounts (evidence: `index.tsx`)
- Conversion interface → Translations: localizes interface (evidence: `App.tsx`)
- Conversion interface → Conversion models: uses models (evidence: `App.tsx`)
- Conversion interface → Image conversion: converts images (evidence: `App.tsx`)
- Conversion interface → Media conversion: converts media (evidence: `App.tsx`)
- Conversion interface → Audio transcription: requests transcription (evidence: `App.tsx`)
- Conversion interface → PDF text extraction: extracts PDF text (evidence: `App.tsx`)
- Conversion interface → Web FFmpeg engine: loads engine (evidence: `App.tsx`)
- Conversion interface → ZIP packaging: packages results (evidence: `App.tsx`)
- Image conversion → Conversion models: uses targets (evidence: `services/fileConverter.ts`)
- Media conversion → Conversion models: uses targets (evidence: `services/fileConverter.ts`)
- Audio transcription → Electron preload API: invokes native service (evidence: `services/fileConverter.ts`)
- Media conversion → Electron preload API: invokes native conversion (evidence: `services/fileConverter.ts`)
- Conversion interface → Electron preload API: stages and saves (evidence: `App.tsx`)
- Electron preload API → Electron IPC runtime: dispatches IPC (evidence: `preload.js`)
- Electron IPC runtime → Native FFmpeg: runs transcoding (evidence: `electron-main.cjs`)
- Electron IPC runtime → Whisper runtime: runs transcription (evidence: `electron-main.cjs`)
- Electron IPC runtime → Temporary staging: stages inputs (evidence: `README.md`)
- Electron IPC runtime → Local output files: writes files (evidence: `electron-main.cjs`)
- Electron IPC runtime → Encrypted ZIP vault: encrypts ZIPs (evidence: `electron-main.cjs`)
- Electron IPC runtime → GPU detection: detects hardware (evidence: `electron-main.cjs`)
- Conversion interface → App preferences: configures display (evidence: `README.md`)
- Conversion interface → Encrypted ZIP vault: manages vault (evidence: `README.md`)
- Conversion interface → Local output files: saves ZIP exports (evidence: `App.tsx`)
