# shaah1d/nocode-v1 architecture

> Architecture diagram of the GitHub repository shaah1d/nocode-v1, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2025-08-31). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/shaah1d/nocode-v1
- Repository: https://github.com/shaah1d/nocode-v1

## Overview

##### Project type and purpose
- This is a full-stack web application combining:
- A Next.js / React TypeScript front-end (in `src/app`, `src/components`, etc.)
- A Python-based ML service (in the top-level `Python/` folder) that handles data preprocessing and model training/inference
- The README is minimal, but the file tree shows key features: drag-and-drop dataset upload, preprocessing, training, and result visualization.

##### File structure
- Front-end:
- `src/app/` – Next.js 13+ “app” directory containing global layout, pages, and a “playground” workspace
- `src/components/` – reusable UI: dataset uploader, progress steps, sidebar, dataset info views
- `src/components/context/MLContext.tsx` and `src/context/MLContext.tsx` – React Context for ML state management
- `src/services/api.ts` – abstraction over HTTP calls to the Python service
- config: `next.config.ts`, `postcss.config.mjs`, `eslint.config.mjs`
- Back-end (Python):
- `Python/main.py` – entry point (likely a Flask/FastAPI server)
- `Python/ml/` – core ML logic: `preprocess.py`, `models.py`, `utils.py`
- `Python/list_models.py` – utility to list available models
- `Python/requirements.txt` – Python dependencies
- No database folder is present; data storage may be ephemeral or file-based.

##### README for additional insights
- README simply states “work in progress.”
- No explicit architecture section, so infer from filenames and conventions.

##### Elements
- User actions → front end → back end → ML modules → responses

## Diagram (Mermaid)

```mermaid
flowchart TD
    Browser["User's Browser"]:::external

    subgraph "Front-end (Next.js + React)"
        APP_DIR["App Directory"]:::frontend
        UI_CMPS["UI Components"]:::frontend
        subgraph "Context Providers"
            CTX_CMP["MLContext (components)"]:::frontend
            CTX_TOP["MLContext (context)"]:::frontend
        end
        COMP_DRAG["DragDropUploader"]:::frontend
        COMP_STEPS["ProgressSteps"]:::frontend
        COMP_STEPS_DIR["Steps Directory"]:::frontend
        COMP_SUM["DatasetSummary"]:::frontend
        COMP_VIEW["ViewDatasetInfo"]:::frontend
        COMP_SIDEBAR["Sidebar"]:::frontend
        COMP_LOADING["LoadingAndError"]:::frontend
        COMP_LANDING["Landing Components"]:::frontend
        COMP_UI["UI Primitives"]:::frontend
        LIB_UTILS["lib/utils.ts"]:::frontend
        MODEL_UTILS["model-utils.ts"]:::frontend
        CFG_NEXT["next.config.ts"]:::frontend
        CFG_POSTCSS["postcss.config.mjs"]:::frontend
        CFG_ESLINT["eslint.config.mjs"]:::frontend
        API["API Layer (api.ts)"]:::frontend
    end

    subgraph "Back-end (Python ML Service)"
        PY_MAIN["main.py"]:::backend
        subgraph "ML Modules"
            PREPROCESS["preprocess.py"]:::ml
            MODELS["models.py"]:::ml
            UTILS["utils.py"]:::ml
        end
        LIST_MODELS["list_models.py"]:::backend
        REQ["requirements.txt"]:::backend
    end

    Browser --> APP_DIR
    APP_DIR --> UI_CMPS
    UI_CMPS --> COMP_DRAG
    UI_CMPS --> COMP_STEPS
    COMP_STEPS --> COMP_STEPS_DIR
    UI_CMPS --> COMP_SUM
    UI_CMPS --> COMP_VIEW
    UI_CMPS --> COMP_SIDEBAR
    UI_CMPS --> COMP_LOADING
    UI_CMPS --> COMP_LANDING
    UI_CMPS --> COMP_UI
    UI_CMPS --> LIB_UTILS
    UI_CMPS --> MODEL_UTILS
    APP_DIR --> CTX_CMP
    APP_DIR --> CTX_TOP
    APP_DIR --> CFG_NEXT
    APP_DIR --> CFG_POSTCSS
    APP_DIR --> CFG_ESLINT
    APP_DIR --> API

    API --> PY_MAIN
    PY_MAIN --> PREPROCESS
    PY_MAIN --> MODELS
    PY_MAIN --> UTILS
    PY_MAIN --> LIST_MODELS

    classDef frontend fill:#ADD8E6,stroke:#333,stroke-width:1px
    classDef backend fill:#98FB98,stroke:#333,stroke-width:1px
    classDef ml fill:#FFA500,stroke:#333,stroke-width:1px
    classDef external fill:#D3D3D3,stroke:#333,stroke-width:1px

    click APP_DIR "https://github.com/shaah1d/nocode-v1/tree/main/src/app/"
    click UI_CMPS "https://github.com/shaah1d/nocode-v1/tree/main/src/components/"
    click COMP_DRAG "https://github.com/shaah1d/nocode-v1/blob/main/src/components/DragDrop.tsx"
    click COMP_STEPS "https://github.com/shaah1d/nocode-v1/blob/main/src/components/ProgressSteps.tsx"
    click COMP_STEPS_DIR "https://github.com/shaah1d/nocode-v1/tree/main/src/components/steps/"
    click COMP_SUM "https://github.com/shaah1d/nocode-v1/blob/main/src/components/DatasetSummary.tsx"
    click COMP_VIEW "https://github.com/shaah1d/nocode-v1/blob/main/src/components/ViewDatasetInfo.tsx"
    click COMP_SIDEBAR "https://github.com/shaah1d/nocode-v1/blob/main/src/components/Sidebar.tsx"
    click COMP_LOADING "https://github.com/shaah1d/nocode-v1/blob/main/src/components/LoadingAndError.tsx"
    click COMP_LANDING "https://github.com/shaah1d/nocode-v1/tree/main/src/components/landing/"
    click COMP_UI "https://github.com/shaah1d/nocode-v1/tree/main/src/components/ui/"
    click CTX_CMP "https://github.com/shaah1d/nocode-v1/blob/main/src/components/context/MLContext.tsx"
    click CTX_TOP "https://github.com/shaah1d/nocode-v1/blob/main/src/context/MLContext.tsx"
    click API "https://github.com/shaah1d/nocode-v1/blob/main/src/services/api.ts"
    click LIB_UTILS "https://github.com/shaah1d/nocode-v1/blob/main/src/lib/utils.ts"
    click MODEL_UTILS "https://github.com/shaah1d/nocode-v1/blob/main/src/utils/model-utils.ts"
    click CFG_NEXT "https://github.com/shaah1d/nocode-v1/blob/main/next.config.ts"
    click CFG_POSTCSS "https://github.com/shaah1d/nocode-v1/blob/main/postcss.config.mjs"
    click CFG_ESLINT "https://github.com/shaah1d/nocode-v1/blob/main/eslint.config.mjs"
    click PY_MAIN "https://github.com/shaah1d/nocode-v1/blob/main/Python/main.py"
    click PREPROCESS "https://github.com/shaah1d/nocode-v1/blob/main/Python/ml/preprocess.py"
    click MODELS "https://github.com/shaah1d/nocode-v1/blob/main/Python/ml/models.py"
    click UTILS "https://github.com/shaah1d/nocode-v1/blob/main/Python/ml/utils.py"
    click LIST_MODELS "https://github.com/shaah1d/nocode-v1/blob/main/Python/list_models.py"
    click REQ "https://github.com/shaah1d/nocode-v1/blob/main/Python/requirements.txt"
```
