# ccdnetwork/hotpot architecture

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

- Interactive diagram: https://gitdiagram.com/ccdnetwork/hotpot
- Repository: https://github.com/ccdnetwork/hotpot

## Overview

CCD is a humanitarian data-stewardship platform for organizations and aid recipients. Its documented core capabilities are deduplicating individuals and assistance, referring cases between organizations, and giving recipients access to their own data. The client tree also exposes booking/prebooking, dashboards, and organization and data-management features. The graph maps these product areas and the server boundary; only a small set of server call relationships are visible in the supplied source index. Other client-to-server links are therefore left unasserted.

Main entry points: [`server/Ccd.Server/Areas/Referrals/Controllers/ReferralController.cs`](https://github.com/ccdnetwork/hotpot/blob/develop/server/Ccd.Server/Areas/Referrals/Controllers/ReferralController.cs) (Referral API), [`client/src/App.tsx`](https://github.com/ccdnetwork/hotpot/blob/develop/client/src/App.tsx) (Client application), [`server/Ccd.Server/Data/CcdContext.cs`](https://github.com/ccdnetwork/hotpot/blob/develop/server/Ccd.Server/Data/CcdContext.cs) (Application data), [`server/Ccd.Server/Areas/Deduplication/Controllers/DeduplicationController.cs`](https://github.com/ccdnetwork/hotpot/blob/develop/server/Ccd.Server/Areas/Deduplication/Controllers/DeduplicationController.cs) (Deduplication API)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_access["Access and navigation"]
  node_client["Client application<br/>[App.tsx]"]
  node_routing["Routes and access<br/>[router.tsx]"]
  node_sign_in["Sign-in<br/>[SignInPage.tsx]"]
  node_recipient_data["Recipient data access"]
end

subgraph group_stewardship["Data stewardship"]
  node_beneficiaries["Beneficiary records"]
  node_dedup_client["Deduplication workflow"]
  node_prebooking["Prebooking workflow"]
end

subgraph group_operations["Program operations"]
  node_referral_client["Referral management"]
  node_received_referrals["Received referrals"]
  node_dashboard_client["Dashboards<br/>[InAppDashboard.tsx]"]
  node_organizations["Organizations"]
  node_handbook_templates["Handbooks and templates<br/>[HandbookPage.tsx]"]
end

subgraph group_server["Server services"]
  node_dedup_api["Deduplication API"]
  node_booking_service["Booking service<br/>[BookingService.cs]"]
  node_referral_api["Referral API"]
  node_referral_service["Referral service<br/>[ReferralService.cs]"]
  node_dashboard_api["Dashboard API"]
  node_dashboard_service["Dashboard service"]
  node_storage["File storage<br/>[StorageService.cs]"]
  node_data[("Application data<br/>[CcdContext.cs]")]
end

node_staff(("Organization staff"))
node_recipient(("Aid recipient"))

node_staff -.->|"uses"| node_client
node_recipient -.->|"accesses data"| node_recipient_data
node_client -->|"renders routes"| node_routing
node_dedup_api -->|"calls"| node_booking_service
node_referral_api -->|"calls"| node_referral_service
node_dashboard_api -->|"calls"| node_dashboard_service
node_storage -->|"uses context"| node_data
node_referral_api -->|"uses context"| node_data

click node_client "https://github.com/ccdnetwork/hotpot/blob/develop/client/src/App.tsx"
click node_routing "https://github.com/ccdnetwork/hotpot/blob/develop/client/src/router.tsx"
click node_sign_in "https://github.com/ccdnetwork/hotpot/blob/develop/client/src/modules/Public/SignInPage/SignInPage.tsx"
click node_recipient_data "https://github.com/ccdnetwork/hotpot/blob/develop/client/src/modules/Public/BeneficiaryReferralDataPage/BeneficiaryReferralDataPage.tsx"
click node_beneficiaries "https://github.com/ccdnetwork/hotpot/blob/develop/client/src/modules/BeneficiaryList/SingleBeneficiaryPage/SingleBeneficiaryPage.tsx"
click node_dedup_client "https://github.com/ccdnetwork/hotpot/blob/develop/client/src/modules/DeduplicationPage/components/DeduplicationWizard/DeduplicationWizard.tsx"
click node_dedup_api "https://github.com/ccdnetwork/hotpot/blob/develop/server/Ccd.Server/Areas/Deduplication/Controllers/DeduplicationController.cs"
click node_booking_service "https://github.com/ccdnetwork/hotpot/blob/develop/server/Ccd.Server/Areas/Deduplication/Services/BookingService.cs"
click node_prebooking "https://github.com/ccdnetwork/hotpot/blob/develop/client/src/modules/PrebookingPage/components/PrebookingWizard/PrebookingWizard.tsx"
click node_referral_client "https://github.com/ccdnetwork/hotpot/blob/develop/client/src/modules/SentReferrals/SentReferralPage/SentReferralPage.tsx"
click node_received_referrals "https://github.com/ccdnetwork/hotpot/blob/develop/client/src/modules/ReceivedReferrals/ReceivedReferralPage/ReceivedReferralPage.tsx"
click node_referral_api "https://github.com/ccdnetwork/hotpot/blob/develop/server/Ccd.Server/Areas/Referrals/Controllers/ReferralController.cs"
click node_referral_service "https://github.com/ccdnetwork/hotpot/blob/develop/server/Ccd.Server/Areas/Referrals/Services/ReferralService.cs"
click node_dashboard_client "https://github.com/ccdnetwork/hotpot/blob/develop/client/src/modules/DashboardPage/InAppDashboard/InAppDashboard.tsx"
click node_dashboard_api "https://github.com/ccdnetwork/hotpot/blob/develop/server/Ccd.Server/Areas/Dashboards/Controllers/DashboardsController.cs"
click node_dashboard_service "https://github.com/ccdnetwork/hotpot/blob/develop/server/Ccd.Server/Areas/Dashboards/Services/DashboardService.cs"
click node_organizations "https://github.com/ccdnetwork/hotpot/blob/develop/client/src/modules/Organizations/OrganizationsPage/OrganizationsPage.tsx"
click node_handbook_templates "https://github.com/ccdnetwork/hotpot/blob/develop/client/src/modules/HandbookPage/HandbookPage/HandbookPage.tsx"
click node_storage "https://github.com/ccdnetwork/hotpot/blob/develop/server/Ccd.Server/Areas/Storage/Services/StorageService.cs"
click node_data "https://github.com/ccdnetwork/hotpot/blob/develop/server/Ccd.Server/Data/CcdContext.cs"

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_client,node_routing,node_sign_in,node_recipient_data toneBlue
class node_beneficiaries,node_dedup_client,node_prebooking toneAmber
class node_referral_client,node_received_referrals,node_dashboard_client,node_organizations,node_handbook_templates toneMint
class node_dedup_api,node_booking_service,node_referral_api,node_referral_service,node_dashboard_api,node_dashboard_service,node_storage,node_data toneRose
class node_staff,node_recipient toneIndigo
```

## Components

### Access and navigation

- [Client application](https://github.com/ccdnetwork/hotpot/blob/develop/client/src/App.tsx): `client/src/App.tsx`
- [Routes and access](https://github.com/ccdnetwork/hotpot/blob/develop/client/src/router.tsx): `client/src/router.tsx`
- [Sign-in](https://github.com/ccdnetwork/hotpot/blob/develop/client/src/modules/Public/SignInPage/SignInPage.tsx): `client/src/modules/Public/SignInPage/SignInPage.tsx`
- [Recipient data access](https://github.com/ccdnetwork/hotpot/blob/develop/client/src/modules/Public/BeneficiaryReferralDataPage/BeneficiaryReferralDataPage.tsx): `client/src/modules/Public/BeneficiaryReferralDataPage/BeneficiaryReferralDataPage.tsx`

### Data stewardship

- [Beneficiary records](https://github.com/ccdnetwork/hotpot/blob/develop/client/src/modules/BeneficiaryList/SingleBeneficiaryPage/SingleBeneficiaryPage.tsx): `client/src/modules/BeneficiaryList/SingleBeneficiaryPage/SingleBeneficiaryPage.tsx`
- [Deduplication workflow](https://github.com/ccdnetwork/hotpot/blob/develop/client/src/modules/DeduplicationPage/components/DeduplicationWizard/DeduplicationWizard.tsx): `client/src/modules/DeduplicationPage/components/DeduplicationWizard/DeduplicationWizard.tsx`
- [Prebooking workflow](https://github.com/ccdnetwork/hotpot/blob/develop/client/src/modules/PrebookingPage/components/PrebookingWizard/PrebookingWizard.tsx): `client/src/modules/PrebookingPage/components/PrebookingWizard/PrebookingWizard.tsx`

### Program operations

- [Referral management](https://github.com/ccdnetwork/hotpot/blob/develop/client/src/modules/SentReferrals/SentReferralPage/SentReferralPage.tsx): `client/src/modules/SentReferrals/SentReferralPage/SentReferralPage.tsx`
- [Received referrals](https://github.com/ccdnetwork/hotpot/blob/develop/client/src/modules/ReceivedReferrals/ReceivedReferralPage/ReceivedReferralPage.tsx): `client/src/modules/ReceivedReferrals/ReceivedReferralPage/ReceivedReferralPage.tsx`
- [Dashboards](https://github.com/ccdnetwork/hotpot/blob/develop/client/src/modules/DashboardPage/InAppDashboard/InAppDashboard.tsx): `client/src/modules/DashboardPage/InAppDashboard/InAppDashboard.tsx`
- [Organizations](https://github.com/ccdnetwork/hotpot/blob/develop/client/src/modules/Organizations/OrganizationsPage/OrganizationsPage.tsx): `client/src/modules/Organizations/OrganizationsPage/OrganizationsPage.tsx`
- [Handbooks and templates](https://github.com/ccdnetwork/hotpot/blob/develop/client/src/modules/HandbookPage/HandbookPage/HandbookPage.tsx): `client/src/modules/HandbookPage/HandbookPage/HandbookPage.tsx`

### Server services

- [Deduplication API](https://github.com/ccdnetwork/hotpot/blob/develop/server/Ccd.Server/Areas/Deduplication/Controllers/DeduplicationController.cs): `server/Ccd.Server/Areas/Deduplication/Controllers/DeduplicationController.cs`
- [Booking service](https://github.com/ccdnetwork/hotpot/blob/develop/server/Ccd.Server/Areas/Deduplication/Services/BookingService.cs): `server/Ccd.Server/Areas/Deduplication/Services/BookingService.cs`
- [Referral API](https://github.com/ccdnetwork/hotpot/blob/develop/server/Ccd.Server/Areas/Referrals/Controllers/ReferralController.cs): `server/Ccd.Server/Areas/Referrals/Controllers/ReferralController.cs`
- [Referral service](https://github.com/ccdnetwork/hotpot/blob/develop/server/Ccd.Server/Areas/Referrals/Services/ReferralService.cs): `server/Ccd.Server/Areas/Referrals/Services/ReferralService.cs`
- [Dashboard API](https://github.com/ccdnetwork/hotpot/blob/develop/server/Ccd.Server/Areas/Dashboards/Controllers/DashboardsController.cs): `server/Ccd.Server/Areas/Dashboards/Controllers/DashboardsController.cs`
- [Dashboard service](https://github.com/ccdnetwork/hotpot/blob/develop/server/Ccd.Server/Areas/Dashboards/Services/DashboardService.cs): `server/Ccd.Server/Areas/Dashboards/Services/DashboardService.cs`
- [File storage](https://github.com/ccdnetwork/hotpot/blob/develop/server/Ccd.Server/Areas/Storage/Services/StorageService.cs): `server/Ccd.Server/Areas/Storage/Services/StorageService.cs`
- [Application data](https://github.com/ccdnetwork/hotpot/blob/develop/server/Ccd.Server/Data/CcdContext.cs): `server/Ccd.Server/Data/CcdContext.cs`

### Other components

- **Organization staff**
- **Aid recipient**

## Connections

- Organization staff → Client application: uses
- Aid recipient → Recipient data access: accesses data
- Client application → Routes and access: renders routes (evidence: `client/src/App.tsx`)
- Deduplication API → Booking service: calls (evidence: `server/Ccd.Server/Areas/Deduplication/Controllers/DeduplicationController.cs`)
- Referral API → Referral service: calls (evidence: `server/Ccd.Server/Areas/Referrals/Controllers/ReferralController.cs`)
- Dashboard API → Dashboard service: calls (evidence: `server/Ccd.Server/Areas/Dashboards/Controllers/DashboardsController.cs`)
- File storage → Application data: uses context (evidence: `server/Ccd.Server/Areas/Storage/Services/StorageService.cs`)
- Referral API → Application data: uses context (evidence: `server/Ccd.Server/Areas/Referrals/Controllers/ReferralController.cs`)
