# dheeram/covid19india-react architecture

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

- Interactive diagram: https://gitdiagram.com/dheeram/covid19india-react
- Repository: https://github.com/dheeram/covid19india-react

## Overview

Covid19india.org is a public COVID-19 data dashboard. Users enter through the routed app, then explore national or state-level summaries, search for a region, and inspect data in tables, maps, and time-series charts. The README identifies the data API, but the excerpts do not show the data-fetching path, so that integration is documented without asserting a specific caller. Unsampled feature modules are represented where the source index shows their use; their internal behavior is not inferred.

Main entry points: [`src/components/Home.js`](https://github.com/dheeram/covid19india-react/blob/master/src/components/Home.js) (National overview), [`src/App.js`](https://github.com/dheeram/covid19india-react/blob/master/src/App.js) (App router), [`src/components/State.js`](https://github.com/dheeram/covid19india-react/blob/master/src/components/State.js) (State detail), [`src/components/Table.js`](https://github.com/dheeram/covid19india-react/blob/master/src/components/Table.js) (Data table)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_app["App and navigation"]
  node_app["App router<br/>[App.js]"]
  node_navbar["Navigation bar<br/>[Navbar.js]"]
  node_search["Region search<br/>[Search.js]"]
  node_language["Language switcher"]
end

subgraph group_overview["Dashboard views"]
  node_home["National overview<br/>[Home.js]"]
  node_state["State detail<br/>[State.js]"]
  node_level["Headline metrics<br/>[Level.js]"]
  node_vaccination["Vaccination summary"]
  node_updates["Recent updates<br/>[Updates.js]"]
end

subgraph group_visualization["Data exploration"]
  node_map_explorer["Map controls<br/>[MapExplorer.js]"]
  node_map_visualizer["Map rendering<br/>[MapVisualizer.js]"]
  node_map_legend["Map legend<br/>[MapLegend.js]"]
  node_table["Data table<br/>[Table.js]"]
  node_row["Table rows<br/>[Row.js]"]
  node_header_cell["Table headers<br/>[HeaderCell.js]"]
  node_timeseries_explorer["Trend controls"]
  node_timeseries["Trend charts<br/>[Timeseries.js]"]
  node_minigraphs["Mini charts<br/>[Minigraphs.js]"]
end

subgraph group_shared["Shared services"]
  node_common["Date and statistic utilities<br/>[commonFunctions.js]"]
  node_visibility["Visibility hook<br/>[useIsVisible.js]"]
  node_i18n["Translation setup<br/>[index.js]"]
end

node_user(("Visitor"))
node_api{{"Covid data API"}}

node_user -->|"opens dashboard"| node_app
node_app -->|"routes to"| node_home
node_app -->|"routes to"| node_state
node_app -->|"renders"| node_navbar
node_app -->|"renders"| node_language
node_home -->|"renders"| node_level
node_home -->|"renders"| node_vaccination
node_home -->|"renders"| node_map_explorer
node_home -->|"renders"| node_table
node_home -->|"renders"| node_timeseries_explorer
node_home -->|"renders"| node_minigraphs
node_home -->|"renders"| node_search
node_home -.->|"renders"| node_updates
node_state -->|"renders"| node_map_explorer
node_state -.->|"renders"| node_table
node_state -->|"renders"| node_timeseries_explorer
node_state -->|"renders"| node_minigraphs
node_map_explorer -->|"renders"| node_map_visualizer
node_map_visualizer -->|"renders"| node_map_legend
node_table -->|"renders"| node_row
node_table -->|"renders"| node_header_cell
node_timeseries_explorer -->|"renders"| node_timeseries
node_timeseries_explorer -->|"checks visibility"| node_visibility
node_search -->|"links to region"| node_state
node_home -.->|"loads dashboard data"| node_api
node_common -.->|"uses API configuration"| node_api
node_app -->|"initializes translations"| node_i18n

click node_app "https://github.com/dheeram/covid19india-react/blob/master/src/App.js"
click node_navbar "https://github.com/dheeram/covid19india-react/blob/master/src/components/Navbar.js"
click node_search "https://github.com/dheeram/covid19india-react/blob/master/src/components/Search.js"
click node_language "https://github.com/dheeram/covid19india-react/blob/master/src/components/LanguageSwitcher.js"
click node_home "https://github.com/dheeram/covid19india-react/blob/master/src/components/Home.js"
click node_state "https://github.com/dheeram/covid19india-react/blob/master/src/components/State.js"
click node_level "https://github.com/dheeram/covid19india-react/blob/master/src/components/Level.js"
click node_vaccination "https://github.com/dheeram/covid19india-react/blob/master/src/components/VaccinationHeader.js"
click node_map_explorer "https://github.com/dheeram/covid19india-react/blob/master/src/components/MapExplorer.js"
click node_map_visualizer "https://github.com/dheeram/covid19india-react/blob/master/src/components/MapVisualizer.js"
click node_map_legend "https://github.com/dheeram/covid19india-react/blob/master/src/components/MapLegend.js"
click node_table "https://github.com/dheeram/covid19india-react/blob/master/src/components/Table.js"
click node_row "https://github.com/dheeram/covid19india-react/blob/master/src/components/Row.js"
click node_header_cell "https://github.com/dheeram/covid19india-react/blob/master/src/components/HeaderCell.js"
click node_timeseries_explorer "https://github.com/dheeram/covid19india-react/blob/master/src/components/TimeseriesExplorer.js"
click node_timeseries "https://github.com/dheeram/covid19india-react/blob/master/src/components/Timeseries.js"
click node_minigraphs "https://github.com/dheeram/covid19india-react/blob/master/src/components/Minigraphs.js"
click node_updates "https://github.com/dheeram/covid19india-react/blob/master/src/components/Updates.js"
click node_common "https://github.com/dheeram/covid19india-react/blob/master/src/utils/commonFunctions.js"
click node_visibility "https://github.com/dheeram/covid19india-react/blob/master/src/hooks/useIsVisible.js"
click node_i18n "https://github.com/dheeram/covid19india-react/blob/master/src/i18n/index.js"

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_navbar,node_search,node_language toneBlue
class node_home,node_state,node_level,node_vaccination,node_updates toneAmber
class node_map_explorer,node_map_visualizer,node_map_legend,node_table,node_row,node_header_cell,node_timeseries_explorer,node_timeseries,node_minigraphs,node_api toneMint
class node_common,node_visibility,node_i18n toneRose
class node_user toneIndigo
```

## Components

### App and navigation

- [App router](https://github.com/dheeram/covid19india-react/blob/master/src/App.js): `src/App.js`
- [Navigation bar](https://github.com/dheeram/covid19india-react/blob/master/src/components/Navbar.js): `src/components/Navbar.js`
- [Region search](https://github.com/dheeram/covid19india-react/blob/master/src/components/Search.js): `src/components/Search.js`
- [Language switcher](https://github.com/dheeram/covid19india-react/blob/master/src/components/LanguageSwitcher.js): `src/components/LanguageSwitcher.js`

### Dashboard views

- [National overview](https://github.com/dheeram/covid19india-react/blob/master/src/components/Home.js): `src/components/Home.js`
- [State detail](https://github.com/dheeram/covid19india-react/blob/master/src/components/State.js): `src/components/State.js`
- [Headline metrics](https://github.com/dheeram/covid19india-react/blob/master/src/components/Level.js): `src/components/Level.js`
- [Vaccination summary](https://github.com/dheeram/covid19india-react/blob/master/src/components/VaccinationHeader.js): `src/components/VaccinationHeader.js`
- [Recent updates](https://github.com/dheeram/covid19india-react/blob/master/src/components/Updates.js): `src/components/Updates.js`

### Data exploration

- [Map controls](https://github.com/dheeram/covid19india-react/blob/master/src/components/MapExplorer.js): `src/components/MapExplorer.js`
- [Map rendering](https://github.com/dheeram/covid19india-react/blob/master/src/components/MapVisualizer.js): `src/components/MapVisualizer.js`
- [Map legend](https://github.com/dheeram/covid19india-react/blob/master/src/components/MapLegend.js): `src/components/MapLegend.js`
- [Data table](https://github.com/dheeram/covid19india-react/blob/master/src/components/Table.js): `src/components/Table.js`
- [Table rows](https://github.com/dheeram/covid19india-react/blob/master/src/components/Row.js): `src/components/Row.js`
- [Table headers](https://github.com/dheeram/covid19india-react/blob/master/src/components/HeaderCell.js): `src/components/HeaderCell.js`
- [Trend controls](https://github.com/dheeram/covid19india-react/blob/master/src/components/TimeseriesExplorer.js): `src/components/TimeseriesExplorer.js`
- [Trend charts](https://github.com/dheeram/covid19india-react/blob/master/src/components/Timeseries.js): `src/components/Timeseries.js`
- [Mini charts](https://github.com/dheeram/covid19india-react/blob/master/src/components/Minigraphs.js): `src/components/Minigraphs.js`

### Shared services

- [Date and statistic utilities](https://github.com/dheeram/covid19india-react/blob/master/src/utils/commonFunctions.js): `src/utils/commonFunctions.js`
- [Visibility hook](https://github.com/dheeram/covid19india-react/blob/master/src/hooks/useIsVisible.js): `src/hooks/useIsVisible.js`
- [Translation setup](https://github.com/dheeram/covid19india-react/blob/master/src/i18n/index.js): `src/i18n/index.js`

### Other components

- **Visitor**
- **Covid data API**

## Connections

- Visitor → App router: opens dashboard (evidence: `src/App.js`)
- App router → National overview: routes to (evidence: `src/App.js`)
- App router → State detail: routes to (evidence: `src/App.js`)
- App router → Navigation bar: renders (evidence: `src/App.js`)
- App router → Language switcher: renders (evidence: `src/App.js`)
- National overview → Headline metrics: renders (evidence: `src/components/Home.js`)
- National overview → Vaccination summary: renders (evidence: `src/components/Home.js`)
- National overview → Map controls: renders (evidence: `src/components/Home.js`)
- National overview → Data table: renders (evidence: `src/components/Home.js`)
- National overview → Trend controls: renders (evidence: `src/components/Home.js`)
- National overview → Mini charts: renders (evidence: `src/components/Home.js`)
- National overview → Region search: renders (evidence: `src/components/Home.js`)
- National overview → Recent updates: renders
- State detail → Map controls: renders (evidence: `src/components/State.js`)
- State detail → Data table: renders
- State detail → Trend controls: renders (evidence: `src/components/State.js`)
- State detail → Mini charts: renders (evidence: `src/components/State.js`)
- Map controls → Map rendering: renders (evidence: `src/components/MapExplorer.js`)
- Map rendering → Map legend: renders (evidence: `src/components/MapVisualizer.js`)
- Data table → Table rows: renders (evidence: `src/components/Table.js`)
- Data table → Table headers: renders (evidence: `src/components/Table.js`)
- Trend controls → Trend charts: renders (evidence: `src/components/TimeseriesExplorer.js`)
- Trend controls → Visibility hook: checks visibility (evidence: `src/components/TimeseriesExplorer.js`)
- Region search → State detail: links to region (evidence: `src/components/Search.js`)
- National overview → Covid data API: loads dashboard data
- Date and statistic utilities → Covid data API: uses API configuration
- App router → Translation setup: initializes translations (evidence: `src/index.js`)
