# redward42/creatorverse architecture

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

- Interactive diagram: https://gitdiagram.com/redward42/creatorverse
- Repository: https://github.com/redward42/creatorverse

## Overview

CreatorVerse is a React CRUD app for content creators. Users browse creator cards, open an individual creator page, and can add, edit, or delete creator records. The pages call Supabase through a shared client; cards and the confirmation modal are supporting UI components. The source excerpts show the main route wiring and CRUD operations; optional capabilities described only in the README are not expanded beyond those documented.

Main entry points: [`src/App.tsx`](https://github.com/RedWARd42/CreatorVerse/blob/main/src/App.tsx) (App routes), [`src/pages/ShowCreators.tsx`](https://github.com/RedWARd42/CreatorVerse/blob/main/src/pages/ShowCreators.tsx) (Creator listing), [`src/pages/EditCreator.tsx`](https://github.com/RedWARd42/CreatorVerse/blob/main/src/pages/EditCreator.tsx) (Edit and delete), [`src/client.ts`](https://github.com/RedWARd42/CreatorVerse/blob/main/src/client.ts) (Supabase client)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_app["App and routing"]
  node_entry["React entry<br/>[main.tsx]"]
  node_routes["App routes<br/>[App.tsx]"]
end

subgraph group_creator_workflows["Creator workflows"]
  node_listing["Creator listing<br/>[ShowCreators.tsx]"]
  node_details["Creator details<br/>[ViewCreator.tsx]"]
  node_add["Add creator<br/>[AddCreator.tsx]"]
  node_edit["Edit and delete<br/>[EditCreator.tsx]"]
end

subgraph group_ui["Shared UI"]
  node_navbar["Navigation bar<br/>[NavBar.tsx]"]
  node_card["Creator card<br/>[Card.tsx]"]
  node_modal["Delete confirmation<br/>[Modal.tsx]"]
end

subgraph group_data["Data access"]
  node_client["Supabase client<br/>[client.ts]"]
  node_supabase[("Supabase records")]
end

node_user(("Visitor"))

node_user -->|"opens app"| node_entry
node_entry -->|"renders"| node_routes
node_routes -->|"renders"| node_navbar
node_routes -->|"routes to"| node_listing
node_routes -->|"routes to"| node_details
node_routes -->|"routes to"| node_add
node_routes -->|"routes to"| node_edit
node_listing -->|"queries via"| node_client
node_listing -->|"reads creators"| node_supabase
node_listing -->|"renders"| node_card
node_card -->|"links to detail or edit"| node_routes
node_details -->|"queries via"| node_client
node_details -->|"reads creator"| node_supabase
node_add -->|"writes via"| node_client
node_add -->|"inserts creator"| node_supabase
node_edit -->|"queries via"| node_client
node_edit -->|"updates or deletes"| node_supabase
node_edit -->|"renders"| node_modal

click node_entry "https://github.com/RedWARd42/CreatorVerse/blob/main/src/main.tsx"
click node_routes "https://github.com/RedWARd42/CreatorVerse/blob/main/src/App.tsx"
click node_navbar "https://github.com/RedWARd42/CreatorVerse/blob/main/src/components/NavBar.tsx"
click node_listing "https://github.com/RedWARd42/CreatorVerse/blob/main/src/pages/ShowCreators.tsx"
click node_card "https://github.com/RedWARd42/CreatorVerse/blob/main/src/components/Card.tsx"
click node_details "https://github.com/RedWARd42/CreatorVerse/blob/main/src/pages/ViewCreator.tsx"
click node_add "https://github.com/RedWARd42/CreatorVerse/blob/main/src/pages/AddCreator.tsx"
click node_edit "https://github.com/RedWARd42/CreatorVerse/blob/main/src/pages/EditCreator.tsx"
click node_modal "https://github.com/RedWARd42/CreatorVerse/blob/main/src/components/Modal.tsx"
click node_client "https://github.com/RedWARd42/CreatorVerse/blob/main/src/client.ts"

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_routes toneBlue
class node_listing,node_details,node_add,node_edit toneAmber
class node_navbar,node_card,node_modal toneMint
class node_client,node_supabase toneRose
class node_user toneIndigo
```

## Components

### App and routing

- [React entry](https://github.com/RedWARd42/CreatorVerse/blob/main/src/main.tsx): `src/main.tsx`
- [App routes](https://github.com/RedWARd42/CreatorVerse/blob/main/src/App.tsx): `src/App.tsx`

### Creator workflows

- [Creator listing](https://github.com/RedWARd42/CreatorVerse/blob/main/src/pages/ShowCreators.tsx): `src/pages/ShowCreators.tsx`
- [Creator details](https://github.com/RedWARd42/CreatorVerse/blob/main/src/pages/ViewCreator.tsx): `src/pages/ViewCreator.tsx`
- [Add creator](https://github.com/RedWARd42/CreatorVerse/blob/main/src/pages/AddCreator.tsx): `src/pages/AddCreator.tsx`
- [Edit and delete](https://github.com/RedWARd42/CreatorVerse/blob/main/src/pages/EditCreator.tsx): `src/pages/EditCreator.tsx`

### Shared UI

- [Navigation bar](https://github.com/RedWARd42/CreatorVerse/blob/main/src/components/NavBar.tsx): `src/components/NavBar.tsx`
- [Creator card](https://github.com/RedWARd42/CreatorVerse/blob/main/src/components/Card.tsx): `src/components/Card.tsx`
- [Delete confirmation](https://github.com/RedWARd42/CreatorVerse/blob/main/src/components/Modal.tsx): `src/components/Modal.tsx`

### Data access

- [Supabase client](https://github.com/RedWARd42/CreatorVerse/blob/main/src/client.ts): `src/client.ts`
- **Supabase records**

### Other components

- **Visitor**

## Connections

- Visitor → React entry: opens app
- React entry → App routes: renders (evidence: `src/main.tsx`)
- App routes → Navigation bar: renders (evidence: `src/App.tsx`)
- App routes → Creator listing: routes to (evidence: `src/App.tsx`)
- App routes → Creator details: routes to (evidence: `src/App.tsx`)
- App routes → Add creator: routes to (evidence: `src/App.tsx`)
- App routes → Edit and delete: routes to (evidence: `src/App.tsx`)
- Creator listing → Supabase client: queries via (evidence: `src/pages/ShowCreators.tsx`)
- Creator listing → Supabase records: reads creators (evidence: `src/pages/ShowCreators.tsx`)
- Creator listing → Creator card: renders (evidence: `src/pages/ShowCreators.tsx`)
- Creator card → App routes: links to detail or edit (evidence: `src/components/Card.tsx`)
- Creator details → Supabase client: queries via (evidence: `src/pages/ViewCreator.tsx`)
- Creator details → Supabase records: reads creator (evidence: `src/pages/ViewCreator.tsx`)
- Add creator → Supabase client: writes via (evidence: `src/pages/AddCreator.tsx`)
- Add creator → Supabase records: inserts creator (evidence: `src/pages/AddCreator.tsx`)
- Edit and delete → Supabase client: queries via (evidence: `src/pages/EditCreator.tsx`)
- Edit and delete → Supabase records: updates or deletes (evidence: `src/pages/EditCreator.tsx`)
- Edit and delete → Delete confirmation: renders (evidence: `src/pages/EditCreator.tsx`)
