# sudarsonk22/zenve-vet-project architecture

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

- Interactive diagram: https://gitdiagram.com/sudarsonk22/zenve-vet-project
- Repository: https://github.com/sudarsonk22/zenve-vet-project

## Overview

Zenve Vet is a veterinary professional community frontend. Users enter the network app and can discover colleagues and content, view clinical cases and profiles, communicate, watch or upload short videos, and access advertising and professional-benefit features. The graph follows the documented app-to-feature wiring and sampled hook/service calls. Some feature internals were not sampled, so their implementation links are omitted rather than inferred.

Main entry points: [`zenve-vet-frontend/src/network-ui/NetworkApp.jsx`](https://github.com/sudarsonk22/zenve-vet-project/blob/main/zenve-vet-frontend/src/network-ui/NetworkApp.jsx) (Network app shell), [`zenve-vet-frontend/src/services/apiClient.js`](https://github.com/sudarsonk22/zenve-vet-project/blob/main/zenve-vet-frontend/src/services/apiClient.js) (API client), [`zenve-vet-frontend/src/features/search/pages/SearchPage.jsx`](https://github.com/sudarsonk22/zenve-vet-project/blob/main/zenve-vet-frontend/src/features/search/pages/SearchPage.jsx) (Search and discover), [`zenve-vet-frontend/src/features/messages/services/messagesService.js`](https://github.com/sudarsonk22/zenve-vet-project/blob/main/zenve-vet-frontend/src/features/messages/services/messagesService.js) (Messaging service)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_app["Application shell"]
  node_shell["Network app shell<br/>[NetworkApp.jsx]"]
end

subgraph group_community["Veterinary network"]
  node_feed["Community feed<br/>[Feed.jsx]"]
  node_network["Vet network<br/>[VetNetwork.jsx]"]
  node_profile["Professional profiles<br/>[ProfilePage.jsx]"]
  node_cases["Clinical cases<br/>[ClinicalCases.jsx]"]
  node_professional["Professional pages"]
  node_network_api["Network API<br/>[api.js]"]
end

subgraph group_engagement["Communication and media"]
  node_messages["Messages interface<br/>[MessagesPage.jsx]"]
  node_message_state["Conversation state<br/>[useMessages.js]"]
  node_message_service["Messaging service<br/>[messagesService.js]"]
  node_short_videos["Short videos"]
  node_video_state["Video state<br/>[useShortVideos.js]"]
  node_video_service["Video service"]
  node_video_history["Saved and watched videos"]
end

subgraph group_discovery["Discovery and promotion"]
  node_search["Search and discover<br/>[SearchPage.jsx]"]
  node_search_state["Search state<br/>[useSearch.js]"]
  node_search_service["Search service<br/>[searchService.js]"]
  node_promotion["Advertising campaigns<br/>[AdvertisePage.jsx]"]
  node_benefits["Member benefits"]
end

subgraph group_platform["Shared client services"]
  node_routes["App routes<br/>[appRoutes.js]"]
  node_api["API client<br/>[apiClient.js]"]
  node_auth["Authentication bridge<br/>[authService.js]"]
  node_endpoints["API endpoints<br/>[endpoints.js]"]
  node_mappers["Response mappers<br/>[mappers.js]"]
  node_sample_data["Offline sample data<br/>[sampleData.js]"]
  node_icons["Icon set<br/>[Icon.jsx]"]
  node_avatars["Avatar display<br/>[Avatar.jsx]"]
  node_format["Display formatting<br/>[format.js]"]
end

node_visitor(("Veterinary user"))

node_visitor -->|"uses"| node_shell
node_shell -->|"routes to"| node_feed
node_shell -->|"routes to"| node_network
node_shell -->|"routes to"| node_profile
node_shell -->|"routes to"| node_cases
node_shell -->|"routes to"| node_professional
node_shell -->|"routes to"| node_messages
node_shell -->|"routes to"| node_search
node_shell -.->|"routes to"| node_short_videos
node_shell -->|"routes to"| node_promotion
node_shell -->|"routes to"| node_benefits
node_messages -->|"uses"| node_message_state
node_message_state -->|"calls"| node_message_service
node_message_service -->|"requests"| node_api
node_message_service -->|"uses"| node_endpoints
node_message_service -->|"maps responses"| node_mappers
node_short_videos -.->|"uses"| node_video_state
node_video_history -.->|"uses"| node_video_state
node_video_state -->|"calls"| node_video_service
node_video_service -->|"requests"| node_api
node_video_service -->|"uses"| node_endpoints
node_video_service -->|"maps responses"| node_mappers
node_search -->|"uses"| node_search_state
node_search_state -->|"calls"| node_search_service
node_search_service -->|"requests"| node_api
node_search_service -->|"uses"| node_endpoints
node_search_service -->|"maps responses"| node_mappers
node_search_state -->|"fallback data"| node_sample_data
node_message_state -->|"fallback data"| node_sample_data
node_video_state -->|"fallback data"| node_sample_data
node_api -->|"gets token"| node_auth
node_api -->|"uses login route"| node_routes
node_api -.->|"calls backend"| node_visitor
node_profile -.->|"uses"| node_network_api
node_feed -.->|"uses"| node_network_api
node_network -.->|"uses"| node_network_api
node_cases -.->|"uses"| node_network_api
node_search -->|"renders"| node_icons
node_search -->|"renders"| node_avatars
node_search -->|"formats values"| node_format
node_promotion -.->|"presents campaigns"| node_visitor

click node_shell "https://github.com/sudarsonk22/zenve-vet-project/blob/main/zenve-vet-frontend/src/network-ui/NetworkApp.jsx"
click node_routes "https://github.com/sudarsonk22/zenve-vet-project/blob/main/zenve-vet-frontend/src/config/appRoutes.js"
click node_feed "https://github.com/sudarsonk22/zenve-vet-project/blob/main/zenve-vet-frontend/src/network-ui/pages/Feed.jsx"
click node_network "https://github.com/sudarsonk22/zenve-vet-project/blob/main/zenve-vet-frontend/src/network-ui/pages/VetNetwork.jsx"
click node_profile "https://github.com/sudarsonk22/zenve-vet-project/blob/main/zenve-vet-frontend/src/network-ui/pages/ProfilePage.jsx"
click node_cases "https://github.com/sudarsonk22/zenve-vet-project/blob/main/zenve-vet-frontend/src/network-ui/pages/ClinicalCases.jsx"
click node_professional "https://github.com/sudarsonk22/zenve-vet-project/blob/main/zenve-vet-frontend/src/features/profiles/pages/ProfessionalPages.jsx"
click node_messages "https://github.com/sudarsonk22/zenve-vet-project/blob/main/zenve-vet-frontend/src/features/messages/pages/MessagesPage.jsx"
click node_message_state "https://github.com/sudarsonk22/zenve-vet-project/blob/main/zenve-vet-frontend/src/features/messages/hooks/useMessages.js"
click node_message_service "https://github.com/sudarsonk22/zenve-vet-project/blob/main/zenve-vet-frontend/src/features/messages/services/messagesService.js"
click node_short_videos "https://github.com/sudarsonk22/zenve-vet-project/blob/main/zenve-vet-frontend/src/features/shortvideos/pages/ShortVideosPage.jsx"
click node_video_state "https://github.com/sudarsonk22/zenve-vet-project/blob/main/zenve-vet-frontend/src/features/shortvideos/hooks/useShortVideos.js"
click node_video_service "https://github.com/sudarsonk22/zenve-vet-project/blob/main/zenve-vet-frontend/src/features/shortvideos/services/shortVideosService.js"
click node_video_history "https://github.com/sudarsonk22/zenve-vet-project/blob/main/zenve-vet-frontend/src/features/shortvideos/pages/SavedVideosPage.jsx"
click node_search "https://github.com/sudarsonk22/zenve-vet-project/blob/main/zenve-vet-frontend/src/features/search/pages/SearchPage.jsx"
click node_search_state "https://github.com/sudarsonk22/zenve-vet-project/blob/main/zenve-vet-frontend/src/features/search/hooks/useSearch.js"
click node_search_service "https://github.com/sudarsonk22/zenve-vet-project/blob/main/zenve-vet-frontend/src/features/search/services/searchService.js"
click node_promotion "https://github.com/sudarsonk22/zenve-vet-project/blob/main/zenve-vet-frontend/src/features/AdvertistPage/AdvertisePage.jsx"
click node_benefits "https://github.com/sudarsonk22/zenve-vet-project/blob/main/zenve-vet-frontend/src/features/profiles/pages/MemberBenefitsPage.jsx"
click node_api "https://github.com/sudarsonk22/zenve-vet-project/blob/main/zenve-vet-frontend/src/services/apiClient.js"
click node_auth "https://github.com/sudarsonk22/zenve-vet-project/blob/main/zenve-vet-frontend/src/services/authService.js"
click node_endpoints "https://github.com/sudarsonk22/zenve-vet-project/blob/main/zenve-vet-frontend/src/services/endpoints.js"
click node_mappers "https://github.com/sudarsonk22/zenve-vet-project/blob/main/zenve-vet-frontend/src/services/mappers.js"
click node_sample_data "https://github.com/sudarsonk22/zenve-vet-project/blob/main/zenve-vet-frontend/src/data/sampleData.js"
click node_icons "https://github.com/sudarsonk22/zenve-vet-project/blob/main/zenve-vet-frontend/src/components/common/Icon.jsx"
click node_avatars "https://github.com/sudarsonk22/zenve-vet-project/blob/main/zenve-vet-frontend/src/components/common/Avatar.jsx"
click node_format "https://github.com/sudarsonk22/zenve-vet-project/blob/main/zenve-vet-frontend/src/utils/format.js"
click node_network_api "https://github.com/sudarsonk22/zenve-vet-project/blob/main/zenve-vet-frontend/src/network-ui/api.js"

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_shell,node_visitor toneBlue
class node_feed,node_network,node_profile,node_cases,node_professional,node_network_api toneAmber
class node_messages,node_message_state,node_message_service,node_short_videos,node_video_state,node_video_service,node_video_history toneMint
class node_search,node_search_state,node_search_service,node_promotion,node_benefits toneRose
class node_routes,node_api,node_auth,node_endpoints,node_mappers,node_sample_data,node_icons,node_avatars,node_format toneIndigo
```

## Components

### Application shell

- [Network app shell](https://github.com/sudarsonk22/zenve-vet-project/blob/main/zenve-vet-frontend/src/network-ui/NetworkApp.jsx): `zenve-vet-frontend/src/network-ui/NetworkApp.jsx`

### Veterinary network

- [Community feed](https://github.com/sudarsonk22/zenve-vet-project/blob/main/zenve-vet-frontend/src/network-ui/pages/Feed.jsx): `zenve-vet-frontend/src/network-ui/pages/Feed.jsx`
- [Vet network](https://github.com/sudarsonk22/zenve-vet-project/blob/main/zenve-vet-frontend/src/network-ui/pages/VetNetwork.jsx): `zenve-vet-frontend/src/network-ui/pages/VetNetwork.jsx`
- [Professional profiles](https://github.com/sudarsonk22/zenve-vet-project/blob/main/zenve-vet-frontend/src/network-ui/pages/ProfilePage.jsx): `zenve-vet-frontend/src/network-ui/pages/ProfilePage.jsx`
- [Clinical cases](https://github.com/sudarsonk22/zenve-vet-project/blob/main/zenve-vet-frontend/src/network-ui/pages/ClinicalCases.jsx): `zenve-vet-frontend/src/network-ui/pages/ClinicalCases.jsx`
- [Professional pages](https://github.com/sudarsonk22/zenve-vet-project/blob/main/zenve-vet-frontend/src/features/profiles/pages/ProfessionalPages.jsx): `zenve-vet-frontend/src/features/profiles/pages/ProfessionalPages.jsx`
- [Network API](https://github.com/sudarsonk22/zenve-vet-project/blob/main/zenve-vet-frontend/src/network-ui/api.js): `zenve-vet-frontend/src/network-ui/api.js`

### Communication and media

- [Messages interface](https://github.com/sudarsonk22/zenve-vet-project/blob/main/zenve-vet-frontend/src/features/messages/pages/MessagesPage.jsx): `zenve-vet-frontend/src/features/messages/pages/MessagesPage.jsx`
- [Conversation state](https://github.com/sudarsonk22/zenve-vet-project/blob/main/zenve-vet-frontend/src/features/messages/hooks/useMessages.js): `zenve-vet-frontend/src/features/messages/hooks/useMessages.js`
- [Messaging service](https://github.com/sudarsonk22/zenve-vet-project/blob/main/zenve-vet-frontend/src/features/messages/services/messagesService.js): `zenve-vet-frontend/src/features/messages/services/messagesService.js`
- [Short videos](https://github.com/sudarsonk22/zenve-vet-project/blob/main/zenve-vet-frontend/src/features/shortvideos/pages/ShortVideosPage.jsx): `zenve-vet-frontend/src/features/shortvideos/pages/ShortVideosPage.jsx`
- [Video state](https://github.com/sudarsonk22/zenve-vet-project/blob/main/zenve-vet-frontend/src/features/shortvideos/hooks/useShortVideos.js): `zenve-vet-frontend/src/features/shortvideos/hooks/useShortVideos.js`
- [Video service](https://github.com/sudarsonk22/zenve-vet-project/blob/main/zenve-vet-frontend/src/features/shortvideos/services/shortVideosService.js): `zenve-vet-frontend/src/features/shortvideos/services/shortVideosService.js`
- [Saved and watched videos](https://github.com/sudarsonk22/zenve-vet-project/blob/main/zenve-vet-frontend/src/features/shortvideos/pages/SavedVideosPage.jsx): `zenve-vet-frontend/src/features/shortvideos/pages/SavedVideosPage.jsx`

### Discovery and promotion

- [Search and discover](https://github.com/sudarsonk22/zenve-vet-project/blob/main/zenve-vet-frontend/src/features/search/pages/SearchPage.jsx): `zenve-vet-frontend/src/features/search/pages/SearchPage.jsx`
- [Search state](https://github.com/sudarsonk22/zenve-vet-project/blob/main/zenve-vet-frontend/src/features/search/hooks/useSearch.js): `zenve-vet-frontend/src/features/search/hooks/useSearch.js`
- [Search service](https://github.com/sudarsonk22/zenve-vet-project/blob/main/zenve-vet-frontend/src/features/search/services/searchService.js): `zenve-vet-frontend/src/features/search/services/searchService.js`
- [Advertising campaigns](https://github.com/sudarsonk22/zenve-vet-project/blob/main/zenve-vet-frontend/src/features/AdvertistPage/AdvertisePage.jsx): `zenve-vet-frontend/src/features/AdvertistPage/AdvertisePage.jsx`
- [Member benefits](https://github.com/sudarsonk22/zenve-vet-project/blob/main/zenve-vet-frontend/src/features/profiles/pages/MemberBenefitsPage.jsx): `zenve-vet-frontend/src/features/profiles/pages/MemberBenefitsPage.jsx`

### Shared client services

- [App routes](https://github.com/sudarsonk22/zenve-vet-project/blob/main/zenve-vet-frontend/src/config/appRoutes.js): `zenve-vet-frontend/src/config/appRoutes.js`
- [API client](https://github.com/sudarsonk22/zenve-vet-project/blob/main/zenve-vet-frontend/src/services/apiClient.js): `zenve-vet-frontend/src/services/apiClient.js`
- [Authentication bridge](https://github.com/sudarsonk22/zenve-vet-project/blob/main/zenve-vet-frontend/src/services/authService.js): `zenve-vet-frontend/src/services/authService.js`
- [API endpoints](https://github.com/sudarsonk22/zenve-vet-project/blob/main/zenve-vet-frontend/src/services/endpoints.js): `zenve-vet-frontend/src/services/endpoints.js`
- [Response mappers](https://github.com/sudarsonk22/zenve-vet-project/blob/main/zenve-vet-frontend/src/services/mappers.js): `zenve-vet-frontend/src/services/mappers.js`
- [Offline sample data](https://github.com/sudarsonk22/zenve-vet-project/blob/main/zenve-vet-frontend/src/data/sampleData.js): `zenve-vet-frontend/src/data/sampleData.js`
- [Icon set](https://github.com/sudarsonk22/zenve-vet-project/blob/main/zenve-vet-frontend/src/components/common/Icon.jsx): `zenve-vet-frontend/src/components/common/Icon.jsx`
- [Avatar display](https://github.com/sudarsonk22/zenve-vet-project/blob/main/zenve-vet-frontend/src/components/common/Avatar.jsx): `zenve-vet-frontend/src/components/common/Avatar.jsx`
- [Display formatting](https://github.com/sudarsonk22/zenve-vet-project/blob/main/zenve-vet-frontend/src/utils/format.js): `zenve-vet-frontend/src/utils/format.js`

### Other components

- **Veterinary user**

## Connections

- Veterinary user → Network app shell: uses
- Network app shell → Community feed: routes to (evidence: `zenve-vet-frontend/src/network-ui/NetworkApp.jsx`)
- Network app shell → Vet network: routes to (evidence: `zenve-vet-frontend/src/network-ui/NetworkApp.jsx`)
- Network app shell → Professional profiles: routes to (evidence: `zenve-vet-frontend/src/network-ui/NetworkApp.jsx`)
- Network app shell → Clinical cases: routes to (evidence: `zenve-vet-frontend/src/network-ui/NetworkApp.jsx`)
- Network app shell → Professional pages: routes to (evidence: `zenve-vet-frontend/src/network-ui/NetworkApp.jsx`)
- Network app shell → Messages interface: routes to (evidence: `zenve-vet-frontend/src/network-ui/NetworkApp.jsx`)
- Network app shell → Search and discover: routes to (evidence: `zenve-vet-frontend/src/network-ui/NetworkApp.jsx`)
- Network app shell → Short videos: routes to (evidence: `zenve-vet-frontend/src/network-ui/NetworkApp.jsx`)
- Network app shell → Advertising campaigns: routes to (evidence: `zenve-vet-frontend/src/network-ui/NetworkApp.jsx`)
- Network app shell → Member benefits: routes to (evidence: `zenve-vet-frontend/src/network-ui/NetworkApp.jsx`)
- Messages interface → Conversation state: uses (evidence: `zenve-vet-frontend/src/features/messages/pages/MessagesPage.jsx`)
- Conversation state → Messaging service: calls (evidence: `zenve-vet-frontend/src/features/messages/hooks/useMessages.js`)
- Messaging service → API client: requests (evidence: `zenve-vet-frontend/src/features/messages/services/messagesService.js`)
- Messaging service → API endpoints: uses (evidence: `zenve-vet-frontend/src/features/messages/services/messagesService.js`)
- Messaging service → Response mappers: maps responses (evidence: `zenve-vet-frontend/src/features/messages/services/messagesService.js`)
- Short videos → Video state: uses
- Saved and watched videos → Video state: uses
- Video state → Video service: calls (evidence: `zenve-vet-frontend/src/features/shortvideos/hooks/useShortVideos.js`)
- Video service → API client: requests (evidence: `zenve-vet-frontend/src/features/shortvideos/services/shortVideosService.js`)
- Video service → API endpoints: uses (evidence: `zenve-vet-frontend/src/features/shortvideos/services/shortVideosService.js`)
- Video service → Response mappers: maps responses (evidence: `zenve-vet-frontend/src/features/shortvideos/services/shortVideosService.js`)
- Search and discover → Search state: uses (evidence: `zenve-vet-frontend/src/features/search/pages/SearchPage.jsx`)
- Search state → Search service: calls (evidence: `zenve-vet-frontend/src/features/search/hooks/useSearch.js`)
- Search service → API client: requests (evidence: `zenve-vet-frontend/src/features/search/services/searchService.js`)
- Search service → API endpoints: uses (evidence: `zenve-vet-frontend/src/features/search/services/searchService.js`)
- Search service → Response mappers: maps responses (evidence: `zenve-vet-frontend/src/features/search/services/searchService.js`)
- Search state → Offline sample data: fallback data (evidence: `zenve-vet-frontend/src/features/search/hooks/useSearch.js`)
- Conversation state → Offline sample data: fallback data (evidence: `zenve-vet-frontend/src/features/messages/hooks/useMessages.js`)
- Video state → Offline sample data: fallback data (evidence: `zenve-vet-frontend/src/features/shortvideos/hooks/useShortVideos.js`)
- API client → Authentication bridge: gets token (evidence: `zenve-vet-frontend/src/services/apiClient.js`)
- API client → App routes: uses login route (evidence: `zenve-vet-frontend/src/services/apiClient.js`)
- API client → Veterinary user: calls backend
- Professional profiles → Network API: uses (evidence: `zenve-vet-frontend/src/network-ui/pages/ProfilePage.jsx`)
- Community feed → Network API: uses
- Vet network → Network API: uses
- Clinical cases → Network API: uses
- Search and discover → Icon set: renders
- Search and discover → Avatar display: renders
- Search and discover → Display formatting: formats values
- Advertising campaigns → Veterinary user: presents campaigns
