# codeaashu/helpmate-ai architecture

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

- Interactive diagram: https://gitdiagram.com/codeaashu/helpmate-ai
- Repository: https://github.com/codeaashu/helpmate-ai

## Overview

Helpmate AI is a browser-based conversational assistant. A user submits a question through the React app; the app sends it to Google Gemini, handles the response, and displays it in the chat. The README also advertises summarization and question answering, but the sampled code does not show a separate workflow for summarization. Several interface features live in the same App component; the graph keeps them there rather than implying separate services.

Main entry points: [`src/App.jsx`](https://github.com/codeaashu/helpmate-ai/blob/main/src/App.jsx) (Chat interface), [`src/main.jsx`](https://github.com/codeaashu/helpmate-ai/blob/main/src/main.jsx) (React entry), [`src/Footer.jsx`](https://github.com/codeaashu/helpmate-ai/blob/main/src/Footer.jsx) (Footer links)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_frontend["React frontend"]
  node_entry["React entry<br/>[main.jsx]"]
  node_app["Chat interface<br/>[App.jsx]"]
  node_chat["Question and answers<br/>[App.jsx]"]
  node_profile["Profile and theme<br/>[App.jsx]"]
  node_answer_actions["Copy and share<br/>[App.jsx]"]
  node_footer["Footer links<br/>[Footer.jsx]"]
end

subgraph group_ai["AI service"]
  node_gemini{{"Google Gemini"}}
end

node_user(("User"))

node_user -->|"uses"| node_app
node_entry -->|"renders"| node_app
node_app -->|"handles"| node_chat
node_app -->|"sends prompt"| node_gemini
node_gemini -->|"returns answer"| node_app
node_app -->|"renders"| node_footer
node_user -->|"configures"| node_profile
node_user -->|"copies or shares"| node_answer_actions

click node_entry "https://github.com/codeaashu/helpmate-ai/blob/main/src/main.jsx"
click node_app "https://github.com/codeaashu/helpmate-ai/blob/main/src/App.jsx"
click node_chat "https://github.com/codeaashu/helpmate-ai/blob/main/src/App.jsx"
click node_profile "https://github.com/codeaashu/helpmate-ai/blob/main/src/App.jsx"
click node_answer_actions "https://github.com/codeaashu/helpmate-ai/blob/main/src/App.jsx"
click node_footer "https://github.com/codeaashu/helpmate-ai/blob/main/src/Footer.jsx"

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_entry,node_app,node_chat,node_profile,node_answer_actions,node_footer,node_user toneBlue
class node_gemini toneAmber
```

## Components

### React frontend

- [React entry](https://github.com/codeaashu/helpmate-ai/blob/main/src/main.jsx): `src/main.jsx`
- [Chat interface](https://github.com/codeaashu/helpmate-ai/blob/main/src/App.jsx): `src/App.jsx`
- [Question and answers](https://github.com/codeaashu/helpmate-ai/blob/main/src/App.jsx): `src/App.jsx`
- [Profile and theme](https://github.com/codeaashu/helpmate-ai/blob/main/src/App.jsx): `src/App.jsx`
- [Copy and share](https://github.com/codeaashu/helpmate-ai/blob/main/src/App.jsx): `src/App.jsx`
- [Footer links](https://github.com/codeaashu/helpmate-ai/blob/main/src/Footer.jsx): `src/Footer.jsx`

### AI service

- **Google Gemini**

### Other components

- **User**

## Connections

- User → Chat interface: uses (evidence: `README.md`)
- React entry → Chat interface: renders (evidence: `src/main.jsx`)
- Chat interface → Question and answers: handles (evidence: `src/App.jsx`)
- Chat interface → Google Gemini: sends prompt (evidence: `src/App.jsx`)
- Google Gemini → Chat interface: returns answer (evidence: `README.md`)
- Chat interface → Footer links: renders (evidence: `src/App.jsx`)
- User → Profile and theme: configures (evidence: `src/App.jsx`)
- User → Copy and share: copies or shares (evidence: `src/App.jsx`)
