# palmzamak2547/vet-mock architecture

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

- Interactive diagram: https://gitdiagram.com/palmzamak2547/vet-mock
- Repository: https://github.com/palmzamak2547/vet-mock

## Overview

VetMock is a veterinary-student learning app: learners choose a subject, load its question bank, complete practice or a timed exam, and track or review progress. It also provides notes and VetWiki, video summaries, schedules, study tools, and optional account-backed collaboration and cloud sync. The repository includes VetMock Research, a separate workspace for importing and analysing datasets and producing research outputs. Relationships below rely on README statements and the supplied source index/excerpts; unsampled details and integration wiring are intentionally left out.

Main entry points: [`src/App.jsx`](https://github.com/palmzamak2547/vet-mock/blob/main/src/App.jsx) (App shell), [`research/src/workspace/Workspace.jsx`](https://github.com/palmzamak2547/vet-mock/blob/main/research/src/workspace/Workspace.jsx) (Research workspace), [`research/src/lib/runtime/engine-core.js`](https://github.com/palmzamak2547/vet-mock/blob/main/research/src/lib/runtime/engine-core.js) (Analysis engine), [`src/hooks/useExamSession.js`](https://github.com/palmzamak2547/vet-mock/blob/main/src/hooks/useExamSession.js) (Exam session)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_study["Study experience"]
  node_app["App shell<br/>[App.jsx]"]
  node_curriculum["Curriculum<br/>[curriculum.js]"]
  node_questionbanks["Question banks<br/>[questions.js]"]
  node_exam["Exam session<br/>[useExamSession.js]"]
  node_grading["Answer grading<br/>[utils.js]"]
  node_questionmanager["Question manager"]
end

subgraph group_knowledge["Learning content"]
  node_notes["Notes corpus<br/>[note-corpus.js]"]
  node_vetwiki["VetWiki retrieval<br/>[retrieve.js]"]
  node_video["Video summaries"]
  node_schedule["Study schedules"]
end

subgraph group_platform["Account and persistence"]
  node_localstorage[("Browser storage<br/>[useStorage.js]")]
  node_auth["Authentication<br/>[supabase.js]"]
  node_sync["Cloud sync<br/>[useUserDataSync.js]"]
end

subgraph group_research["Research workspace"]
  node_researchapp["Research app shell<br/>[App.jsx]"]
  node_workspace["Research workspace<br/>[Workspace.jsx]"]
  node_intake["Dataset intake<br/>[preview.js]"]
  node_recipe["Data recipes<br/>[recipe.js]"]
  node_engine["Analysis engine<br/>[engine-core.js]"]
  node_analysis["Analysis operations<br/>[run.js]"]
  node_researchstore[("Project storage<br/>[projects.js]")]
  node_exports["Research exports<br/>[export.js]"]
end

node_learner(("Learner"))

node_learner -->|"opens"| node_app
node_app -->|"selects subject"| node_curriculum
node_app -->|"loads questions"| node_questionbanks
node_app -->|"starts session"| node_exam
node_exam -->|"checks answers"| node_grading
node_app -.->|"persists state"| node_localstorage
node_app -.->|"opens notes"| node_notes
node_app -->|"opens knowledge"| node_vetwiki
node_app -.->|"opens summaries"| node_video
node_app -.->|"shows schedule"| node_schedule
node_learner -->|"manages questions"| node_questionmanager
node_questionmanager -.->|"saves questions"| node_localstorage
node_learner -->|"signs in"| node_auth
node_auth -.->|"enables sync"| node_sync
node_learner -->|"opens research"| node_researchapp
node_researchapp -->|"routes to"| node_workspace
node_workspace -.->|"imports datasets"| node_intake
node_engine -->|"parses data"| node_intake
node_engine -->|"applies recipe"| node_recipe
node_engine -->|"runs analysis"| node_analysis
node_workspace -->|"manages projects"| node_researchstore
node_workspace -.->|"exports results"| node_exports

click node_app "https://github.com/palmzamak2547/vet-mock/blob/main/src/App.jsx"
click node_curriculum "https://github.com/palmzamak2547/vet-mock/blob/main/src/data/curriculum.js"
click node_questionbanks "https://github.com/palmzamak2547/vet-mock/blob/main/src/data/questions.js"
click node_exam "https://github.com/palmzamak2547/vet-mock/blob/main/src/hooks/useExamSession.js"
click node_grading "https://github.com/palmzamak2547/vet-mock/blob/main/src/hooks/utils.js"
click node_questionmanager "https://github.com/palmzamak2547/vet-mock/blob/main/src/views/QuestionManagerView.jsx"
click node_notes "https://github.com/palmzamak2547/vet-mock/blob/main/src/data/note-corpus.js"
click node_vetwiki "https://github.com/palmzamak2547/vet-mock/blob/main/src/lib/vetwiki/retrieve.js"
click node_video "https://github.com/palmzamak2547/vet-mock/tree/main/src/data"
click node_schedule "https://github.com/palmzamak2547/vet-mock/tree/main/src/data"
click node_localstorage "https://github.com/palmzamak2547/vet-mock/blob/main/src/hooks/useStorage.js"
click node_auth "https://github.com/palmzamak2547/vet-mock/blob/main/src/lib/supabase.js"
click node_sync "https://github.com/palmzamak2547/vet-mock/blob/main/src/hooks/useUserDataSync.js"
click node_researchapp "https://github.com/palmzamak2547/vet-mock/blob/main/research/src/App.jsx"
click node_workspace "https://github.com/palmzamak2547/vet-mock/blob/main/research/src/workspace/Workspace.jsx"
click node_intake "https://github.com/palmzamak2547/vet-mock/blob/main/research/src/lib/intake/preview.js"
click node_recipe "https://github.com/palmzamak2547/vet-mock/blob/main/research/src/lib/intake/recipe.js"
click node_engine "https://github.com/palmzamak2547/vet-mock/blob/main/research/src/lib/runtime/engine-core.js"
click node_analysis "https://github.com/palmzamak2547/vet-mock/blob/main/research/src/lib/runtime/run.js"
click node_researchstore "https://github.com/palmzamak2547/vet-mock/blob/main/research/src/lib/store/projects.js"
click node_exports "https://github.com/palmzamak2547/vet-mock/blob/main/research/src/lib/runtime/export.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_app,node_curriculum,node_questionbanks,node_exam,node_grading,node_questionmanager toneBlue
class node_notes,node_vetwiki,node_video,node_schedule toneAmber
class node_localstorage,node_auth,node_sync toneMint
class node_researchapp,node_workspace,node_intake,node_recipe,node_engine,node_analysis,node_researchstore,node_exports toneRose
class node_learner toneIndigo
```

## Components

### Study experience

- [App shell](https://github.com/palmzamak2547/vet-mock/blob/main/src/App.jsx): `src/App.jsx`
- [Curriculum](https://github.com/palmzamak2547/vet-mock/blob/main/src/data/curriculum.js): `src/data/curriculum.js`
- [Question banks](https://github.com/palmzamak2547/vet-mock/blob/main/src/data/questions.js): `src/data/questions.js`
- [Exam session](https://github.com/palmzamak2547/vet-mock/blob/main/src/hooks/useExamSession.js): `src/hooks/useExamSession.js`
- [Answer grading](https://github.com/palmzamak2547/vet-mock/blob/main/src/hooks/utils.js): `src/hooks/utils.js`
- [Question manager](https://github.com/palmzamak2547/vet-mock/blob/main/src/views/QuestionManagerView.jsx): `src/views/QuestionManagerView.jsx`

### Learning content

- [Notes corpus](https://github.com/palmzamak2547/vet-mock/blob/main/src/data/note-corpus.js): `src/data/note-corpus.js`
- [VetWiki retrieval](https://github.com/palmzamak2547/vet-mock/blob/main/src/lib/vetwiki/retrieve.js): `src/lib/vetwiki/retrieve.js`
- [Video summaries](https://github.com/palmzamak2547/vet-mock/tree/main/src/data): `src/data`
- [Study schedules](https://github.com/palmzamak2547/vet-mock/tree/main/src/data): `src/data`

### Account and persistence

- [Browser storage](https://github.com/palmzamak2547/vet-mock/blob/main/src/hooks/useStorage.js): `src/hooks/useStorage.js`
- [Authentication](https://github.com/palmzamak2547/vet-mock/blob/main/src/lib/supabase.js): `src/lib/supabase.js`
- [Cloud sync](https://github.com/palmzamak2547/vet-mock/blob/main/src/hooks/useUserDataSync.js): `src/hooks/useUserDataSync.js`

### Research workspace

- [Research app shell](https://github.com/palmzamak2547/vet-mock/blob/main/research/src/App.jsx): `research/src/App.jsx`
- [Research workspace](https://github.com/palmzamak2547/vet-mock/blob/main/research/src/workspace/Workspace.jsx): `research/src/workspace/Workspace.jsx`
- [Dataset intake](https://github.com/palmzamak2547/vet-mock/blob/main/research/src/lib/intake/preview.js): `research/src/lib/intake/preview.js`
- [Data recipes](https://github.com/palmzamak2547/vet-mock/blob/main/research/src/lib/intake/recipe.js): `research/src/lib/intake/recipe.js`
- [Analysis engine](https://github.com/palmzamak2547/vet-mock/blob/main/research/src/lib/runtime/engine-core.js): `research/src/lib/runtime/engine-core.js`
- [Analysis operations](https://github.com/palmzamak2547/vet-mock/blob/main/research/src/lib/runtime/run.js): `research/src/lib/runtime/run.js`
- [Project storage](https://github.com/palmzamak2547/vet-mock/blob/main/research/src/lib/store/projects.js): `research/src/lib/store/projects.js`
- [Research exports](https://github.com/palmzamak2547/vet-mock/blob/main/research/src/lib/runtime/export.js): `research/src/lib/runtime/export.js`

### Other components

- **Learner**

## Connections

- Learner → App shell: opens (evidence: `README.md`)
- App shell → Curriculum: selects subject (evidence: `src/App.jsx`)
- App shell → Question banks: loads questions (evidence: `src/App.jsx`)
- App shell → Exam session: starts session (evidence: `src/App.jsx`)
- Exam session → Answer grading: checks answers (evidence: `src/hooks/useExamSession.js`)
- App shell → Browser storage: persists state (evidence: `README.md`)
- App shell → Notes corpus: opens notes (evidence: `README.md`)
- App shell → VetWiki retrieval: opens knowledge (evidence: `src/App.jsx`)
- App shell → Video summaries: opens summaries (evidence: `README.md`)
- App shell → Study schedules: shows schedule (evidence: `README.md`)
- Learner → Question manager: manages questions (evidence: `README.md`)
- Question manager → Browser storage: saves questions
- Learner → Authentication: signs in (evidence: `README.md`)
- Authentication → Cloud sync: enables sync (evidence: `README.md`)
- Learner → Research app shell: opens research (evidence: `README.md`)
- Research app shell → Research workspace: routes to (evidence: `research/src/App.jsx`)
- Research workspace → Dataset intake: imports datasets
- Analysis engine → Dataset intake: parses data (evidence: `research/src/lib/runtime/engine-core.js`)
- Analysis engine → Data recipes: applies recipe (evidence: `research/src/lib/runtime/engine-core.js`)
- Analysis engine → Analysis operations: runs analysis (evidence: `research/src/lib/runtime/engine-core.js`)
- Research workspace → Project storage: manages projects
- Research workspace → Research exports: exports results
