# doyouevensheesh/nocrap architecture

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

- Interactive diagram: https://gitdiagram.com/doyouevensheesh/nocrap
- Repository: https://github.com/doyouevensheesh/nocrap

## Overview

##### Main Components

a) Frontend Layer:
- Web interface (templates/index.html)
- Static assets (CSS)
- User interaction flow

b) Application Layer:
- Flask web server (app.py)
- Text summarization engine (decrappify.py)

c) Processing Layer:
- Text summarization logic
- Natural Language Processing components

**[User Interface Layer]**
- ↕
**[Application Layer]**
- ↕
**[Processing Layer]**

##### Additional Elements

- Technology labels (Flask, Python)
- HTTP request/response flow
- Data transformation points

##### Technical Details

- Entry points (app.py)
- Static file serving
- Template rendering flow
- Core summarization logic

## Diagram (Mermaid)

```mermaid
graph TB
    subgraph "User Interface Layer"
        UI[Web Interface]:::frontend
        SA[Static Assets]:::frontend
    end

    subgraph "Application Layer"
        FS[Flask Server]:::application
        RT[Request Handler]:::application
    end

    subgraph "Processing Layer"
        TS[Text Summarization Engine]:::processing
        NLP[NLP Processing]:::processing
    end

    %% Flow representation
    User((User)) --> |Input Text| UI
    UI --> |HTTP POST| FS
    FS --> |Route Request| RT
    RT --> |Process Text| TS
    TS --> |Text Analysis| NLP
    NLP --> |Processed Text| TS
    TS --> |Summary| RT
    RT --> |Response| FS
    FS --> |Render Template| UI
    UI --> |Display Summary| User

    %% Component relationships
    UI --- SA
    
    %% Click events for component mapping
    click UI "https://github.com/DoYouEvenSheesh/nocrap/blob/main/src/templates/index.html"
    click SA "https://github.com/DoYouEvenSheesh/nocrap/blob/main/src/static/style.css"
    click FS "https://github.com/DoYouEvenSheesh/nocrap/blob/main/src/app.py"
    click TS "https://github.com/DoYouEvenSheesh/nocrap/blob/main/src/decrappify.py"
    
    %% Styling
    classDef frontend fill:#3498db,stroke:#2980b9,color:white
    classDef application fill:#2ecc71,stroke:#27ae60,color:white
    classDef processing fill:#e67e22,stroke:#d35400,color:white

    %% Legend
    subgraph Legend
        L1[Frontend Components]:::frontend
        L2[Application Components]:::application
        L3[Processing Components]:::processing
    end
```
