# jayveethebest/thrivehublite architecture

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

- Interactive diagram: https://gitdiagram.com/jayveethebest/thrivehublite
- Repository: https://github.com/jayveethebest/thrivehublite

## Overview

ThriveHubLite is a Django mental-health helpline documentation system. Responders sign in, enter caller and session details, optionally request an AI-generated summary, and retrieve call history; staff also manage referrals, scheduling, dashboards, and exports. The graph reflects relationships visible in excerpts or documented in the README. Some advertised capabilities, including role-based access and media support, are not mapped to unsampled implementation details.

Main entry points: [`calls/models.py`](https://github.com/jayveethebest/thrivehublite/blob/main/calls/models.py) (Helpline Data), [`calls/views.py`](https://github.com/jayveethebest/thrivehublite/blob/main/calls/views.py) (Call and Referral Handlers), [`ThriveHubLite/views.py`](https://github.com/jayveethebest/thrivehublite/blob/main/ThriveHubLite/views.py) (Dashboard and Scheduler), [`calls/utils.py`](https://github.com/jayveethebest/thrivehublite/blob/main/calls/utils.py) (Summary and Calendar Utilities)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_web["Web Access"]
  node_project_routes["Project Routes<br/>[urls.py]"]
  node_call_routes["Call Routes<br/>[urls.py]"]
end

subgraph group_records["Helpline Records"]
  node_call_views["Call and Referral Handlers<br/>[views.py]"]
  node_forms["Entry Forms<br/>[forms.py]"]
  node_data[("Helpline Data<br/>[models.py]")]
end

subgraph group_operations["Operations"]
  node_project_views["Dashboard and Scheduler<br/>[views.py]"]
  node_ai_helper["Summary and Calendar Utilities<br/>[utils.py]"]
  node_django_admin["Django Admin<br/>[admin.py]"]
end

subgraph group_insights["Reporting and Configuration"]
  node_reports["Dashboard and Exports<br/>[views.py]"]
  node_site_config["Site Configuration"]
  node_template_helpers["Template Helpers<br/>[form_extras.py]"]
end

node_responder(("Responder"))
node_groq{{"Groq AI"}}

node_responder -->|"uses"| node_project_routes
node_project_routes -->|"routes to"| node_project_views
node_project_routes -->|"includes"| node_call_routes
node_call_routes -->|"routes to"| node_call_views
node_call_views -->|"uses"| node_forms
node_call_views -->|"reads and writes"| node_data
node_forms -->|"models"| node_data
node_call_views -->|"requests summary"| node_ai_helper
node_ai_helper -->|"requests completion"| node_groq
node_ai_helper -->|"reads configuration"| node_data
node_project_views -->|"queries records"| node_data
node_project_views -->|"uses calendar helper"| node_ai_helper
node_project_views -->|"renders and exports"| node_reports
node_call_views -->|"manages referrals"| node_data
node_site_config -->|"reads configuration"| node_data
node_template_helpers -->|"reads configuration"| node_data
node_django_admin -->|"administers records"| node_data

click node_project_routes "https://github.com/jayveethebest/thrivehublite/blob/main/ThriveHubLite/urls.py"
click node_project_views "https://github.com/jayveethebest/thrivehublite/blob/main/ThriveHubLite/views.py"
click node_call_routes "https://github.com/jayveethebest/thrivehublite/blob/main/calls/urls.py"
click node_call_views "https://github.com/jayveethebest/thrivehublite/blob/main/calls/views.py"
click node_forms "https://github.com/jayveethebest/thrivehublite/blob/main/calls/forms.py"
click node_data "https://github.com/jayveethebest/thrivehublite/blob/main/calls/models.py"
click node_ai_helper "https://github.com/jayveethebest/thrivehublite/blob/main/calls/utils.py"
click node_reports "https://github.com/jayveethebest/thrivehublite/blob/main/ThriveHubLite/views.py"
click node_site_config "https://github.com/jayveethebest/thrivehublite/blob/main/calls/context_processors.py"
click node_template_helpers "https://github.com/jayveethebest/thrivehublite/blob/main/calls/templatetags/form_extras.py"
click node_django_admin "https://github.com/jayveethebest/thrivehublite/blob/main/calls/admin.py"

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_project_routes,node_call_routes toneBlue
class node_call_views,node_forms,node_data toneAmber
class node_project_views,node_ai_helper,node_django_admin toneMint
class node_reports,node_site_config,node_template_helpers toneRose
class node_responder,node_groq toneIndigo
```

## Components

### Web Access

- [Project Routes](https://github.com/jayveethebest/thrivehublite/blob/main/ThriveHubLite/urls.py): `ThriveHubLite/urls.py`
- [Call Routes](https://github.com/jayveethebest/thrivehublite/blob/main/calls/urls.py): `calls/urls.py`

### Helpline Records

- [Call and Referral Handlers](https://github.com/jayveethebest/thrivehublite/blob/main/calls/views.py): `calls/views.py`
- [Entry Forms](https://github.com/jayveethebest/thrivehublite/blob/main/calls/forms.py): `calls/forms.py`
- [Helpline Data](https://github.com/jayveethebest/thrivehublite/blob/main/calls/models.py): `calls/models.py`

### Operations

- [Dashboard and Scheduler](https://github.com/jayveethebest/thrivehublite/blob/main/ThriveHubLite/views.py): `ThriveHubLite/views.py`
- [Summary and Calendar Utilities](https://github.com/jayveethebest/thrivehublite/blob/main/calls/utils.py): `calls/utils.py`
- [Django Admin](https://github.com/jayveethebest/thrivehublite/blob/main/calls/admin.py): `calls/admin.py`

### Reporting and Configuration

- [Dashboard and Exports](https://github.com/jayveethebest/thrivehublite/blob/main/ThriveHubLite/views.py): `ThriveHubLite/views.py`
- [Site Configuration](https://github.com/jayveethebest/thrivehublite/blob/main/calls/context_processors.py): `calls/context_processors.py`
- [Template Helpers](https://github.com/jayveethebest/thrivehublite/blob/main/calls/templatetags/form_extras.py): `calls/templatetags/form_extras.py`

### Other components

- **Responder**
- **Groq AI**

## Connections

- Responder → Project Routes: uses (evidence: `ThriveHubLite/urls.py`)
- Project Routes → Dashboard and Scheduler: routes to (evidence: `ThriveHubLite/urls.py`)
- Project Routes → Call Routes: includes (evidence: `ThriveHubLite/urls.py`)
- Call Routes → Call and Referral Handlers: routes to (evidence: `calls/urls.py`)
- Call and Referral Handlers → Entry Forms: uses (evidence: `calls/views.py`)
- Call and Referral Handlers → Helpline Data: reads and writes (evidence: `calls/views.py`)
- Entry Forms → Helpline Data: models (evidence: `calls/forms.py`)
- Call and Referral Handlers → Summary and Calendar Utilities: requests summary (evidence: `calls/views.py`)
- Summary and Calendar Utilities → Groq AI: requests completion (evidence: `calls/utils.py`)
- Summary and Calendar Utilities → Helpline Data: reads configuration (evidence: `calls/utils.py`)
- Dashboard and Scheduler → Helpline Data: queries records (evidence: `ThriveHubLite/views.py`)
- Dashboard and Scheduler → Summary and Calendar Utilities: uses calendar helper (evidence: `ThriveHubLite/views.py`)
- Dashboard and Scheduler → Dashboard and Exports: renders and exports (evidence: `ThriveHubLite/views.py`)
- Call and Referral Handlers → Helpline Data: manages referrals (evidence: `calls/views.py`)
- Site Configuration → Helpline Data: reads configuration (evidence: `calls/context_processors.py`)
- Template Helpers → Helpline Data: reads configuration (evidence: `calls/templatetags/form_extras.py`)
- Django Admin → Helpline Data: administers records (evidence: `calls/admin.py`)
