# lankesathwik7/system-design-generator architecture

> Architecture diagram of the GitHub repository lankesathwik7/system-design-generator, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-12-04). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/lankesathwik7/system-design-generator
- Repository: https://github.com/lankesathwik7/system-design-generator

## Overview

System Design Generator is a Streamlit app that accepts system requirements and technical preferences, sends them to a Groq model for analysis, then presents the resulting architecture diagram and implementation plan. The README also describes multi-cloud recommendations, customizable output, and validation. The separate DiagramGenerator can construct Mermaid diagrams from analysis data, but no sampled call connects it to the app workflow; its relationship is therefore left unasserted.

Main entry points: [`streamlit_app.py`](https://github.com/lankesathwik7/system-design-generator/blob/main/streamlit_app.py) (Streamlit workflow), [`utils/ai_processor.py`](https://github.com/lankesathwik7/system-design-generator/blob/main/utils/ai_processor.py) (Requirements analysis)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_ui["User Interface"]
  node_app["Streamlit workflow<br/>[streamlit_app.py]"]
  node_preferences["Design preferences<br/>[streamlit_app.py]"]
  node_results["Analysis results<br/>[streamlit_app.py]"]
end

subgraph group_analysis["AI Analysis"]
  node_processor["Requirements analysis<br/>[ai_processor.py]"]
  node_groq{{"Groq LLM"}}
  node_response["Response parsing<br/>[ai_processor.py]"]
end

subgraph group_visualization["Diagram Output"]
  node_diagram_generator["Diagram generation helper"]
  node_mermaid{{"Mermaid renderer"}}
end

node_user(("System designer"))

node_user -->|"enters requirements"| node_app
node_user -->|"selects options"| node_preferences
node_app -->|"submits analysis"| node_processor
node_preferences -->|"passes preferences"| node_processor
node_processor -->|"requests completion"| node_groq
node_processor -->|"parses response"| node_response
node_response -->|"returns analysis"| node_app
node_app -->|"displays plan"| node_results
node_app -->|"renders diagram"| node_mermaid

click node_app "https://github.com/lankesathwik7/system-design-generator/blob/main/streamlit_app.py"
click node_preferences "https://github.com/lankesathwik7/system-design-generator/blob/main/streamlit_app.py"
click node_results "https://github.com/lankesathwik7/system-design-generator/blob/main/streamlit_app.py"
click node_processor "https://github.com/lankesathwik7/system-design-generator/blob/main/utils/ai_processor.py"
click node_response "https://github.com/lankesathwik7/system-design-generator/blob/main/utils/ai_processor.py"
click node_diagram_generator "https://github.com/lankesathwik7/system-design-generator/blob/main/utils/diagram_generator.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_preferences,node_results toneBlue
class node_processor,node_groq,node_response toneAmber
class node_diagram_generator,node_mermaid toneMint
class node_user toneIndigo
```

## Components

### User Interface

- [Streamlit workflow](https://github.com/lankesathwik7/system-design-generator/blob/main/streamlit_app.py): `streamlit_app.py`
- [Design preferences](https://github.com/lankesathwik7/system-design-generator/blob/main/streamlit_app.py): `streamlit_app.py`
- [Analysis results](https://github.com/lankesathwik7/system-design-generator/blob/main/streamlit_app.py): `streamlit_app.py`

### AI Analysis

- [Requirements analysis](https://github.com/lankesathwik7/system-design-generator/blob/main/utils/ai_processor.py): `utils/ai_processor.py`
- **Groq LLM**
- [Response parsing](https://github.com/lankesathwik7/system-design-generator/blob/main/utils/ai_processor.py): `utils/ai_processor.py`

### Diagram Output

- [Diagram generation helper](https://github.com/lankesathwik7/system-design-generator/blob/main/utils/diagram_generator.py): `utils/diagram_generator.py`
- **Mermaid renderer**

### Other components

- **System designer**

## Connections

- System designer → Streamlit workflow: enters requirements (evidence: `streamlit_app.py`)
- System designer → Design preferences: selects options (evidence: `streamlit_app.py`)
- Streamlit workflow → Requirements analysis: submits analysis (evidence: `streamlit_app.py`)
- Design preferences → Requirements analysis: passes preferences (evidence: `streamlit_app.py`)
- Requirements analysis → Groq LLM: requests completion (evidence: `utils/ai_processor.py`)
- Requirements analysis → Response parsing: parses response (evidence: `utils/ai_processor.py`)
- Response parsing → Streamlit workflow: returns analysis (evidence: `streamlit_app.py`)
- Streamlit workflow → Analysis results: displays plan (evidence: `streamlit_app.py`)
- Streamlit workflow → Mermaid renderer: renders diagram (evidence: `streamlit_app.py`)
