# riya281106/agentic-healthcare-assistant architecture

> Architecture diagram of the GitHub repository riya281106/agentic-healthcare-assistant, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-09-25). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/riya281106/agentic-healthcare-assistant
- Repository: https://github.com/riya281106/agentic-healthcare-assistant

## Overview

This is an early-stage healthcare-assistant web app: users can navigate a React frontend with landing, login, registration, chat, and profile routes, while a separate FastAPI backend currently exposes only a health-check-style root response. The landing page advertises conversational AI, trusted sources, symptom tracking, emergency detection, privacy, and shareable reports, but the README says the AI layer is still to be added. The sampled frontend contains no backend requests, so no frontend-to-backend workflow is shown.

Main entry points: [`frontend/src/App.jsx`](https://github.com/riya281106/agentic-healthcare-assistant/blob/master/frontend/src/App.jsx) (App routes), [`frontend/src/pages/HomePage.jsx`](https://github.com/riya281106/agentic-healthcare-assistant/blob/master/frontend/src/pages/HomePage.jsx) (Home page), [`frontend/src/main.jsx`](https://github.com/riya281106/agentic-healthcare-assistant/blob/master/frontend/src/main.jsx) (Frontend entry), [`frontend/src/components/Navbar.jsx`](https://github.com/riya281106/agentic-healthcare-assistant/blob/master/frontend/src/components/Navbar.jsx) (Navigation bar)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_frontend["React frontend"]
  node_frontend_entry["Frontend entry<br/>[main.jsx]"]
  node_app_routes["App routes<br/>[App.jsx]"]
  node_navbar["Navigation bar<br/>[Navbar.jsx]"]
  node_home["Home page<br/>[HomePage.jsx]"]
  node_hero["Hero section<br/>[Hero.jsx]"]
  node_features["Feature cards<br/>[Features.jsx]"]
  node_footer["Footer<br/>[Footer.jsx]"]
  node_login["Login page<br/>[LoginPage.jsx]"]
  node_register["Registration page<br/>[RegisterPage.jsx]"]
  node_chat["Chat page<br/>[ChatPage.jsx]"]
  node_profile["Profile page<br/>[ProfilePage.jsx]"]
  node_not_found["Not-found page<br/>[NotFoundPage.jsx]"]
end

subgraph group_backend["FastAPI backend"]
  node_api["Root API<br/>[main.py]"]
end

node_user(("User"))

node_user -->|"opens app"| node_frontend_entry
node_frontend_entry -->|"renders"| node_app_routes
node_app_routes -->|"renders"| node_navbar
node_app_routes -->|"routes to"| node_home
node_app_routes -->|"routes to"| node_login
node_app_routes -->|"routes to"| node_register
node_app_routes -->|"routes to"| node_chat
node_app_routes -->|"routes to"| node_profile
node_app_routes -->|"routes to"| node_not_found
node_home -->|"renders"| node_hero
node_home -->|"renders"| node_features
node_home -->|"renders"| node_footer

click node_frontend_entry "https://github.com/riya281106/agentic-healthcare-assistant/blob/master/frontend/src/main.jsx"
click node_app_routes "https://github.com/riya281106/agentic-healthcare-assistant/blob/master/frontend/src/App.jsx"
click node_navbar "https://github.com/riya281106/agentic-healthcare-assistant/blob/master/frontend/src/components/Navbar.jsx"
click node_home "https://github.com/riya281106/agentic-healthcare-assistant/blob/master/frontend/src/pages/HomePage.jsx"
click node_hero "https://github.com/riya281106/agentic-healthcare-assistant/blob/master/frontend/src/components/Hero.jsx"
click node_features "https://github.com/riya281106/agentic-healthcare-assistant/blob/master/frontend/src/components/Features.jsx"
click node_footer "https://github.com/riya281106/agentic-healthcare-assistant/blob/master/frontend/src/components/Footer.jsx"
click node_login "https://github.com/riya281106/agentic-healthcare-assistant/blob/master/frontend/src/pages/LoginPage.jsx"
click node_register "https://github.com/riya281106/agentic-healthcare-assistant/blob/master/frontend/src/pages/RegisterPage.jsx"
click node_chat "https://github.com/riya281106/agentic-healthcare-assistant/blob/master/frontend/src/pages/ChatPage.jsx"
click node_profile "https://github.com/riya281106/agentic-healthcare-assistant/blob/master/frontend/src/pages/ProfilePage.jsx"
click node_not_found "https://github.com/riya281106/agentic-healthcare-assistant/blob/master/frontend/src/pages/NotFoundPage.jsx"
click node_api "https://github.com/riya281106/agentic-healthcare-assistant/blob/master/backend/main.py"

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_frontend_entry,node_app_routes,node_navbar,node_home,node_hero,node_features,node_footer,node_login,node_register,node_chat,node_profile,node_not_found,node_user toneBlue
class node_api toneAmber
```

## Components

### React frontend

- [Frontend entry](https://github.com/riya281106/agentic-healthcare-assistant/blob/master/frontend/src/main.jsx): `frontend/src/main.jsx`
- [App routes](https://github.com/riya281106/agentic-healthcare-assistant/blob/master/frontend/src/App.jsx): `frontend/src/App.jsx`
- [Navigation bar](https://github.com/riya281106/agentic-healthcare-assistant/blob/master/frontend/src/components/Navbar.jsx): `frontend/src/components/Navbar.jsx`
- [Home page](https://github.com/riya281106/agentic-healthcare-assistant/blob/master/frontend/src/pages/HomePage.jsx): `frontend/src/pages/HomePage.jsx`
- [Hero section](https://github.com/riya281106/agentic-healthcare-assistant/blob/master/frontend/src/components/Hero.jsx): `frontend/src/components/Hero.jsx`
- [Feature cards](https://github.com/riya281106/agentic-healthcare-assistant/blob/master/frontend/src/components/Features.jsx): `frontend/src/components/Features.jsx`
- [Footer](https://github.com/riya281106/agentic-healthcare-assistant/blob/master/frontend/src/components/Footer.jsx): `frontend/src/components/Footer.jsx`
- [Login page](https://github.com/riya281106/agentic-healthcare-assistant/blob/master/frontend/src/pages/LoginPage.jsx): `frontend/src/pages/LoginPage.jsx`
- [Registration page](https://github.com/riya281106/agentic-healthcare-assistant/blob/master/frontend/src/pages/RegisterPage.jsx): `frontend/src/pages/RegisterPage.jsx`
- [Chat page](https://github.com/riya281106/agentic-healthcare-assistant/blob/master/frontend/src/pages/ChatPage.jsx): `frontend/src/pages/ChatPage.jsx`
- [Profile page](https://github.com/riya281106/agentic-healthcare-assistant/blob/master/frontend/src/pages/ProfilePage.jsx): `frontend/src/pages/ProfilePage.jsx`
- [Not-found page](https://github.com/riya281106/agentic-healthcare-assistant/blob/master/frontend/src/pages/NotFoundPage.jsx): `frontend/src/pages/NotFoundPage.jsx`

### FastAPI backend

- [Root API](https://github.com/riya281106/agentic-healthcare-assistant/blob/master/backend/main.py): `backend/main.py`

### Other components

- **User**

## Connections

- User → Frontend entry: opens app
- Frontend entry → App routes: renders
- App routes → Navigation bar: renders
- App routes → Home page: routes to
- App routes → Login page: routes to
- App routes → Registration page: routes to
- App routes → Chat page: routes to
- App routes → Profile page: routes to
- App routes → Not-found page: routes to
- Home page → Hero section: renders
- Home page → Feature cards: renders
- Home page → Footer: renders
