# kyleandreibaltazar/practical_baltazar architecture

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

- Interactive diagram: https://gitdiagram.com/kyleandreibaltazar/practical_baltazar
- Repository: https://github.com/kyleandreibaltazar/practical_baltazar

## Overview

UserSpace is a React team directory for browsing active user profiles. Visitors enter through the home page, navigate to the directory, search names, and open individual profiles; the directory also supports favorites and a theme toggle. The app routes between directory, profile, informational, and not-found pages, using an in-memory user list rather than a service or persistent store. The graph reflects the sampled source; shared state and navigation are shown where the excerpts establish them.

Main entry points: [`src/App.jsx`](https://github.com/kyleandreibaltazar/practical_baltazar/blob/main/src/App.jsx) (App routing and state), [`src/pages/Users.jsx`](https://github.com/kyleandreibaltazar/practical_baltazar/blob/main/src/pages/Users.jsx) (User directory), [`src/pages/UserDetails.jsx`](https://github.com/kyleandreibaltazar/practical_baltazar/blob/main/src/pages/UserDetails.jsx) (User profile), [`src/data/user.js`](https://github.com/kyleandreibaltazar/practical_baltazar/blob/main/src/data/user.js) (User records)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_app["Application shell"]
  node_entry["React entry<br/>[main.jsx]"]
  node_router["App routing and state<br/>[App.jsx]"]
end

subgraph group_pages["Directory pages"]
  node_home["Home page<br/>[Home.jsx]"]
  node_users["User directory<br/>[Users.jsx]"]
  node_details["User profile<br/>[UserDetails.jsx]"]
  node_about["About page<br/>[About.jsx]"]
  node_notfound["Not-found page<br/>[NotFound.jsx]"]
end

subgraph group_ui["Interface components"]
  node_navbar["Navigation and theme<br/>[Navbar.jsx]"]
  node_card["User card<br/>[UserCard.jsx]"]
  node_loader["Loading indicator<br/>[Loader.jsx]"]
  node_error["Empty-result message<br/>[ErrorMessage.jsx]"]
end

subgraph group_data["Directory data"]
  node_records["User records<br/>[user.js]"]
end

node_visitor(("Visitor"))

node_visitor -->|"opens"| node_entry
node_entry -->|"renders"| node_router
node_router -->|"renders"| node_navbar
node_router -->|"routes to"| node_home
node_router -->|"routes to"| node_users
node_router -->|"routes to"| node_details
node_router -->|"routes to"| node_about
node_router -->|"routes to"| node_notfound
node_home -->|"reads"| node_records
node_users -->|"loads"| node_records
node_details -->|"looks up"| node_records
node_users -->|"renders"| node_loader
node_users -->|"renders"| node_error
node_users -->|"renders"| node_card
node_card -->|"links to"| node_details

click node_entry "https://github.com/kyleandreibaltazar/practical_baltazar/blob/main/src/main.jsx"
click node_router "https://github.com/kyleandreibaltazar/practical_baltazar/blob/main/src/App.jsx"
click node_home "https://github.com/kyleandreibaltazar/practical_baltazar/blob/main/src/pages/Home.jsx"
click node_users "https://github.com/kyleandreibaltazar/practical_baltazar/blob/main/src/pages/Users.jsx"
click node_details "https://github.com/kyleandreibaltazar/practical_baltazar/blob/main/src/pages/UserDetails.jsx"
click node_about "https://github.com/kyleandreibaltazar/practical_baltazar/blob/main/src/pages/About.jsx"
click node_notfound "https://github.com/kyleandreibaltazar/practical_baltazar/blob/main/src/pages/NotFound.jsx"
click node_navbar "https://github.com/kyleandreibaltazar/practical_baltazar/blob/main/src/components/Navbar.jsx"
click node_card "https://github.com/kyleandreibaltazar/practical_baltazar/blob/main/src/components/UserCard.jsx"
click node_loader "https://github.com/kyleandreibaltazar/practical_baltazar/blob/main/src/components/Loader.jsx"
click node_error "https://github.com/kyleandreibaltazar/practical_baltazar/blob/main/src/components/ErrorMessage.jsx"
click node_records "https://github.com/kyleandreibaltazar/practical_baltazar/blob/main/src/data/user.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_router toneBlue
class node_home,node_users,node_details,node_about,node_notfound toneAmber
class node_navbar,node_card,node_loader,node_error toneMint
class node_records toneRose
class node_visitor toneIndigo
```

## Components

### Application shell

- [React entry](https://github.com/kyleandreibaltazar/practical_baltazar/blob/main/src/main.jsx): `src/main.jsx`
- [App routing and state](https://github.com/kyleandreibaltazar/practical_baltazar/blob/main/src/App.jsx): `src/App.jsx`

### Directory pages

- [Home page](https://github.com/kyleandreibaltazar/practical_baltazar/blob/main/src/pages/Home.jsx): `src/pages/Home.jsx`
- [User directory](https://github.com/kyleandreibaltazar/practical_baltazar/blob/main/src/pages/Users.jsx): `src/pages/Users.jsx`
- [User profile](https://github.com/kyleandreibaltazar/practical_baltazar/blob/main/src/pages/UserDetails.jsx): `src/pages/UserDetails.jsx`
- [About page](https://github.com/kyleandreibaltazar/practical_baltazar/blob/main/src/pages/About.jsx): `src/pages/About.jsx`
- [Not-found page](https://github.com/kyleandreibaltazar/practical_baltazar/blob/main/src/pages/NotFound.jsx): `src/pages/NotFound.jsx`

### Interface components

- [Navigation and theme](https://github.com/kyleandreibaltazar/practical_baltazar/blob/main/src/components/Navbar.jsx): `src/components/Navbar.jsx`
- [User card](https://github.com/kyleandreibaltazar/practical_baltazar/blob/main/src/components/UserCard.jsx): `src/components/UserCard.jsx`
- [Loading indicator](https://github.com/kyleandreibaltazar/practical_baltazar/blob/main/src/components/Loader.jsx): `src/components/Loader.jsx`
- [Empty-result message](https://github.com/kyleandreibaltazar/practical_baltazar/blob/main/src/components/ErrorMessage.jsx): `src/components/ErrorMessage.jsx`

### Directory data

- [User records](https://github.com/kyleandreibaltazar/practical_baltazar/blob/main/src/data/user.js): `src/data/user.js`

### Other components

- **Visitor**

## Connections

- Visitor → React entry: opens
- React entry → App routing and state: renders (evidence: `src/main.jsx`)
- App routing and state → Navigation and theme: renders (evidence: `src/App.jsx`)
- App routing and state → Home page: routes to (evidence: `src/App.jsx`)
- App routing and state → User directory: routes to (evidence: `src/App.jsx`)
- App routing and state → User profile: routes to (evidence: `src/App.jsx`)
- App routing and state → About page: routes to (evidence: `src/App.jsx`)
- App routing and state → Not-found page: routes to (evidence: `src/App.jsx`)
- Home page → User records: reads (evidence: `src/pages/Home.jsx`)
- User directory → User records: loads (evidence: `src/pages/Users.jsx`)
- User profile → User records: looks up (evidence: `src/pages/UserDetails.jsx`)
- User directory → Loading indicator: renders (evidence: `src/pages/Users.jsx`)
- User directory → Empty-result message: renders (evidence: `src/pages/Users.jsx`)
- User directory → User card: renders (evidence: `src/pages/Users.jsx`)
- User card → User profile: links to (evidence: `src/components/UserCard.jsx`)
