# amilkamija/mindlink architecture

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

- Interactive diagram: https://gitdiagram.com/amilkamija/mindlink
- Repository: https://github.com/amilkamija/mindlink

## Overview

MindLink is a PHP/MySQL platform for academic project team formation and student collaboration. Students complete profiles, discover projects or matching teammates, apply to roles, and communicate; project owners manage applications and teams. Separate branches support notifications, search, post-project matching, and administrative moderation and appeals. The README describes these capabilities, while sampled files show session handling, profile/search queries, application updates, messaging, and admin review. Several domain pages are indexed but unsampled, so their internal links are shown only where the README documents the workflow.

Main entry points: [`pages/messages.php`](https://github.com/amilkamija/mindlink/blob/main/pages/messages.php) (Messaging), [`pages/applications.php`](https://github.com/amilkamija/mindlink/blob/main/pages/applications.php) (Application Decisions), [`pages/admin.php`](https://github.com/amilkamija/mindlink/blob/main/pages/admin.php) (Admin Moderation), [`pages/login.php`](https://github.com/amilkamija/mindlink/blob/main/pages/login.php) (Authentication)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_identity["Identity and Profiles"]
  node_session["Session Security<br/>[session.php]"]
  node_auth["Authentication<br/>[login.php]"]
  node_signup["Registration<br/>[sign_up.php]"]
  node_profile["Profile Onboarding<br/>[profile.php]"]
  node_view_profile["Profile Completion<br/>[view_profile.php]"]
  node_settings["Account Settings<br/>[settings.php]"]
end

subgraph group_projects["Projects and Matching"]
  node_search["Search<br/>[search.php]"]
  node_projects_catalog["Project Discovery<br/>[projects.php]"]
  node_project_details["Project Details"]
  node_project_create["Project Creation<br/>[create_project.php]"]
  node_project_edit["Project Lifecycle<br/>[edit_project.php]"]
  node_apply["Role Applications<br/>[apply.php]"]
  node_applications["Application Decisions<br/>[applications.php]"]
  node_matching["Teammate Matching<br/>[matches.php]"]
  node_my_projects["Team Dashboard<br/>[my_projects.php]"]
end

subgraph group_collaboration["Collaboration"]
  node_messaging["Messaging<br/>[messages.php]"]
  node_notifications["Notifications<br/>[notifications.php]"]
  node_polling["Project Polling"]
end

subgraph group_governance["Governance"]
  node_reporting["User Reporting<br/>[report.php]"]
  node_admin["Admin Moderation<br/>[admin.php]"]
  node_chat_logs["Chat Log Review<br/>[chat_logs.php]"]
end

node_student(("Student"))
node_admin_actor(("Administrator"))
node_database[("MySQL Database")]

node_student -->|"registers"| node_signup
node_signup -->|"completes profile"| node_profile
node_student -->|"signs in"| node_auth
node_auth -->|"uses sessions"| node_session
node_profile -->|"reads and writes"| node_database
node_view_profile -->|"updates profile"| node_database
node_student -->|"searches"| node_search
node_search -->|"queries projects and users"| node_database
node_student -->|"browses"| node_projects_catalog
node_projects_catalog -.->|"opens project"| node_project_details
node_student -->|"posts idea"| node_project_create
node_project_create -->|"creates project"| node_database
node_project_edit -->|"updates lifecycle"| node_database
node_student -->|"applies to role"| node_apply
node_applications -->|"updates applications"| node_database
node_applications -->|"creates notification"| node_notifications
node_student -->|"finds teammates"| node_matching
node_matching -->|"queries match data"| node_database
node_student -->|"views teams"| node_my_projects
node_applications -.->|"starts group channel"| node_messaging
node_student -->|"sends messages"| node_messaging
node_messaging -->|"reads and writes messages"| node_database
node_messaging -->|"polls updates"| node_polling
node_student -->|"submits report"| node_reporting
node_reporting -.->|"records report"| node_database
node_admin_actor -->|"reviews cases"| node_admin
node_admin -->|"reviews and moderates"| node_database
node_admin -->|"reviews chat logs"| node_chat_logs
node_student -->|"manages account"| node_settings
node_notifications -->|"reads notifications"| node_database

click node_session "https://github.com/amilkamija/mindlink/blob/main/config/session.php"
click node_auth "https://github.com/amilkamija/mindlink/blob/main/pages/login.php"
click node_signup "https://github.com/amilkamija/mindlink/blob/main/pages/sign_up.php"
click node_profile "https://github.com/amilkamija/mindlink/blob/main/pages/profile.php"
click node_view_profile "https://github.com/amilkamija/mindlink/blob/main/pages/view_profile.php"
click node_search "https://github.com/amilkamija/mindlink/blob/main/pages/search.php"
click node_projects_catalog "https://github.com/amilkamija/mindlink/blob/main/pages/projects.php"
click node_project_details "https://github.com/amilkamija/mindlink/blob/main/pages/project_details.php"
click node_project_create "https://github.com/amilkamija/mindlink/blob/main/pages/create_project.php"
click node_project_edit "https://github.com/amilkamija/mindlink/blob/main/pages/edit_project.php"
click node_apply "https://github.com/amilkamija/mindlink/blob/main/pages/apply.php"
click node_applications "https://github.com/amilkamija/mindlink/blob/main/pages/applications.php"
click node_matching "https://github.com/amilkamija/mindlink/blob/main/pages/matches.php"
click node_my_projects "https://github.com/amilkamija/mindlink/blob/main/pages/my_projects.php"
click node_messaging "https://github.com/amilkamija/mindlink/blob/main/pages/messages.php"
click node_notifications "https://github.com/amilkamija/mindlink/blob/main/pages/notifications.php"
click node_polling "https://github.com/amilkamija/mindlink/blob/main/pages/check_new_projects.php"
click node_reporting "https://github.com/amilkamija/mindlink/blob/main/pages/report.php"
click node_admin "https://github.com/amilkamija/mindlink/blob/main/pages/admin.php"
click node_chat_logs "https://github.com/amilkamija/mindlink/blob/main/pages/chat_logs.php"
click node_settings "https://github.com/amilkamija/mindlink/blob/main/pages/settings.php"

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_session,node_auth,node_signup,node_profile,node_view_profile,node_settings toneBlue
class node_search,node_projects_catalog,node_project_details,node_project_create,node_project_edit,node_apply,node_applications,node_matching,node_my_projects,node_database toneAmber
class node_messaging,node_notifications,node_polling toneMint
class node_reporting,node_admin,node_chat_logs toneRose
class node_student,node_admin_actor toneIndigo
```

## Components

### Identity and Profiles

- [Session Security](https://github.com/amilkamija/mindlink/blob/main/config/session.php): `config/session.php`
- [Authentication](https://github.com/amilkamija/mindlink/blob/main/pages/login.php): `pages/login.php`
- [Registration](https://github.com/amilkamija/mindlink/blob/main/pages/sign_up.php): `pages/sign_up.php`
- [Profile Onboarding](https://github.com/amilkamija/mindlink/blob/main/pages/profile.php): `pages/profile.php`
- [Profile Completion](https://github.com/amilkamija/mindlink/blob/main/pages/view_profile.php): `pages/view_profile.php`
- [Account Settings](https://github.com/amilkamija/mindlink/blob/main/pages/settings.php): `pages/settings.php`

### Projects and Matching

- [Search](https://github.com/amilkamija/mindlink/blob/main/pages/search.php): `pages/search.php`
- [Project Discovery](https://github.com/amilkamija/mindlink/blob/main/pages/projects.php): `pages/projects.php`
- [Project Details](https://github.com/amilkamija/mindlink/blob/main/pages/project_details.php): `pages/project_details.php`
- [Project Creation](https://github.com/amilkamija/mindlink/blob/main/pages/create_project.php): `pages/create_project.php`
- [Project Lifecycle](https://github.com/amilkamija/mindlink/blob/main/pages/edit_project.php): `pages/edit_project.php`
- [Role Applications](https://github.com/amilkamija/mindlink/blob/main/pages/apply.php): `pages/apply.php`
- [Application Decisions](https://github.com/amilkamija/mindlink/blob/main/pages/applications.php): `pages/applications.php`
- [Teammate Matching](https://github.com/amilkamija/mindlink/blob/main/pages/matches.php): `pages/matches.php`
- [Team Dashboard](https://github.com/amilkamija/mindlink/blob/main/pages/my_projects.php): `pages/my_projects.php`

### Collaboration

- [Messaging](https://github.com/amilkamija/mindlink/blob/main/pages/messages.php): `pages/messages.php`
- [Notifications](https://github.com/amilkamija/mindlink/blob/main/pages/notifications.php): `pages/notifications.php`
- [Project Polling](https://github.com/amilkamija/mindlink/blob/main/pages/check_new_projects.php): `pages/check_new_projects.php`

### Governance

- [User Reporting](https://github.com/amilkamija/mindlink/blob/main/pages/report.php): `pages/report.php`
- [Admin Moderation](https://github.com/amilkamija/mindlink/blob/main/pages/admin.php): `pages/admin.php`
- [Chat Log Review](https://github.com/amilkamija/mindlink/blob/main/pages/chat_logs.php): `pages/chat_logs.php`

### Other components

- **Student**
- **Administrator**
- **MySQL Database**

## Connections

- Student → Registration: registers (evidence: `README.md`)
- Registration → Profile Onboarding: completes profile (evidence: `README.md`)
- Student → Authentication: signs in (evidence: `README.md`)
- Authentication → Session Security: uses sessions (evidence: `pages/login.php`)
- Profile Onboarding → MySQL Database: reads and writes (evidence: `pages/profile.php`)
- Profile Completion → MySQL Database: updates profile (evidence: `README.md`)
- Student → Search: searches
- Search → MySQL Database: queries projects and users (evidence: `pages/search.php`)
- Student → Project Discovery: browses (evidence: `README.md`)
- Project Discovery → Project Details: opens project
- Student → Project Creation: posts idea (evidence: `README.md`)
- Project Creation → MySQL Database: creates project (evidence: `README.md`)
- Project Lifecycle → MySQL Database: updates lifecycle (evidence: `README.md`)
- Student → Role Applications: applies to role (evidence: `README.md`)
- Application Decisions → MySQL Database: updates applications (evidence: `pages/applications.php`)
- Application Decisions → Notifications: creates notification (evidence: `pages/applications.php`)
- Student → Teammate Matching: finds teammates (evidence: `README.md`)
- Teammate Matching → MySQL Database: queries match data (evidence: `pages/matches.php`)
- Student → Team Dashboard: views teams (evidence: `README.md`)
- Application Decisions → Messaging: starts group channel
- Student → Messaging: sends messages (evidence: `README.md`)
- Messaging → MySQL Database: reads and writes messages (evidence: `pages/messages.php`)
- Messaging → Project Polling: polls updates (evidence: `README.md`)
- Student → User Reporting: submits report (evidence: `README.md`)
- User Reporting → MySQL Database: records report
- Administrator → Admin Moderation: reviews cases (evidence: `pages/admin.php`)
- Admin Moderation → MySQL Database: reviews and moderates (evidence: `pages/admin.php`)
- Admin Moderation → Chat Log Review: reviews chat logs (evidence: `README.md`)
- Student → Account Settings: manages account
- Notifications → MySQL Database: reads notifications
