# jeyaharinishree-ops/ai-powered-document- architecture

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

- Interactive diagram: https://gitdiagram.com/jeyaharinishree-ops/ai-powered-document-
- Repository: https://github.com/jeyaharinishree-ops/ai-powered-document-

## Overview

Resume Lens is a web app that turns an uploaded PDF or TXT resume into a grounded, structured analysis. The main workflow runs from the browser through the Express analysis route, text extraction, prompt construction and Gemini, then server-side validation and a result returned to the browser. The UI presents the summary, evidence, completeness score and skills visualization, with optional job matching and JSON download. The excerpt shows the server-side orchestration; frontend behavior and some advertised capabilities are supported by the README, not sampled frontend source.

Main entry points: [`server.js`](https://github.com/jeyaharinishree-ops/ai-powered-document-/blob/main/server.js) (Analysis route), [`public/index.html`](https://github.com/jeyaharinishree-ops/ai-powered-document-/blob/main/public/index.html) (Resume interface)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_client["Browser experience"]
  node_frontend["Resume interface<br/>[index.html]"]
  node_result_views["Evidence and insights<br/>[index.html]"]
  node_json_download["JSON download<br/>[index.html]"]
end

subgraph group_server["Analysis service"]
  node_analysis_api["Analysis route<br/>[server.js]"]
  node_text_extraction["Text extraction<br/>[server.js]"]
  node_prompt_builder["Prompt builder<br/>[server.js]"]
  node_grounding["Grounding and limits<br/>[server.js]"]
  node_schema_check["Schema validation<br/>[server.js]"]
  node_analysis_result["Analysis result<br/>[server.js]"]
end

subgraph group_ai["AI analysis"]
  node_gemini{{"Gemini API"}}
end

node_user(("Resume user"))

node_user -->|"uploads resume"| node_frontend
node_frontend -->|"submits analysis"| node_analysis_api
node_analysis_api -->|"extracts text"| node_text_extraction
node_analysis_api -->|"builds prompt"| node_prompt_builder
node_analysis_api -->|"requests analysis"| node_gemini
node_analysis_api -->|"grounds output"| node_grounding
node_analysis_api -->|"validates result"| node_schema_check
node_prompt_builder -->|"provides prompt"| node_gemini
node_analysis_api -->|"returns result"| node_analysis_result
node_analysis_result -->|"returns JSON"| node_frontend
node_frontend -->|"shows evidence and insights"| node_result_views
node_frontend -->|"downloads JSON"| node_json_download

click node_frontend "https://github.com/jeyaharinishree-ops/ai-powered-document-/blob/main/public/index.html"
click node_analysis_api "https://github.com/jeyaharinishree-ops/ai-powered-document-/blob/main/server.js"
click node_text_extraction "https://github.com/jeyaharinishree-ops/ai-powered-document-/blob/main/server.js"
click node_prompt_builder "https://github.com/jeyaharinishree-ops/ai-powered-document-/blob/main/server.js"
click node_grounding "https://github.com/jeyaharinishree-ops/ai-powered-document-/blob/main/server.js"
click node_schema_check "https://github.com/jeyaharinishree-ops/ai-powered-document-/blob/main/server.js"
click node_analysis_result "https://github.com/jeyaharinishree-ops/ai-powered-document-/blob/main/server.js"
click node_result_views "https://github.com/jeyaharinishree-ops/ai-powered-document-/blob/main/public/index.html"
click node_json_download "https://github.com/jeyaharinishree-ops/ai-powered-document-/blob/main/public/index.html"

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,node_result_views,node_json_download,node_user toneBlue
class node_analysis_api,node_text_extraction,node_prompt_builder,node_grounding,node_schema_check,node_analysis_result toneAmber
class node_gemini toneMint
```

## Components

### Browser experience

- [Resume interface](https://github.com/jeyaharinishree-ops/ai-powered-document-/blob/main/public/index.html): `public/index.html`
- [Evidence and insights](https://github.com/jeyaharinishree-ops/ai-powered-document-/blob/main/public/index.html): `public/index.html`
- [JSON download](https://github.com/jeyaharinishree-ops/ai-powered-document-/blob/main/public/index.html): `public/index.html`

### Analysis service

- [Analysis route](https://github.com/jeyaharinishree-ops/ai-powered-document-/blob/main/server.js): `server.js`
- [Text extraction](https://github.com/jeyaharinishree-ops/ai-powered-document-/blob/main/server.js): `server.js`
- [Prompt builder](https://github.com/jeyaharinishree-ops/ai-powered-document-/blob/main/server.js): `server.js`
- [Grounding and limits](https://github.com/jeyaharinishree-ops/ai-powered-document-/blob/main/server.js): `server.js`
- [Schema validation](https://github.com/jeyaharinishree-ops/ai-powered-document-/blob/main/server.js): `server.js`
- [Analysis result](https://github.com/jeyaharinishree-ops/ai-powered-document-/blob/main/server.js): `server.js`

### AI analysis

- **Gemini API**

### Other components

- **Resume user**

## Connections

- Resume user → Resume interface: uploads resume (evidence: `README.md`)
- Resume interface → Analysis route: submits analysis (evidence: `README.md`)
- Analysis route → Text extraction: extracts text (evidence: `server.js`)
- Analysis route → Prompt builder: builds prompt (evidence: `server.js`)
- Analysis route → Gemini API: requests analysis (evidence: `server.js`)
- Analysis route → Grounding and limits: grounds output (evidence: `server.js`)
- Analysis route → Schema validation: validates result (evidence: `server.js`)
- Prompt builder → Gemini API: provides prompt (evidence: `server.js`)
- Analysis route → Analysis result: returns result (evidence: `server.js`)
- Analysis result → Resume interface: returns JSON (evidence: `server.js`)
- Resume interface → Evidence and insights: shows evidence and insights (evidence: `README.md`)
- Resume interface → JSON download: downloads JSON (evidence: `README.md`)
