# bhargava-k/interview-proxy-detection-system architecture

> Architecture diagram of the GitHub repository bhargava-k/interview-proxy-detection-system, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2025-04-05). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/bhargava-k/interview-proxy-detection-system
- Repository: https://github.com/bhargava-k/interview-proxy-detection-system

## Overview

- Backend Monitoring Module (app.py): This file contains the core logic for real-time system monitoring, detecting running processes, and flagging any proxy usage during interviews.
- Frontend UI Component (templates folder): Includes HTML templates (index.html and device_info.html) which present monitoring results or device information to the interviewer.
- Data Storage (client_data.csv): Holds client or activity data that could be used for logging and further analysis.

##### Relationships and Data Flow
- Flow starting from the Client Device/Interview Session where the system monitors applications and processes.
- Optional: Represent a configuration element that supplies startup settings to the app.

##### Architectural Patterns and Design Principles
- Clearly separate the concerns: the monitoring logic in app.py vs. the presentation layer in the templates.
- Although it is a relatively simple design, visually convey a modular architecture so that future extensions (e.g., adding a dedicated process for logging, external alert systems, or API interfaces) can be easily integrated.
- Technology choices – for instance, Python for the core functionality and HTML for the UI rendering.

## Diagram (Mermaid)

```mermaid
flowchart TD
    Client["Client Device/Interview Session"]:::external
    Config["Configuration Module (config.json)"]:::config
    Monitor["Monitoring Module (app.py)"]:::backend
    UI["User Interface (HTML Templates)"]:::frontend
    Storage["Data Storage (client_data.csv)"]:::storage
    Logs["Logs Directory"]:::logs

    Client -->|"monitors"| Monitor
    Config -->|"configures"| Monitor
    Monitor -->|"renders"| UI
    Monitor -->|"stores"| Storage
    Monitor -->|"logs"| Logs

    click Monitor "https://github.com/bhargava-k/interview-proxy-detection-system/blob/main/app.py"
    click UI "https://github.com/bhargava-k/interview-proxy-detection-system/tree/main/templates/"
    click Storage "https://github.com/bhargava-k/interview-proxy-detection-system/blob/main/client_data.csv"

    classDef backend fill:#AED6F1,stroke:#2471A3,stroke-width:2px;
    classDef frontend fill:#A9DFBF,stroke:#27AE60,stroke-width:2px;
    classDef storage fill:#F9E79F,stroke:#B9770E,stroke-width:2px;
    classDef logs fill:#F5CBA7,stroke:#D35400,stroke-width:2px;
    classDef config fill:#D2B4DE,stroke:#8E44AD,stroke-width:2px;
    classDef external fill:#FADBD8,stroke:#C0392B,stroke-width:2px;
```
