# damianpeaf/cert-sim architecture

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

- Interactive diagram: https://gitdiagram.com/damianpeaf/cert-sim
- Repository: https://github.com/damianpeaf/cert-sim

## Overview

cert-sim is a static certification-study platform backed by structured exam content. The principal workflow is to choose a practice configuration, answer a session, and review an estimated score with explanations and source links. Separate branches support filtered question-bank practice, flashcards, progress statistics, and reference resources. The README documents an agent content pipeline; its repository stages are represented, but detailed internal calls among those stages are not established by the sampled source. App relationships use excerpts or SOURCE INDEX references where available.

Main entry points: [`app/src/components/Simulator.tsx`](https://github.com/damianpeaf/cert-sim/blob/main/app/src/components/Simulator.tsx) (Simulator), [`app/src/components/sim/Runner.tsx`](https://github.com/damianpeaf/cert-sim/blob/main/app/src/components/sim/Runner.tsx) (Exam runner), [`app/src/components/sim/Browse.tsx`](https://github.com/damianpeaf/cert-sim/blob/main/app/src/components/sim/Browse.tsx) (Question browser), [`app/src/components/sim/QuestionReview.tsx`](https://github.com/damianpeaf/cert-sim/blob/main/app/src/components/sim/QuestionReview.tsx) (Question review)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_study["Practice experience"]
  node_cert_hub["Certification hub<br/>[index.astro]"]
  node_simulator["Simulator<br/>[Simulator.tsx]"]
  node_question_bank["Question browser<br/>[Browse.tsx]"]
  node_export["Bank export<br/>[export.ts]"]
  node_statistics["Study statistics<br/>[Stats.tsx]"]
  node_flashcards["Spaced flashcards<br/>[Flashcards.tsx]"]
  node_resources["Study resources"]
  node_source_links["Source highlighting<br/>[fragment.ts]"]
  node_language["English and Spanish<br/>[i18n.ts]"]
end

subgraph group_runtime["Session runtime"]
  node_configure["Session setup<br/>[Configure.tsx]"]
  node_runner["Exam runner<br/>[Runner.tsx]"]
  node_answer_input["Answer controls<br/>[AnswerInput.tsx]"]
  node_engine["Session engine<br/>[engine.ts]"]
  node_results["Score and review<br/>[Results.tsx]"]
  node_question_review["Question review<br/>[QuestionReview.tsx]"]
  node_navigator["Session navigator<br/>[ui.tsx]"]
  node_progress_store[("Local progress<br/>[storage.ts]")]
end

subgraph group_content["Study content"]
  node_cert_data["Certification data"]
  node_guide["Structured exam guide<br/>[guide.json]"]
  node_question_bank_data["Verified questions<br/>[questions.json]"]
  node_resource_data["Study references"]
end

subgraph group_production["Content production"]
  node_exam_intel["Exam intelligence<br/>[summary.json]"]
  node_generator["Question generation<br/>[generator.md]"]
  node_verifier["Independent verification<br/>[verifier.md]"]
  node_bank_tool["Bank validation tools<br/>[bank.py]"]
end

node_learner(("Learner"))
node_official_guide["Official exam guide"]

node_learner -->|"opens certification"| node_cert_hub
node_cert_hub -->|"starts practice"| node_simulator
node_simulator -->|"renders setup"| node_configure
node_simulator -->|"renders session"| node_runner
node_simulator -->|"renders results"| node_results
node_simulator -->|"renders bank"| node_question_bank
node_simulator -->|"renders statistics"| node_statistics
node_configure -->|"configures session"| node_engine
node_runner -->|"renders answers"| node_answer_input
node_runner -->|"renders review"| node_question_review
node_runner -->|"renders navigator"| node_navigator
node_runner -->|"pauses and resumes"| node_engine
node_simulator -->|"loads and saves"| node_progress_store
node_simulator -->|"updates memory"| node_engine
node_results -->|"renders explanations"| node_question_review
node_question_bank -->|"renders review"| node_question_review
node_question_bank -->|"exports questions"| node_export
node_question_bank -->|"persists practice"| node_progress_store
node_statistics -->|"reads progress"| node_progress_store
node_flashcards -->|"saves recall ratings"| node_progress_store
node_question_review -->|"links quoted sources"| node_source_links
node_cert_hub -->|"presents certification"| node_cert_data
node_simulator -->|"uses practice questions"| node_question_bank_data
node_resources -->|"presents study material"| node_resource_data
node_flashcards -->|"uses flashcard content"| node_resource_data
node_cert_data -->|"includes guide"| node_guide
node_official_guide -->|"structures objectives"| node_guide
node_guide -->|"informs exam research"| node_exam_intel
node_exam_intel -->|"informs generation"| node_generator
node_generator -->|"submits questions"| node_verifier
node_verifier -->|"requests corrections"| node_generator
node_verifier -->|"approves questions"| node_question_bank_data
node_bank_tool -->|"validates and merges"| node_question_bank_data
node_language -.->|"localizes interface"| node_simulator
node_language -->|"localizes interface"| node_flashcards

click node_cert_hub "https://github.com/damianpeaf/cert-sim/blob/main/app/src/pages/%5Bcert%5D/index.astro"
click node_simulator "https://github.com/damianpeaf/cert-sim/blob/main/app/src/components/Simulator.tsx"
click node_configure "https://github.com/damianpeaf/cert-sim/blob/main/app/src/components/sim/Configure.tsx"
click node_runner "https://github.com/damianpeaf/cert-sim/blob/main/app/src/components/sim/Runner.tsx"
click node_answer_input "https://github.com/damianpeaf/cert-sim/blob/main/app/src/components/sim/AnswerInput.tsx"
click node_engine "https://github.com/damianpeaf/cert-sim/blob/main/app/src/lib/engine.ts"
click node_results "https://github.com/damianpeaf/cert-sim/blob/main/app/src/components/sim/Results.tsx"
click node_question_review "https://github.com/damianpeaf/cert-sim/blob/main/app/src/components/sim/QuestionReview.tsx"
click node_navigator "https://github.com/damianpeaf/cert-sim/blob/main/app/src/components/sim/ui.tsx"
click node_progress_store "https://github.com/damianpeaf/cert-sim/blob/main/app/src/lib/storage.ts"
click node_question_bank "https://github.com/damianpeaf/cert-sim/blob/main/app/src/components/sim/Browse.tsx"
click node_export "https://github.com/damianpeaf/cert-sim/blob/main/app/src/lib/export.ts"
click node_statistics "https://github.com/damianpeaf/cert-sim/blob/main/app/src/components/sim/Stats.tsx"
click node_flashcards "https://github.com/damianpeaf/cert-sim/blob/main/app/src/components/Flashcards.tsx"
click node_resources "https://github.com/damianpeaf/cert-sim/blob/main/app/src/components/ResourceBrowser.tsx"
click node_source_links "https://github.com/damianpeaf/cert-sim/blob/main/app/src/lib/fragment.ts"
click node_language "https://github.com/damianpeaf/cert-sim/blob/main/app/src/lib/i18n.ts"
click node_cert_data "https://github.com/damianpeaf/cert-sim/tree/main/certs/aws-aif-c01"
click node_guide "https://github.com/damianpeaf/cert-sim/blob/main/certs/aws-aif-c01/guide/guide.json"
click node_question_bank_data "https://github.com/damianpeaf/cert-sim/blob/main/certs/aws-aif-c01/questions.json"
click node_resource_data "https://github.com/damianpeaf/cert-sim/tree/main/certs/aws-aif-c01/resources"
click node_exam_intel "https://github.com/damianpeaf/cert-sim/blob/main/certs/aws-aif-c01/research/exam-intel/summary.json"
click node_generator "https://github.com/damianpeaf/cert-sim/blob/main/methodology/prompts/generator.md"
click node_verifier "https://github.com/damianpeaf/cert-sim/blob/main/methodology/prompts/verifier.md"
click node_bank_tool "https://github.com/damianpeaf/cert-sim/blob/main/tools/bank.py"

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_cert_hub,node_simulator,node_question_bank,node_export,node_statistics,node_flashcards,node_resources,node_source_links,node_language toneBlue
class node_configure,node_runner,node_answer_input,node_engine,node_results,node_question_review,node_navigator,node_progress_store toneAmber
class node_cert_data,node_guide,node_question_bank_data,node_resource_data toneMint
class node_exam_intel,node_generator,node_verifier,node_bank_tool toneRose
class node_learner,node_official_guide toneIndigo
```

## Components

### Practice experience

- [Certification hub](https://github.com/damianpeaf/cert-sim/blob/main/app/src/pages/%5Bcert%5D/index.astro): `app/src/pages/[cert]/index.astro`
- [Simulator](https://github.com/damianpeaf/cert-sim/blob/main/app/src/components/Simulator.tsx): `app/src/components/Simulator.tsx`
- [Question browser](https://github.com/damianpeaf/cert-sim/blob/main/app/src/components/sim/Browse.tsx): `app/src/components/sim/Browse.tsx`
- [Bank export](https://github.com/damianpeaf/cert-sim/blob/main/app/src/lib/export.ts): `app/src/lib/export.ts`
- [Study statistics](https://github.com/damianpeaf/cert-sim/blob/main/app/src/components/sim/Stats.tsx): `app/src/components/sim/Stats.tsx`
- [Spaced flashcards](https://github.com/damianpeaf/cert-sim/blob/main/app/src/components/Flashcards.tsx): `app/src/components/Flashcards.tsx`
- [Study resources](https://github.com/damianpeaf/cert-sim/blob/main/app/src/components/ResourceBrowser.tsx): `app/src/components/ResourceBrowser.tsx`
- [Source highlighting](https://github.com/damianpeaf/cert-sim/blob/main/app/src/lib/fragment.ts): `app/src/lib/fragment.ts`
- [English and Spanish](https://github.com/damianpeaf/cert-sim/blob/main/app/src/lib/i18n.ts): `app/src/lib/i18n.ts`

### Session runtime

- [Session setup](https://github.com/damianpeaf/cert-sim/blob/main/app/src/components/sim/Configure.tsx): `app/src/components/sim/Configure.tsx`
- [Exam runner](https://github.com/damianpeaf/cert-sim/blob/main/app/src/components/sim/Runner.tsx): `app/src/components/sim/Runner.tsx`
- [Answer controls](https://github.com/damianpeaf/cert-sim/blob/main/app/src/components/sim/AnswerInput.tsx): `app/src/components/sim/AnswerInput.tsx`
- [Session engine](https://github.com/damianpeaf/cert-sim/blob/main/app/src/lib/engine.ts): `app/src/lib/engine.ts`
- [Score and review](https://github.com/damianpeaf/cert-sim/blob/main/app/src/components/sim/Results.tsx): `app/src/components/sim/Results.tsx`
- [Question review](https://github.com/damianpeaf/cert-sim/blob/main/app/src/components/sim/QuestionReview.tsx): `app/src/components/sim/QuestionReview.tsx`
- [Session navigator](https://github.com/damianpeaf/cert-sim/blob/main/app/src/components/sim/ui.tsx): `app/src/components/sim/ui.tsx`
- [Local progress](https://github.com/damianpeaf/cert-sim/blob/main/app/src/lib/storage.ts): `app/src/lib/storage.ts`

### Study content

- [Certification data](https://github.com/damianpeaf/cert-sim/tree/main/certs/aws-aif-c01): `certs/aws-aif-c01`
- [Structured exam guide](https://github.com/damianpeaf/cert-sim/blob/main/certs/aws-aif-c01/guide/guide.json): `certs/aws-aif-c01/guide/guide.json`
- [Verified questions](https://github.com/damianpeaf/cert-sim/blob/main/certs/aws-aif-c01/questions.json): `certs/aws-aif-c01/questions.json`
- [Study references](https://github.com/damianpeaf/cert-sim/tree/main/certs/aws-aif-c01/resources): `certs/aws-aif-c01/resources`

### Content production

- [Exam intelligence](https://github.com/damianpeaf/cert-sim/blob/main/certs/aws-aif-c01/research/exam-intel/summary.json): `certs/aws-aif-c01/research/exam-intel/summary.json`
- [Question generation](https://github.com/damianpeaf/cert-sim/blob/main/methodology/prompts/generator.md): `methodology/prompts/generator.md`
- [Independent verification](https://github.com/damianpeaf/cert-sim/blob/main/methodology/prompts/verifier.md): `methodology/prompts/verifier.md`
- [Bank validation tools](https://github.com/damianpeaf/cert-sim/blob/main/tools/bank.py): `tools/bank.py`

### Other components

- **Learner**
- **Official exam guide**

## Connections

- Learner → Certification hub: opens certification (evidence: `README.md`)
- Certification hub → Simulator: starts practice (evidence: `README.md`)
- Simulator → Session setup: renders setup (evidence: `app/src/components/Simulator.tsx`)
- Simulator → Exam runner: renders session (evidence: `app/src/components/Simulator.tsx`)
- Simulator → Score and review: renders results (evidence: `app/src/components/Simulator.tsx`)
- Simulator → Question browser: renders bank (evidence: `app/src/components/Simulator.tsx`)
- Simulator → Study statistics: renders statistics (evidence: `app/src/components/Simulator.tsx`)
- Session setup → Session engine: configures session (evidence: `app/src/components/sim/Configure.tsx`)
- Exam runner → Answer controls: renders answers (evidence: `app/src/components/sim/Runner.tsx`)
- Exam runner → Question review: renders review (evidence: `app/src/components/sim/Runner.tsx`)
- Exam runner → Session navigator: renders navigator (evidence: `app/src/components/sim/Runner.tsx`)
- Exam runner → Session engine: pauses and resumes (evidence: `app/src/components/sim/Runner.tsx`)
- Simulator → Local progress: loads and saves (evidence: `app/src/components/Simulator.tsx`)
- Simulator → Session engine: updates memory (evidence: `app/src/components/Simulator.tsx`)
- Score and review → Question review: renders explanations (evidence: `app/src/components/sim/Results.tsx`)
- Question browser → Question review: renders review (evidence: `app/src/components/sim/Browse.tsx`)
- Question browser → Bank export: exports questions (evidence: `app/src/components/sim/Browse.tsx`)
- Question browser → Local progress: persists practice (evidence: `app/src/components/sim/Browse.tsx`)
- Study statistics → Local progress: reads progress (evidence: `app/src/components/sim/Stats.tsx`)
- Spaced flashcards → Local progress: saves recall ratings (evidence: `app/src/components/Flashcards.tsx`)
- Question review → Source highlighting: links quoted sources (evidence: `README.md`)
- Certification hub → Certification data: presents certification (evidence: `README.md`)
- Simulator → Verified questions: uses practice questions (evidence: `README.md`)
- Study resources → Study references: presents study material (evidence: `README.md`)
- Spaced flashcards → Study references: uses flashcard content (evidence: `README.md`)
- Certification data → Structured exam guide: includes guide (evidence: `README.md`)
- Official exam guide → Structured exam guide: structures objectives (evidence: `README.md`)
- Structured exam guide → Exam intelligence: informs exam research (evidence: `README.md`)
- Exam intelligence → Question generation: informs generation (evidence: `README.md`)
- Question generation → Independent verification: submits questions (evidence: `README.md`)
- Independent verification → Question generation: requests corrections (evidence: `README.md`)
- Independent verification → Verified questions: approves questions (evidence: `README.md`)
- Bank validation tools → Verified questions: validates and merges (evidence: `README.md`)
- English and Spanish → Simulator: localizes interface (evidence: `app/src/components/Simulator.tsx`)
- English and Spanish → Spaced flashcards: localizes interface (evidence: `app/src/components/Flashcards.tsx`)
