# swagatobmca2024-cpu/hirelyzer-career-based-saas-platform architecture

> Architecture diagram of the GitHub repository swagatobmca2024-cpu/hirelyzer-career-based-saas-platform, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-07-15). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/swagatobmca2024-cpu/hirelyzer-career-based-saas-platform
- Repository: https://github.com/swagatobmca2024-cpu/hirelyzer-career-based-saas-platform

## Overview

#### Purpose and entry point
HIRELYZER is a Python/Streamlit career-assistance application for resume analysis, inclusive rewriting, job/course discovery, resume creation, and administrator visibility. The primary UI/runtime entry point is `main.py`; Streamlit behavior is configured in `.streamlit/config.toml`.

#### Application orchestration and user access
The Streamlit application coordinates user-facing feature areas and session-driven navigation. Authentication and user/admin separation are handled by `user_login.py`, while administrative activity and trend views are exposed through `admin_logs.py`. This is a stateful interactive application rather than a separate frontend/backend web service.

#### Resume ingestion and analysis pipeline
Resume input is parsed and normalized before scoring or recommendation stages. `resume_processor.py` is the document-processing boundary, with PDF/OCR-related dependencies indicated by the project stack. `resume_engine.py` performs core resume evaluation, including ATS-oriented matching, keyword gaps, language/format feedback, and weighted scoring. `report_generator.py` converts analysis results into user-consumable reports or summaries.

Primary flow: uploaded/provided resume → extraction/processing → structured resume content → scoring against job description → report/dashboard/recommendations.

#### LLM and inclusive-language capabilities
`llm_manager.py` centralizes the external Groq/LLaMA integration, forming the boundary between local analysis logic and hosted model calls. `job_scam_detector.py` applies AI or language analysis to job-posting safety signals. `cover_letter.py` uses the same AI-oriented capability area to generate or tailor application content. LLM-derived outputs should remain downstream of local parsing/scoring and be treated as external-service results.

#### Resume construction and career recommendations
`resume_builder.py` supports interactive creation of resume sections and presentation-oriented output. `courses.py` provides role- or skill-aligned learning recommendations. Job discovery/recommendation functionality is represented by `tab3_backend.py`, with corresponding data and interface layers in `tab3_data.py` and `tab3_ui.py`; this area likely produces external job-platform links rather than operating a proprietary job index.

#### Persistence, search, and operational boundaries
SQLite persistence is encapsulated by `database.py` and operational database access/management by `db_manager.py`. Stored concerns include users, resumes, session/activity logs, and potentially analysis history. The stated stack also includes FAISS and HuggingFace embeddings, establishing a local vector-search/retrieval capability alongside relational SQLite storage. Runtime dependencies are declared in `requirements.txt`; secrets or deployment-specific values are expected to be supplied from a configuration derived from `config.template.json`.

#### Material infrastructure and external services
The application runs on Python 3.10+ with Streamlit. It depends on Groq’s API and LLaMA 3.3 for generative features; EasyOCR/PyMuPDF/pdf2image for document extraction; FAISS plus HuggingFace embeddings for vector search; and NLTK/regex logic for language and gender-coded-bias detection. External job sources are surfaced through links to LinkedIn, Naukri, and FoundIt, making availability and content outside the application’s control.

Main entry points: [`main.py`](https://github.com/swagatobmca2024-cpu/hirelyzer-career-based-saas-platform/blob/main/main.py) (Streamlit entry point), [`resume_engine.py`](https://github.com/swagatobmca2024-cpu/hirelyzer-career-based-saas-platform/blob/main/resume_engine.py) (Resume evaluation), [`llm_manager.py`](https://github.com/swagatobmca2024-cpu/hirelyzer-career-based-saas-platform/blob/main/llm_manager.py) (Groq/LLaMA gateway), [`db_manager.py`](https://github.com/swagatobmca2024-cpu/hirelyzer-career-based-saas-platform/blob/main/db_manager.py) (Database operations)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_app["Streamlit application"]
  node_main["Streamlit entry point<br/>Python UI runtime<br/>[main.py]"]
  node_auth["User and admin access<br/>authentication<br/>[user_login.py]"]
  node_admin["Admin activity views<br/>administration<br/>[admin_logs.py]"]
end

subgraph group_resume["Resume pipeline"]
  node_processor["Resume extraction<br/>document processing"]
  node_engine{{"Resume evaluation<br/>analysis engine<br/>[resume_engine.py]"}}
  node_reports["Analysis reports<br/>reporting"]
end

subgraph group_ai["AI and career features"]
  node_llm{{"Groq/LLaMA gateway<br/>LLM integration<br/>[llm_manager.py]"}}
  node_scam["Job scam detection<br/>job safety analysis"]
  node_cover_letter["Cover letter generation<br/>application content<br/>[cover_letter.py]"]
  node_builder["Resume builder<br/>interactive authoring<br/>[resume_builder.py]"]
  node_courses["Course recommendations<br/>career recommendations<br/>[courses.py]"]
  node_job_ui["Job discovery UI<br/>job interface<br/>[tab3_ui.py]"]
  node_job_backend["Job recommendations<br/>job discovery backend<br/>[tab3_backend.py]"]
  node_job_data["Job source data<br/>job data layer<br/>[tab3_data.py]"]
end

subgraph group_data["Data and retrieval"]
  node_database[("SQLite persistence<br/>relational storage<br/>[database.py]")]
  node_db_manager["Database operations<br/>persistence access<br/>[db_manager.py]"]
  node_vector_search[("FAISS retrieval<br/>local vector search")]
end

subgraph group_external["External services"]
  node_groq(("Groq LLaMA service<br/>hosted LLM"))
  node_job_platforms(("Job platforms<br/>external job sources"))
end

node_main -->|"user access"| node_auth
node_main -->|"admin navigation"| node_admin
node_main -->|"resume upload"| node_processor
node_processor -->|"structured content"| node_engine
node_engine -->|"scores and feedback"| node_reports
node_main -->|"dashboard output"| node_reports
node_main -->|"resume creation"| node_builder
node_main -->|"learning guidance"| node_courses
node_main -->|"job discovery"| node_job_ui
node_job_ui -->|"queries"| node_job_backend
node_job_backend -->|"source data"| node_job_data
node_job_backend -->|"external links"| node_job_platforms
node_engine -.->|"AI-assisted feedback"| node_llm
node_llm -->|"model requests"| node_groq
node_scam -->|"language analysis"| node_llm
node_cover_letter -->|"generation request"| node_llm
node_main -->|"job safety check"| node_scam
node_main -->|"application content"| node_cover_letter
node_db_manager -->|"read and write"| node_database
node_auth -->|"user records"| node_db_manager
node_admin -->|"activity data"| node_db_manager
node_engine -->|"analysis history"| node_db_manager
node_courses -->|"similarity retrieval"| node_vector_search

click node_main "https://github.com/swagatobmca2024-cpu/hirelyzer-career-based-saas-platform/blob/main/main.py"
click node_auth "https://github.com/swagatobmca2024-cpu/hirelyzer-career-based-saas-platform/blob/main/user_login.py"
click node_admin "https://github.com/swagatobmca2024-cpu/hirelyzer-career-based-saas-platform/blob/main/admin_logs.py"
click node_processor "https://github.com/swagatobmca2024-cpu/hirelyzer-career-based-saas-platform/blob/main/resume_processor.py"
click node_engine "https://github.com/swagatobmca2024-cpu/hirelyzer-career-based-saas-platform/blob/main/resume_engine.py"
click node_reports "https://github.com/swagatobmca2024-cpu/hirelyzer-career-based-saas-platform/blob/main/report_generator.py"
click node_llm "https://github.com/swagatobmca2024-cpu/hirelyzer-career-based-saas-platform/blob/main/llm_manager.py"
click node_scam "https://github.com/swagatobmca2024-cpu/hirelyzer-career-based-saas-platform/blob/main/job_scam_detector.py"
click node_cover_letter "https://github.com/swagatobmca2024-cpu/hirelyzer-career-based-saas-platform/blob/main/cover_letter.py"
click node_builder "https://github.com/swagatobmca2024-cpu/hirelyzer-career-based-saas-platform/blob/main/resume_builder.py"
click node_courses "https://github.com/swagatobmca2024-cpu/hirelyzer-career-based-saas-platform/blob/main/courses.py"
click node_job_ui "https://github.com/swagatobmca2024-cpu/hirelyzer-career-based-saas-platform/blob/main/tab3_ui.py"
click node_job_backend "https://github.com/swagatobmca2024-cpu/hirelyzer-career-based-saas-platform/blob/main/tab3_backend.py"
click node_job_data "https://github.com/swagatobmca2024-cpu/hirelyzer-career-based-saas-platform/blob/main/tab3_data.py"
click node_database "https://github.com/swagatobmca2024-cpu/hirelyzer-career-based-saas-platform/blob/main/database.py"
click node_db_manager "https://github.com/swagatobmca2024-cpu/hirelyzer-career-based-saas-platform/blob/main/db_manager.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_main,node_auth,node_admin toneBlue
class node_processor,node_engine,node_reports toneAmber
class node_llm,node_scam,node_cover_letter,node_builder,node_courses,node_job_ui,node_job_backend,node_job_data toneMint
class node_database,node_db_manager,node_vector_search toneRose
class node_groq,node_job_platforms toneIndigo
```

## Components

### Streamlit application

- [Streamlit entry point](https://github.com/swagatobmca2024-cpu/hirelyzer-career-based-saas-platform/blob/main/main.py): Python UI runtime · Coordinates navigation and user-facing workflows. · `main.py`
- [User and admin access](https://github.com/swagatobmca2024-cpu/hirelyzer-career-based-saas-platform/blob/main/user_login.py): authentication · `user_login.py`
- [Admin activity views](https://github.com/swagatobmca2024-cpu/hirelyzer-career-based-saas-platform/blob/main/admin_logs.py): administration · `admin_logs.py`

### Resume pipeline

- [Resume extraction](https://github.com/swagatobmca2024-cpu/hirelyzer-career-based-saas-platform/blob/main/resume_processor.py): document processing · Parses and normalizes uploaded resume content. · `resume_processor.py`
- [Resume evaluation](https://github.com/swagatobmca2024-cpu/hirelyzer-career-based-saas-platform/blob/main/resume_engine.py): analysis engine · Performs ATS matching, gap analysis, feedback, and scoring. · `resume_engine.py`
- [Analysis reports](https://github.com/swagatobmca2024-cpu/hirelyzer-career-based-saas-platform/blob/main/report_generator.py): reporting · `report_generator.py`

### AI and career features

- [Groq/LLaMA gateway](https://github.com/swagatobmca2024-cpu/hirelyzer-career-based-saas-platform/blob/main/llm_manager.py): LLM integration · Central boundary for hosted model calls. · `llm_manager.py`
- [Job scam detection](https://github.com/swagatobmca2024-cpu/hirelyzer-career-based-saas-platform/blob/main/job_scam_detector.py): job safety analysis · `job_scam_detector.py`
- [Cover letter generation](https://github.com/swagatobmca2024-cpu/hirelyzer-career-based-saas-platform/blob/main/cover_letter.py): application content · `cover_letter.py`
- [Resume builder](https://github.com/swagatobmca2024-cpu/hirelyzer-career-based-saas-platform/blob/main/resume_builder.py): interactive authoring · `resume_builder.py`
- [Course recommendations](https://github.com/swagatobmca2024-cpu/hirelyzer-career-based-saas-platform/blob/main/courses.py): career recommendations · `courses.py`
- [Job discovery UI](https://github.com/swagatobmca2024-cpu/hirelyzer-career-based-saas-platform/blob/main/tab3_ui.py): job interface · `tab3_ui.py`
- [Job recommendations](https://github.com/swagatobmca2024-cpu/hirelyzer-career-based-saas-platform/blob/main/tab3_backend.py): job discovery backend · `tab3_backend.py`
- [Job source data](https://github.com/swagatobmca2024-cpu/hirelyzer-career-based-saas-platform/blob/main/tab3_data.py): job data layer · `tab3_data.py`

### Data and retrieval

- [SQLite persistence](https://github.com/swagatobmca2024-cpu/hirelyzer-career-based-saas-platform/blob/main/database.py): relational storage · Stores users, resumes, activity, and analysis history. · `database.py`
- [Database operations](https://github.com/swagatobmca2024-cpu/hirelyzer-career-based-saas-platform/blob/main/db_manager.py): persistence access · `db_manager.py`
- **FAISS retrieval**: local vector search · Uses HuggingFace embeddings for similarity retrieval.

### External services

- **Groq LLaMA service**: hosted LLM
- **Job platforms**: external job sources · LinkedIn, Naukri, and FoundIt links.

## Connections

- Streamlit entry point → User and admin access: user access
- Streamlit entry point → Admin activity views: admin navigation
- Streamlit entry point → Resume extraction: resume upload
- Resume extraction → Resume evaluation: structured content
- Resume evaluation → Analysis reports: scores and feedback
- Streamlit entry point → Analysis reports: dashboard output
- Streamlit entry point → Resume builder: resume creation
- Streamlit entry point → Course recommendations: learning guidance
- Streamlit entry point → Job discovery UI: job discovery
- Job discovery UI → Job recommendations: queries
- Job recommendations → Job source data: source data
- Job recommendations → Job platforms: external links
- Resume evaluation → Groq/LLaMA gateway: AI-assisted feedback
- Groq/LLaMA gateway → Groq LLaMA service: model requests
- Job scam detection → Groq/LLaMA gateway: language analysis
- Cover letter generation → Groq/LLaMA gateway: generation request
- Streamlit entry point → Job scam detection: job safety check
- Streamlit entry point → Cover letter generation: application content
- Database operations → SQLite persistence: read and write
- User and admin access → Database operations: user records
- Admin activity views → Database operations: activity data
- Resume evaluation → Database operations: analysis history
- Course recommendations → FAISS retrieval: similarity retrieval
