# abdullahalmukit/unigo architecture

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

- Interactive diagram: https://gitdiagram.com/abdullahalmukit/unigo
- Repository: https://github.com/abdullahalmukit/unigo

## Overview

UniGo is a university-verified student marketplace PWA for rides, carpools, food delivery, and campus services. Students enter through authentication and student verification, browse or create requests, match with peers, coordinate and complete activities, then use reviews, disputes, and support for trust and resolution. The client also exposes account, notification, and admin workflows. The README documents major capabilities whose implementations were not sampled; those are represented at their existing feature-directory paths. Source excerpts provide only partial wiring evidence, so uncertain runtime links are omitted.

Main entry points: [`client/src/app/routes.tsx`](https://github.com/abdullahalmukit/unigo/blob/main/client/src/app/routes.tsx) (App routes), [`server/src/modules/matching/matching.service.ts`](https://github.com/abdullahalmukit/unigo/blob/main/server/src/modules/matching/matching.service.ts) (Cross-feature matching), [`server/src/modules/activities/engine.ts`](https://github.com/abdullahalmukit/unigo/blob/main/server/src/modules/activities/engine.ts) (Activity state engine), [`client/src/features/auth`](https://github.com/abdullahalmukit/unigo/tree/main/client/src/features/auth) (Sign-in and registration)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_client["Student app"]
  node_router["App routes<br/>[routes.tsx]"]
  node_home["Home and content"]
end

subgraph group_identity["Identity and trust"]
  node_authui["Sign-in and registration"]
  node_verifyui["Student verification"]
  node_profileui["Profile and account"]
  node_authsvc["Authentication"]
  node_verification["Verification workflows"]
end

subgraph group_market["Marketplace"]
  node_rideui["Ride sharing"]
  node_carpoolui["Carpool"]
  node_foodui["Food delivery"]
  node_serviceui["Campus services"]
  node_allservices["Unified requests"]
  node_matchingui["Suggested matches"]
  node_ride["Ride operations"]
  node_carpool["Carpool operations<br/>[carpool.service.ts]"]
  node_food["Food operations"]
  node_service["Service operations<br/>[service.service.ts]"]
  node_matching["Cross-feature matching"]
end

subgraph group_platform["Shared platform"]
  node_activityui["Activity and reviews"]
  node_chatui["Inbox and chat"]
  node_notificationsui["Notifications"]
  node_activities["Activity state engine<br/>[engine.ts]"]
  node_chat["Chat service"]
  node_reviews["Blind reviews<br/>[reviews.service.ts]"]
  node_disputes["Disputes and reports"]
  node_support["Support desk"]
  node_feed["Activity feed"]
  node_notifications["Notification delivery"]
  node_jobs["Scheduled workflows"]
  node_stats["User stats<br/>[stats.service.ts]"]
  node_database[("MySQL data store<br/>[prisma.ts]")]
end

subgraph group_admin["Administration"]
  node_adminui["Admin console"]
  node_admin["Admin services"]
end

node_student(("Student"))

node_student -->|"uses"| node_router
node_router -->|"routes to"| node_home
node_router -->|"routes to"| node_allservices
node_router -->|"routes to"| node_activityui
node_router -->|"routes to"| node_chatui
node_router -->|"routes to"| node_notificationsui
node_router -->|"routes to"| node_profileui
node_router -->|"routes to"| node_authui
node_router -->|"routes to"| node_verifyui
node_student -->|"requests rides"| node_rideui
node_student -->|"joins carpools"| node_carpoolui
node_student -->|"orders food"| node_foodui
node_student -->|"requests help"| node_serviceui
node_student -->|"signs in"| node_authui
node_authsvc -->|"reads and writes"| node_database
node_matching -->|"searches rides"| node_ride
node_matching -->|"searches carpools"| node_carpool
node_matching -->|"searches food"| node_food
node_activities -->|"persists transitions"| node_database
node_activities -->|"posts transition messages"| node_chat
node_reviews -->|"notifies reviewers"| node_notifications
node_matching -->|"fills person stats"| node_stats
node_adminui -->|"administers platform"| node_admin
node_student -->|"files disputes"| node_disputes
node_student -->|"requests support"| node_support

click node_router "https://github.com/abdullahalmukit/unigo/blob/main/client/src/app/routes.tsx"
click node_home "https://github.com/abdullahalmukit/unigo/tree/main/client/src/features/home"
click node_authui "https://github.com/abdullahalmukit/unigo/tree/main/client/src/features/auth"
click node_verifyui "https://github.com/abdullahalmukit/unigo/tree/main/client/src/features/verification"
click node_profileui "https://github.com/abdullahalmukit/unigo/tree/main/client/src/features/account"
click node_rideui "https://github.com/abdullahalmukit/unigo/tree/main/client/src/features/ride"
click node_carpoolui "https://github.com/abdullahalmukit/unigo/tree/main/client/src/features/carpool"
click node_foodui "https://github.com/abdullahalmukit/unigo/tree/main/client/src/features/food"
click node_serviceui "https://github.com/abdullahalmukit/unigo/tree/main/client/src/features/service"
click node_allservices "https://github.com/abdullahalmukit/unigo/tree/main/client/src/features/all-services"
click node_matchingui "https://github.com/abdullahalmukit/unigo/tree/main/client/src/features/matching"
click node_activityui "https://github.com/abdullahalmukit/unigo/tree/main/client/src/features/activity"
click node_chatui "https://github.com/abdullahalmukit/unigo/tree/main/client/src/features/inbox"
click node_notificationsui "https://github.com/abdullahalmukit/unigo/tree/main/client/src/features/notifications"
click node_adminui "https://github.com/abdullahalmukit/unigo/tree/main/client/src/features/admin"
click node_authsvc "https://github.com/abdullahalmukit/unigo/tree/main/server/src/modules/auth"
click node_verification "https://github.com/abdullahalmukit/unigo/tree/main/server/src/modules/verification"
click node_ride "https://github.com/abdullahalmukit/unigo/tree/main/server/src/modules/ride"
click node_carpool "https://github.com/abdullahalmukit/unigo/blob/main/server/src/modules/carpool/carpool.service.ts"
click node_food "https://github.com/abdullahalmukit/unigo/tree/main/server/src/modules/food"
click node_service "https://github.com/abdullahalmukit/unigo/blob/main/server/src/modules/service/service.service.ts"
click node_matching "https://github.com/abdullahalmukit/unigo/blob/main/server/src/modules/matching/matching.service.ts"
click node_activities "https://github.com/abdullahalmukit/unigo/blob/main/server/src/modules/activities/engine.ts"
click node_chat "https://github.com/abdullahalmukit/unigo/tree/main/server/src/modules/chat"
click node_reviews "https://github.com/abdullahalmukit/unigo/blob/main/server/src/modules/reviews/reviews.service.ts"
click node_disputes "https://github.com/abdullahalmukit/unigo/tree/main/server/src/modules/disputes"
click node_support "https://github.com/abdullahalmukit/unigo/tree/main/server/src/modules/support"
click node_feed "https://github.com/abdullahalmukit/unigo/tree/main/server/src/modules/activity-feed"
click node_notifications "https://github.com/abdullahalmukit/unigo/tree/main/server/src/modules/notifications"
click node_admin "https://github.com/abdullahalmukit/unigo/tree/main/server/src/modules/admin"
click node_jobs "https://github.com/abdullahalmukit/unigo/tree/main/server/src/jobs"
click node_stats "https://github.com/abdullahalmukit/unigo/blob/main/server/src/modules/users/stats.service.ts"
click node_database "https://github.com/abdullahalmukit/unigo/blob/main/server/src/lib/prisma.ts"

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_router,node_home toneBlue
class node_authui,node_verifyui,node_profileui,node_authsvc,node_verification toneAmber
class node_rideui,node_carpoolui,node_foodui,node_serviceui,node_allservices,node_matchingui,node_ride,node_carpool,node_food,node_service,node_matching toneMint
class node_activityui,node_chatui,node_notificationsui,node_activities,node_chat,node_reviews,node_disputes,node_support,node_feed,node_notifications,node_jobs,node_stats,node_database toneRose
class node_adminui,node_admin,node_student toneIndigo
```

## Components

### Student app

- [App routes](https://github.com/abdullahalmukit/unigo/blob/main/client/src/app/routes.tsx): `client/src/app/routes.tsx`
- [Home and content](https://github.com/abdullahalmukit/unigo/tree/main/client/src/features/home): `client/src/features/home`

### Identity and trust

- [Sign-in and registration](https://github.com/abdullahalmukit/unigo/tree/main/client/src/features/auth): `client/src/features/auth`
- [Student verification](https://github.com/abdullahalmukit/unigo/tree/main/client/src/features/verification): `client/src/features/verification`
- [Profile and account](https://github.com/abdullahalmukit/unigo/tree/main/client/src/features/account): `client/src/features/account`
- [Authentication](https://github.com/abdullahalmukit/unigo/tree/main/server/src/modules/auth): `server/src/modules/auth`
- [Verification workflows](https://github.com/abdullahalmukit/unigo/tree/main/server/src/modules/verification): `server/src/modules/verification`

### Marketplace

- [Ride sharing](https://github.com/abdullahalmukit/unigo/tree/main/client/src/features/ride): `client/src/features/ride`
- [Carpool](https://github.com/abdullahalmukit/unigo/tree/main/client/src/features/carpool): `client/src/features/carpool`
- [Food delivery](https://github.com/abdullahalmukit/unigo/tree/main/client/src/features/food): `client/src/features/food`
- [Campus services](https://github.com/abdullahalmukit/unigo/tree/main/client/src/features/service): `client/src/features/service`
- [Unified requests](https://github.com/abdullahalmukit/unigo/tree/main/client/src/features/all-services): `client/src/features/all-services`
- [Suggested matches](https://github.com/abdullahalmukit/unigo/tree/main/client/src/features/matching): `client/src/features/matching`
- [Ride operations](https://github.com/abdullahalmukit/unigo/tree/main/server/src/modules/ride): `server/src/modules/ride`
- [Carpool operations](https://github.com/abdullahalmukit/unigo/blob/main/server/src/modules/carpool/carpool.service.ts): `server/src/modules/carpool/carpool.service.ts`
- [Food operations](https://github.com/abdullahalmukit/unigo/tree/main/server/src/modules/food): `server/src/modules/food`
- [Service operations](https://github.com/abdullahalmukit/unigo/blob/main/server/src/modules/service/service.service.ts): `server/src/modules/service/service.service.ts`
- [Cross-feature matching](https://github.com/abdullahalmukit/unigo/blob/main/server/src/modules/matching/matching.service.ts): `server/src/modules/matching/matching.service.ts`

### Shared platform

- [Activity and reviews](https://github.com/abdullahalmukit/unigo/tree/main/client/src/features/activity): `client/src/features/activity`
- [Inbox and chat](https://github.com/abdullahalmukit/unigo/tree/main/client/src/features/inbox): `client/src/features/inbox`
- [Notifications](https://github.com/abdullahalmukit/unigo/tree/main/client/src/features/notifications): `client/src/features/notifications`
- [Activity state engine](https://github.com/abdullahalmukit/unigo/blob/main/server/src/modules/activities/engine.ts): `server/src/modules/activities/engine.ts`
- [Chat service](https://github.com/abdullahalmukit/unigo/tree/main/server/src/modules/chat): `server/src/modules/chat`
- [Blind reviews](https://github.com/abdullahalmukit/unigo/blob/main/server/src/modules/reviews/reviews.service.ts): `server/src/modules/reviews/reviews.service.ts`
- [Disputes and reports](https://github.com/abdullahalmukit/unigo/tree/main/server/src/modules/disputes): `server/src/modules/disputes`
- [Support desk](https://github.com/abdullahalmukit/unigo/tree/main/server/src/modules/support): `server/src/modules/support`
- [Activity feed](https://github.com/abdullahalmukit/unigo/tree/main/server/src/modules/activity-feed): `server/src/modules/activity-feed`
- [Notification delivery](https://github.com/abdullahalmukit/unigo/tree/main/server/src/modules/notifications): `server/src/modules/notifications`
- [Scheduled workflows](https://github.com/abdullahalmukit/unigo/tree/main/server/src/jobs): `server/src/jobs`
- [User stats](https://github.com/abdullahalmukit/unigo/blob/main/server/src/modules/users/stats.service.ts): `server/src/modules/users/stats.service.ts`
- [MySQL data store](https://github.com/abdullahalmukit/unigo/blob/main/server/src/lib/prisma.ts): `server/src/lib/prisma.ts`

### Administration

- [Admin console](https://github.com/abdullahalmukit/unigo/tree/main/client/src/features/admin): `client/src/features/admin`
- [Admin services](https://github.com/abdullahalmukit/unigo/tree/main/server/src/modules/admin): `server/src/modules/admin`

### Other components

- **Student**

## Connections

- Student → App routes: uses
- App routes → Home and content: routes to (evidence: `client/src/app/routes.tsx`)
- App routes → Unified requests: routes to (evidence: `client/src/app/routes.tsx`)
- App routes → Activity and reviews: routes to (evidence: `client/src/app/routes.tsx`)
- App routes → Inbox and chat: routes to (evidence: `client/src/app/routes.tsx`)
- App routes → Notifications: routes to (evidence: `client/src/app/routes.tsx`)
- App routes → Profile and account: routes to (evidence: `client/src/app/routes.tsx`)
- App routes → Sign-in and registration: routes to (evidence: `client/src/app/routes.tsx`)
- App routes → Student verification: routes to (evidence: `client/src/app/routes.tsx`)
- Student → Ride sharing: requests rides
- Student → Carpool: joins carpools
- Student → Food delivery: orders food
- Student → Campus services: requests help
- Student → Sign-in and registration: signs in
- Authentication → MySQL data store: reads and writes (evidence: `server/src/modules/auth/auth.service.ts`)
- Cross-feature matching → Ride operations: searches rides (evidence: `server/src/modules/matching/matching.service.ts`)
- Cross-feature matching → Carpool operations: searches carpools (evidence: `server/src/modules/matching/matching.service.ts`)
- Cross-feature matching → Food operations: searches food (evidence: `server/src/modules/matching/matching.service.ts`)
- Activity state engine → MySQL data store: persists transitions (evidence: `server/src/modules/activities/engine.ts`)
- Activity state engine → Chat service: posts transition messages (evidence: `server/src/modules/activities/engine.ts`)
- Blind reviews → Notification delivery: notifies reviewers (evidence: `server/src/modules/reviews/reviews.service.ts`)
- Cross-feature matching → User stats: fills person stats (evidence: `server/src/modules/matching/matching.service.ts`)
- Admin console → Admin services: administers platform
- Student → Disputes and reports: files disputes
- Student → Support desk: requests support
