# yashgupta1126/algolytics architecture

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

- Interactive diagram: https://gitdiagram.com/yashgupta1126/algolytics
- Repository: https://github.com/yashgupta1126/algolytics

## Overview

Algolytics is a Django analytics and coaching platform for competitive programmers. Users enter through public contest listings or authenticate, then use profile analytics and dashboard tools: code review, rival comparison, and weak-spot analysis with a four-week plan. The main runtime logic is concentrated in core/views.py, which handles page workflows and external data/AI requests; forms and the custom user model support input and account data. README capabilities are included, but unsampled view logic is not inferred in detail; those feature links are documented or left unverified.

Main entry points: [`core/urls.py`](https://github.com/yashgupta1126/algolytics/blob/main/core/urls.py) (URL routing), [`core/views.py`](https://github.com/yashgupta1126/algolytics/blob/main/core/views.py) (Account workflows), [`templates/core`](https://github.com/yashgupta1126/algolytics/tree/main/templates/core) (Home and dashboard), [`core/models.py`](https://github.com/yashgupta1126/algolytics/blob/main/core/models.py) (User profile data)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_web["Web experience"]
  node_routing["URL routing<br/>[urls.py]"]
  node_site_pages["Home and dashboard"]
end

subgraph group_accounts["Accounts and profile"]
  node_account_views["Account workflows<br/>[views.py]"]
  node_profile_views["Profile analytics<br/>[views.py]"]
  node_account_forms["Account forms<br/>[forms.py]"]
  node_user_model[("User profile data<br/>[models.py]")]
  node_admin["User administration<br/>[admin.py]"]
  node_sqlite[("SQLite database<br/>[settings.py]")]
end

subgraph group_analysis["Competitive analysis"]
  node_review["AI code review<br/>[views.py]"]
  node_comparison["Rival comparison<br/>[views.py]"]
  node_weak_spot["Weak-spot roadmap<br/>[views.py]"]
  node_review_form["Review and rival forms<br/>[forms.py]"]
end

subgraph group_integrations["External services"]
  node_ai_helper["AI request helper<br/>[views.py]"]
  node_codeforces{{"Codeforces API"}}
  node_contest_service{{"Contest aggregator"}}
  node_groq{{"Groq AI API"}}
  node_settings["App configuration<br/>[settings.py]"]
end

node_visitor(("Visitor"))
node_member(("Member"))

node_visitor -->|"opens pages"| node_routing
node_member -->|"opens tools"| node_routing
node_routing -->|"routes requests"| node_account_views
node_routing -->|"routes requests"| node_profile_views
node_routing -->|"routes requests"| node_review
node_routing -->|"routes requests"| node_comparison
node_routing -->|"routes requests"| node_weak_spot
node_account_views -->|"uses forms"| node_account_forms
node_review -->|"uses form"| node_review_form
node_comparison -.->|"uses form"| node_review_form
node_account_forms -->|"models user"| node_user_model
node_account_views -.->|"authenticates users"| node_user_model
node_profile_views -->|"fetches analytics"| node_codeforces
node_comparison -->|"fetches profiles"| node_codeforces
node_review -->|"fetches problem data"| node_codeforces
node_weak_spot -.->|"reads submissions"| node_codeforces
node_account_views -->|"loads contests"| node_contest_service
node_review -.->|"requests review"| node_ai_helper
node_comparison -->|"requests comparison"| node_ai_helper
node_weak_spot -->|"requests roadmap"| node_ai_helper
node_ai_helper -->|"reads API config"| node_settings
node_ai_helper -->|"sends prompt"| node_groq
node_settings -->|"configures database"| node_sqlite
node_admin -->|"manages users"| node_user_model
node_account_views -.->|"renders pages"| node_site_pages
node_profile_views -->|"renders profile"| node_site_pages
node_review -.->|"renders review"| node_site_pages
node_comparison -.->|"renders comparison"| node_site_pages
node_weak_spot -.->|"renders roadmap"| node_site_pages

click node_routing "https://github.com/yashgupta1126/algolytics/blob/main/core/urls.py"
click node_site_pages "https://github.com/yashgupta1126/algolytics/tree/main/templates/core"
click node_account_views "https://github.com/yashgupta1126/algolytics/blob/main/core/views.py"
click node_profile_views "https://github.com/yashgupta1126/algolytics/blob/main/core/views.py"
click node_account_forms "https://github.com/yashgupta1126/algolytics/blob/main/core/forms.py"
click node_user_model "https://github.com/yashgupta1126/algolytics/blob/main/core/models.py"
click node_admin "https://github.com/yashgupta1126/algolytics/blob/main/core/admin.py"
click node_review "https://github.com/yashgupta1126/algolytics/blob/main/core/views.py"
click node_comparison "https://github.com/yashgupta1126/algolytics/blob/main/core/views.py"
click node_weak_spot "https://github.com/yashgupta1126/algolytics/blob/main/core/views.py"
click node_review_form "https://github.com/yashgupta1126/algolytics/blob/main/core/forms.py"
click node_ai_helper "https://github.com/yashgupta1126/algolytics/blob/main/core/views.py"
click node_settings "https://github.com/yashgupta1126/algolytics/blob/main/config/settings.py"
click node_sqlite "https://github.com/yashgupta1126/algolytics/blob/main/config/settings.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_routing,node_site_pages toneBlue
class node_account_views,node_profile_views,node_account_forms,node_user_model,node_admin,node_sqlite toneAmber
class node_review,node_comparison,node_weak_spot,node_review_form toneMint
class node_ai_helper,node_codeforces,node_contest_service,node_groq,node_settings toneRose
class node_visitor,node_member toneIndigo
```

## Components

### Web experience

- [URL routing](https://github.com/yashgupta1126/algolytics/blob/main/core/urls.py): `core/urls.py`
- [Home and dashboard](https://github.com/yashgupta1126/algolytics/tree/main/templates/core): `templates/core`

### Accounts and profile

- [Account workflows](https://github.com/yashgupta1126/algolytics/blob/main/core/views.py): `core/views.py`
- [Profile analytics](https://github.com/yashgupta1126/algolytics/blob/main/core/views.py): `core/views.py`
- [Account forms](https://github.com/yashgupta1126/algolytics/blob/main/core/forms.py): `core/forms.py`
- [User profile data](https://github.com/yashgupta1126/algolytics/blob/main/core/models.py): `core/models.py`
- [User administration](https://github.com/yashgupta1126/algolytics/blob/main/core/admin.py): `core/admin.py`
- [SQLite database](https://github.com/yashgupta1126/algolytics/blob/main/config/settings.py): `config/settings.py`

### Competitive analysis

- [AI code review](https://github.com/yashgupta1126/algolytics/blob/main/core/views.py): `core/views.py`
- [Rival comparison](https://github.com/yashgupta1126/algolytics/blob/main/core/views.py): `core/views.py`
- [Weak-spot roadmap](https://github.com/yashgupta1126/algolytics/blob/main/core/views.py): `core/views.py`
- [Review and rival forms](https://github.com/yashgupta1126/algolytics/blob/main/core/forms.py): `core/forms.py`

### External services

- [AI request helper](https://github.com/yashgupta1126/algolytics/blob/main/core/views.py): `core/views.py`
- **Codeforces API**
- **Contest aggregator**
- **Groq AI API**
- [App configuration](https://github.com/yashgupta1126/algolytics/blob/main/config/settings.py): `config/settings.py`

### Other components

- **Visitor**
- **Member**

## Connections

- Visitor → URL routing: opens pages (evidence: `README.md`)
- Member → URL routing: opens tools (evidence: `README.md`)
- URL routing → Account workflows: routes requests (evidence: `core/urls.py`)
- URL routing → Profile analytics: routes requests (evidence: `core/urls.py`)
- URL routing → AI code review: routes requests (evidence: `core/urls.py`)
- URL routing → Rival comparison: routes requests (evidence: `core/urls.py`)
- URL routing → Weak-spot roadmap: routes requests (evidence: `core/urls.py`)
- Account workflows → Account forms: uses forms (evidence: `core/views.py`)
- AI code review → Review and rival forms: uses form (evidence: `core/forms.py`)
- Rival comparison → Review and rival forms: uses form (evidence: `core/views.py`)
- Account forms → User profile data: models user (evidence: `core/forms.py`)
- Account workflows → User profile data: authenticates users
- Profile analytics → Codeforces API: fetches analytics (evidence: `core/views.py`)
- Rival comparison → Codeforces API: fetches profiles (evidence: `core/views.py`)
- AI code review → Codeforces API: fetches problem data (evidence: `core/views.py`)
- Weak-spot roadmap → Codeforces API: reads submissions (evidence: `README.md`)
- Account workflows → Contest aggregator: loads contests (evidence: `core/views.py`)
- AI code review → AI request helper: requests review (evidence: `core/views.py`)
- Rival comparison → AI request helper: requests comparison (evidence: `core/views.py`)
- Weak-spot roadmap → AI request helper: requests roadmap (evidence: `core/views.py`)
- AI request helper → App configuration: reads API config (evidence: `config/settings.py`)
- AI request helper → Groq AI API: sends prompt (evidence: `core/views.py`)
- App configuration → SQLite database: configures database (evidence: `config/settings.py`)
- User administration → User profile data: manages users (evidence: `core/admin.py`)
- Account workflows → Home and dashboard: renders pages
- Profile analytics → Home and dashboard: renders profile (evidence: `core/views.py`)
- AI code review → Home and dashboard: renders review
- Rival comparison → Home and dashboard: renders comparison
- Weak-spot roadmap → Home and dashboard: renders roadmap
