# doonmaroon/kube-react-esri-app architecture

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

- Interactive diagram: https://gitdiagram.com/doonmaroon/kube-react-esri-app
- Repository: https://github.com/doonmaroon/kube-react-esri-app

## Overview

This is a small React application for viewing a North Carolina energy-data web map hosted on ArcGIS Online. The user opens the app, which loads the configured web map into an ArcGIS view and adds editable bookmarks inside an expanded widget. The entry point also invokes the Create React App web-vitals helper. The map configuration and widget wiring are visible in `src/App.js`; the README identifies the map’s subject and hosted item. The graph omits uninspected styling and does not infer map-layer details.

Main entry points: [`src/App.js`](https://github.com/doonmaroon/kube-react-esri-app/blob/master/src/App.js) (Map app), [`src/index.js`](https://github.com/doonmaroon/kube-react-esri-app/blob/master/src/index.js) (React entry), [`src/reportWebVitals.js`](https://github.com/doonmaroon/kube-react-esri-app/blob/master/src/reportWebVitals.js) (Web vitals helper)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_app["App runtime"]
  node_entry["React entry<br/>[index.js]"]
  node_vitals["Web vitals helper<br/>[reportWebVitals.js]"]
end

subgraph group_mapping["Map experience"]
  node_app_component["Map app<br/>[App.js]"]
  node_hosted_map[("ArcGIS web map")]
  node_map_view["Map view<br/>[App.js]"]
  node_bookmarks["Bookmarks<br/>[App.js]"]
  node_expand["Expanded widget<br/>[App.js]"]
end

node_user(("Map user"))

node_user -->|"opens"| node_entry
node_entry -->|"renders"| node_app_component
node_app_component -->|"loads"| node_hosted_map
node_app_component -->|"creates"| node_map_view
node_app_component -->|"creates"| node_bookmarks
node_app_component -->|"wraps bookmarks"| node_expand
node_entry -->|"invokes"| node_vitals

click node_entry "https://github.com/doonmaroon/kube-react-esri-app/blob/master/src/index.js"
click node_app_component "https://github.com/doonmaroon/kube-react-esri-app/blob/master/src/App.js"
click node_map_view "https://github.com/doonmaroon/kube-react-esri-app/blob/master/src/App.js"
click node_bookmarks "https://github.com/doonmaroon/kube-react-esri-app/blob/master/src/App.js"
click node_expand "https://github.com/doonmaroon/kube-react-esri-app/blob/master/src/App.js"
click node_vitals "https://github.com/doonmaroon/kube-react-esri-app/blob/master/src/reportWebVitals.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_entry,node_vitals,node_user toneBlue
class node_app_component,node_hosted_map,node_map_view,node_bookmarks,node_expand toneAmber
```

## Components

### App runtime

- [React entry](https://github.com/doonmaroon/kube-react-esri-app/blob/master/src/index.js): `src/index.js`
- [Web vitals helper](https://github.com/doonmaroon/kube-react-esri-app/blob/master/src/reportWebVitals.js): `src/reportWebVitals.js`

### Map experience

- [Map app](https://github.com/doonmaroon/kube-react-esri-app/blob/master/src/App.js): `src/App.js`
- **ArcGIS web map**
- [Map view](https://github.com/doonmaroon/kube-react-esri-app/blob/master/src/App.js): `src/App.js`
- [Bookmarks](https://github.com/doonmaroon/kube-react-esri-app/blob/master/src/App.js): `src/App.js`
- [Expanded widget](https://github.com/doonmaroon/kube-react-esri-app/blob/master/src/App.js): `src/App.js`

### Other components

- **Map user**

## Connections

- Map user → React entry: opens (evidence: `README.md`)
- React entry → Map app: renders (evidence: `src/index.js`)
- Map app → ArcGIS web map: loads (evidence: `src/App.js`)
- Map app → Map view: creates (evidence: `src/App.js`)
- Map app → Bookmarks: creates (evidence: `src/App.js`)
- Map app → Expanded widget: wraps bookmarks (evidence: `src/App.js`)
- React entry → Web vitals helper: invokes (evidence: `src/index.js`)
