# sandeshsaini/preboard architecture

> Architecture diagram of the GitHub repository sandeshsaini/preboard, 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/sandeshsaini/preboard
- Repository: https://github.com/sandeshsaini/preboard

## Overview

PrepBoard is a browser-only interview-prep tracker. The user manages a personal question bank, searches and filters it, updates progress, and reviews summary and weekly-progress views; question and machine-coding state persist locally. The graph reflects documented capabilities and visible imports/calls. Some App.jsx sections were omitted, so internal relationships not shown there are left out.

Main entry points: [`src/App.jsx`](https://github.com/sandeshsaini/preboard/blob/main/src/App.jsx) (App state and orchestration), [`src/components/Icons.jsx`](https://github.com/sandeshsaini/preboard/blob/main/src/components/Icons.jsx) (Icon primitives), [`src/components/SummaryCard.jsx`](https://github.com/sandeshsaini/preboard/blob/main/src/components/SummaryCard.jsx) (Summary counts), [`src/components/ProgressCard.jsx`](https://github.com/sandeshsaini/preboard/blob/main/src/components/ProgressCard.jsx) (Weekly progress)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_app["Application"]
  node_mount["React mount<br/>[main.jsx]"]
  node_app["App state and orchestration<br/>[App.jsx]"]
end

subgraph group_questions["Question Bank"]
  node_form["Question form<br/>[QuestionForm.jsx]"]
  node_filters["Search and filters"]
  node_list["Question list<br/>[QuestionList.jsx]"]
end

subgraph group_progress["Progress Views"]
  node_summary["Summary counts<br/>[SummaryCard.jsx]"]
  node_machine["Machine-coding status<br/>[SummaryCard.jsx]"]
  node_weekly["Weekly progress<br/>[ProgressCard.jsx]"]
end

subgraph group_shared["Shared UI and State"]
  node_storage["Local persistence<br/>[storage.js]"]
  node_toast["Toast and undo<br/>[Toast.jsx]"]
  node_icons["Icon primitives<br/>[Icons.jsx]"]
  node_countup["Count animation<br/>[useCountUp.js]"]
end

node_user(("Prep user"))
node_browser[("Browser localStorage")]

node_user -->|"opens app"| node_mount
node_mount -->|"renders"| node_app
node_app -->|"opens and handles"| node_form
node_app -->|"renders"| node_filters
node_app -->|"renders"| node_list
node_app -->|"renders"| node_summary
node_app -->|"renders"| node_machine
node_app -->|"renders"| node_weekly
node_app -->|"renders"| node_toast
node_app -->|"saves state"| node_storage
node_storage -->|"reads and writes"| node_browser
node_form -->|"renders"| node_icons
node_filters -->|"renders"| node_icons
node_list -->|"renders"| node_icons
node_summary -->|"renders"| node_icons
node_machine -->|"renders"| node_icons
node_weekly -->|"renders"| node_icons
node_toast -->|"renders"| node_icons
node_summary -->|"animates counts"| node_countup
node_weekly -->|"animates percentage"| node_countup

click node_mount "https://github.com/sandeshsaini/preboard/blob/main/src/main.jsx"
click node_app "https://github.com/sandeshsaini/preboard/blob/main/src/App.jsx"
click node_form "https://github.com/sandeshsaini/preboard/blob/main/src/components/QuestionForm.jsx"
click node_filters "https://github.com/sandeshsaini/preboard/blob/main/src/components/QuestionFilters.jsx"
click node_list "https://github.com/sandeshsaini/preboard/blob/main/src/components/QuestionList.jsx"
click node_storage "https://github.com/sandeshsaini/preboard/blob/main/src/lib/storage.js"
click node_summary "https://github.com/sandeshsaini/preboard/blob/main/src/components/SummaryCard.jsx"
click node_machine "https://github.com/sandeshsaini/preboard/blob/main/src/components/SummaryCard.jsx"
click node_weekly "https://github.com/sandeshsaini/preboard/blob/main/src/components/ProgressCard.jsx"
click node_toast "https://github.com/sandeshsaini/preboard/blob/main/src/components/Toast.jsx"
click node_icons "https://github.com/sandeshsaini/preboard/blob/main/src/components/Icons.jsx"
click node_countup "https://github.com/sandeshsaini/preboard/blob/main/src/lib/useCountUp.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_mount,node_app,node_user toneBlue
class node_form,node_filters,node_list,node_browser toneAmber
class node_summary,node_machine,node_weekly toneMint
class node_storage,node_toast,node_icons,node_countup toneRose
```

## Components

### Application

- [React mount](https://github.com/sandeshsaini/preboard/blob/main/src/main.jsx): `src/main.jsx`
- [App state and orchestration](https://github.com/sandeshsaini/preboard/blob/main/src/App.jsx): `src/App.jsx`

### Question Bank

- [Question form](https://github.com/sandeshsaini/preboard/blob/main/src/components/QuestionForm.jsx): `src/components/QuestionForm.jsx`
- [Search and filters](https://github.com/sandeshsaini/preboard/blob/main/src/components/QuestionFilters.jsx): `src/components/QuestionFilters.jsx`
- [Question list](https://github.com/sandeshsaini/preboard/blob/main/src/components/QuestionList.jsx): `src/components/QuestionList.jsx`

### Progress Views

- [Summary counts](https://github.com/sandeshsaini/preboard/blob/main/src/components/SummaryCard.jsx): `src/components/SummaryCard.jsx`
- [Machine-coding status](https://github.com/sandeshsaini/preboard/blob/main/src/components/SummaryCard.jsx): `src/components/SummaryCard.jsx`
- [Weekly progress](https://github.com/sandeshsaini/preboard/blob/main/src/components/ProgressCard.jsx): `src/components/ProgressCard.jsx`

### Shared UI and State

- [Local persistence](https://github.com/sandeshsaini/preboard/blob/main/src/lib/storage.js): `src/lib/storage.js`
- [Toast and undo](https://github.com/sandeshsaini/preboard/blob/main/src/components/Toast.jsx): `src/components/Toast.jsx`
- [Icon primitives](https://github.com/sandeshsaini/preboard/blob/main/src/components/Icons.jsx): `src/components/Icons.jsx`
- [Count animation](https://github.com/sandeshsaini/preboard/blob/main/src/lib/useCountUp.js): `src/lib/useCountUp.js`

### Other components

- **Prep user**
- **Browser localStorage**

## Connections

- Prep user → React mount: opens app (evidence: `src/main.jsx`)
- React mount → App state and orchestration: renders (evidence: `src/main.jsx`)
- App state and orchestration → Question form: opens and handles (evidence: `src/App.jsx`)
- App state and orchestration → Search and filters: renders (evidence: `src/App.jsx`)
- App state and orchestration → Question list: renders (evidence: `src/App.jsx`)
- App state and orchestration → Summary counts: renders (evidence: `src/App.jsx`)
- App state and orchestration → Machine-coding status: renders (evidence: `src/App.jsx`)
- App state and orchestration → Weekly progress: renders (evidence: `src/App.jsx`)
- App state and orchestration → Toast and undo: renders (evidence: `src/App.jsx`)
- App state and orchestration → Local persistence: saves state (evidence: `src/App.jsx`)
- Local persistence → Browser localStorage: reads and writes (evidence: `src/lib/storage.js`)
- Question form → Icon primitives: renders (evidence: `src/components/QuestionForm.jsx`)
- Search and filters → Icon primitives: renders (evidence: `src/components/QuestionFilters.jsx`)
- Question list → Icon primitives: renders (evidence: `src/components/QuestionList.jsx`)
- Summary counts → Icon primitives: renders (evidence: `src/components/SummaryCard.jsx`)
- Machine-coding status → Icon primitives: renders (evidence: `src/components/SummaryCard.jsx`)
- Weekly progress → Icon primitives: renders (evidence: `src/components/ProgressCard.jsx`)
- Toast and undo → Icon primitives: renders (evidence: `src/components/Toast.jsx`)
- Summary counts → Count animation: animates counts (evidence: `src/components/SummaryCard.jsx`)
- Weekly progress → Count animation: animates percentage (evidence: `src/components/ProgressCard.jsx`)
