# anxhul77/gehuconnect architecture

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

- Interactive diagram: https://gitdiagram.com/anxhul77/gehuconnect
- Repository: https://github.com/anxhul77/gehuconnect

## Overview

GEHUConnect is an Expo/React Native campus app. Users authenticate, then navigate social feeds and communities, channel chat, marketplace listings and conversations, academic resources, and profile/ERP features. Screens call feature APIs backed by a shared Redux Toolkit query layer; uploads can pass through presigned storage. The README describes only the Expo starter and file-based routing, not product capabilities. Edges reflect sampled calls and SOURCE INDEX references; unsampled routes and integrations are represented without speculative wiring.

Main entry points: [`src/store/api.ts`](https://github.com/anxhul77/gehuconnect/blob/main/src/store/api.ts) (API transport), [`src/features/auth.api.ts`](https://github.com/anxhul77/gehuconnect/blob/main/src/features/auth.api.ts) (Authentication API), [`app/(drawer)/(tabs)/home/search/index.tsx`](https://github.com/anxhul77/gehuconnect/blob/main/app/(drawer)/(tabs)/home/search/index.tsx) (Home and search), [`src/utils/AcadmicMediaUplaodService.ts`](https://github.com/anxhul77/gehuconnect/blob/main/src/utils/AcadmicMediaUplaodService.ts) (Material upload flow)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_identity["Identity and profile"]
  node_authui["Sign in and register<br/>[registerform.tsx]"]
  node_authapi["Authentication API<br/>[auth.api.ts]"]
  node_profile["Profile and ERP<br/>[profile.tsx]"]
end

subgraph group_community["Communities and feeds"]
  node_search["Home and search<br/>[index.tsx]"]
  node_feed["Community posts<br/>[Feedpostcard.tsx]"]
  node_feedapi["Feed API<br/>[feed.api.ts]"]
  node_communityui["Community spaces<br/>[communities.tsx]"]
  node_communityapi["Community API<br/>[community.api.ts]"]
end

subgraph group_messaging["Messaging"]
  node_channel["Channel screen<br/>[&#91;channelId&#93;.tsx]"]
  node_messageui["Message views<br/>[MessageList.tsx]"]
  node_chatapi["Chat API<br/>[chat.api.ts]"]
  node_chatsocket["Chat socket<br/>[chat.socket.ts]"]
end

subgraph group_commerce["Campus marketplace"]
  node_market["Marketplace browsing<br/>[marketplace.tsx]"]
  node_marketapi["Marketplace API<br/>[marketplace.api.ts]"]
  node_marketchat["Marketplace chat<br/>[ChatPage.tsx]"]
  node_marketchatapi["Marketplace chat API"]
end

subgraph group_academics["Academic resources"]
  node_academicui["Academic resources<br/>[acadmecis.tsx]"]
  node_academicupload["Material upload flow"]
  node_academicapi["Academics API<br/>[acadmecis.api.ts]"]
end

subgraph group_platform["Shared app services"]
  node_authstate["Auth state<br/>[auth.slice.ts]"]
  node_transport["API transport<br/>[api.ts]"]
  node_tokenstore[("Secure token storage<br/>[storage.ts]")]
  node_objectstore["File storage upload<br/>[UploadToR2.ts]"]
end

node_student(("Student"))

node_student -->|"starts with"| node_authui
node_authui -.->|"authenticates via"| node_authapi
node_authapi -->|"uses"| node_transport
node_authapi -->|"updates"| node_authstate
node_authapi -->|"stores tokens"| node_tokenstore
node_profile -->|"reads"| node_authstate
node_profile -->|"requests ERP data"| node_transport
node_search -->|"queries"| node_feedapi
node_search -->|"queries"| node_communityapi
node_search -->|"queries"| node_marketapi
node_feed -->|"calls"| node_feedapi
node_communityapi -->|"extends"| node_transport
node_channel -->|"loads and sends"| node_chatapi
node_channel -->|"renders"| node_messageui
node_chatapi -->|"uses"| node_transport
node_market -.->|"queries"| node_marketapi
node_marketchat -->|"uses"| node_chatsocket
node_marketchat -->|"calls"| node_marketchatapi
node_academicui -->|"queries"| node_academicapi
node_academicui -->|"opens"| node_academicupload
node_academicupload -->|"uploads file"| node_objectstore
node_academicupload -->|"submits material"| node_academicapi
node_academicapi -->|"extends"| node_transport

click node_authui "https://github.com/anxhul77/gehuconnect/blob/main/app/(auth)/registerform.tsx"
click node_authapi "https://github.com/anxhul77/gehuconnect/blob/main/src/features/auth.api.ts"
click node_profile "https://github.com/anxhul77/gehuconnect/blob/main/app/(profile)/profile.tsx"
click node_authstate "https://github.com/anxhul77/gehuconnect/blob/main/src/store/slices/auth.slice.ts"
click node_transport "https://github.com/anxhul77/gehuconnect/blob/main/src/store/api.ts"
click node_tokenstore "https://github.com/anxhul77/gehuconnect/blob/main/src/lib/storage.ts"
click node_search "https://github.com/anxhul77/gehuconnect/blob/main/app/(drawer)/(tabs)/home/search/index.tsx"
click node_feed "https://github.com/anxhul77/gehuconnect/blob/main/app/components/CommunityPosts/Feedpostcard.tsx"
click node_feedapi "https://github.com/anxhul77/gehuconnect/blob/main/src/features/feed.api.ts"
click node_communityui "https://github.com/anxhul77/gehuconnect/blob/main/app/(drawer)/(tabs)/communities/communities.tsx"
click node_communityapi "https://github.com/anxhul77/gehuconnect/blob/main/src/features/community/community.api.ts"
click node_channel "https://github.com/anxhul77/gehuconnect/blob/main/app/channels/%5BchannelId%5D.tsx"
click node_messageui "https://github.com/anxhul77/gehuconnect/blob/main/app/components/messages/MessageList.tsx"
click node_chatapi "https://github.com/anxhul77/gehuconnect/blob/main/src/features/chat/chat.api.ts"
click node_chatsocket "https://github.com/anxhul77/gehuconnect/blob/main/src/features/chat/chat.socket.ts"
click node_market "https://github.com/anxhul77/gehuconnect/blob/main/app/(drawer)/(tabs)/marketplace.tsx"
click node_marketapi "https://github.com/anxhul77/gehuconnect/blob/main/src/features/marketplace.api.ts"
click node_marketchat "https://github.com/anxhul77/gehuconnect/blob/main/app/components/marketplace/ChatPage.tsx"
click node_marketchatapi "https://github.com/anxhul77/gehuconnect/blob/main/src/features/chat/marketplace-chat.api.ts"
click node_academicui "https://github.com/anxhul77/gehuconnect/blob/main/app/(drawer)/(tabs)/acadmecis.tsx"
click node_academicupload "https://github.com/anxhul77/gehuconnect/blob/main/src/utils/AcadmicMediaUplaodService.ts"
click node_academicapi "https://github.com/anxhul77/gehuconnect/blob/main/src/features/acadmecis.api.ts"
click node_objectstore "https://github.com/anxhul77/gehuconnect/blob/main/src/utils/UploadToR2.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_authui,node_authapi,node_profile toneBlue
class node_search,node_feed,node_feedapi,node_communityui,node_communityapi toneAmber
class node_channel,node_messageui,node_chatapi,node_chatsocket toneMint
class node_market,node_marketapi,node_marketchat,node_marketchatapi toneRose
class node_academicui,node_academicupload,node_academicapi,node_student toneIndigo
class node_authstate,node_transport,node_tokenstore,node_objectstore toneTeal
```

## Components

### Identity and profile

- [Sign in and register](https://github.com/anxhul77/gehuconnect/blob/main/app/(auth)/registerform.tsx): `app/(auth)/registerform.tsx`
- [Authentication API](https://github.com/anxhul77/gehuconnect/blob/main/src/features/auth.api.ts): `src/features/auth.api.ts`
- [Profile and ERP](https://github.com/anxhul77/gehuconnect/blob/main/app/(profile)/profile.tsx): `app/(profile)/profile.tsx`

### Communities and feeds

- [Home and search](https://github.com/anxhul77/gehuconnect/blob/main/app/(drawer)/(tabs)/home/search/index.tsx): `app/(drawer)/(tabs)/home/search/index.tsx`
- [Community posts](https://github.com/anxhul77/gehuconnect/blob/main/app/components/CommunityPosts/Feedpostcard.tsx): `app/components/CommunityPosts/Feedpostcard.tsx`
- [Feed API](https://github.com/anxhul77/gehuconnect/blob/main/src/features/feed.api.ts): `src/features/feed.api.ts`
- [Community spaces](https://github.com/anxhul77/gehuconnect/blob/main/app/(drawer)/(tabs)/communities/communities.tsx): `app/(drawer)/(tabs)/communities/communities.tsx`
- [Community API](https://github.com/anxhul77/gehuconnect/blob/main/src/features/community/community.api.ts): `src/features/community/community.api.ts`

### Messaging

- [Channel screen](https://github.com/anxhul77/gehuconnect/blob/main/app/channels/%5BchannelId%5D.tsx): `app/channels/[channelId].tsx`
- [Message views](https://github.com/anxhul77/gehuconnect/blob/main/app/components/messages/MessageList.tsx): `app/components/messages/MessageList.tsx`
- [Chat API](https://github.com/anxhul77/gehuconnect/blob/main/src/features/chat/chat.api.ts): `src/features/chat/chat.api.ts`
- [Chat socket](https://github.com/anxhul77/gehuconnect/blob/main/src/features/chat/chat.socket.ts): `src/features/chat/chat.socket.ts`

### Campus marketplace

- [Marketplace browsing](https://github.com/anxhul77/gehuconnect/blob/main/app/(drawer)/(tabs)/marketplace.tsx): `app/(drawer)/(tabs)/marketplace.tsx`
- [Marketplace API](https://github.com/anxhul77/gehuconnect/blob/main/src/features/marketplace.api.ts): `src/features/marketplace.api.ts`
- [Marketplace chat](https://github.com/anxhul77/gehuconnect/blob/main/app/components/marketplace/ChatPage.tsx): `app/components/marketplace/ChatPage.tsx`
- [Marketplace chat API](https://github.com/anxhul77/gehuconnect/blob/main/src/features/chat/marketplace-chat.api.ts): `src/features/chat/marketplace-chat.api.ts`

### Academic resources

- [Academic resources](https://github.com/anxhul77/gehuconnect/blob/main/app/(drawer)/(tabs)/acadmecis.tsx): `app/(drawer)/(tabs)/acadmecis.tsx`
- [Material upload flow](https://github.com/anxhul77/gehuconnect/blob/main/src/utils/AcadmicMediaUplaodService.ts): `src/utils/AcadmicMediaUplaodService.ts`
- [Academics API](https://github.com/anxhul77/gehuconnect/blob/main/src/features/acadmecis.api.ts): `src/features/acadmecis.api.ts`

### Shared app services

- [Auth state](https://github.com/anxhul77/gehuconnect/blob/main/src/store/slices/auth.slice.ts): `src/store/slices/auth.slice.ts`
- [API transport](https://github.com/anxhul77/gehuconnect/blob/main/src/store/api.ts): `src/store/api.ts`
- [Secure token storage](https://github.com/anxhul77/gehuconnect/blob/main/src/lib/storage.ts): `src/lib/storage.ts`
- [File storage upload](https://github.com/anxhul77/gehuconnect/blob/main/src/utils/UploadToR2.ts): `src/utils/UploadToR2.ts`

### Other components

- **Student**

## Connections

- Student → Sign in and register: starts with
- Sign in and register → Authentication API: authenticates via
- Authentication API → API transport: uses (evidence: `src/features/auth.api.ts`)
- Authentication API → Auth state: updates (evidence: `src/features/auth.api.ts`)
- Authentication API → Secure token storage: stores tokens (evidence: `src/features/auth.api.ts`)
- Profile and ERP → Auth state: reads (evidence: `app/(profile)/profile.tsx`)
- Profile and ERP → API transport: requests ERP data (evidence: `app/(profile)/profile.tsx`)
- Home and search → Feed API: queries (evidence: `app/(drawer)/(tabs)/home/search/index.tsx`)
- Home and search → Community API: queries (evidence: `app/(drawer)/(tabs)/home/search/index.tsx`)
- Home and search → Marketplace API: queries (evidence: `app/(drawer)/(tabs)/home/search/index.tsx`)
- Community posts → Feed API: calls (evidence: `app/components/CommunityPosts/Feedpostcard.tsx`)
- Community API → API transport: extends (evidence: `src/features/community/community.api.ts`)
- Channel screen → Chat API: loads and sends (evidence: `app/channels/[channelId].tsx`)
- Channel screen → Message views: renders (evidence: `app/channels/[channelId].tsx`)
- Chat API → API transport: uses (evidence: `src/features/chat/chat.api.ts`)
- Marketplace browsing → Marketplace API: queries
- Marketplace chat → Chat socket: uses (evidence: `app/components/marketplace/ChatPage.tsx`)
- Marketplace chat → Marketplace chat API: calls (evidence: `app/components/marketplace/ChatPage.tsx`)
- Academic resources → Academics API: queries (evidence: `app/(drawer)/(tabs)/acadmecis.tsx`)
- Academic resources → Material upload flow: opens (evidence: `app/(drawer)/(tabs)/acadmecis.tsx`)
- Material upload flow → File storage upload: uploads file (evidence: `src/utils/AcadmicMediaUplaodService.ts`)
- Material upload flow → Academics API: submits material (evidence: `src/utils/AcadmicMediaUplaodService.ts`)
- Academics API → API transport: extends (evidence: `src/features/acadmecis.api.ts`)
