# shubham39874/ipo-gmp-screener architecture

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

- Interactive diagram: https://gitdiagram.com/shubham39874/ipo-gmp-screener
- Repository: https://github.com/shubham39874/ipo-gmp-screener

## Overview

This Streamlit app fetches live Mainboard IPO GMP and subscription data, filters and presents IPOs by GMP threshold, and lets users download results. A second workflow builds structured IPO research prompts from screened or manually added IPOs; analysis is completed by the user in Gemini, not through a Gemini API. The graph separates acquisition, screening, presentation, and research. Source excerpts show the app-to-scraper calls and scraper configuration; unsampled implementation details are not expanded into additional relationships.

Main entry points: [`app.py`](https://github.com/shubham39874/ipo-gmp-screener/blob/main/app.py) (Streamlit screener), [`scraper.py`](https://github.com/shubham39874/ipo-gmp-screener/blob/main/scraper.py) (Live data scraper), [`config.py`](https://github.com/shubham39874/ipo-gmp-screener/blob/main/config.py) (Scraper settings)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_acquisition["Data acquisition"]
  node_scrape["Live data scraper<br/>[scraper.py]"]
  node_config["Scraper settings<br/>[config.py]"]
end

subgraph group_screening["Screening"]
  node_filter["IPO filtering<br/>[scraper.py]"]
end

subgraph group_presentation["Screener interface"]
  node_ui["Streamlit screener<br/>[app.py]"]
  node_metrics["Summary and results<br/>[app.py]"]
  node_download["CSV export<br/>[app.py]"]
end

subgraph group_research["Research assistant"]
  node_promptdata["Research inputs<br/>[app.py]"]
  node_promptbuilders["Research prompt builders<br/>[app.py]"]
end

node_user(("User"))
node_source{{"IPO data sources"}}
node_gemini(("Gemini"))

node_user -->|"uses"| node_ui
node_ui -->|"fetches data"| node_scrape
node_scrape -->|"scrapes"| node_source
node_scrape -->|"reads settings"| node_config
node_ui -->|"filters IPOs"| node_filter
node_filter -->|"summarizes results"| node_metrics
node_filter -->|"exports results"| node_download
node_ui -->|"prepares inputs"| node_promptdata
node_promptdata -->|"provides IPO data"| node_promptbuilders
node_promptbuilders -->|"prompts user"| node_gemini
node_user -->|"submits prompt"| node_gemini

click node_scrape "https://github.com/shubham39874/ipo-gmp-screener/blob/main/scraper.py"
click node_config "https://github.com/shubham39874/ipo-gmp-screener/blob/main/config.py"
click node_filter "https://github.com/shubham39874/ipo-gmp-screener/blob/main/scraper.py"
click node_ui "https://github.com/shubham39874/ipo-gmp-screener/blob/main/app.py"
click node_metrics "https://github.com/shubham39874/ipo-gmp-screener/blob/main/app.py"
click node_download "https://github.com/shubham39874/ipo-gmp-screener/blob/main/app.py"
click node_promptdata "https://github.com/shubham39874/ipo-gmp-screener/blob/main/app.py"
click node_promptbuilders "https://github.com/shubham39874/ipo-gmp-screener/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_scrape,node_config,node_user toneBlue
class node_filter toneAmber
class node_ui,node_metrics,node_download toneMint
class node_promptdata,node_promptbuilders toneRose
class node_source,node_gemini toneIndigo
```

## Components

### Data acquisition

- [Live data scraper](https://github.com/shubham39874/ipo-gmp-screener/blob/main/scraper.py): `scraper.py`
- [Scraper settings](https://github.com/shubham39874/ipo-gmp-screener/blob/main/config.py): `config.py`

### Screening

- [IPO filtering](https://github.com/shubham39874/ipo-gmp-screener/blob/main/scraper.py): `scraper.py`

### Screener interface

- [Streamlit screener](https://github.com/shubham39874/ipo-gmp-screener/blob/main/app.py): `app.py`
- [Summary and results](https://github.com/shubham39874/ipo-gmp-screener/blob/main/app.py): `app.py`
- [CSV export](https://github.com/shubham39874/ipo-gmp-screener/blob/main/app.py): `app.py`

### Research assistant

- [Research inputs](https://github.com/shubham39874/ipo-gmp-screener/blob/main/app.py): `app.py`
- [Research prompt builders](https://github.com/shubham39874/ipo-gmp-screener/blob/main/app.py): `app.py`

### Other components

- **User**
- **IPO data sources**
- **Gemini**

## Connections

- User → Streamlit screener: uses (evidence: `README.md`)
- Streamlit screener → Live data scraper: fetches data (evidence: `app.py`)
- Live data scraper → IPO data sources: scrapes (evidence: `README.md`)
- Live data scraper → Scraper settings: reads settings (evidence: `scraper.py`)
- Streamlit screener → IPO filtering: filters IPOs (evidence: `app.py`)
- IPO filtering → Summary and results: summarizes results (evidence: `app.py`)
- IPO filtering → CSV export: exports results (evidence: `app.py`)
- Streamlit screener → Research inputs: prepares inputs (evidence: `app.py`)
- Research inputs → Research prompt builders: provides IPO data (evidence: `app.py`)
- Research prompt builders → Gemini: prompts user (evidence: `app.py`)
- User → Gemini: submits prompt
