# Component Relationship Diagram
```mermaid
graph TD
subgraph "04 — HTTP API"
main["main.py
(FastAPI endpoints)"]
end
subgraph "03 — Resource Management"
api_client["api_client
(ApiClient)"]
cdn_manager["cdn_manager
(CDNManager)"]
binary_split["binary_split
(archive decrypt + docker load)"]
end
subgraph "02 — Security"
security["security
(AES-256-CBC, key derivation)"]
hardware_service["hardware_service
(HW fingerprint)"]
end
subgraph "01 — Core Models"
constants["constants
(config + logging)"]
credentials["credentials
(Credentials)"]
user["user
(User, RoleEnum)"]
unlock_state["unlock_state
(UnlockState enum)"]
end
main --> api_client
main --> binary_split
main --> unlock_state
api_client --> cdn_manager
api_client --> security
api_client --> hardware_service
api_client --> constants
api_client --> credentials
api_client --> user
security --> credentials
hardware_service --> constants
cdn_manager --> constants
```
## Component Dependency Summary
| Component | Depends On | Depended On By |
|-------------------------|--------------------------------|------------------------|
| 01 Core Models | — | 02, 03, 04 |
| 02 Security | 01 Core Models | 03 |
| 03 Resource Management | 01 Core Models, 02 Security | 04 |
| 04 HTTP API | 01 Core Models, 03 Resource Mgmt | — (entry point) |
## Implementation Order
```
01 Core Models → 02 Security → 03 Resource Management → 04 HTTP API
```