# junthean/network-engineer-platform architecture

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

- Interactive diagram: https://gitdiagram.com/junthean/network-engineer-platform
- Repository: https://github.com/junthean/network-engineer-platform

## Overview

Network-Engineer-Platform is a React-based professional networking community. Users enter through the app shell, which selects pages from the current route and provides shared authentication and social state. The main feature areas visible in the repository include profiles and member discovery, network relationships, posts and activity, direct messaging, and technical resources and labs. Source excerpts establish routing, provider setup, and several Supabase-backed state services; some feature-page internals are unsampled, so their links are limited to the app’s explicit routing.

Main entry points: [`App.tsx`](https://github.com/junthean/network-engineer-platform/blob/main/App.tsx) (App router), [`supabase.ts`](https://github.com/junthean/network-engineer-platform/blob/main/supabase.ts) (Supabase backend), [`AuthContext.tsx`](https://github.com/junthean/network-engineer-platform/blob/main/AuthContext.tsx) (Authentication), [`MessageContext.tsx`](https://github.com/junthean/network-engineer-platform/blob/main/MessageContext.tsx) (Message state)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_app["App shell"]
  node_app["App router<br/>[App.tsx]"]
  node_router["Route state<br/>[RouterContext.tsx]"]
end

subgraph group_identity["Identity and state"]
  node_authui["Sign-in UI<br/>[AuthModal.tsx]"]
  node_auth["Authentication<br/>[AuthContext.tsx]"]
  node_follow["Follow state<br/>[FollowContext.tsx]"]
  node_presence["Presence state"]
  node_notifications["Notification state"]
  node_activitystate["Activity state"]
  node_messagesstate["Message state<br/>[MessageContext.tsx]"]
end

subgraph group_community["Community features"]
  node_profile["My profile<br/>[Profile.tsx]"]
  node_userprofile["Member profile<br/>[UserProfile.tsx]"]
  node_members["Member directory<br/>[Members.tsx]"]
  node_network["Network<br/>[Network.tsx]"]
  node_activity["Activity feed<br/>[Activity.tsx]"]
  node_messages["Direct messages<br/>[Messages.tsx]"]
  node_postdetail["Post detail<br/>[PostDetail.tsx]"]
  node_discussions["Discussions<br/>[Discussions.tsx]"]
  node_search["Search<br/>[SearchPage.tsx]"]
end

subgraph group_knowledge["Technical content"]
  node_resources["Resources<br/>[Resources.tsx]"]
  node_labs["Engineering labs<br/>[Labs.tsx]"]
end

node_supabase[("Supabase backend<br/>[supabase.ts]")]

node_app -->|"reads route"| node_router
node_app -->|"reads session"| node_auth
node_app -->|"opens"| node_authui
node_app -->|"routes to"| node_postdetail
node_app -->|"routes to"| node_resources
node_app -->|"routes to"| node_labs
node_app -->|"routes to"| node_search
node_app -->|"routes to"| node_profile
node_app -->|"routes to"| node_userprofile
node_app -->|"routes to"| node_members
node_app -->|"routes to"| node_network
node_app -->|"routes to"| node_messages
node_app -->|"routes to"| node_activity
node_app -.->|"routes to"| node_discussions
node_auth -->|"reads auth and profiles"| node_supabase
node_follow -->|"reads and updates"| node_supabase
node_presence -->|"reads and updates"| node_supabase
node_notifications -->|"reads and updates"| node_supabase
node_activitystate -->|"reads activity"| node_supabase
node_messagesstate -->|"reads messages"| node_supabase
node_authui -.->|"uses auth"| node_auth
node_messagesstate -->|"navigates to messages"| node_router

click node_app "https://github.com/junthean/network-engineer-platform/blob/main/App.tsx"
click node_router "https://github.com/junthean/network-engineer-platform/blob/main/RouterContext.tsx"
click node_authui "https://github.com/junthean/network-engineer-platform/blob/main/AuthModal.tsx"
click node_auth "https://github.com/junthean/network-engineer-platform/blob/main/AuthContext.tsx"
click node_follow "https://github.com/junthean/network-engineer-platform/blob/main/FollowContext.tsx"
click node_presence "https://github.com/junthean/network-engineer-platform/blob/main/PresenceContext.tsx"
click node_notifications "https://github.com/junthean/network-engineer-platform/blob/main/NotificationContext.tsx"
click node_activitystate "https://github.com/junthean/network-engineer-platform/blob/main/ActivityContext.tsx"
click node_messagesstate "https://github.com/junthean/network-engineer-platform/blob/main/MessageContext.tsx"
click node_profile "https://github.com/junthean/network-engineer-platform/blob/main/Profile.tsx"
click node_userprofile "https://github.com/junthean/network-engineer-platform/blob/main/UserProfile.tsx"
click node_members "https://github.com/junthean/network-engineer-platform/blob/main/Members.tsx"
click node_network "https://github.com/junthean/network-engineer-platform/blob/main/Network.tsx"
click node_activity "https://github.com/junthean/network-engineer-platform/blob/main/Activity.tsx"
click node_messages "https://github.com/junthean/network-engineer-platform/blob/main/Messages.tsx"
click node_postdetail "https://github.com/junthean/network-engineer-platform/blob/main/PostDetail.tsx"
click node_discussions "https://github.com/junthean/network-engineer-platform/blob/main/Discussions.tsx"
click node_search "https://github.com/junthean/network-engineer-platform/blob/main/SearchPage.tsx"
click node_resources "https://github.com/junthean/network-engineer-platform/blob/main/Resources.tsx"
click node_labs "https://github.com/junthean/network-engineer-platform/blob/main/Labs.tsx"
click node_supabase "https://github.com/junthean/network-engineer-platform/blob/main/supabase.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_app,node_router toneBlue
class node_authui,node_auth,node_follow,node_presence,node_notifications,node_activitystate,node_messagesstate,node_supabase toneAmber
class node_profile,node_userprofile,node_members,node_network,node_activity,node_messages,node_postdetail,node_discussions,node_search toneMint
class node_resources,node_labs toneRose
```

## Components

### App shell

- [App router](https://github.com/junthean/network-engineer-platform/blob/main/App.tsx): `App.tsx`
- [Route state](https://github.com/junthean/network-engineer-platform/blob/main/RouterContext.tsx): `RouterContext.tsx`

### Identity and state

- [Sign-in UI](https://github.com/junthean/network-engineer-platform/blob/main/AuthModal.tsx): `AuthModal.tsx`
- [Authentication](https://github.com/junthean/network-engineer-platform/blob/main/AuthContext.tsx): `AuthContext.tsx`
- [Follow state](https://github.com/junthean/network-engineer-platform/blob/main/FollowContext.tsx): `FollowContext.tsx`
- [Presence state](https://github.com/junthean/network-engineer-platform/blob/main/PresenceContext.tsx): `PresenceContext.tsx`
- [Notification state](https://github.com/junthean/network-engineer-platform/blob/main/NotificationContext.tsx): `NotificationContext.tsx`
- [Activity state](https://github.com/junthean/network-engineer-platform/blob/main/ActivityContext.tsx): `ActivityContext.tsx`
- [Message state](https://github.com/junthean/network-engineer-platform/blob/main/MessageContext.tsx): `MessageContext.tsx`

### Community features

- [My profile](https://github.com/junthean/network-engineer-platform/blob/main/Profile.tsx): `Profile.tsx`
- [Member profile](https://github.com/junthean/network-engineer-platform/blob/main/UserProfile.tsx): `UserProfile.tsx`
- [Member directory](https://github.com/junthean/network-engineer-platform/blob/main/Members.tsx): `Members.tsx`
- [Network](https://github.com/junthean/network-engineer-platform/blob/main/Network.tsx): `Network.tsx`
- [Activity feed](https://github.com/junthean/network-engineer-platform/blob/main/Activity.tsx): `Activity.tsx`
- [Direct messages](https://github.com/junthean/network-engineer-platform/blob/main/Messages.tsx): `Messages.tsx`
- [Post detail](https://github.com/junthean/network-engineer-platform/blob/main/PostDetail.tsx): `PostDetail.tsx`
- [Discussions](https://github.com/junthean/network-engineer-platform/blob/main/Discussions.tsx): `Discussions.tsx`
- [Search](https://github.com/junthean/network-engineer-platform/blob/main/SearchPage.tsx): `SearchPage.tsx`

### Technical content

- [Resources](https://github.com/junthean/network-engineer-platform/blob/main/Resources.tsx): `Resources.tsx`
- [Engineering labs](https://github.com/junthean/network-engineer-platform/blob/main/Labs.tsx): `Labs.tsx`

### Other components

- [Supabase backend](https://github.com/junthean/network-engineer-platform/blob/main/supabase.ts): `supabase.ts`

## Connections

- App router → Route state: reads route (evidence: `App.tsx`)
- App router → Authentication: reads session (evidence: `App.tsx`)
- App router → Sign-in UI: opens (evidence: `App.tsx`)
- App router → Post detail: routes to (evidence: `App.tsx`)
- App router → Resources: routes to (evidence: `App.tsx`)
- App router → Engineering labs: routes to (evidence: `App.tsx`)
- App router → Search: routes to (evidence: `App.tsx`)
- App router → My profile: routes to (evidence: `App.tsx`)
- App router → Member profile: routes to (evidence: `App.tsx`)
- App router → Member directory: routes to (evidence: `App.tsx`)
- App router → Network: routes to (evidence: `App.tsx`)
- App router → Direct messages: routes to (evidence: `App.tsx`)
- App router → Activity feed: routes to (evidence: `App.tsx`)
- App router → Discussions: routes to
- Authentication → Supabase backend: reads auth and profiles (evidence: `AuthContext.tsx`)
- Follow state → Supabase backend: reads and updates (evidence: `FollowContext.tsx`)
- Presence state → Supabase backend: reads and updates (evidence: `PresenceContext.tsx`)
- Notification state → Supabase backend: reads and updates (evidence: `NotificationContext.tsx`)
- Activity state → Supabase backend: reads activity (evidence: `ActivityContext.tsx`)
- Message state → Supabase backend: reads messages (evidence: `MessageContext.tsx`)
- Sign-in UI → Authentication: uses auth
- Message state → Route state: navigates to messages (evidence: `MessageContext.tsx`)
