# gokulsanjayreddy/autoinsight architecture

> Architecture diagram of the GitHub repository gokulsanjayreddy/autoinsight, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-09). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/gokulsanjayreddy/autoinsight
- Repository: https://github.com/gokulsanjayreddy/autoinsight

## Overview

AutoInsight is a Streamlit CSV-to-EDA application: users upload a dataset or load the demo, receive a profile and categorized standalone charts, then download individual PNGs or a ZIP. The app handles input and presentation; a headless pipeline profiles the data, calls chart generators, encodes figures, and packages the archive. The README documents the full chart coverage. Source excerpts show the pipeline’s calls and loader behavior; the app excerpt is partial, so UI-to-pipeline details beyond its visible imports and documented workflow are not expanded.

Main entry points: [`modules/pipeline.py`](https://github.com/gokulsanjayreddy/autoinsight/blob/main/modules/pipeline.py) (Analysis orchestrator), [`app.py`](https://github.com/gokulsanjayreddy/autoinsight/blob/main/app.py) (Streamlit app), [`modules/data_loader.py`](https://github.com/gokulsanjayreddy/autoinsight/blob/main/modules/data_loader.py) (CSV loader), [`modules/eda.py`](https://github.com/gokulsanjayreddy/autoinsight/blob/main/modules/eda.py) (Summary and missingness)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_interface["App interface"]
  node_app["Streamlit app<br/>[app.py]"]
  node_downloads["Chart downloads<br/>[app.py]"]
end

subgraph group_data["Dataset intake"]
  node_csv["CSV loader<br/>[data_loader.py]"]
  node_demo["Demo dataset<br/>[data_loader.py]"]
end

subgraph group_analysis["EDA pipeline"]
  node_profile["Dataset profiler<br/>[data_loader.py]"]
  node_pipeline["Analysis orchestrator<br/>[pipeline.py]"]
  node_summary["Summary and missingness<br/>[eda.py]"]
  node_univariate["Univariate charts<br/>[eda.py]"]
  node_categorical["Category and correlation charts<br/>[eda.py]"]
  node_relationships["Relationship charts<br/>[eda.py]"]
end

subgraph group_outputs["Chart exports"]
  node_png["PNG encoding<br/>[eda.py]"]
  node_zip["ZIP packaging<br/>[eda.py]"]
end

node_user(("Data analyst"))

node_user -->|"uploads or selects"| node_app
node_app -->|"loads CSV"| node_csv
node_app -->|"loads demo"| node_demo
node_app -->|"requests analysis"| node_pipeline
node_pipeline -->|"profiles dataset"| node_profile
node_pipeline -->|"generates figures"| node_summary
node_pipeline -->|"generates figures"| node_univariate
node_pipeline -->|"generates figures"| node_categorical
node_pipeline -->|"generates figures"| node_relationships
node_pipeline -->|"encodes figures"| node_png
node_pipeline -->|"packages figures"| node_zip
node_app -->|"offers downloads"| node_downloads
node_downloads -->|"provides PNG or ZIP"| node_user

click node_app "https://github.com/gokulsanjayreddy/autoinsight/blob/main/app.py"
click node_csv "https://github.com/gokulsanjayreddy/autoinsight/blob/main/modules/data_loader.py"
click node_demo "https://github.com/gokulsanjayreddy/autoinsight/blob/main/modules/data_loader.py"
click node_profile "https://github.com/gokulsanjayreddy/autoinsight/blob/main/modules/data_loader.py"
click node_pipeline "https://github.com/gokulsanjayreddy/autoinsight/blob/main/modules/pipeline.py"
click node_summary "https://github.com/gokulsanjayreddy/autoinsight/blob/main/modules/eda.py"
click node_univariate "https://github.com/gokulsanjayreddy/autoinsight/blob/main/modules/eda.py"
click node_categorical "https://github.com/gokulsanjayreddy/autoinsight/blob/main/modules/eda.py"
click node_relationships "https://github.com/gokulsanjayreddy/autoinsight/blob/main/modules/eda.py"
click node_png "https://github.com/gokulsanjayreddy/autoinsight/blob/main/modules/eda.py"
click node_zip "https://github.com/gokulsanjayreddy/autoinsight/blob/main/modules/eda.py"
click node_downloads "https://github.com/gokulsanjayreddy/autoinsight/blob/main/app.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_app,node_downloads toneBlue
class node_csv,node_demo toneAmber
class node_profile,node_pipeline,node_summary,node_univariate,node_categorical,node_relationships toneMint
class node_png,node_zip toneRose
class node_user toneIndigo
```

## Components

### App interface

- [Streamlit app](https://github.com/gokulsanjayreddy/autoinsight/blob/main/app.py): `app.py`
- [Chart downloads](https://github.com/gokulsanjayreddy/autoinsight/blob/main/app.py): `app.py`

### Dataset intake

- [CSV loader](https://github.com/gokulsanjayreddy/autoinsight/blob/main/modules/data_loader.py): `modules/data_loader.py`
- [Demo dataset](https://github.com/gokulsanjayreddy/autoinsight/blob/main/modules/data_loader.py): `modules/data_loader.py`

### EDA pipeline

- [Dataset profiler](https://github.com/gokulsanjayreddy/autoinsight/blob/main/modules/data_loader.py): `modules/data_loader.py`
- [Analysis orchestrator](https://github.com/gokulsanjayreddy/autoinsight/blob/main/modules/pipeline.py): `modules/pipeline.py`
- [Summary and missingness](https://github.com/gokulsanjayreddy/autoinsight/blob/main/modules/eda.py): `modules/eda.py`
- [Univariate charts](https://github.com/gokulsanjayreddy/autoinsight/blob/main/modules/eda.py): `modules/eda.py`
- [Category and correlation charts](https://github.com/gokulsanjayreddy/autoinsight/blob/main/modules/eda.py): `modules/eda.py`
- [Relationship charts](https://github.com/gokulsanjayreddy/autoinsight/blob/main/modules/eda.py): `modules/eda.py`

### Chart exports

- [PNG encoding](https://github.com/gokulsanjayreddy/autoinsight/blob/main/modules/eda.py): `modules/eda.py`
- [ZIP packaging](https://github.com/gokulsanjayreddy/autoinsight/blob/main/modules/eda.py): `modules/eda.py`

### Other components

- **Data analyst**

## Connections

- Data analyst → Streamlit app: uploads or selects (evidence: `README.md`)
- Streamlit app → CSV loader: loads CSV (evidence: `app.py`)
- Streamlit app → Demo dataset: loads demo (evidence: `app.py`)
- Streamlit app → Analysis orchestrator: requests analysis (evidence: `app.py`)
- Analysis orchestrator → Dataset profiler: profiles dataset (evidence: `modules/pipeline.py`)
- Analysis orchestrator → Summary and missingness: generates figures (evidence: `modules/pipeline.py`)
- Analysis orchestrator → Univariate charts: generates figures (evidence: `modules/pipeline.py`)
- Analysis orchestrator → Category and correlation charts: generates figures (evidence: `modules/pipeline.py`)
- Analysis orchestrator → Relationship charts: generates figures (evidence: `modules/pipeline.py`)
- Analysis orchestrator → PNG encoding: encodes figures (evidence: `modules/pipeline.py`)
- Analysis orchestrator → ZIP packaging: packages figures (evidence: `modules/pipeline.py`)
- Streamlit app → Chart downloads: offers downloads (evidence: `app.py`)
- Chart downloads → Data analyst: provides PNG or ZIP (evidence: `README.md`)
