# jordandavid1812-creator/university-command-center architecture

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

- Interactive diagram: https://gitdiagram.com/jordandavid1812-creator/university-command-center
- Repository: https://github.com/jordandavid1812-creator/university-command-center

## Overview

UniCommand is a student study website for GPA and academic records, planning, deadlines, and AI study tools, alongside a retained local CLI/Streamlit app. The public-site workflow is a student request handled by the Django web layer, which uses trusted identity and owner-scoped academic services to read or update records, then returns a page or result. The README documents the major product capabilities and integrations; sampled source confirms selected boundaries, but many feature implementations were not excerpted, so those links are documented rather than inferred from module names.

Main entry points: [`server/student_web/views.py`](https://github.com/jordandavid1812-creator/university-command-center/blob/master/server/student_web/views.py) (Website views), [`main.py`](https://github.com/jordandavid1812-creator/university-command-center/blob/master/main.py) (Terminal menu), [`server/academics/services.py`](https://github.com/jordandavid1812-creator/university-command-center/blob/master/server/academics/services.py) (Academic services), [`storage.py`](https://github.com/jordandavid1812-creator/university-command-center/blob/master/storage.py) (JSON storage)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_web["Student website"]
  node_web_views["Website views<br/>[views.py]"]
  node_web_data["Website data<br/>[data.py]"]
  node_web_forms["Website forms<br/>[forms.py]"]
  node_study_plan["Study planner<br/>[study_plan.py]"]
  node_search["Study-file search<br/>[search.py]"]
  node_text_extract["Text extraction<br/>[text_extraction.py]"]
  node_ai_providers["AI providers<br/>[ai_providers.py]"]
  node_export["Data export<br/>[export.py]"]
end

subgraph group_domain["Academic services"]
  node_academic_services["Academic services<br/>[services.py]"]
  node_academic_queries["Academic queries<br/>[queries.py]"]
  node_academic_models["Academic records<br/>[models.py]"]
end

subgraph group_identity["Identity and security"]
  node_ownership["Student ownership<br/>[ownership.py]"]
  node_account_views["Account flows<br/>[views.py]"]
  node_account_models["Account records<br/>[models.py]"]
end

subgraph group_browser["Browser features"]
  node_browser_app["Browser application<br/>[app.js]"]
  node_browser_commands["Browser commands<br/>[command.js]"]
  node_browser_share["Share cards<br/>[share.js]"]
end

subgraph group_legacy["Local app"]
  node_cli["Terminal menu<br/>[main.py]"]
  node_courses["Course management<br/>[courses.py]"]
  node_assignments["Assignment tracking<br/>[assignments.py]"]
  node_gpa["GPA calculator<br/>[gpa.py]"]
  node_predictor["GPA predictor<br/>[gpa_predictor.py]"]
  node_overview["Academic overview"]
  node_storage[("JSON storage<br/>[storage.py]")]
end

node_student(("Student"))
node_database[("PostgreSQL")]
node_ai_service{{"AI provider"}}
node_email_service{{"Resend email"}}

node_student -->|"requests pages"| node_web_views
node_web_views -->|"uses records"| node_academic_services
node_web_views -->|"queries records"| node_academic_queries
node_web_views -->|"uses forms"| node_web_forms
node_web_views -->|"uses planning"| node_study_plan
node_web_views -->|"uses search"| node_search
node_web_views -->|"exports data"| node_export
node_web_views -->|"uses data"| node_web_data
node_web_views -->|"uses account flows"| node_account_views
node_academic_services -->|"checks ownership"| node_ownership
node_academic_services -->|"reads and writes"| node_academic_models
node_academic_queries -.->|"reads records"| node_database
node_academic_services -->|"reads and writes"| node_database
node_account_views -.->|"manages accounts"| node_account_models
node_account_views -.->|"sends email"| node_email_service
node_web_views -.->|"requests AI study"| node_ai_providers
node_ai_providers -.->|"sends confirmed request"| node_ai_service
node_search -->|"extracts file text"| node_text_extract
node_search -->|"reads files and saves text"| node_academic_services
node_student -->|"uses website"| node_browser_app
node_browser_app -.->|"loads commands"| node_browser_commands
node_browser_app -.->|"draws share cards"| node_browser_share
node_student -->|"chooses menu actions"| node_cli
node_cli -->|"loads records"| node_storage
node_cli -->|"dispatches course actions"| node_courses
node_cli -->|"dispatches assignment actions"| node_assignments
node_cli -->|"calculates GPA"| node_gpa
node_cli -->|"predicts GPA"| node_predictor
node_cli -->|"shows overview"| node_overview
node_courses -->|"loads and saves"| node_storage
node_assignments -->|"loads and saves"| node_storage
node_gpa -->|"loads records"| node_storage
node_predictor -.->|"uses grade rules"| node_academic_models
node_overview -.->|"uses grade rules"| node_academic_models

click node_web_views "https://github.com/jordandavid1812-creator/university-command-center/blob/master/server/student_web/views.py"
click node_web_data "https://github.com/jordandavid1812-creator/university-command-center/blob/master/server/student_web/data.py"
click node_web_forms "https://github.com/jordandavid1812-creator/university-command-center/blob/master/server/student_web/forms.py"
click node_study_plan "https://github.com/jordandavid1812-creator/university-command-center/blob/master/server/student_web/study_plan.py"
click node_search "https://github.com/jordandavid1812-creator/university-command-center/blob/master/server/student_web/search.py"
click node_text_extract "https://github.com/jordandavid1812-creator/university-command-center/blob/master/server/student_web/text_extraction.py"
click node_ai_providers "https://github.com/jordandavid1812-creator/university-command-center/blob/master/server/student_web/ai_providers.py"
click node_export "https://github.com/jordandavid1812-creator/university-command-center/blob/master/server/student_web/export.py"
click node_academic_services "https://github.com/jordandavid1812-creator/university-command-center/blob/master/server/academics/services.py"
click node_academic_queries "https://github.com/jordandavid1812-creator/university-command-center/blob/master/server/academics/queries.py"
click node_academic_models "https://github.com/jordandavid1812-creator/university-command-center/blob/master/server/academics/models.py"
click node_ownership "https://github.com/jordandavid1812-creator/university-command-center/blob/master/server/academics/ownership.py"
click node_account_views "https://github.com/jordandavid1812-creator/university-command-center/blob/master/server/accounts/views.py"
click node_account_models "https://github.com/jordandavid1812-creator/university-command-center/blob/master/server/accounts/models.py"
click node_browser_app "https://github.com/jordandavid1812-creator/university-command-center/blob/master/server/student_web/static/student_web/app.js"
click node_browser_commands "https://github.com/jordandavid1812-creator/university-command-center/blob/master/server/student_web/static/student_web/command.js"
click node_browser_share "https://github.com/jordandavid1812-creator/university-command-center/blob/master/server/student_web/static/student_web/share.js"
click node_cli "https://github.com/jordandavid1812-creator/university-command-center/blob/master/main.py"
click node_courses "https://github.com/jordandavid1812-creator/university-command-center/blob/master/courses.py"
click node_assignments "https://github.com/jordandavid1812-creator/university-command-center/blob/master/assignments.py"
click node_gpa "https://github.com/jordandavid1812-creator/university-command-center/blob/master/gpa.py"
click node_predictor "https://github.com/jordandavid1812-creator/university-command-center/blob/master/gpa_predictor.py"
click node_overview "https://github.com/jordandavid1812-creator/university-command-center/blob/master/academic_overview.py"
click node_storage "https://github.com/jordandavid1812-creator/university-command-center/blob/master/storage.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_web_views,node_web_data,node_web_forms,node_study_plan,node_search,node_text_extract,node_ai_providers,node_export toneBlue
class node_academic_services,node_academic_queries,node_academic_models,node_database toneAmber
class node_ownership,node_account_views,node_account_models toneMint
class node_browser_app,node_browser_commands,node_browser_share toneRose
class node_cli,node_courses,node_assignments,node_gpa,node_predictor,node_overview,node_storage,node_student,node_ai_service,node_email_service toneIndigo
```

## Components

### Student website

- [Website views](https://github.com/jordandavid1812-creator/university-command-center/blob/master/server/student_web/views.py): `server/student_web/views.py`
- [Website data](https://github.com/jordandavid1812-creator/university-command-center/blob/master/server/student_web/data.py): `server/student_web/data.py`
- [Website forms](https://github.com/jordandavid1812-creator/university-command-center/blob/master/server/student_web/forms.py): `server/student_web/forms.py`
- [Study planner](https://github.com/jordandavid1812-creator/university-command-center/blob/master/server/student_web/study_plan.py): `server/student_web/study_plan.py`
- [Study-file search](https://github.com/jordandavid1812-creator/university-command-center/blob/master/server/student_web/search.py): `server/student_web/search.py`
- [Text extraction](https://github.com/jordandavid1812-creator/university-command-center/blob/master/server/student_web/text_extraction.py): `server/student_web/text_extraction.py`
- [AI providers](https://github.com/jordandavid1812-creator/university-command-center/blob/master/server/student_web/ai_providers.py): `server/student_web/ai_providers.py`
- [Data export](https://github.com/jordandavid1812-creator/university-command-center/blob/master/server/student_web/export.py): `server/student_web/export.py`

### Academic services

- [Academic services](https://github.com/jordandavid1812-creator/university-command-center/blob/master/server/academics/services.py): `server/academics/services.py`
- [Academic queries](https://github.com/jordandavid1812-creator/university-command-center/blob/master/server/academics/queries.py): `server/academics/queries.py`
- [Academic records](https://github.com/jordandavid1812-creator/university-command-center/blob/master/server/academics/models.py): `server/academics/models.py`

### Identity and security

- [Student ownership](https://github.com/jordandavid1812-creator/university-command-center/blob/master/server/academics/ownership.py): `server/academics/ownership.py`
- [Account flows](https://github.com/jordandavid1812-creator/university-command-center/blob/master/server/accounts/views.py): `server/accounts/views.py`
- [Account records](https://github.com/jordandavid1812-creator/university-command-center/blob/master/server/accounts/models.py): `server/accounts/models.py`

### Browser features

- [Browser application](https://github.com/jordandavid1812-creator/university-command-center/blob/master/server/student_web/static/student_web/app.js): `server/student_web/static/student_web/app.js`
- [Browser commands](https://github.com/jordandavid1812-creator/university-command-center/blob/master/server/student_web/static/student_web/command.js): `server/student_web/static/student_web/command.js`
- [Share cards](https://github.com/jordandavid1812-creator/university-command-center/blob/master/server/student_web/static/student_web/share.js): `server/student_web/static/student_web/share.js`

### Local app

- [Terminal menu](https://github.com/jordandavid1812-creator/university-command-center/blob/master/main.py): `main.py`
- [Course management](https://github.com/jordandavid1812-creator/university-command-center/blob/master/courses.py): `courses.py`
- [Assignment tracking](https://github.com/jordandavid1812-creator/university-command-center/blob/master/assignments.py): `assignments.py`
- [GPA calculator](https://github.com/jordandavid1812-creator/university-command-center/blob/master/gpa.py): `gpa.py`
- [GPA predictor](https://github.com/jordandavid1812-creator/university-command-center/blob/master/gpa_predictor.py): `gpa_predictor.py`
- [Academic overview](https://github.com/jordandavid1812-creator/university-command-center/blob/master/academic_overview.py): `academic_overview.py`
- [JSON storage](https://github.com/jordandavid1812-creator/university-command-center/blob/master/storage.py): `storage.py`

### Other components

- **Student**
- **PostgreSQL**
- **AI provider**
- **Resend email**

## Connections

- Student → Website views: requests pages
- Website views → Academic services: uses records (evidence: `server/student_web/views.py`)
- Website views → Academic queries: queries records (evidence: `server/student_web/views.py`)
- Website views → Website forms: uses forms (evidence: `server/student_web/views.py`)
- Website views → Study planner: uses planning (evidence: `server/student_web/views.py`)
- Website views → Study-file search: uses search (evidence: `server/student_web/views.py`)
- Website views → Data export: exports data (evidence: `server/student_web/views.py`)
- Website views → Website data: uses data (evidence: `server/student_web/views.py`)
- Website views → Account flows: uses account flows (evidence: `server/student_web/views.py`)
- Academic services → Student ownership: checks ownership (evidence: `server/academics/services.py`)
- Academic services → Academic records: reads and writes (evidence: `server/academics/services.py`)
- Academic queries → PostgreSQL: reads records
- Academic services → PostgreSQL: reads and writes
- Account flows → Account records: manages accounts
- Account flows → Resend email: sends email
- Website views → AI providers: requests AI study
- AI providers → AI provider: sends confirmed request
- Study-file search → Text extraction: extracts file text (evidence: `server/student_web/search.py`)
- Study-file search → Academic services: reads files and saves text (evidence: `server/student_web/search.py`)
- Student → Browser application: uses website
- Browser application → Browser commands: loads commands
- Browser application → Share cards: draws share cards
- Student → Terminal menu: chooses menu actions (evidence: `main.py`)
- Terminal menu → JSON storage: loads records (evidence: `main.py`)
- Terminal menu → Course management: dispatches course actions (evidence: `main.py`)
- Terminal menu → Assignment tracking: dispatches assignment actions (evidence: `main.py`)
- Terminal menu → GPA calculator: calculates GPA (evidence: `main.py`)
- Terminal menu → GPA predictor: predicts GPA (evidence: `main.py`)
- Terminal menu → Academic overview: shows overview (evidence: `main.py`)
- Course management → JSON storage: loads and saves (evidence: `courses.py`)
- Assignment tracking → JSON storage: loads and saves (evidence: `assignments.py`)
- GPA calculator → JSON storage: loads records (evidence: `gpa.py`)
- GPA predictor → Academic records: uses grade rules
- Academic overview → Academic records: uses grade rules
