# shoaibsikder/scholars-canvas architecture

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

- Interactive diagram: https://gitdiagram.com/shoaibsikder/scholars-canvas
- Repository: https://github.com/shoaibsikder/scholars-canvas

## Overview

Scholars Canvas is a role-based academic productivity platform: students and administrators use a React workspace backed by Django APIs. The main user journey is sign-in, role-aware routing into a workspace, and using academic features such as tasks, routines, resources, and AI study tools; the backend provides corresponding domain apps. The graph preserves the README’s other major capabilities, including communication, notifications, analytics, and administration. Several backend feature links are documented but their view implementations were not sampled, so those links are dashed and unverified.

Main entry points: [`frontend/src/App.jsx`](https://github.com/shoaibsikder/scholars-canvas/blob/main/frontend/src/App.jsx) (Role-aware routing), [`frontend/src/api/client.js`](https://github.com/shoaibsikder/scholars-canvas/blob/main/frontend/src/api/client.js) (API client), [`frontend/src/api/index.js`](https://github.com/shoaibsikder/scholars-canvas/blob/main/frontend/src/api/index.js) (API feature exports), [`frontend/src/context/AuthContext.jsx`](https://github.com/shoaibsikder/scholars-canvas/blob/main/frontend/src/context/AuthContext.jsx) (Auth and profile)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_experience["User experience"]
  node_auth_ui["Authentication<br/>[AuthRoutes.jsx]"]
  node_auth_state["Auth and profile<br/>[AuthContext.jsx]"]
  node_app_routes["Role-aware routing<br/>[App.jsx]"]
  node_api_client["API client<br/>[client.js]"]
  node_api_exports["API feature exports<br/>[index.js]"]
end

subgraph group_student["Student workspace"]
  node_dashboard["Dashboard analytics<br/>[DashboardPage.jsx]"]
  node_routine["Routine planner<br/>[RoutinePage.jsx]"]
  node_tasks["Task tracking<br/>[TasksPage.jsx]"]
  node_study_tracking["Study time tracking"]
  node_vault["Course resource vault<br/>[VaultPage.jsx]"]
  node_ai_lab["AI study tools<br/>[AILabPage.jsx]"]
  node_communication["Communication"]
  node_profile["Profile and settings<br/>[ProfilePage.jsx]"]
end

subgraph group_admin["Administration"]
  node_admin_ui["Admin workspace<br/>[AdminPanelPage.jsx]"]
end

subgraph group_backend["Backend services"]
  node_account_api["Accounts API<br/>[views.py]"]
  node_task_api["Tasks API<br/>[views.py]"]
  node_routine_api["Routine API<br/>[views.py]"]
  node_resource_api["Resources and courses<br/>[views.py]"]
  node_ai_api["AI Lab services<br/>[services.py]"]
  node_communication_api["Communication API<br/>[views.py]"]
  node_notification_api["Notifications API<br/>[views.py]"]
  node_search_api["Search API<br/>[views.py]"]
  node_admin_api["Administration API<br/>[views.py]"]
end

subgraph group_integrations["External services"]
  node_database[("PostgreSQL")]
  node_ai_providers{{"AI providers"}}
  node_file_storage[("File storage")]
end

node_student_actor(("Student"))
node_admin_actor(("Administrator"))

node_student_actor -->|"signs in"| node_auth_ui
node_admin_actor -->|"signs in"| node_auth_ui
node_auth_ui -->|"reports success"| node_auth_state
node_auth_state -->|"loads profile"| node_api_exports
node_auth_state -->|"selects role route"| node_app_routes
node_student_actor -->|"opens workspace"| node_app_routes
node_admin_actor -->|"opens workspace"| node_app_routes
node_app_routes -->|"routes to"| node_dashboard
node_app_routes -->|"routes to"| node_routine
node_app_routes -->|"routes to"| node_tasks
node_app_routes -->|"routes to"| node_vault
node_app_routes -->|"routes to"| node_ai_lab
node_app_routes -->|"routes to"| node_communication
node_app_routes -->|"routes to"| node_profile
node_app_routes -->|"routes to"| node_admin_ui
node_tasks -->|"fetches and updates"| node_api_exports
node_study_tracking -->|"records sessions"| node_api_exports
node_api_exports -.->|"uses requests"| node_api_client
node_api_client -.->|"sends API requests"| node_account_api
node_api_client -.->|"sends API requests"| node_task_api
node_api_client -.->|"sends API requests"| node_routine_api
node_api_client -.->|"sends API requests"| node_resource_api
node_api_client -.->|"sends API requests"| node_ai_api
node_api_client -.->|"sends API requests"| node_communication_api
node_api_client -.->|"sends API requests"| node_notification_api
node_api_client -.->|"sends API requests"| node_search_api
node_api_client -.->|"sends API requests"| node_admin_api
node_task_api -.->|"persists domain data"| node_database
node_routine_api -.->|"persists domain data"| node_database
node_resource_api -.->|"stores uploads"| node_file_storage
node_ai_api -.->|"requests generation"| node_ai_providers

click node_auth_ui "https://github.com/shoaibsikder/scholars-canvas/blob/main/frontend/src/routes/AuthRoutes.jsx"
click node_auth_state "https://github.com/shoaibsikder/scholars-canvas/blob/main/frontend/src/context/AuthContext.jsx"
click node_app_routes "https://github.com/shoaibsikder/scholars-canvas/blob/main/frontend/src/App.jsx"
click node_api_client "https://github.com/shoaibsikder/scholars-canvas/blob/main/frontend/src/api/client.js"
click node_api_exports "https://github.com/shoaibsikder/scholars-canvas/blob/main/frontend/src/api/index.js"
click node_dashboard "https://github.com/shoaibsikder/scholars-canvas/blob/main/frontend/src/features/normal-user/dashboard/DashboardPage.jsx"
click node_routine "https://github.com/shoaibsikder/scholars-canvas/blob/main/frontend/src/features/normal-user/routine/RoutinePage.jsx"
click node_tasks "https://github.com/shoaibsikder/scholars-canvas/blob/main/frontend/src/features/normal-user/tasks/TasksPage.jsx"
click node_study_tracking "https://github.com/shoaibsikder/scholars-canvas/blob/main/frontend/src/hooks/useStudyTimeTracker.js"
click node_vault "https://github.com/shoaibsikder/scholars-canvas/blob/main/frontend/src/features/normal-user/resources/VaultPage.jsx"
click node_ai_lab "https://github.com/shoaibsikder/scholars-canvas/blob/main/frontend/src/features/normal-user/ai-tools/AILabPage.jsx"
click node_communication "https://github.com/shoaibsikder/scholars-canvas/blob/main/frontend/src/features/normal-user/communication/CommunicationPage.jsx"
click node_profile "https://github.com/shoaibsikder/scholars-canvas/blob/main/frontend/src/features/normal-user/profile/ProfilePage.jsx"
click node_admin_ui "https://github.com/shoaibsikder/scholars-canvas/blob/main/frontend/src/features/administration/admin-panel/AdminPanelPage.jsx"
click node_account_api "https://github.com/shoaibsikder/scholars-canvas/blob/main/backend/apps/accounts/views.py"
click node_task_api "https://github.com/shoaibsikder/scholars-canvas/blob/main/backend/apps/tasks/views.py"
click node_routine_api "https://github.com/shoaibsikder/scholars-canvas/blob/main/backend/apps/routine/views.py"
click node_resource_api "https://github.com/shoaibsikder/scholars-canvas/blob/main/backend/apps/resources/views.py"
click node_ai_api "https://github.com/shoaibsikder/scholars-canvas/blob/main/backend/apps/ai_lab/services.py"
click node_communication_api "https://github.com/shoaibsikder/scholars-canvas/blob/main/backend/apps/communication/views.py"
click node_notification_api "https://github.com/shoaibsikder/scholars-canvas/blob/main/backend/apps/notification/views.py"
click node_search_api "https://github.com/shoaibsikder/scholars-canvas/blob/main/backend/apps/search/views.py"
click node_admin_api "https://github.com/shoaibsikder/scholars-canvas/blob/main/backend/apps/administration/views.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_auth_ui,node_auth_state,node_app_routes,node_api_client,node_api_exports toneBlue
class node_dashboard,node_routine,node_tasks,node_study_tracking,node_vault,node_ai_lab,node_communication,node_profile toneAmber
class node_admin_ui toneMint
class node_account_api,node_task_api,node_routine_api,node_resource_api,node_ai_api,node_communication_api,node_notification_api,node_search_api,node_admin_api toneRose
class node_database,node_ai_providers,node_file_storage,node_student_actor,node_admin_actor toneIndigo
```

## Components

### User experience

- [Authentication](https://github.com/shoaibsikder/scholars-canvas/blob/main/frontend/src/routes/AuthRoutes.jsx): `frontend/src/routes/AuthRoutes.jsx`
- [Auth and profile](https://github.com/shoaibsikder/scholars-canvas/blob/main/frontend/src/context/AuthContext.jsx): `frontend/src/context/AuthContext.jsx`
- [Role-aware routing](https://github.com/shoaibsikder/scholars-canvas/blob/main/frontend/src/App.jsx): `frontend/src/App.jsx`
- [API client](https://github.com/shoaibsikder/scholars-canvas/blob/main/frontend/src/api/client.js): `frontend/src/api/client.js`
- [API feature exports](https://github.com/shoaibsikder/scholars-canvas/blob/main/frontend/src/api/index.js): `frontend/src/api/index.js`

### Student workspace

- [Dashboard analytics](https://github.com/shoaibsikder/scholars-canvas/blob/main/frontend/src/features/normal-user/dashboard/DashboardPage.jsx): `frontend/src/features/normal-user/dashboard/DashboardPage.jsx`
- [Routine planner](https://github.com/shoaibsikder/scholars-canvas/blob/main/frontend/src/features/normal-user/routine/RoutinePage.jsx): `frontend/src/features/normal-user/routine/RoutinePage.jsx`
- [Task tracking](https://github.com/shoaibsikder/scholars-canvas/blob/main/frontend/src/features/normal-user/tasks/TasksPage.jsx): `frontend/src/features/normal-user/tasks/TasksPage.jsx`
- [Study time tracking](https://github.com/shoaibsikder/scholars-canvas/blob/main/frontend/src/hooks/useStudyTimeTracker.js): `frontend/src/hooks/useStudyTimeTracker.js`
- [Course resource vault](https://github.com/shoaibsikder/scholars-canvas/blob/main/frontend/src/features/normal-user/resources/VaultPage.jsx): `frontend/src/features/normal-user/resources/VaultPage.jsx`
- [AI study tools](https://github.com/shoaibsikder/scholars-canvas/blob/main/frontend/src/features/normal-user/ai-tools/AILabPage.jsx): `frontend/src/features/normal-user/ai-tools/AILabPage.jsx`
- [Communication](https://github.com/shoaibsikder/scholars-canvas/blob/main/frontend/src/features/normal-user/communication/CommunicationPage.jsx): `frontend/src/features/normal-user/communication/CommunicationPage.jsx`
- [Profile and settings](https://github.com/shoaibsikder/scholars-canvas/blob/main/frontend/src/features/normal-user/profile/ProfilePage.jsx): `frontend/src/features/normal-user/profile/ProfilePage.jsx`

### Administration

- [Admin workspace](https://github.com/shoaibsikder/scholars-canvas/blob/main/frontend/src/features/administration/admin-panel/AdminPanelPage.jsx): `frontend/src/features/administration/admin-panel/AdminPanelPage.jsx`

### Backend services

- [Accounts API](https://github.com/shoaibsikder/scholars-canvas/blob/main/backend/apps/accounts/views.py): `backend/apps/accounts/views.py`
- [Tasks API](https://github.com/shoaibsikder/scholars-canvas/blob/main/backend/apps/tasks/views.py): `backend/apps/tasks/views.py`
- [Routine API](https://github.com/shoaibsikder/scholars-canvas/blob/main/backend/apps/routine/views.py): `backend/apps/routine/views.py`
- [Resources and courses](https://github.com/shoaibsikder/scholars-canvas/blob/main/backend/apps/resources/views.py): `backend/apps/resources/views.py`
- [AI Lab services](https://github.com/shoaibsikder/scholars-canvas/blob/main/backend/apps/ai_lab/services.py): `backend/apps/ai_lab/services.py`
- [Communication API](https://github.com/shoaibsikder/scholars-canvas/blob/main/backend/apps/communication/views.py): `backend/apps/communication/views.py`
- [Notifications API](https://github.com/shoaibsikder/scholars-canvas/blob/main/backend/apps/notification/views.py): `backend/apps/notification/views.py`
- [Search API](https://github.com/shoaibsikder/scholars-canvas/blob/main/backend/apps/search/views.py): `backend/apps/search/views.py`
- [Administration API](https://github.com/shoaibsikder/scholars-canvas/blob/main/backend/apps/administration/views.py): `backend/apps/administration/views.py`

### External services

- **PostgreSQL**
- **AI providers**
- **File storage**

### Other components

- **Student**
- **Administrator**

## Connections

- Student → Authentication: signs in (evidence: `README.md`)
- Administrator → Authentication: signs in (evidence: `README.md`)
- Authentication → Auth and profile: reports success (evidence: `frontend/src/routes/AuthRoutes.jsx`)
- Auth and profile → API feature exports: loads profile (evidence: `frontend/src/context/AuthContext.jsx`)
- Auth and profile → Role-aware routing: selects role route (evidence: `frontend/src/context/AuthContext.jsx`)
- Student → Role-aware routing: opens workspace (evidence: `README.md`)
- Administrator → Role-aware routing: opens workspace (evidence: `README.md`)
- Role-aware routing → Dashboard analytics: routes to (evidence: `frontend/src/App.jsx`)
- Role-aware routing → Routine planner: routes to (evidence: `frontend/src/App.jsx`)
- Role-aware routing → Task tracking: routes to (evidence: `frontend/src/App.jsx`)
- Role-aware routing → Course resource vault: routes to (evidence: `frontend/src/App.jsx`)
- Role-aware routing → AI study tools: routes to (evidence: `frontend/src/App.jsx`)
- Role-aware routing → Communication: routes to (evidence: `frontend/src/App.jsx`)
- Role-aware routing → Profile and settings: routes to (evidence: `frontend/src/App.jsx`)
- Role-aware routing → Admin workspace: routes to (evidence: `frontend/src/App.jsx`)
- Task tracking → API feature exports: fetches and updates (evidence: `frontend/src/features/normal-user/tasks/TasksPage.jsx`)
- Study time tracking → API feature exports: records sessions (evidence: `frontend/src/hooks/useStudyTimeTracker.js`)
- API feature exports → API client: uses requests
- API client → Accounts API: sends API requests
- API client → Tasks API: sends API requests
- API client → Routine API: sends API requests
- API client → Resources and courses: sends API requests
- API client → AI Lab services: sends API requests
- API client → Communication API: sends API requests
- API client → Notifications API: sends API requests
- API client → Search API: sends API requests
- API client → Administration API: sends API requests
- Tasks API → PostgreSQL: persists domain data
- Routine API → PostgreSQL: persists domain data
- Resources and courses → File storage: stores uploads
- AI Lab services → AI providers: requests generation
