# chirag-70/final-p architecture

> Architecture diagram of the GitHub repository chirag-70/final-p, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-18). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/chirag-70/final-p
- Repository: https://github.com/chirag-70/final-p

## Overview

This is a single-file Streamlit information portal for farmers. Users browse government-scheme cards, open a scheme for details, and can follow links to external weather-prediction and crop-care advisory applications. The excerpts show UI rendering and scheme content, but omit parts of the page logic, so the exact navigation mechanism is not mapped. No separate backend, persistence, or domain-processing layer is evident in the available tree.

Main entry points: [`nhai.py`](https://github.com/chirag-70/final-p/blob/main/nhai.py) (Streamlit portal)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_portal["Farmer information portal"]
  node_streamlit_app["Streamlit portal<br/>[nhai.py]"]
  node_scheme_catalog["Scheme catalog<br/>[nhai.py]"]
  node_scheme_details["Scheme details<br/>[nhai.py]"]
end

subgraph group_external["External services"]
  node_weather["Weather prediction"]
  node_crop_advisory["Crop-care advisory"]
  node_scheme_sites["Scheme websites"]
end

node_farmer(("Farmer"))

node_farmer -->|"uses"| node_streamlit_app
node_streamlit_app -->|"renders"| node_scheme_catalog
node_streamlit_app -->|"renders"| node_scheme_details
node_scheme_catalog -.->|"selects"| node_scheme_details
node_scheme_details -->|"links to"| node_scheme_sites
node_streamlit_app -->|"links to"| node_weather
node_streamlit_app -->|"links to"| node_crop_advisory

click node_streamlit_app "https://github.com/chirag-70/final-p/blob/main/nhai.py"
click node_scheme_catalog "https://github.com/chirag-70/final-p/blob/main/nhai.py"
click node_scheme_details "https://github.com/chirag-70/final-p/blob/main/nhai.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_streamlit_app,node_scheme_catalog,node_scheme_details toneBlue
class node_weather,node_crop_advisory,node_scheme_sites toneAmber
class node_farmer toneIndigo
```

## Components

### Farmer information portal

- [Streamlit portal](https://github.com/chirag-70/final-p/blob/main/nhai.py): `nhai.py`
- [Scheme catalog](https://github.com/chirag-70/final-p/blob/main/nhai.py): `nhai.py`
- [Scheme details](https://github.com/chirag-70/final-p/blob/main/nhai.py): `nhai.py`

### External services

- **Weather prediction**
- **Crop-care advisory**
- **Scheme websites**

### Other components

- **Farmer**

## Connections

- Farmer → Streamlit portal: uses (evidence: `nhai.py`)
- Streamlit portal → Scheme catalog: renders (evidence: `nhai.py`)
- Streamlit portal → Scheme details: renders (evidence: `nhai.py`)
- Scheme catalog → Scheme details: selects (evidence: `nhai.py`)
- Scheme details → Scheme websites: links to (evidence: `nhai.py`)
- Streamlit portal → Weather prediction: links to (evidence: `nhai.py`)
- Streamlit portal → Crop-care advisory: links to (evidence: `nhai.py`)
