# stephen-t-2023/vestige architecture

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

- Interactive diagram: https://gitdiagram.com/stephen-t-2023/vestige
- Repository: https://github.com/stephen-t-2023/vestige

## Overview

Vestige is a flashcard-based study app: users sign in, organize subjects into topics, add learning materials, then study flashcards and review progress. The graph includes the documented page capabilities and shared UI. Some page excerpts are partial or absent, so unsampled relationships are omitted rather than inferred; Supabase is shown as the external data service based on the client’s stated purpose.

Main entry points: [`src/lib/supabaseClient.js`](https://github.com/stephen-t-2023/vestige/blob/main/src/lib/supabaseClient.js) (Supabase client), [`src/pages/dashboard.jsx`](https://github.com/stephen-t-2023/vestige/blob/main/src/pages/dashboard.jsx) (Subject dashboard), [`src/pages/subject/[id].jsx`](https://github.com/stephen-t-2023/vestige/blob/main/src/pages/subject/%5Bid%5D.jsx) (Subject details), [`src/pages/topic/[id].jsx`](https://github.com/stephen-t-2023/vestige/blob/main/src/pages/topic/%5Bid%5D.jsx) (Topic workspace)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_learning["Learning content"]
  node_dashboard["Subject dashboard<br/>[dashboard.jsx]"]
  node_subject["Subject details<br/>[&#91;id&#93;.jsx]"]
  node_topic["Topic workspace<br/>[&#91;id&#93;.jsx]"]
end

subgraph group_study["Study and progress"]
  node_study["Study session<br/>[&#91;id&#93;.jsx]"]
  node_flashcard["Flashcard display<br/>[flashcard.jsx]"]
  node_progress["Progress review<br/>[progress.jsx]"]
end

subgraph group_identity["Identity and navigation"]
  node_home["Home<br/>[index.js]"]
  node_signup["Sign up<br/>[signup.jsx]"]
  node_login["Log in<br/>[login.jsx]"]
  node_account["Account<br/>[account.jsx]"]
  node_navbar["Navigation<br/>[Navbar.jsx]"]
  node_search["Global search<br/>[SearchBar.jsx]"]
end

subgraph group_shared["Shared interface"]
  node_breadcrumb["Breadcrumb state"]
  node_beta["Beta banner<br/>[BetaBanner.jsx]"]
  node_empty["Empty state<br/>[EmptyState.jsx]"]
  node_skeleton["Loading skeleton<br/>[Skeleton.jsx]"]
  node_footer["Footer<br/>[Footer.jsx]"]
  node_supabase["Supabase client<br/>[supabaseClient.js]"]
end

node_learner(("Learner"))
node_service[("Supabase service")]

node_learner -->|"opens app"| node_home
node_learner -.->|"creates account"| node_signup
node_learner -.->|"signs in"| node_login
node_learner -.->|"manages subjects"| node_dashboard
node_dashboard -.->|"opens subject"| node_subject
node_subject -->|"opens topic"| node_topic
node_topic -->|"starts study"| node_study
node_study -->|"renders card"| node_flashcard
node_learner -.->|"reviews progress"| node_progress
node_home -->|"queries data"| node_supabase
node_signup -->|"uses auth"| node_supabase
node_login -->|"uses auth"| node_supabase
node_account -->|"uses auth"| node_supabase
node_dashboard -->|"manages subjects"| node_supabase
node_subject -->|"manages topics"| node_supabase
node_topic -->|"manages content"| node_supabase
node_study -->|"loads cards"| node_supabase
node_progress -->|"loads progress"| node_supabase
node_search -->|"searches content"| node_supabase
node_supabase -->|"connects to"| node_service
node_navbar -->|"renders search"| node_search
node_navbar -->|"reads crumbs"| node_breadcrumb
node_dashboard -->|"renders banner"| node_beta
node_dashboard -->|"shows loading"| node_skeleton
node_dashboard -->|"shows empty state"| node_empty
node_subject -->|"shows loading"| node_skeleton
node_subject -.->|"shows empty state"| node_empty
node_topic -.->|"shows empty state"| node_empty
node_progress -.->|"shows loading"| node_skeleton
node_progress -.->|"shows empty state"| node_empty
node_learner -.->|"updates account"| node_account
node_home -.->|"shares navigation"| node_navbar
node_navbar -.->|"shares layout"| node_footer

click node_home "https://github.com/stephen-t-2023/vestige/blob/main/src/pages/index.js"
click node_signup "https://github.com/stephen-t-2023/vestige/blob/main/src/pages/signup.jsx"
click node_login "https://github.com/stephen-t-2023/vestige/blob/main/src/pages/login.jsx"
click node_account "https://github.com/stephen-t-2023/vestige/blob/main/src/pages/account.jsx"
click node_navbar "https://github.com/stephen-t-2023/vestige/blob/main/src/components/Navbar.jsx"
click node_search "https://github.com/stephen-t-2023/vestige/blob/main/src/components/SearchBar.jsx"
click node_dashboard "https://github.com/stephen-t-2023/vestige/blob/main/src/pages/dashboard.jsx"
click node_subject "https://github.com/stephen-t-2023/vestige/blob/main/src/pages/subject/%5Bid%5D.jsx"
click node_topic "https://github.com/stephen-t-2023/vestige/blob/main/src/pages/topic/%5Bid%5D.jsx"
click node_study "https://github.com/stephen-t-2023/vestige/blob/main/src/pages/study/%5Bid%5D.jsx"
click node_flashcard "https://github.com/stephen-t-2023/vestige/blob/main/src/components/flashcard.jsx"
click node_progress "https://github.com/stephen-t-2023/vestige/blob/main/src/pages/progress.jsx"
click node_breadcrumb "https://github.com/stephen-t-2023/vestige/blob/main/src/lib/BreadcrumbContext.js"
click node_beta "https://github.com/stephen-t-2023/vestige/blob/main/src/components/BetaBanner.jsx"
click node_empty "https://github.com/stephen-t-2023/vestige/blob/main/src/components/EmptyState.jsx"
click node_skeleton "https://github.com/stephen-t-2023/vestige/blob/main/src/components/Skeleton.jsx"
click node_footer "https://github.com/stephen-t-2023/vestige/blob/main/src/components/Footer.jsx"
click node_supabase "https://github.com/stephen-t-2023/vestige/blob/main/src/lib/supabaseClient.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_dashboard,node_subject,node_topic toneBlue
class node_study,node_flashcard,node_progress,node_service toneAmber
class node_home,node_signup,node_login,node_account,node_navbar,node_search toneMint
class node_breadcrumb,node_beta,node_empty,node_skeleton,node_footer,node_supabase toneRose
class node_learner toneIndigo
```

## Components

### Learning content

- [Subject dashboard](https://github.com/stephen-t-2023/vestige/blob/main/src/pages/dashboard.jsx): `src/pages/dashboard.jsx`
- [Subject details](https://github.com/stephen-t-2023/vestige/blob/main/src/pages/subject/%5Bid%5D.jsx): `src/pages/subject/[id].jsx`
- [Topic workspace](https://github.com/stephen-t-2023/vestige/blob/main/src/pages/topic/%5Bid%5D.jsx): `src/pages/topic/[id].jsx`

### Study and progress

- [Study session](https://github.com/stephen-t-2023/vestige/blob/main/src/pages/study/%5Bid%5D.jsx): `src/pages/study/[id].jsx`
- [Flashcard display](https://github.com/stephen-t-2023/vestige/blob/main/src/components/flashcard.jsx): `src/components/flashcard.jsx`
- [Progress review](https://github.com/stephen-t-2023/vestige/blob/main/src/pages/progress.jsx): `src/pages/progress.jsx`

### Identity and navigation

- [Home](https://github.com/stephen-t-2023/vestige/blob/main/src/pages/index.js): `src/pages/index.js`
- [Sign up](https://github.com/stephen-t-2023/vestige/blob/main/src/pages/signup.jsx): `src/pages/signup.jsx`
- [Log in](https://github.com/stephen-t-2023/vestige/blob/main/src/pages/login.jsx): `src/pages/login.jsx`
- [Account](https://github.com/stephen-t-2023/vestige/blob/main/src/pages/account.jsx): `src/pages/account.jsx`
- [Navigation](https://github.com/stephen-t-2023/vestige/blob/main/src/components/Navbar.jsx): `src/components/Navbar.jsx`
- [Global search](https://github.com/stephen-t-2023/vestige/blob/main/src/components/SearchBar.jsx): `src/components/SearchBar.jsx`

### Shared interface

- [Breadcrumb state](https://github.com/stephen-t-2023/vestige/blob/main/src/lib/BreadcrumbContext.js): `src/lib/BreadcrumbContext.js`
- [Beta banner](https://github.com/stephen-t-2023/vestige/blob/main/src/components/BetaBanner.jsx): `src/components/BetaBanner.jsx`
- [Empty state](https://github.com/stephen-t-2023/vestige/blob/main/src/components/EmptyState.jsx): `src/components/EmptyState.jsx`
- [Loading skeleton](https://github.com/stephen-t-2023/vestige/blob/main/src/components/Skeleton.jsx): `src/components/Skeleton.jsx`
- [Footer](https://github.com/stephen-t-2023/vestige/blob/main/src/components/Footer.jsx): `src/components/Footer.jsx`
- [Supabase client](https://github.com/stephen-t-2023/vestige/blob/main/src/lib/supabaseClient.js): `src/lib/supabaseClient.js`

### Other components

- **Learner**
- **Supabase service**

## Connections

- Learner → Home: opens app (evidence: `README.md`)
- Learner → Sign up: creates account
- Learner → Log in: signs in
- Learner → Subject dashboard: manages subjects
- Subject dashboard → Subject details: opens subject
- Subject details → Topic workspace: opens topic (evidence: `src/pages/subject/[id].jsx`)
- Topic workspace → Study session: starts study (evidence: `src/pages/topic/[id].jsx`)
- Study session → Flashcard display: renders card (evidence: `src/pages/study/[id].jsx`)
- Learner → Progress review: reviews progress
- Home → Supabase client: queries data (evidence: `src/pages/index.js`)
- Sign up → Supabase client: uses auth (evidence: `src/pages/signup.jsx`)
- Log in → Supabase client: uses auth (evidence: `src/pages/login.jsx`)
- Account → Supabase client: uses auth (evidence: `src/pages/account.jsx`)
- Subject dashboard → Supabase client: manages subjects (evidence: `src/pages/dashboard.jsx`)
- Subject details → Supabase client: manages topics (evidence: `src/pages/subject/[id].jsx`)
- Topic workspace → Supabase client: manages content (evidence: `src/pages/topic/[id].jsx`)
- Study session → Supabase client: loads cards (evidence: `src/pages/study/[id].jsx`)
- Progress review → Supabase client: loads progress (evidence: `src/pages/progress.jsx`)
- Global search → Supabase client: searches content (evidence: `src/components/SearchBar.jsx`)
- Supabase client → Supabase service: connects to (evidence: `src/lib/supabaseClient.js`)
- Navigation → Global search: renders search (evidence: `src/components/Navbar.jsx`)
- Navigation → Breadcrumb state: reads crumbs (evidence: `src/components/Navbar.jsx`)
- Subject dashboard → Beta banner: renders banner (evidence: `src/pages/dashboard.jsx`)
- Subject dashboard → Loading skeleton: shows loading (evidence: `src/pages/dashboard.jsx`)
- Subject dashboard → Empty state: shows empty state (evidence: `src/pages/dashboard.jsx`)
- Subject details → Loading skeleton: shows loading (evidence: `src/pages/subject/[id].jsx`)
- Subject details → Empty state: shows empty state (evidence: `src/pages/subject/[id].jsx`)
- Topic workspace → Empty state: shows empty state (evidence: `src/pages/topic/[id].jsx`)
- Progress review → Loading skeleton: shows loading (evidence: `src/pages/progress.jsx`)
- Progress review → Empty state: shows empty state (evidence: `src/pages/progress.jsx`)
- Learner → Account: updates account
- Home → Navigation: shares navigation
- Navigation → Footer: shares layout
