# anilvendi/ai-resume-analyzer architecture

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

- Interactive diagram: https://gitdiagram.com/anilvendi/ai-resume-analyzer
- Repository: https://github.com/anilvendi/ai-resume-analyzer

## Overview

This is a Streamlit resume-analysis and career-assistance app. Users create an account or log in, upload a PDF resume, select a target role, and view ATS-oriented feedback and career recommendations; the app also stores and displays analysis history. The graph preserves both the role-skill analyzer and the Groq-backed analysis capability. The README is empty, and app.py excerpts are partial, so some app-to-module links are supported by the source index rather than visible call sites; unsampled details are not inferred.

Main entry points: [`app.py`](https://github.com/anilvendi/ai-resume-analyzer/blob/main/app.py) (App workflow), [`authentication/database.py`](https://github.com/anilvendi/ai-resume-analyzer/blob/main/authentication/database.py) (User records), [`resume_analyzer/resume_analysis.py`](https://github.com/anilvendi/ai-resume-analyzer/blob/main/resume_analyzer/resume_analysis.py) (Role skill analysis), [`resume_analyzer/groq_ai.py`](https://github.com/anilvendi/ai-resume-analyzer/blob/main/resume_analyzer/groq_ai.py) (AI analysis)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_interface["Streamlit app"]
  node_app["App workflow<br/>[app.py]"]
end

subgraph group_analysis["Resume intelligence"]
  node_pdf["PDF extraction<br/>[pdf_reader.py]"]
  node_analysis_core["Role skill analysis<br/>[resume_analysis.py]"]
  node_roles["Role skill catalog<br/>[job_roles.py]"]
  node_groq["AI analysis<br/>[groq_ai.py]"]
end

subgraph group_identity["Account access"]
  node_auth["Signup and login<br/>[auth.py]"]
end

subgraph group_storage["AWS persistence"]
  node_user_db[("User records<br/>[database.py]")]
  node_aws_config["AWS clients<br/>[aws_config.py]"]
  node_history[("Analysis history")]
end

node_user(("Applicant"))
node_groq_service{{"Groq API"}}
node_dynamodb[("AWS DynamoDB")]

node_user -->|"uses"| node_app
node_app -->|"handles access"| node_auth
node_app -->|"loads user"| node_user_db
node_auth -->|"checks and saves"| node_user_db
node_app -->|"extracts text"| node_pdf
node_app -->|"analyzes resume"| node_analysis_core
node_analysis_core -->|"looks up skills"| node_roles
node_app -->|"requests AI analysis"| node_groq
node_groq -->|"sends prompt"| node_groq_service
node_app -->|"saves and retrieves"| node_history
node_history -->|"uses client"| node_aws_config
node_aws_config -->|"configures connection"| node_dynamodb
node_user_db -->|"reads and writes"| node_dynamodb

click node_app "https://github.com/anilvendi/ai-resume-analyzer/blob/main/app.py"
click node_pdf "https://github.com/anilvendi/ai-resume-analyzer/blob/main/resume_analyzer/pdf_reader.py"
click node_analysis_core "https://github.com/anilvendi/ai-resume-analyzer/blob/main/resume_analyzer/resume_analysis.py"
click node_roles "https://github.com/anilvendi/ai-resume-analyzer/blob/main/resume_analyzer/job_roles.py"
click node_groq "https://github.com/anilvendi/ai-resume-analyzer/blob/main/resume_analyzer/groq_ai.py"
click node_auth "https://github.com/anilvendi/ai-resume-analyzer/blob/main/authentication/auth.py"
click node_user_db "https://github.com/anilvendi/ai-resume-analyzer/blob/main/authentication/database.py"
click node_aws_config "https://github.com/anilvendi/ai-resume-analyzer/blob/main/aws/aws_config.py"
click node_history "https://github.com/anilvendi/ai-resume-analyzer/blob/main/aws/dynamodb_services.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_app toneBlue
class node_pdf,node_analysis_core,node_roles,node_groq,node_dynamodb toneAmber
class node_auth,node_groq_service toneMint
class node_user_db,node_aws_config,node_history toneRose
class node_user toneIndigo
```

## Components

### Streamlit app

- [App workflow](https://github.com/anilvendi/ai-resume-analyzer/blob/main/app.py): `app.py`

### Resume intelligence

- [PDF extraction](https://github.com/anilvendi/ai-resume-analyzer/blob/main/resume_analyzer/pdf_reader.py): `resume_analyzer/pdf_reader.py`
- [Role skill analysis](https://github.com/anilvendi/ai-resume-analyzer/blob/main/resume_analyzer/resume_analysis.py): `resume_analyzer/resume_analysis.py`
- [Role skill catalog](https://github.com/anilvendi/ai-resume-analyzer/blob/main/resume_analyzer/job_roles.py): `resume_analyzer/job_roles.py`
- [AI analysis](https://github.com/anilvendi/ai-resume-analyzer/blob/main/resume_analyzer/groq_ai.py): `resume_analyzer/groq_ai.py`

### Account access

- [Signup and login](https://github.com/anilvendi/ai-resume-analyzer/blob/main/authentication/auth.py): `authentication/auth.py`

### AWS persistence

- [User records](https://github.com/anilvendi/ai-resume-analyzer/blob/main/authentication/database.py): `authentication/database.py`
- [AWS clients](https://github.com/anilvendi/ai-resume-analyzer/blob/main/aws/aws_config.py): `aws/aws_config.py`
- [Analysis history](https://github.com/anilvendi/ai-resume-analyzer/blob/main/aws/dynamodb_services.py): `aws/dynamodb_services.py`

### Other components

- **Applicant**
- **Groq API**
- **AWS DynamoDB**

## Connections

- Applicant → App workflow: uses (evidence: `app.py`)
- App workflow → Signup and login: handles access (evidence: `app.py`)
- App workflow → User records: loads user (evidence: `app.py`)
- Signup and login → User records: checks and saves (evidence: `authentication/auth.py`)
- App workflow → PDF extraction: extracts text (evidence: `app.py`)
- App workflow → Role skill analysis: analyzes resume (evidence: `app.py`)
- Role skill analysis → Role skill catalog: looks up skills (evidence: `resume_analyzer/resume_analysis.py`)
- App workflow → AI analysis: requests AI analysis (evidence: `app.py`)
- AI analysis → Groq API: sends prompt (evidence: `resume_analyzer/groq_ai.py`)
- App workflow → Analysis history: saves and retrieves (evidence: `app.py`)
- Analysis history → AWS clients: uses client (evidence: `aws/dynamodb_services.py`)
- AWS clients → AWS DynamoDB: configures connection (evidence: `aws/aws_config.py`)
- User records → AWS DynamoDB: reads and writes (evidence: `authentication/database.py`)
