# quitlightfe/flashcards architecture

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

- Interactive diagram: https://gitdiagram.com/quitlightfe/flashcards
- Repository: https://github.com/quitlightfe/flashcards

## Overview

This is a small React flash-card study app. The browser entry renders the app shell, which mounts the card experience. That experience loads a fixed question-and-answer set, tracks the current card and whether its answer is visible, and computes progress. Users reveal or hide answers, move between cards, or select a position on the progress bar. The source excerpts show these component connections; no persistence or external service is evidenced.

Main entry points: [`src/components/FlashCards.tsx`](https://github.com/quitlightfe/flashcards/blob/main/src/components/FlashCards.tsx) (Flash Cards), [`src/components/Navigation.tsx`](https://github.com/quitlightfe/flashcards/blob/main/src/components/Navigation.tsx) (Card Navigation), [`src/components/Progress.tsx`](https://github.com/quitlightfe/flashcards/blob/main/src/components/Progress.tsx) (Progress Bar), [`src/App.tsx`](https://github.com/quitlightfe/flashcards/blob/main/src/App.tsx) (App Shell)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_runtime["App Runtime"]
  node_entry["React Entry<br/>[main.tsx]"]
  node_app["App Shell<br/>[App.tsx]"]
end

subgraph group_study["Study Experience"]
  node_cards["Flash Cards<br/>[FlashCards.tsx]"]
  node_navigation["Card Navigation<br/>[Navigation.tsx]"]
  node_progress["Progress Bar<br/>[Progress.tsx]"]
end

subgraph group_content["Study Content"]
  node_questions["Question Set<br/>[questions.ts]"]
end

node_browser(("Browser User"))

node_entry -->|"renders"| node_app
node_app -->|"renders"| node_cards
node_cards -->|"loads"| node_questions
node_cards -->|"renders with controls"| node_navigation
node_cards -->|"renders with status"| node_progress
node_browser -->|"uses controls"| node_navigation
node_navigation -->|"dispatches actions"| node_cards
node_browser -->|"selects position"| node_progress
node_progress -->|"changes current card"| node_cards

click node_entry "https://github.com/quitlightfe/flashcards/blob/main/src/main.tsx"
click node_app "https://github.com/quitlightfe/flashcards/blob/main/src/App.tsx"
click node_cards "https://github.com/quitlightfe/flashcards/blob/main/src/components/FlashCards.tsx"
click node_navigation "https://github.com/quitlightfe/flashcards/blob/main/src/components/Navigation.tsx"
click node_progress "https://github.com/quitlightfe/flashcards/blob/main/src/components/Progress.tsx"
click node_questions "https://github.com/quitlightfe/flashcards/blob/main/src/data/questions.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_app,node_browser toneBlue
class node_cards,node_navigation,node_progress toneAmber
class node_questions toneMint
```

## Components

### App Runtime

- [React Entry](https://github.com/quitlightfe/flashcards/blob/main/src/main.tsx): `src/main.tsx`
- [App Shell](https://github.com/quitlightfe/flashcards/blob/main/src/App.tsx): `src/App.tsx`

### Study Experience

- [Flash Cards](https://github.com/quitlightfe/flashcards/blob/main/src/components/FlashCards.tsx): `src/components/FlashCards.tsx`
- [Card Navigation](https://github.com/quitlightfe/flashcards/blob/main/src/components/Navigation.tsx): `src/components/Navigation.tsx`
- [Progress Bar](https://github.com/quitlightfe/flashcards/blob/main/src/components/Progress.tsx): `src/components/Progress.tsx`

### Study Content

- [Question Set](https://github.com/quitlightfe/flashcards/blob/main/src/data/questions.ts): `src/data/questions.ts`

### Other components

- **Browser User**

## Connections

- React Entry → App Shell: renders (evidence: `src/main.tsx`)
- App Shell → Flash Cards: renders (evidence: `src/App.tsx`)
- Flash Cards → Question Set: loads (evidence: `src/components/FlashCards.tsx`)
- Flash Cards → Card Navigation: renders with controls (evidence: `src/components/FlashCards.tsx`)
- Flash Cards → Progress Bar: renders with status (evidence: `src/components/FlashCards.tsx`)
- Browser User → Card Navigation: uses controls (evidence: `src/components/Navigation.tsx`)
- Card Navigation → Flash Cards: dispatches actions (evidence: `src/components/Navigation.tsx`)
- Browser User → Progress Bar: selects position (evidence: `src/components/Progress.tsx`)
- Progress Bar → Flash Cards: changes current card (evidence: `src/components/Progress.tsx`)
