# mohitr1999/ats-friendly-resume architecture

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

- Interactive diagram: https://gitdiagram.com/mohitr1999/ats-friendly-resume
- Repository: https://github.com/mohitr1999/ats-friendly-resume

## Overview

1. This repository is a small Python PDF-generation app built around ReportLab. Its purpose is to take resume content from data files and render an ATS-friendly PDF resume as `output.pdf`.

2. The entry point is `src/main.py`. It is the orchestration layer: it likely reads configuration, loads resume data, instantiates the resume composition objects, and triggers PDF generation.

3. The data is intentionally separated from layout code. Resume content lives in `src/data/input.json`, while personal/contact metadata comes from a `config.ini` file. The README shows that the config controls fields like author, email, address, phone, and a debug flag.

4. `src/constants/resume_constants.py` is the central place for fixed layout/style values. This is where page sizing, spacing, colors, font names, and other shared constants would be kept so the visual design is not hardcoded across multiple modules.

5. `src/sections/resume_section.py` appears to define the base abstraction for resume sections. The rest of the section classes likely extend or compose this base to render uniform blocks like Experience, Projects, Education, Certifications, Achievements, and Skills.

6. The `src/elements/` package contains item-level renderers for each resume domain object: `resume_experience.py`, `resume_project.py`, `resume_education.py`, `resume_certification.py`, `resume_achievement.py`, and `resume_skill.py`. These are the leaf-level builders that turn one JSON record into formatted PDF content.

7. `src/resume_contact.py` and `src/resume_summary.py` are specialized top-of-resume components. They likely render the header/contact strip and the summary paragraph separately from the main sections, because those blocks have different formatting and layout needs.

8. The data flow is one-way and simple: config and JSON input are read, mapped into resume objects, then passed into section/element renderers, which emit ReportLab drawing instructions. The final output is a single PDF file written to the working directory.

9. The `res/fonts/` directory suggests custom font assets are bundled locally. That matters for architecture because the rendering layer likely registers those fonts with ReportLab to control typography and preserve consistent PDF output across environments.

10. The `debug` flag in configuration changes presentation behavior rather than business logic. When enabled, the PDF includes grid lines, which implies the layout layer can switch between production rendering and visual debugging.

11. The project supports two execution environments with the same core pipeline: local Python execution and containerized execution. `Dockerfile` and `docker-compose.yml` package the app so the same PDF generation path runs inside a container without manual dependency management.

12. From an architecture-diagram perspective, the main boundary is between input/configuration and rendering. Everything under `src/data` and `config.ini` is source content; everything under `src/sections`, `src/elements`, `src/resume_*.py`, and `src/constants` is the presentation engine; the only external runtime dependency that materially matters is ReportLab, which handles PDF creation.

Main entry points: [`src/sections/resume_section.py`](https://github.com/mohitr1999/ats-friendly-resume/blob/master/src/sections/resume_section.py) (Section Base), [`src/main.py`](https://github.com/mohitr1999/ats-friendly-resume/blob/master/src/main.py) (Main), [`src/resume_contact.py`](https://github.com/mohitr1999/ats-friendly-resume/blob/master/src/resume_contact.py) (Contact), [`src/resume_summary.py`](https://github.com/mohitr1999/ats-friendly-resume/blob/master/src/resume_summary.py) (Summary)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_g_inputs["Inputs"]
  node_n_config["Config<br/>metadata"]
  node_n_input["Resume Data<br/>json source<br/>[input.json]"]
end

subgraph group_g_core["Core"]
  node_n_main["Main<br/>orchestrator<br/>[main.py]"]
  node_n_constants["Style Constants<br/>layout config"]
  node_n_section_base["Section Base<br/>[resume_section.py]"]
  node_n_contact["Contact<br/>header block<br/>[resume_contact.py]"]
  node_n_summary["Summary<br/>[resume_summary.py]"]
end

subgraph group_g_elements["Elements"]
  node_n_exp["Experience<br/>entry renderer"]
  node_n_proj["Projects<br/>entry renderer<br/>[resume_project.py]"]
  node_n_edu["Education<br/>entry renderer"]
  node_n_cert["Certifications<br/>entry renderer"]
  node_n_ach["Achievements<br/>entry renderer"]
  node_n_skill["Skills<br/>entry renderer<br/>[resume_skill.py]"]
end

subgraph group_g_runtime["Runtime"]
  node_n_reportlab(("ReportLab<br/>pdf engine"))
  node_n_fonts["Fonts<br/>assets"]
  node_n_docker["Container<br/>runtime packaging"]
  node_n_output["PDF Output<br/>artifact"]
end

node_n_main -->|"reads"| node_n_config
node_n_main -->|"loads"| node_n_input
node_n_main -->|"uses"| node_n_constants
node_n_main -->|"builds"| node_n_contact
node_n_main -->|"builds"| node_n_summary
node_n_main -->|"orchestrates"| node_n_section_base
node_n_section_base -->|"renders"| node_n_exp
node_n_section_base -->|"renders"| node_n_proj
node_n_section_base -->|"renders"| node_n_edu
node_n_section_base -->|"renders"| node_n_cert
node_n_section_base -->|"renders"| node_n_ach
node_n_section_base -->|"renders"| node_n_skill
node_n_exp -->|"draws with"| node_n_reportlab
node_n_proj -->|"draws with"| node_n_reportlab
node_n_edu -->|"draws with"| node_n_reportlab
node_n_cert -->|"draws with"| node_n_reportlab
node_n_ach -->|"draws with"| node_n_reportlab
node_n_skill -->|"draws with"| node_n_reportlab
node_n_contact -->|"draws with"| node_n_reportlab
node_n_summary -->|"draws with"| node_n_reportlab
node_n_fonts -->|"registers"| node_n_reportlab
node_n_docker -->|"runs"| node_n_main
node_n_reportlab -->|"writes"| node_n_output

click node_n_main "https://github.com/mohitr1999/ats-friendly-resume/blob/master/src/main.py"
click node_n_input "https://github.com/mohitr1999/ats-friendly-resume/blob/master/src/data/input.json"
click node_n_constants "https://github.com/mohitr1999/ats-friendly-resume/blob/master/src/constants/resume_constants.py"
click node_n_section_base "https://github.com/mohitr1999/ats-friendly-resume/blob/master/src/sections/resume_section.py"
click node_n_contact "https://github.com/mohitr1999/ats-friendly-resume/blob/master/src/resume_contact.py"
click node_n_summary "https://github.com/mohitr1999/ats-friendly-resume/blob/master/src/resume_summary.py"
click node_n_exp "https://github.com/mohitr1999/ats-friendly-resume/blob/master/src/elements/resume_experience.py"
click node_n_proj "https://github.com/mohitr1999/ats-friendly-resume/blob/master/src/elements/resume_project.py"
click node_n_edu "https://github.com/mohitr1999/ats-friendly-resume/blob/master/src/elements/resume_education.py"
click node_n_cert "https://github.com/mohitr1999/ats-friendly-resume/blob/master/src/elements/resume_certification.py"
click node_n_ach "https://github.com/mohitr1999/ats-friendly-resume/blob/master/src/elements/resume_achievement.py"
click node_n_skill "https://github.com/mohitr1999/ats-friendly-resume/blob/master/src/elements/resume_skill.py"
click node_n_fonts "https://github.com/mohitr1999/ats-friendly-resume/tree/master/res/fonts"
click node_n_docker "https://github.com/mohitr1999/ats-friendly-resume/tree/master/Dockerfile"

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_n_config,node_n_input toneBlue
class node_n_main,node_n_constants,node_n_section_base,node_n_contact,node_n_summary toneAmber
class node_n_exp,node_n_proj,node_n_edu,node_n_cert,node_n_ach,node_n_skill toneMint
class node_n_reportlab,node_n_fonts,node_n_docker,node_n_output toneRose
```

## Components

### Inputs

Content and runtime configuration sources

- **Config**: metadata · Personal/contact settings and debug flags
- [Resume Data](https://github.com/mohitr1999/ats-friendly-resume/blob/master/src/data/input.json): json source · Structured resume content consumed by the renderer · `src/data/input.json`

### Core

Orchestration, shared styling, and top-level resume components

- [Main](https://github.com/mohitr1999/ats-friendly-resume/blob/master/src/main.py): orchestrator · Entry point that loads data and drives PDF generation · `src/main.py`
- [Style Constants](https://github.com/mohitr1999/ats-friendly-resume/blob/master/src/constants/resume_constants.py): layout config · Shared page, spacing, font, and color values · `src/constants/resume_constants.py`
- [Section Base](https://github.com/mohitr1999/ats-friendly-resume/blob/master/src/sections/resume_section.py): section base · Common abstraction for uniform resume sections · `src/sections/resume_section.py`
- [Contact](https://github.com/mohitr1999/ats-friendly-resume/blob/master/src/resume_contact.py): header block · Top-of-resume contact and identity block · `src/resume_contact.py`
- [Summary](https://github.com/mohitr1999/ats-friendly-resume/blob/master/src/resume_summary.py): summary block · Top-of-resume summary paragraph renderer · `src/resume_summary.py`

### Elements

Leaf renderers for resume domains

- [Experience](https://github.com/mohitr1999/ats-friendly-resume/blob/master/src/elements/resume_experience.py): entry renderer · Renders work history entries · `src/elements/resume_experience.py`
- [Projects](https://github.com/mohitr1999/ats-friendly-resume/blob/master/src/elements/resume_project.py): entry renderer · Renders project entries · `src/elements/resume_project.py`
- [Education](https://github.com/mohitr1999/ats-friendly-resume/blob/master/src/elements/resume_education.py): entry renderer · Renders education entries · `src/elements/resume_education.py`
- [Certifications](https://github.com/mohitr1999/ats-friendly-resume/blob/master/src/elements/resume_certification.py): entry renderer · Renders certification entries · `src/elements/resume_certification.py`
- [Achievements](https://github.com/mohitr1999/ats-friendly-resume/blob/master/src/elements/resume_achievement.py): entry renderer · Renders achievement entries · `src/elements/resume_achievement.py`
- [Skills](https://github.com/mohitr1999/ats-friendly-resume/blob/master/src/elements/resume_skill.py): entry renderer · Renders skill lists and categories · `src/elements/resume_skill.py`

### Runtime

Packaging and external PDF engine

- **ReportLab**: pdf engine · External library that creates PDF output
- [Fonts](https://github.com/mohitr1999/ats-friendly-resume/tree/master/res/fonts): assets · Bundled font files registered for consistent typography · `res/fonts`
- [Container](https://github.com/mohitr1999/ats-friendly-resume/tree/master/Dockerfile): runtime packaging · Dockerized execution environment for the same pipeline · `Dockerfile`
- **PDF Output**: artifact · Generated ATS-friendly resume PDF

## Connections

- Main → Config: reads · Loads runtime metadata and debug settings
- Main → Resume Data: loads · Reads structured resume content
- Main → Style Constants: uses · Applies shared layout and style values
- Main → Contact: builds · Creates the header/contact block
- Main → Summary: builds · Creates the summary block
- Main → Section Base: orchestrates · Coordinates section construction and rendering
- Section Base → Experience: renders · Uses entry renderer for experience items
- Section Base → Projects: renders · Uses entry renderer for project items
- Section Base → Education: renders · Uses entry renderer for education items
- Section Base → Certifications: renders · Uses entry renderer for certification items
- Section Base → Achievements: renders · Uses entry renderer for achievement items
- Section Base → Skills: renders · Uses entry renderer for skill items
- Experience → ReportLab: draws with · Emits PDF drawing instructions
- Projects → ReportLab: draws with · Emits PDF drawing instructions
- Education → ReportLab: draws with · Emits PDF drawing instructions
- Certifications → ReportLab: draws with · Emits PDF drawing instructions
- Achievements → ReportLab: draws with · Emits PDF drawing instructions
- Skills → ReportLab: draws with · Emits PDF drawing instructions
- Contact → ReportLab: draws with · Renders the contact header into the PDF
- Summary → ReportLab: draws with · Renders the summary into the PDF
- Fonts → ReportLab: registers · Provides local font assets to the PDF engine
- Container → Main: runs · Packages the same entry point in a container
- ReportLab → PDF Output: writes · Produces the final PDF artifact
