# b2-080627/nayan architecture

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

- Interactive diagram: https://gitdiagram.com/b2-080627/nayan
- Repository: https://github.com/b2-080627/nayan

## Overview

The repository contains Streamlit stock-analysis dashboards and separate 3D missile-intercept simulations; the README does not explain their relationship. The stock workflow searches NSE listings, retrieves Yahoo Finance data, analyzes and visualizes it, and optionally scans multiple stocks. The simulation scripts animate missile and interceptor motion. Several stages live directly in the entry-point scripts rather than separate modules. The graph reflects excerpted code; missile_intercept.py was indexed but not inspected, so its behavior is not inferred.

Main entry points: [`app.py`](https://github.com/b2-080627/nayan/blob/main/app.py) (Stock Dashboard), [`app_mobile.py`](https://github.com/b2-080627/nayan/blob/main/app_mobile.py) (Mobile Dashboard), [`missile_intercept2.py`](https://github.com/b2-080627/nayan/blob/main/missile_intercept2.py) (Live Simulation), [`missile_intercept3.py`](https://github.com/b2-080627/nayan/blob/main/missile_intercept3.py) (Interactive Simulation)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_stocks["Stock Dashboards"]
  node_desktop["Stock Dashboard<br/>[app.py]"]
  node_mobile["Mobile Dashboard<br/>[app_mobile.py]"]
  node_stock_lookup["Stock Lookup<br/>[app.py]"]
  node_market_analysis["Market Analysis<br/>[app.py]"]
  node_scanner["Stock Scanner<br/>[app.py]"]
  node_mobile_analysis["Mobile Analysis<br/>[app_mobile.py]"]
  node_mobile_scanner["Mobile Scanner<br/>[app_mobile.py]"]
end

subgraph group_simulation["Intercept Simulations"]
  node_simulation_live["Live Simulation"]
  node_simulation_interactive["Interactive Simulation"]
  node_simulation_uninspected["Simulation Variant"]
end

subgraph group_services["External Data"]
  node_nse[("NSE Listings")]
  node_yahoo[("Yahoo Finance")]
end

node_user(("User"))

node_user -->|"opens"| node_desktop
node_user -->|"opens"| node_mobile
node_user -->|"starts"| node_simulation_live
node_user -->|"controls"| node_simulation_interactive
node_desktop -->|"renders"| node_stock_lookup
node_desktop -->|"renders"| node_market_analysis
node_desktop -->|"renders"| node_scanner
node_mobile -->|"renders"| node_mobile_analysis
node_mobile -->|"renders"| node_mobile_scanner
node_stock_lookup -->|"loads listings"| node_nse
node_mobile -->|"loads listings"| node_nse
node_market_analysis -->|"downloads prices"| node_yahoo
node_market_analysis -->|"fetches company info"| node_yahoo
node_mobile_analysis -->|"downloads prices"| node_yahoo
node_mobile_analysis -->|"fetches company info"| node_yahoo
node_scanner -->|"downloads prices"| node_yahoo
node_mobile_scanner -->|"downloads prices"| node_yahoo

click node_desktop "https://github.com/b2-080627/nayan/blob/main/app.py"
click node_mobile "https://github.com/b2-080627/nayan/blob/main/app_mobile.py"
click node_stock_lookup "https://github.com/b2-080627/nayan/blob/main/app.py"
click node_market_analysis "https://github.com/b2-080627/nayan/blob/main/app.py"
click node_scanner "https://github.com/b2-080627/nayan/blob/main/app.py"
click node_mobile_analysis "https://github.com/b2-080627/nayan/blob/main/app_mobile.py"
click node_mobile_scanner "https://github.com/b2-080627/nayan/blob/main/app_mobile.py"
click node_simulation_live "https://github.com/b2-080627/nayan/blob/main/missile_intercept2.py"
click node_simulation_interactive "https://github.com/b2-080627/nayan/blob/main/missile_intercept3.py"
click node_simulation_uninspected "https://github.com/b2-080627/nayan/blob/main/missile_intercept.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_desktop,node_mobile,node_stock_lookup,node_market_analysis,node_scanner,node_mobile_analysis,node_mobile_scanner,node_user toneBlue
class node_simulation_live,node_simulation_interactive,node_simulation_uninspected toneAmber
class node_nse,node_yahoo toneMint
```

## Components

### Stock Dashboards

- [Stock Dashboard](https://github.com/b2-080627/nayan/blob/main/app.py): `app.py`
- [Mobile Dashboard](https://github.com/b2-080627/nayan/blob/main/app_mobile.py): `app_mobile.py`
- [Stock Lookup](https://github.com/b2-080627/nayan/blob/main/app.py): `app.py`
- [Market Analysis](https://github.com/b2-080627/nayan/blob/main/app.py): `app.py`
- [Stock Scanner](https://github.com/b2-080627/nayan/blob/main/app.py): `app.py`
- [Mobile Analysis](https://github.com/b2-080627/nayan/blob/main/app_mobile.py): `app_mobile.py`
- [Mobile Scanner](https://github.com/b2-080627/nayan/blob/main/app_mobile.py): `app_mobile.py`

### Intercept Simulations

- [Live Simulation](https://github.com/b2-080627/nayan/blob/main/missile_intercept2.py): `missile_intercept2.py`
- [Interactive Simulation](https://github.com/b2-080627/nayan/blob/main/missile_intercept3.py): `missile_intercept3.py`
- [Simulation Variant](https://github.com/b2-080627/nayan/blob/main/missile_intercept.py): `missile_intercept.py`

### External Data

- **NSE Listings**
- **Yahoo Finance**

### Other components

- **User**

## Connections

- User → Stock Dashboard: opens (evidence: `app.py`)
- User → Mobile Dashboard: opens (evidence: `app_mobile.py`)
- User → Live Simulation: starts (evidence: `missile_intercept2.py`)
- User → Interactive Simulation: controls (evidence: `missile_intercept3.py`)
- Stock Dashboard → Stock Lookup: renders (evidence: `app.py`)
- Stock Dashboard → Market Analysis: renders (evidence: `app.py`)
- Stock Dashboard → Stock Scanner: renders (evidence: `app.py`)
- Mobile Dashboard → Mobile Analysis: renders (evidence: `app_mobile.py`)
- Mobile Dashboard → Mobile Scanner: renders (evidence: `app_mobile.py`)
- Stock Lookup → NSE Listings: loads listings (evidence: `app.py`)
- Mobile Dashboard → NSE Listings: loads listings (evidence: `app_mobile.py`)
- Market Analysis → Yahoo Finance: downloads prices (evidence: `app.py`)
- Market Analysis → Yahoo Finance: fetches company info (evidence: `app.py`)
- Mobile Analysis → Yahoo Finance: downloads prices (evidence: `app_mobile.py`)
- Mobile Analysis → Yahoo Finance: fetches company info (evidence: `app_mobile.py`)
- Stock Scanner → Yahoo Finance: downloads prices (evidence: `app.py`)
- Mobile Scanner → Yahoo Finance: downloads prices (evidence: `app_mobile.py`)
