# devopscsd/lp-12 architecture

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

- Interactive diagram: https://gitdiagram.com/devopscsd/lp-12
- Repository: https://github.com/devopscsd/lp-12

## Overview

The repository contains two Flask resume tools. The root app’s main workflow accepts PDF/DOCX resumes and an optional job description, extracts text, scores skill matches, returns recommendations, and records analysis history. The nested app extracts contact details, skills, education, and experience for a result page. The README documents these capabilities; the sampled source confirms the processing flows. The root app renders index.html, which is not present in the supplied tree, so its template connection is shown only at the templates-directory level.

Main entry points: [`app.py`](https://github.com/devopscsd/lp-12/blob/main/app.py) (Analysis Routes), [`smart-ai-resume-analyzer/app.py`](https://github.com/devopscsd/lp-12/blob/main/smart-ai-resume-analyzer/app.py) (Upload Route), [`templates`](https://github.com/devopscsd/lp-12/tree/main/templates) (Analyzer Templates), [`smart-ai-resume-analyzer/templates`](https://github.com/devopscsd/lp-12/tree/main/smart-ai-resume-analyzer/templates) (Upload and Result Pages)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_root["Root Analyzer"]
  node_root_web["Analysis Routes<br/>[app.py]"]
  node_root_extract["Resume Text Extraction<br/>[app.py]"]
  node_root_match["Skill Matching<br/>[app.py]"]
  node_root_feedback["Scores and Recommendations<br/>[app.py]"]
  node_root_templates["Analyzer Templates"]
end

subgraph group_nested["Information Extractor"]
  node_nested_web["Upload Route<br/>[app.py]"]
  node_nested_extract["PDF and DOCX Extraction<br/>[app.py]"]
  node_nested_information["Resume Information<br/>[app.py]"]
  node_nested_templates["Upload and Result Pages"]
end

subgraph group_storage["Analysis History"]
  node_history_db[("SQLite History")]
end

node_candidate(("Candidate"))

node_candidate -->|"submits resume"| node_root_web
node_root_web -->|"renders page"| node_root_templates
node_root_web -->|"extracts text"| node_root_extract
node_root_web -->|"analyzes text"| node_root_match
node_root_match -->|"produces results"| node_root_feedback
node_root_web -->|"writes and reads"| node_history_db
node_candidate -->|"uploads resume"| node_nested_web
node_nested_web -->|"extracts text"| node_nested_extract
node_nested_web -->|"extracts details"| node_nested_information
node_nested_web -->|"renders results"| node_nested_templates

click node_root_web "https://github.com/devopscsd/lp-12/blob/main/app.py"
click node_root_extract "https://github.com/devopscsd/lp-12/blob/main/app.py"
click node_root_match "https://github.com/devopscsd/lp-12/blob/main/app.py"
click node_root_feedback "https://github.com/devopscsd/lp-12/blob/main/app.py"
click node_root_templates "https://github.com/devopscsd/lp-12/tree/main/templates"
click node_nested_web "https://github.com/devopscsd/lp-12/blob/main/smart-ai-resume-analyzer/app.py"
click node_nested_extract "https://github.com/devopscsd/lp-12/blob/main/smart-ai-resume-analyzer/app.py"
click node_nested_information "https://github.com/devopscsd/lp-12/blob/main/smart-ai-resume-analyzer/app.py"
click node_nested_templates "https://github.com/devopscsd/lp-12/tree/main/smart-ai-resume-analyzer/templates"

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_root_web,node_root_extract,node_root_match,node_root_feedback,node_root_templates toneBlue
class node_nested_web,node_nested_extract,node_nested_information,node_nested_templates toneAmber
class node_history_db toneMint
class node_candidate toneIndigo
```

## Components

### Root Analyzer

- [Analysis Routes](https://github.com/devopscsd/lp-12/blob/main/app.py): `app.py`
- [Resume Text Extraction](https://github.com/devopscsd/lp-12/blob/main/app.py): `app.py`
- [Skill Matching](https://github.com/devopscsd/lp-12/blob/main/app.py): `app.py`
- [Scores and Recommendations](https://github.com/devopscsd/lp-12/blob/main/app.py): `app.py`
- [Analyzer Templates](https://github.com/devopscsd/lp-12/tree/main/templates): `templates`

### Information Extractor

- [Upload Route](https://github.com/devopscsd/lp-12/blob/main/smart-ai-resume-analyzer/app.py): `smart-ai-resume-analyzer/app.py`
- [PDF and DOCX Extraction](https://github.com/devopscsd/lp-12/blob/main/smart-ai-resume-analyzer/app.py): `smart-ai-resume-analyzer/app.py`
- [Resume Information](https://github.com/devopscsd/lp-12/blob/main/smart-ai-resume-analyzer/app.py): `smart-ai-resume-analyzer/app.py`
- [Upload and Result Pages](https://github.com/devopscsd/lp-12/tree/main/smart-ai-resume-analyzer/templates): `smart-ai-resume-analyzer/templates`

### Analysis History

- **SQLite History**

### Other components

- **Candidate**

## Connections

- Candidate → Analysis Routes: submits resume (evidence: `app.py`)
- Analysis Routes → Analyzer Templates: renders page (evidence: `app.py`)
- Analysis Routes → Resume Text Extraction: extracts text (evidence: `app.py`)
- Analysis Routes → Skill Matching: analyzes text (evidence: `app.py`)
- Skill Matching → Scores and Recommendations: produces results (evidence: `app.py`)
- Analysis Routes → SQLite History: writes and reads (evidence: `app.py`)
- Candidate → Upload Route: uploads resume (evidence: `smart-ai-resume-analyzer/app.py`)
- Upload Route → PDF and DOCX Extraction: extracts text (evidence: `smart-ai-resume-analyzer/app.py`)
- Upload Route → Resume Information: extracts details (evidence: `smart-ai-resume-analyzer/app.py`)
- Upload Route → Upload and Result Pages: renders results (evidence: `smart-ai-resume-analyzer/app.py`)
