# alibekhov/seero architecture

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

- Interactive diagram: https://gitdiagram.com/alibekhov/seero
- Repository: https://github.com/alibekhov/seero

## Overview

Usolve is a language-learning platform whose main flow takes a learner from landing-page registration/login into a protected dashboard, where they study lesson cards and see study-time totals and revision reminders. The frontend reports active study sessions to the Django API; backend tracking maintains time and spaced-repetition state. The README also documents contact submissions and JWT lifecycle endpoints. Some backend routes and feature pages were not excerpted, so their connections are included only where the README documents them; other links reflect shown source references.

Main entry points: [`frontend/src/pages/DashboardPage/DashboardPage.tsx`](https://github.com/alibekhov/seero/blob/main/frontend/src/pages/DashboardPage/DashboardPage.tsx) (Dashboard and practice), [`frontend/src/app/providers/AuthProvider.tsx`](https://github.com/alibekhov/seero/blob/main/frontend/src/app/providers/AuthProvider.tsx) (Auth state and JWT), [`frontend/src/app/App.tsx`](https://github.com/alibekhov/seero/blob/main/frontend/src/app/App.tsx) (App routing), [`backend/apps/tracking/views.py`](https://github.com/alibekhov/seero/blob/main/backend/apps/tracking/views.py) (Dashboard and tracking API)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_frontend["React experience"]
  node_spa["App routing<br/>[App.tsx]"]
  node_landing["Landing and auth UI<br/>[LandingPage.tsx]"]
  node_i18n["Landing translations<br/>[landingI18n.ts]"]
  node_translation_data["Translation data<br/>[landingI18nData.ts]"]
  node_auth_guard["Protected route guard<br/>[RequireAuth.tsx]"]
  node_auth_provider["Auth state and JWT<br/>[AuthProvider.tsx]"]
  node_api_fetch["Authenticated API fetch<br/>[apiFetch.ts]"]
  node_api_config["API base URL<br/>[env.ts]"]
  node_theme["Theme state<br/>[ThemeProvider.tsx]"]
  node_dashboard["Dashboard and practice<br/>[DashboardPage.tsx]"]
  node_session_tracker["Active-time tracker"]
  node_page_styles["Page styles hook<br/>[usePageStyles.ts]"]
end

subgraph group_identity["Accounts and contact"]
  node_accounts_api["Account endpoints<br/>[views.py]"]
  node_account_serializers["Account serialization<br/>[serializers.py]"]
  node_contact_api["Contact submission<br/>[views.py]"]
  node_contact_store[("Contact messages<br/>[models.py]")]
end

subgraph group_learning["Learning content"]
  node_learning_api["Course and lesson API<br/>[views.py]"]
  node_learning_models[("Courses and cards<br/>[models.py]")]
end

subgraph group_tracking["Study tracking"]
  node_tracking_api["Dashboard and tracking API<br/>[views.py]"]
  node_tracking_serializers["Tracking serialization<br/>[serializers.py]"]
  node_tracking_models[("Sessions and schedules<br/>[models.py]")]
  node_study_time["Study-time service<br/>[study_time.py]"]
  node_srs["Spaced repetition"]
end

node_learner(("Learner"))
node_api_service{{"Django REST API"}}

node_learner -->|"opens"| node_spa
node_spa -->|"routes to"| node_landing
node_spa -->|"guards dashboard"| node_auth_guard
node_auth_guard -->|"renders when signed in"| node_dashboard
node_spa -->|"provides auth"| node_auth_provider
node_spa -->|"provides theme"| node_theme
node_landing -->|"uses auth"| node_auth_provider
node_landing -->|"applies language"| node_i18n
node_i18n -->|"reads"| node_translation_data
node_auth_guard -->|"checks session"| node_auth_provider
node_auth_provider -->|"calls"| node_api_fetch
node_auth_provider -->|"gets endpoint base"| node_api_config
node_dashboard -->|"uses auth"| node_auth_provider
node_dashboard -->|"uses theme"| node_theme
node_dashboard -->|"starts tracking"| node_session_tracker
node_dashboard -->|"loads styles"| node_page_styles
node_session_tracker -->|"uses authenticated fetch"| node_auth_provider
node_session_tracker -->|"gets endpoint base"| node_api_config
node_learner -->|"submits credentials"| node_landing
node_learner -->|"studies"| node_dashboard
node_landing -->|"registers or logs in"| node_accounts_api
node_auth_provider -->|"sends auth requests"| node_api_service
node_api_fetch -->|"sends API requests"| node_api_service
node_accounts_api -->|"serializes accounts"| node_account_serializers
node_dashboard -->|"requests dashboard data"| node_api_service
node_dashboard -.->|"loads learning data"| node_api_service
node_session_tracker -->|"sends session start ping stop"| node_api_service
node_api_service -.->|"routes tracking requests"| node_tracking_api
node_api_service -.->|"routes learning requests"| node_learning_api
node_api_service -.->|"routes account requests"| node_accounts_api
node_learner -.->|"submits contact form"| node_api_service
node_contact_api -->|"stores messages"| node_contact_store
node_learning_api -->|"reads content"| node_learning_models
node_tracking_api -->|"reads and writes"| node_tracking_models
node_tracking_api -->|"serializes responses"| node_tracking_serializers
node_tracking_api -->|"delegates timing"| node_study_time
node_tracking_api -->|"delegates scheduling"| node_srs
node_study_time -->|"updates sessions"| node_tracking_models
node_srs -->|"updates schedules"| node_tracking_models
node_tracking_serializers -->|"serializes records"| node_tracking_models
node_tracking_serializers -->|"uses lesson records"| node_learning_models

click node_spa "https://github.com/alibekhov/seero/blob/main/frontend/src/app/App.tsx"
click node_landing "https://github.com/alibekhov/seero/blob/main/frontend/src/pages/LandingPage/LandingPage.tsx"
click node_i18n "https://github.com/alibekhov/seero/blob/main/frontend/src/pages/LandingPage/landingI18n.ts"
click node_translation_data "https://github.com/alibekhov/seero/blob/main/frontend/src/pages/LandingPage/landingI18nData.ts"
click node_auth_guard "https://github.com/alibekhov/seero/blob/main/frontend/src/app/components/RequireAuth.tsx"
click node_auth_provider "https://github.com/alibekhov/seero/blob/main/frontend/src/app/providers/AuthProvider.tsx"
click node_api_fetch "https://github.com/alibekhov/seero/blob/main/frontend/src/shared/api/apiFetch.ts"
click node_api_config "https://github.com/alibekhov/seero/blob/main/frontend/src/shared/config/env.ts"
click node_theme "https://github.com/alibekhov/seero/blob/main/frontend/src/app/providers/ThemeProvider.tsx"
click node_dashboard "https://github.com/alibekhov/seero/blob/main/frontend/src/pages/DashboardPage/DashboardPage.tsx"
click node_session_tracker "https://github.com/alibekhov/seero/blob/main/frontend/src/features/studyTime/useStudySessionTracker.ts"
click node_page_styles "https://github.com/alibekhov/seero/blob/main/frontend/src/shared/hooks/usePageStyles.ts"
click node_accounts_api "https://github.com/alibekhov/seero/blob/main/backend/apps/accounts/views.py"
click node_account_serializers "https://github.com/alibekhov/seero/blob/main/backend/apps/accounts/serializers.py"
click node_contact_api "https://github.com/alibekhov/seero/blob/main/backend/apps/contact/views.py"
click node_contact_store "https://github.com/alibekhov/seero/blob/main/backend/apps/contact/models.py"
click node_learning_api "https://github.com/alibekhov/seero/blob/main/backend/apps/learning/views.py"
click node_learning_models "https://github.com/alibekhov/seero/blob/main/backend/apps/learning/models.py"
click node_tracking_api "https://github.com/alibekhov/seero/blob/main/backend/apps/tracking/views.py"
click node_tracking_serializers "https://github.com/alibekhov/seero/blob/main/backend/apps/tracking/serializers.py"
click node_tracking_models "https://github.com/alibekhov/seero/blob/main/backend/apps/tracking/models.py"
click node_study_time "https://github.com/alibekhov/seero/blob/main/backend/apps/tracking/services/study_time.py"
click node_srs "https://github.com/alibekhov/seero/blob/main/backend/apps/tracking/services/spaced_repetition.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_spa,node_landing,node_i18n,node_translation_data,node_auth_guard,node_auth_provider,node_api_fetch,node_api_config,node_theme,node_dashboard,node_session_tracker,node_page_styles toneBlue
class node_accounts_api,node_account_serializers,node_contact_api,node_contact_store toneAmber
class node_learning_api,node_learning_models,node_api_service toneMint
class node_tracking_api,node_tracking_serializers,node_tracking_models,node_study_time,node_srs toneRose
class node_learner toneIndigo
```

## Components

### React experience

- [App routing](https://github.com/alibekhov/seero/blob/main/frontend/src/app/App.tsx): `frontend/src/app/App.tsx`
- [Landing and auth UI](https://github.com/alibekhov/seero/blob/main/frontend/src/pages/LandingPage/LandingPage.tsx): `frontend/src/pages/LandingPage/LandingPage.tsx`
- [Landing translations](https://github.com/alibekhov/seero/blob/main/frontend/src/pages/LandingPage/landingI18n.ts): `frontend/src/pages/LandingPage/landingI18n.ts`
- [Translation data](https://github.com/alibekhov/seero/blob/main/frontend/src/pages/LandingPage/landingI18nData.ts): `frontend/src/pages/LandingPage/landingI18nData.ts`
- [Protected route guard](https://github.com/alibekhov/seero/blob/main/frontend/src/app/components/RequireAuth.tsx): `frontend/src/app/components/RequireAuth.tsx`
- [Auth state and JWT](https://github.com/alibekhov/seero/blob/main/frontend/src/app/providers/AuthProvider.tsx): `frontend/src/app/providers/AuthProvider.tsx`
- [Authenticated API fetch](https://github.com/alibekhov/seero/blob/main/frontend/src/shared/api/apiFetch.ts): `frontend/src/shared/api/apiFetch.ts`
- [API base URL](https://github.com/alibekhov/seero/blob/main/frontend/src/shared/config/env.ts): `frontend/src/shared/config/env.ts`
- [Theme state](https://github.com/alibekhov/seero/blob/main/frontend/src/app/providers/ThemeProvider.tsx): `frontend/src/app/providers/ThemeProvider.tsx`
- [Dashboard and practice](https://github.com/alibekhov/seero/blob/main/frontend/src/pages/DashboardPage/DashboardPage.tsx): `frontend/src/pages/DashboardPage/DashboardPage.tsx`
- [Active-time tracker](https://github.com/alibekhov/seero/blob/main/frontend/src/features/studyTime/useStudySessionTracker.ts): `frontend/src/features/studyTime/useStudySessionTracker.ts`
- [Page styles hook](https://github.com/alibekhov/seero/blob/main/frontend/src/shared/hooks/usePageStyles.ts): `frontend/src/shared/hooks/usePageStyles.ts`

### Accounts and contact

- [Account endpoints](https://github.com/alibekhov/seero/blob/main/backend/apps/accounts/views.py): `backend/apps/accounts/views.py`
- [Account serialization](https://github.com/alibekhov/seero/blob/main/backend/apps/accounts/serializers.py): `backend/apps/accounts/serializers.py`
- [Contact submission](https://github.com/alibekhov/seero/blob/main/backend/apps/contact/views.py): `backend/apps/contact/views.py`
- [Contact messages](https://github.com/alibekhov/seero/blob/main/backend/apps/contact/models.py): `backend/apps/contact/models.py`

### Learning content

- [Course and lesson API](https://github.com/alibekhov/seero/blob/main/backend/apps/learning/views.py): `backend/apps/learning/views.py`
- [Courses and cards](https://github.com/alibekhov/seero/blob/main/backend/apps/learning/models.py): `backend/apps/learning/models.py`

### Study tracking

- [Dashboard and tracking API](https://github.com/alibekhov/seero/blob/main/backend/apps/tracking/views.py): `backend/apps/tracking/views.py`
- [Tracking serialization](https://github.com/alibekhov/seero/blob/main/backend/apps/tracking/serializers.py): `backend/apps/tracking/serializers.py`
- [Sessions and schedules](https://github.com/alibekhov/seero/blob/main/backend/apps/tracking/models.py): `backend/apps/tracking/models.py`
- [Study-time service](https://github.com/alibekhov/seero/blob/main/backend/apps/tracking/services/study_time.py): `backend/apps/tracking/services/study_time.py`
- [Spaced repetition](https://github.com/alibekhov/seero/blob/main/backend/apps/tracking/services/spaced_repetition.py): `backend/apps/tracking/services/spaced_repetition.py`

### Other components

- **Learner**
- **Django REST API**

## Connections

- Learner → App routing: opens
- App routing → Landing and auth UI: routes to (evidence: `frontend/src/app/App.tsx`)
- App routing → Protected route guard: guards dashboard (evidence: `frontend/src/app/App.tsx`)
- Protected route guard → Dashboard and practice: renders when signed in (evidence: `frontend/src/app/App.tsx`)
- App routing → Auth state and JWT: provides auth (evidence: `frontend/src/app/App.tsx`)
- App routing → Theme state: provides theme (evidence: `frontend/src/app/App.tsx`)
- Landing and auth UI → Auth state and JWT: uses auth (evidence: `frontend/src/pages/LandingPage/LandingPage.tsx`)
- Landing and auth UI → Landing translations: applies language (evidence: `frontend/src/pages/LandingPage/LandingPage.tsx`)
- Landing translations → Translation data: reads (evidence: `frontend/src/pages/LandingPage/landingI18n.ts`)
- Protected route guard → Auth state and JWT: checks session (evidence: `frontend/src/app/components/RequireAuth.tsx`)
- Auth state and JWT → Authenticated API fetch: calls (evidence: `frontend/src/app/providers/AuthProvider.tsx`)
- Auth state and JWT → API base URL: gets endpoint base (evidence: `frontend/src/app/providers/AuthProvider.tsx`)
- Dashboard and practice → Auth state and JWT: uses auth (evidence: `frontend/src/pages/DashboardPage/DashboardPage.tsx`)
- Dashboard and practice → Theme state: uses theme (evidence: `frontend/src/pages/DashboardPage/DashboardPage.tsx`)
- Dashboard and practice → Active-time tracker: starts tracking (evidence: `frontend/src/pages/DashboardPage/DashboardPage.tsx`)
- Dashboard and practice → Page styles hook: loads styles (evidence: `frontend/src/pages/DashboardPage/DashboardPage.tsx`)
- Active-time tracker → Auth state and JWT: uses authenticated fetch (evidence: `frontend/src/features/studyTime/useStudySessionTracker.ts`)
- Active-time tracker → API base URL: gets endpoint base (evidence: `frontend/src/features/studyTime/useStudySessionTracker.ts`)
- Learner → Landing and auth UI: submits credentials (evidence: `frontend/src/pages/LandingPage/LandingPage.tsx`)
- Learner → Dashboard and practice: studies (evidence: `frontend/src/pages/DashboardPage/DashboardPage.tsx`)
- Landing and auth UI → Account endpoints: registers or logs in
- Auth state and JWT → Django REST API: sends auth requests (evidence: `frontend/src/app/providers/AuthProvider.tsx`)
- Authenticated API fetch → Django REST API: sends API requests (evidence: `frontend/src/shared/api/apiFetch.ts`)
- Account endpoints → Account serialization: serializes accounts (evidence: `backend/apps/accounts/views.py`)
- Dashboard and practice → Django REST API: requests dashboard data (evidence: `frontend/src/pages/DashboardPage/DashboardPage.tsx`)
- Dashboard and practice → Django REST API: loads learning data
- Active-time tracker → Django REST API: sends session start ping stop (evidence: `frontend/src/features/studyTime/useStudySessionTracker.ts`)
- Django REST API → Dashboard and tracking API: routes tracking requests
- Django REST API → Course and lesson API: routes learning requests
- Django REST API → Account endpoints: routes account requests
- Learner → Django REST API: submits contact form
- Contact submission → Contact messages: stores messages (evidence: `backend/apps/contact/views.py`)
- Course and lesson API → Courses and cards: reads content (evidence: `backend/apps/learning/views.py`)
- Dashboard and tracking API → Sessions and schedules: reads and writes (evidence: `backend/apps/tracking/views.py`)
- Dashboard and tracking API → Tracking serialization: serializes responses (evidence: `backend/apps/tracking/views.py`)
- Dashboard and tracking API → Study-time service: delegates timing (evidence: `backend/apps/tracking/views.py`)
- Dashboard and tracking API → Spaced repetition: delegates scheduling (evidence: `backend/apps/tracking/views.py`)
- Study-time service → Sessions and schedules: updates sessions (evidence: `backend/apps/tracking/services/study_time.py`)
- Spaced repetition → Sessions and schedules: updates schedules (evidence: `backend/apps/tracking/services/spaced_repetition.py`)
- Tracking serialization → Sessions and schedules: serializes records (evidence: `backend/apps/tracking/serializers.py`)
- Tracking serialization → Courses and cards: uses lesson records (evidence: `backend/apps/tracking/serializers.py`)
