# andrezinc/aurisrealesed architecture

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

- Interactive diagram: https://gitdiagram.com/andrezinc/aurisrealesed
- Repository: https://github.com/andrezinc/aurisrealesed

## Overview

Absorve-Visual is an iOS app for identifying and describing absorbent-product packaging from a camera photo, with accessible onboarding and a results screen. The main flow is onboarding to camera capture, image encoding, AI-backed description, structured result conversion, and display. The source excerpts establish these calls; the README only names the app, so other capabilities are not documented. The separate repository and service implementations are not connected to the shown workflow because no excerpt demonstrates their use.

Main entry points: [`Absorve-Visual/Views/DescricaoView.swift`](https://github.com/andrezinc/aurisrealesed/blob/main/Absorve-Visual/Views/DescricaoView.swift) (Description screen), [`Absorve-Visual/Camera/CameraUI.swift`](https://github.com/andrezinc/aurisrealesed/blob/main/Absorve-Visual/Camera/CameraUI.swift) (Camera screen), [`Absorve-Visual/Absorve_VisualApp.swift`](https://github.com/andrezinc/aurisrealesed/blob/main/Absorve-Visual/Absorve_VisualApp.swift) (App shell), [`Absorve-Visual/ViewModels/DadosViewModel.swift`](https://github.com/andrezinc/aurisrealesed/blob/main/Absorve-Visual/ViewModels/DadosViewModel.swift) (Description state)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_app["App entry"]
  node_app["App shell"]
  node_onboarding["Onboarding"]
end

subgraph group_capture["Photo capture"]
  node_camera_ui["Camera screen<br/>[CameraUI.swift]"]
  node_camera["Camera capture<br/>[Camera.swift]"]
  node_preview["Camera preview"]
end

subgraph group_analysis["Description pipeline"]
  node_viewmodel["Description state"]
  node_repository["GPT repository<br/>[Repository.swift]"]
  node_service["OpenAI service<br/>[Service.swift]"]
  node_product_model["Product data<br/>[Absorvente.swift]"]
  node_photo_model["Photo data<br/>[Foto.swift]"]
end

subgraph group_results["Results interface"]
  node_description["Description screen"]
  node_loading["Loading view"]
  node_detail_card["Detail card"]
  node_background["Gradient background"]
end

node_user(("App user"))

node_user -->|"opens"| node_app
node_app -->|"shows"| node_camera_ui
node_app -->|"presents"| node_onboarding
node_camera_ui -->|"renders"| node_preview
node_camera_ui -->|"controls"| node_camera
node_camera -->|"provides session"| node_preview
node_camera_ui -->|"routes photo"| node_description
node_description -->|"starts analysis"| node_viewmodel
node_viewmodel -->|"requests image analysis"| node_repository
node_repository -->|"requests description"| node_service
node_viewmodel -->|"updates result"| node_product_model
node_description -->|"shows while loading"| node_loading
node_description -->|"renders fields"| node_detail_card
node_description -->|"renders backdrop"| node_background

click node_app "https://github.com/andrezinc/aurisrealesed/blob/main/Absorve-Visual/Absorve_VisualApp.swift"
click node_onboarding "https://github.com/andrezinc/aurisrealesed/blob/main/Absorve-Visual/Views/OnBoardingView.swift"
click node_camera_ui "https://github.com/andrezinc/aurisrealesed/blob/main/Absorve-Visual/Camera/CameraUI.swift"
click node_camera "https://github.com/andrezinc/aurisrealesed/blob/main/Absorve-Visual/Camera/Camera.swift"
click node_preview "https://github.com/andrezinc/aurisrealesed/blob/main/Absorve-Visual/Camera/CameraPreview.swift"
click node_viewmodel "https://github.com/andrezinc/aurisrealesed/blob/main/Absorve-Visual/ViewModels/DadosViewModel.swift"
click node_repository "https://github.com/andrezinc/aurisrealesed/blob/main/Absorve-Visual/Repository/Repository.swift"
click node_service "https://github.com/andrezinc/aurisrealesed/blob/main/Absorve-Visual/Services/Service.swift"
click node_product_model "https://github.com/andrezinc/aurisrealesed/blob/main/Absorve-Visual/Models/Absorvente.swift"
click node_photo_model "https://github.com/andrezinc/aurisrealesed/blob/main/Absorve-Visual/Models/Foto.swift"
click node_description "https://github.com/andrezinc/aurisrealesed/blob/main/Absorve-Visual/Views/DescricaoView.swift"
click node_loading "https://github.com/andrezinc/aurisrealesed/blob/main/Absorve-Visual/Views/CarregandoView.swift"
click node_detail_card "https://github.com/andrezinc/aurisrealesed/blob/main/Absorve-Visual/Views/Components/ColorRoundedRectangle.swift"
click node_background "https://github.com/andrezinc/aurisrealesed/blob/main/Absorve-Visual/Views/Components/BackgroundGradient.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_onboarding,node_user toneBlue
class node_camera_ui,node_camera,node_preview toneAmber
class node_viewmodel,node_repository,node_service,node_product_model,node_photo_model toneMint
class node_description,node_loading,node_detail_card,node_background toneRose
```

## Components

### App entry

- [App shell](https://github.com/andrezinc/aurisrealesed/blob/main/Absorve-Visual/Absorve_VisualApp.swift): `Absorve-Visual/Absorve_VisualApp.swift`
- [Onboarding](https://github.com/andrezinc/aurisrealesed/blob/main/Absorve-Visual/Views/OnBoardingView.swift): `Absorve-Visual/Views/OnBoardingView.swift`

### Photo capture

- [Camera screen](https://github.com/andrezinc/aurisrealesed/blob/main/Absorve-Visual/Camera/CameraUI.swift): `Absorve-Visual/Camera/CameraUI.swift`
- [Camera capture](https://github.com/andrezinc/aurisrealesed/blob/main/Absorve-Visual/Camera/Camera.swift): `Absorve-Visual/Camera/Camera.swift`
- [Camera preview](https://github.com/andrezinc/aurisrealesed/blob/main/Absorve-Visual/Camera/CameraPreview.swift): `Absorve-Visual/Camera/CameraPreview.swift`

### Description pipeline

- [Description state](https://github.com/andrezinc/aurisrealesed/blob/main/Absorve-Visual/ViewModels/DadosViewModel.swift): `Absorve-Visual/ViewModels/DadosViewModel.swift`
- [GPT repository](https://github.com/andrezinc/aurisrealesed/blob/main/Absorve-Visual/Repository/Repository.swift): `Absorve-Visual/Repository/Repository.swift`
- [OpenAI service](https://github.com/andrezinc/aurisrealesed/blob/main/Absorve-Visual/Services/Service.swift): `Absorve-Visual/Services/Service.swift`
- [Product data](https://github.com/andrezinc/aurisrealesed/blob/main/Absorve-Visual/Models/Absorvente.swift): `Absorve-Visual/Models/Absorvente.swift`
- [Photo data](https://github.com/andrezinc/aurisrealesed/blob/main/Absorve-Visual/Models/Foto.swift): `Absorve-Visual/Models/Foto.swift`

### Results interface

- [Description screen](https://github.com/andrezinc/aurisrealesed/blob/main/Absorve-Visual/Views/DescricaoView.swift): `Absorve-Visual/Views/DescricaoView.swift`
- [Loading view](https://github.com/andrezinc/aurisrealesed/blob/main/Absorve-Visual/Views/CarregandoView.swift): `Absorve-Visual/Views/CarregandoView.swift`
- [Detail card](https://github.com/andrezinc/aurisrealesed/blob/main/Absorve-Visual/Views/Components/ColorRoundedRectangle.swift): `Absorve-Visual/Views/Components/ColorRoundedRectangle.swift`
- [Gradient background](https://github.com/andrezinc/aurisrealesed/blob/main/Absorve-Visual/Views/Components/BackgroundGradient.swift): `Absorve-Visual/Views/Components/BackgroundGradient.swift`

### Other components

- **App user**

## Connections

- App user → App shell: opens (evidence: `Absorve-Visual/Absorve_VisualApp.swift`)
- App shell → Camera screen: shows (evidence: `Absorve-Visual/Absorve_VisualApp.swift`)
- App shell → Onboarding: presents (evidence: `Absorve-Visual/Absorve_VisualApp.swift`)
- Camera screen → Camera preview: renders (evidence: `Absorve-Visual/Camera/CameraUI.swift`)
- Camera screen → Camera capture: controls (evidence: `Absorve-Visual/Camera/CameraUI.swift`)
- Camera capture → Camera preview: provides session (evidence: `Absorve-Visual/Camera/CameraPreview.swift`)
- Camera screen → Description screen: routes photo (evidence: `Absorve-Visual/Camera/CameraUI.swift`)
- Description screen → Description state: starts analysis (evidence: `Absorve-Visual/Views/DescricaoView.swift`)
- Description state → GPT repository: requests image analysis (evidence: `Absorve-Visual/ViewModels/DadosViewModel.swift`)
- GPT repository → OpenAI service: requests description (evidence: `Absorve-Visual/Repository/Repository.swift`)
- Description state → Product data: updates result (evidence: `Absorve-Visual/ViewModels/DadosViewModel.swift`)
- Description screen → Loading view: shows while loading (evidence: `Absorve-Visual/Views/DescricaoView.swift`)
- Description screen → Detail card: renders fields (evidence: `Absorve-Visual/Views/DescricaoView.swift`)
- Description screen → Gradient background: renders backdrop (evidence: `Absorve-Visual/Views/DescricaoView.swift`)
