# syrekobecny/ept-connectors-recepce architecture

> Architecture diagram of the GitHub repository syrekobecny/ept-connectors-recepce, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-01). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/syrekobecny/ept-connectors-recepce
- Repository: https://github.com/syrekobecny/ept-connectors-recepce

## Overview

OCRept is an iPad reception app for registering visitors, tracking arrivals and departures, and managing a local visitor book. The primary workflow is camera capture → on-device OCR → human review and reason entry → arrival saved locally; reception staff later record departure, review/edit records, and export CSV. Employee management and optional Resend email notifications are separate capabilities. The excerpts show the UI’s OCR and email calls and the stores’ persistence; links for other unsampled UI actions are omitted where their calls are not shown.

Main entry points: [`OCRept/ReceptionView.swift`](https://github.com/syrekobecny/ept-connectors-recepce/blob/main/OCRept/ReceptionView.swift) (Reception UI), [`OCRept/OCReptApp.swift`](https://github.com/syrekobecny/ept-connectors-recepce/blob/main/OCRept/OCReptApp.swift) (App setup), [`OCRept/ResendService.swift`](https://github.com/syrekobecny/ept-connectors-recepce/blob/main/OCRept/ResendService.swift) (Resend mailer), [`OCRept/VisitStore.swift`](https://github.com/syrekobecny/ept-connectors-recepce/blob/main/OCRept/VisitStore.swift) (Visit records)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_reception["Reception workflow"]
  node_app["App setup<br/>[OCReptApp.swift]"]
  node_reception_ui["Reception UI"]
end

subgraph group_records["Local records"]
  node_visits[("Visit records<br/>[VisitStore.swift]")]
  node_employees[("Employee directory")]
  node_admin[("Admin credential<br/>[VisitStore.swift]")]
end

subgraph group_integrations["Device and email"]
  node_camera["Document camera<br/>[Camera.swift]"]
  node_ocr["Local OCR<br/>[LocalOCR.swift]"]
  node_speech["Speech input"]
  node_email_config["Email settings<br/>[EmailConfig.swift]"]
  node_resend["Resend mailer"]
end

subgraph group_presentation["App presentation"]
  node_brand["Brand styling<br/>[Brand.swift]"]
end

node_visitor(("Visitor"))
node_email_api{{"Resend API"}}

node_app -->|"launches"| node_reception_ui
node_app -->|"provides store"| node_visits
node_app -->|"provides store"| node_employees
node_app -->|"provides settings"| node_email_config
node_app -->|"registers fonts"| node_brand
node_visitor -.->|"enters details"| node_reception_ui
node_reception_ui -.->|"captures document"| node_camera
node_reception_ui -->|"recognizes image"| node_ocr
node_reception_ui -.->|"dictates reason"| node_speech
node_reception_ui -->|"manages visits"| node_visits
node_reception_ui -->|"manages employees"| node_employees
node_reception_ui -.->|"checks access"| node_admin
node_reception_ui -->|"reads settings"| node_email_config
node_reception_ui -->|"sends notices"| node_resend
node_resend -->|"sends email"| node_email_api
node_reception_ui -.->|"renders interface"| node_brand
node_visitor -.->|"requests CSV"| node_reception_ui

click node_app "https://github.com/syrekobecny/ept-connectors-recepce/blob/main/OCRept/OCReptApp.swift"
click node_reception_ui "https://github.com/syrekobecny/ept-connectors-recepce/blob/main/OCRept/ReceptionView.swift"
click node_camera "https://github.com/syrekobecny/ept-connectors-recepce/blob/main/OCRept/Camera.swift"
click node_ocr "https://github.com/syrekobecny/ept-connectors-recepce/blob/main/OCRept/LocalOCR.swift"
click node_speech "https://github.com/syrekobecny/ept-connectors-recepce/blob/main/OCRept/OfflineSpeech.swift"
click node_visits "https://github.com/syrekobecny/ept-connectors-recepce/blob/main/OCRept/VisitStore.swift"
click node_employees "https://github.com/syrekobecny/ept-connectors-recepce/blob/main/OCRept/EmployeeStore.swift"
click node_admin "https://github.com/syrekobecny/ept-connectors-recepce/blob/main/OCRept/VisitStore.swift"
click node_email_config "https://github.com/syrekobecny/ept-connectors-recepce/blob/main/OCRept/EmailConfig.swift"
click node_resend "https://github.com/syrekobecny/ept-connectors-recepce/blob/main/OCRept/ResendService.swift"
click node_brand "https://github.com/syrekobecny/ept-connectors-recepce/blob/main/OCRept/Brand.swift"

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_reception_ui toneBlue
class node_visits,node_employees,node_admin toneAmber
class node_camera,node_ocr,node_speech,node_email_config,node_resend,node_email_api toneMint
class node_brand toneRose
class node_visitor toneIndigo
```

## Components

### Reception workflow

- [App setup](https://github.com/syrekobecny/ept-connectors-recepce/blob/main/OCRept/OCReptApp.swift): `OCRept/OCReptApp.swift`
- [Reception UI](https://github.com/syrekobecny/ept-connectors-recepce/blob/main/OCRept/ReceptionView.swift): `OCRept/ReceptionView.swift`

### Local records

- [Visit records](https://github.com/syrekobecny/ept-connectors-recepce/blob/main/OCRept/VisitStore.swift): `OCRept/VisitStore.swift`
- [Employee directory](https://github.com/syrekobecny/ept-connectors-recepce/blob/main/OCRept/EmployeeStore.swift): `OCRept/EmployeeStore.swift`
- [Admin credential](https://github.com/syrekobecny/ept-connectors-recepce/blob/main/OCRept/VisitStore.swift): `OCRept/VisitStore.swift`

### Device and email

- [Document camera](https://github.com/syrekobecny/ept-connectors-recepce/blob/main/OCRept/Camera.swift): `OCRept/Camera.swift`
- [Local OCR](https://github.com/syrekobecny/ept-connectors-recepce/blob/main/OCRept/LocalOCR.swift): `OCRept/LocalOCR.swift`
- [Speech input](https://github.com/syrekobecny/ept-connectors-recepce/blob/main/OCRept/OfflineSpeech.swift): `OCRept/OfflineSpeech.swift`
- [Email settings](https://github.com/syrekobecny/ept-connectors-recepce/blob/main/OCRept/EmailConfig.swift): `OCRept/EmailConfig.swift`
- [Resend mailer](https://github.com/syrekobecny/ept-connectors-recepce/blob/main/OCRept/ResendService.swift): `OCRept/ResendService.swift`

### App presentation

- [Brand styling](https://github.com/syrekobecny/ept-connectors-recepce/blob/main/OCRept/Brand.swift): `OCRept/Brand.swift`

### Other components

- **Visitor**
- **Resend API**

## Connections

- App setup → Reception UI: launches (evidence: `OCRept/OCReptApp.swift`)
- App setup → Visit records: provides store (evidence: `OCRept/OCReptApp.swift`)
- App setup → Employee directory: provides store (evidence: `OCRept/OCReptApp.swift`)
- App setup → Email settings: provides settings (evidence: `OCRept/OCReptApp.swift`)
- App setup → Brand styling: registers fonts (evidence: `OCRept/OCReptApp.swift`)
- Visitor → Reception UI: enters details
- Reception UI → Document camera: captures document
- Reception UI → Local OCR: recognizes image (evidence: `OCRept/ReceptionView.swift`)
- Reception UI → Speech input: dictates reason
- Reception UI → Visit records: manages visits (evidence: `OCRept/ReceptionView.swift`)
- Reception UI → Employee directory: manages employees (evidence: `OCRept/ReceptionView.swift`)
- Reception UI → Admin credential: checks access (evidence: `OCRept/ReceptionView.swift`)
- Reception UI → Email settings: reads settings (evidence: `OCRept/ReceptionView.swift`)
- Reception UI → Resend mailer: sends notices (evidence: `OCRept/ReceptionView.swift`)
- Resend mailer → Resend API: sends email (evidence: `OCRept/ResendService.swift`)
- Reception UI → Brand styling: renders interface (evidence: `OCRept/ReceptionView.swift`)
- Visitor → Reception UI: requests CSV
