# purusouthanan/edith architecture

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

- Interactive diagram: https://gitdiagram.com/purusouthanan/edith
- Repository: https://github.com/purusouthanan/edith

## Overview

EDITH is described as an offline-aware, human-directed platform for coordinating emergency healthcare resources. The repository tree contains product and architecture documents plus pitch-presentation materials, but no application runtime source. This graph therefore maps documented product capabilities, not verified implementation components or call paths; workflow links are supported by the README’s product description.

Main entry points: [`documents/PRD.md`](https://github.com/purusouthanan/edith/blob/main/documents/PRD.md) (Approved Assignments), [`documents/SYSTEM_ARCHITECTURE.md`](https://github.com/purusouthanan/edith/blob/main/documents/SYSTEM_ARCHITECTURE.md) (Offline Drafts & Sync)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_coordination["Request Coordination"]
  node_request["Resource Requests<br/>[PRD.md]"]
  node_offers["Voluntary Offers<br/>[PRD.md]"]
end

subgraph group_command["Command &amp; Logistics"]
  node_icc["Incident Command<br/>[PRD.md]"]
  node_assignment["Approved Assignments<br/>[PRD.md]"]
  node_transit["Transit Progress<br/>[PRD.md]"]
  node_handover["Handover Verification<br/>[PRD.md]"]
  node_delivery["Receipt-Verified Delivery<br/>[PRD.md]"]
end

subgraph group_resilience["Offline &amp; Accountability"]
  node_offline["Offline Drafts &amp; Sync"]
  node_localstore[("IndexedDB Queue")]
  node_audit[("Tamper-Evident Audit")]
  node_otp["OTP Verification<br/>[PRD.md]"]
end

node_facilities(("Hospitals &amp; Camps"))
node_couriers(("Couriers"))

node_facilities -->|"submit needs"| node_request
node_facilities -->|"offer resources"| node_offers
node_icc -->|"validate offers"| node_offers
node_icc -->|"authorize transfers"| node_assignment
node_assignment -->|"dispatch transfer"| node_couriers
node_couriers -->|"report progress"| node_transit
node_couriers -->|"verify custody"| node_handover
node_handover -->|"use OTP"| node_otp
node_couriers -->|"log delivery"| node_delivery
node_facilities -->|"confirm receipt"| node_delivery
node_facilities -->|"draft offline"| node_offline
node_offline -->|"queue sync"| node_localstore
node_offline -->|"sync drafts"| node_request
node_delivery -->|"record lifecycle"| node_audit
node_assignment -->|"record decisions"| node_audit

click node_request "https://github.com/purusouthanan/edith/blob/main/documents/PRD.md"
click node_offers "https://github.com/purusouthanan/edith/blob/main/documents/PRD.md"
click node_icc "https://github.com/purusouthanan/edith/blob/main/documents/PRD.md"
click node_assignment "https://github.com/purusouthanan/edith/blob/main/documents/PRD.md"
click node_transit "https://github.com/purusouthanan/edith/blob/main/documents/PRD.md"
click node_handover "https://github.com/purusouthanan/edith/blob/main/documents/PRD.md"
click node_delivery "https://github.com/purusouthanan/edith/blob/main/documents/PRD.md"
click node_offline "https://github.com/purusouthanan/edith/blob/main/documents/SYSTEM_ARCHITECTURE.md"
click node_localstore "https://github.com/purusouthanan/edith/blob/main/documents/SYSTEM_ARCHITECTURE.md"
click node_audit "https://github.com/purusouthanan/edith/blob/main/documents/SYSTEM_ARCHITECTURE.md"
click node_otp "https://github.com/purusouthanan/edith/blob/main/documents/PRD.md"

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_request,node_offers toneBlue
class node_icc,node_assignment,node_transit,node_handover,node_delivery toneAmber
class node_offline,node_localstore,node_audit,node_otp toneMint
class node_facilities,node_couriers toneIndigo
```

## Components

### Request Coordination

- [Resource Requests](https://github.com/purusouthanan/edith/blob/main/documents/PRD.md): `documents/PRD.md`
- [Voluntary Offers](https://github.com/purusouthanan/edith/blob/main/documents/PRD.md): `documents/PRD.md`

### Command & Logistics

- [Incident Command](https://github.com/purusouthanan/edith/blob/main/documents/PRD.md): `documents/PRD.md`
- [Approved Assignments](https://github.com/purusouthanan/edith/blob/main/documents/PRD.md): `documents/PRD.md`
- [Transit Progress](https://github.com/purusouthanan/edith/blob/main/documents/PRD.md): `documents/PRD.md`
- [Handover Verification](https://github.com/purusouthanan/edith/blob/main/documents/PRD.md): `documents/PRD.md`
- [Receipt-Verified Delivery](https://github.com/purusouthanan/edith/blob/main/documents/PRD.md): `documents/PRD.md`

### Offline & Accountability

- [Offline Drafts & Sync](https://github.com/purusouthanan/edith/blob/main/documents/SYSTEM_ARCHITECTURE.md): `documents/SYSTEM_ARCHITECTURE.md`
- [IndexedDB Queue](https://github.com/purusouthanan/edith/blob/main/documents/SYSTEM_ARCHITECTURE.md): `documents/SYSTEM_ARCHITECTURE.md`
- [Tamper-Evident Audit](https://github.com/purusouthanan/edith/blob/main/documents/SYSTEM_ARCHITECTURE.md): `documents/SYSTEM_ARCHITECTURE.md`
- [OTP Verification](https://github.com/purusouthanan/edith/blob/main/documents/PRD.md): `documents/PRD.md`

### Other components

- **Hospitals & Camps**
- **Couriers**

## Connections

- Hospitals & Camps → Resource Requests: submit needs (evidence: `README.md`)
- Hospitals & Camps → Voluntary Offers: offer resources (evidence: `README.md`)
- Incident Command → Voluntary Offers: validate offers (evidence: `README.md`)
- Incident Command → Approved Assignments: authorize transfers (evidence: `README.md`)
- Approved Assignments → Couriers: dispatch transfer (evidence: `README.md`)
- Couriers → Transit Progress: report progress (evidence: `README.md`)
- Couriers → Handover Verification: verify custody (evidence: `README.md`)
- Handover Verification → OTP Verification: use OTP (evidence: `README.md`)
- Couriers → Receipt-Verified Delivery: log delivery (evidence: `README.md`)
- Hospitals & Camps → Receipt-Verified Delivery: confirm receipt (evidence: `README.md`)
- Hospitals & Camps → Offline Drafts & Sync: draft offline (evidence: `README.md`)
- Offline Drafts & Sync → IndexedDB Queue: queue sync (evidence: `README.md`)
- Offline Drafts & Sync → Resource Requests: sync drafts (evidence: `README.md`)
- Receipt-Verified Delivery → Tamper-Evident Audit: record lifecycle (evidence: `README.md`)
- Approved Assignments → Tamper-Evident Audit: record decisions (evidence: `README.md`)
