# kevalparmar75/summit-slayer architecture

> Architecture diagram of the GitHub repository kevalparmar75/summit-slayer, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2025-04-30). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/kevalparmar75/summit-slayer
- Repository: https://github.com/kevalparmar75/summit-slayer

## Overview

##### Project type and purpose
- Talent Tuner is a full-stack web application (Flask + optional Streamlit frontend) that ingests user inputs (resume text, code snippets, LinkedIn profile data) and uses Google’s Generative AI (Gemini) API to analyze and return improvement suggestions.

##### File structure
- Top level:
- app.py – Flask application entry point
- main.py – Streamlit application entry point (alternative frontend)
- codereview.py – Python module containing the logic to call Gemini for code review
- css/, js/, images/ – static assets for the Flask‐served UI
- templates/ – Jinja2 HTML templates (index.html, login.html)
- requirements.txt – lists Python dependencies

##### README for additional insights
- Key features: Resume Review, Code Review, LinkedIn Profile Review
- Tech stack: Flask (web server), Python modules with logic, Streamlit as an optional quick frontend, external Google Gemini API
- No database is mentioned—state is ephemeral or passed through API calls.

##### Elements
- Labels:
- “Browser UI” / “Streamlit UI”
- “Flask App (app.py)”
- “codereview.py”, “resumereview.py”, “linkedinreview.py”
- “Google Gemini API”
- Flow of data (User → Flask → Logic → Gemini → Flask → User)
- If using Streamlit: User → Streamlit → Logic → Gemini → Streamlit → User
- Rectangles for components (UI, server, modules)
- Clouds for external services

## Diagram (Mermaid)

```mermaid
flowchart TB
    %% Frontend Layer
    subgraph "Frontend Layer"
        direction TB
        BrowserUI["Browser UI<br/>(Flask‐served)"]:::ui
        subgraph "Static Assets"
            direction TB
            CSS["css/"]:::ui
            JS["js/"]:::ui
            IMG["images/"]:::ui
        end
        subgraph "Templates"
            direction TB
            TPL["templates/"]:::ui
        end
    end

    %% Streamlit UI
    StreamlitUI["Streamlit UI<br/>(main.py)"]:::ui

    %% Backend Layer
    subgraph "Backend Layer"
        direction TB
        FlaskApp["Flask App<br/>(app.py)"]:::backend
        subgraph "Business Logic Modules"
            direction TB
            CodeReview["codereview.py"]:::module
            ResumeReview["resumereview.py"]:::stub
            LinkedInReview["linkedinreview.py"]:::stub
        end
        Dependencies["requirements.txt"]:::backend
    end

    %% External Services
    Gemini["Google Gemini API"]:::external

    %% Data Flows
    User["User"]:::external
    User -->|uses| BrowserUI
    BrowserUI -->|HTTP Request| FlaskApp
    FlaskApp -->|calls| CodeReview
    FlaskApp -->|calls| ResumeReview
    FlaskApp -->|calls| LinkedInReview
    CodeReview -->|API Call| Gemini
    ResumeReview -->|API Call| Gemini
    LinkedInReview -->|API Call| Gemini
    Gemini -->|response| FlaskApp
    FlaskApp -->|renders| BrowserUI
    User -.->|uses| StreamlitUI
    StreamlitUI -->|direct call| CodeReview
    StreamlitUI -->|direct call| ResumeReview
    StreamlitUI -->|direct call| LinkedInReview
    CodeReview -->|API Call| Gemini
    ResumeReview -->|API Call| Gemini
    LinkedInReview -->|API Call| Gemini
    Gemini -->|response| StreamlitUI

    %% Click Events
    click CSS "https://github.com/kevalparmar75/summit-slayer/tree/main/css/"
    click JS "https://github.com/kevalparmar75/summit-slayer/tree/main/js/"
    click IMG "https://github.com/kevalparmar75/summit-slayer/tree/main/images/"
    click TPL "https://github.com/kevalparmar75/summit-slayer/tree/main/templates/"
    click StreamlitUI "https://github.com/kevalparmar75/summit-slayer/blob/main/main.py"
    click FlaskApp "https://github.com/kevalparmar75/summit-slayer/blob/main/app.py"
    click CodeReview "https://github.com/kevalparmar75/summit-slayer/blob/main/codereview.py"
    click Dependencies "https://github.com/kevalparmar75/summit-slayer/blob/main/requirements.txt"

    %% Styles
    classDef ui fill:#EEF8FF,stroke:#0366D6,stroke-width:2px
    classDef backend fill:#FEF9E7,stroke:#D4AC0D,stroke-width:2px
    classDef module fill:#E8F8F5,stroke:#117A65,stroke-width:2px
    classDef external fill:#F5EEF8,stroke:#8E44AD,stroke-width:2px,stroke-dasharray: 5 5
    classDef stub fill:#FDEDEC,stroke:#C0392B,stroke-width:2px,stroke-dasharray: 5 5
```
