# calebackom/monsters-rolodex architecture

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

- Interactive diagram: https://gitdiagram.com/calebackom/monsters-rolodex
- Repository: https://github.com/calebackom/monsters-rolodex

## Overview

Monsters Rolodex is a small React app for searching a built-in list of monsters and viewing their details. The app entry point mounts the main component; it passes search input changes to the component, which filters the list and renders matching cards. Cards display names and email addresses and load monster images from Robohash. A separate web-vitals helper is invoked at startup; the shown call supplies no reporting callback. The graph focuses on runtime behavior, not deployment files.

Main entry points: [`src/App.js`](https://github.com/calebackom/monsters-rolodex/blob/main/src/App.js) (Monster App), [`src/index.js`](https://github.com/calebackom/monsters-rolodex/blob/main/src/index.js) (React Entry), [`src/components/search-box/search-box.jsx`](https://github.com/calebackom/monsters-rolodex/blob/main/src/components/search-box/search-box.jsx) (Search Box), [`src/components/card-list/card-list.jsx`](https://github.com/calebackom/monsters-rolodex/blob/main/src/components/card-list/card-list.jsx) (Card List)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_application["Application"]
  node_entry["React Entry<br/>[index.js]"]
  node_app["Monster App<br/>[App.js]"]
end

subgraph group_interface["User Interface"]
  node_search["Search Box<br/>[search-box.jsx]"]
  node_list["Card List<br/>[card-list.jsx]"]
  node_card["Monster Card<br/>[card.jsx]"]
end

subgraph group_telemetry["Telemetry"]
  node_vitals["Web Vitals<br/>[reportWebVitals.js]"]
end

node_user(("User"))
node_robohash["Robohash"]

node_user -.->|"uses"| node_app
node_entry -->|"mounts"| node_app
node_app -->|"renders"| node_search
node_search -->|"calls change handler"| node_app
node_app -->|"renders filtered results"| node_list
node_list -->|"renders"| node_card
node_card -->|"loads image"| node_robohash
node_entry -->|"invokes"| node_vitals

click node_entry "https://github.com/calebackom/monsters-rolodex/blob/main/src/index.js"
click node_app "https://github.com/calebackom/monsters-rolodex/blob/main/src/App.js"
click node_search "https://github.com/calebackom/monsters-rolodex/blob/main/src/components/search-box/search-box.jsx"
click node_list "https://github.com/calebackom/monsters-rolodex/blob/main/src/components/card-list/card-list.jsx"
click node_card "https://github.com/calebackom/monsters-rolodex/blob/main/src/components/card/card.jsx"
click node_vitals "https://github.com/calebackom/monsters-rolodex/blob/main/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_app,node_user toneBlue
class node_search,node_list,node_card toneAmber
class node_vitals toneMint
class node_robohash toneIndigo
```

## Components

### Application

- [React Entry](https://github.com/calebackom/monsters-rolodex/blob/main/src/index.js): `src/index.js`
- [Monster App](https://github.com/calebackom/monsters-rolodex/blob/main/src/App.js): `src/App.js`

### User Interface

- [Search Box](https://github.com/calebackom/monsters-rolodex/blob/main/src/components/search-box/search-box.jsx): `src/components/search-box/search-box.jsx`
- [Card List](https://github.com/calebackom/monsters-rolodex/blob/main/src/components/card-list/card-list.jsx): `src/components/card-list/card-list.jsx`
- [Monster Card](https://github.com/calebackom/monsters-rolodex/blob/main/src/components/card/card.jsx): `src/components/card/card.jsx`

### Telemetry

- [Web Vitals](https://github.com/calebackom/monsters-rolodex/blob/main/src/reportWebVitals.js): `src/reportWebVitals.js`

### Other components

- **User**
- **Robohash**

## Connections

- User → Monster App: uses
- React Entry → Monster App: mounts (evidence: `src/index.js`)
- Monster App → Search Box: renders (evidence: `src/App.js`)
- Search Box → Monster App: calls change handler (evidence: `src/components/search-box/search-box.jsx`)
- Monster App → Card List: renders filtered results (evidence: `src/App.js`)
- Card List → Monster Card: renders (evidence: `src/components/card-list/card-list.jsx`)
- Monster Card → Robohash: loads image (evidence: `src/components/card/card.jsx`)
- React Entry → Web Vitals: invokes (evidence: `src/index.js`)
