# swartzcraft/ocs-study-tools architecture

> Architecture diagram of the GitHub repository swartzcraft/ocs-study-tools, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-12-03). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/swartzcraft/ocs-study-tools
- Repository: https://github.com/swartzcraft/ocs-study-tools

## Overview

OCS Study Tools is a browser-based collection of independent study pages for Officer Candidate School. The documented workflow is to open the Military History page, choose a tool, practice online, or download that tool as a standalone HTML file for offline study. The POI tool offers flashcards, multiple-choice practice, and a practice test; the American Military History companion offers chapter selection, mixed review, Recall & Compare, and Common Mix-Ups, with printed source references. The repository contains additional HTML pages, but their behavior and relationships are not documented here, so they are shown without inferred connections.

Main entry points: [`american-military-history.html`](https://github.com/swartzcraft/ocs-study-tools/blob/main/american-military-history.html) (American history companion), [`military-history.html`](https://github.com/swartzcraft/ocs-study-tools/blob/main/military-history.html) (POI Study), [`history.html`](https://github.com/swartzcraft/ocs-study-tools/blob/main/history.html) (Military History menu), [`index.html`](https://github.com/swartzcraft/ocs-study-tools/blob/main/index.html) (Study Hub)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_navigation["Study navigation"]
  node_study_hub["Study Hub<br/>[index.html]"]
  node_history_menu["Military History menu<br/>[history.html]"]
end

subgraph group_poi["POI study"]
  node_poi_tool["POI Study"]
  node_poi_flashcards["Flashcards"]
  node_poi_quiz["Multiple-choice practice"]
  node_poi_test["Practice test"]
end

subgraph group_reading["Reading companion"]
  node_amh_tool["American history companion"]
  node_chapter_selection["Chapter selection"]
  node_mixed_review["Mixed review"]
  node_recall_compare["Recall &amp; Compare"]
  node_common_mixups["Common Mix-Ups"]
  node_source_references["Printed references"]
end

subgraph group_other["Other study pages"]
  node_amh_retest["Retest review page"]
  node_ucmj_companion["UCMJ study companion"]
end

node_candidate(("OCS candidate"))

node_candidate -->|"opens"| node_history_menu
node_candidate -->|"opens"| node_study_hub
node_history_menu -->|"choose tool"| node_poi_tool
node_history_menu -->|"choose tool"| node_amh_tool
node_poi_tool -->|"offers"| node_poi_flashcards
node_poi_tool -->|"offers"| node_poi_quiz
node_poi_tool -->|"offers"| node_poi_test
node_amh_tool -->|"offers"| node_chapter_selection
node_amh_tool -->|"offers"| node_mixed_review
node_amh_tool -->|"offers"| node_recall_compare
node_amh_tool -->|"offers"| node_common_mixups
node_amh_tool -->|"includes"| node_source_references
node_candidate -->|"downloads offline"| node_poi_tool
node_candidate -->|"downloads offline"| node_amh_tool

click node_study_hub "https://github.com/swartzcraft/ocs-study-tools/blob/main/index.html"
click node_history_menu "https://github.com/swartzcraft/ocs-study-tools/blob/main/history.html"
click node_poi_tool "https://github.com/swartzcraft/ocs-study-tools/blob/main/military-history.html"
click node_poi_flashcards "https://github.com/swartzcraft/ocs-study-tools/blob/main/military-history.html"
click node_poi_quiz "https://github.com/swartzcraft/ocs-study-tools/blob/main/military-history.html"
click node_poi_test "https://github.com/swartzcraft/ocs-study-tools/blob/main/military-history.html"
click node_amh_tool "https://github.com/swartzcraft/ocs-study-tools/blob/main/american-military-history.html"
click node_chapter_selection "https://github.com/swartzcraft/ocs-study-tools/blob/main/american-military-history.html"
click node_mixed_review "https://github.com/swartzcraft/ocs-study-tools/blob/main/american-military-history.html"
click node_recall_compare "https://github.com/swartzcraft/ocs-study-tools/blob/main/american-military-history.html"
click node_common_mixups "https://github.com/swartzcraft/ocs-study-tools/blob/main/american-military-history.html"
click node_source_references "https://github.com/swartzcraft/ocs-study-tools/blob/main/american-military-history.html"
click node_amh_retest "https://github.com/swartzcraft/ocs-study-tools/blob/main/amh-retest-review.html"
click node_ucmj_companion "https://github.com/swartzcraft/ocs-study-tools/blob/main/ucmj-study-companion.html"

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_study_hub,node_history_menu toneBlue
class node_poi_tool,node_poi_flashcards,node_poi_quiz,node_poi_test toneAmber
class node_amh_tool,node_chapter_selection,node_mixed_review,node_recall_compare,node_common_mixups,node_source_references toneMint
class node_amh_retest,node_ucmj_companion toneRose
class node_candidate toneIndigo
```

## Components

### Study navigation

- [Study Hub](https://github.com/swartzcraft/ocs-study-tools/blob/main/index.html): `index.html`
- [Military History menu](https://github.com/swartzcraft/ocs-study-tools/blob/main/history.html): `history.html`

### POI study

- [POI Study](https://github.com/swartzcraft/ocs-study-tools/blob/main/military-history.html): `military-history.html`
- [Flashcards](https://github.com/swartzcraft/ocs-study-tools/blob/main/military-history.html): `military-history.html`
- [Multiple-choice practice](https://github.com/swartzcraft/ocs-study-tools/blob/main/military-history.html): `military-history.html`
- [Practice test](https://github.com/swartzcraft/ocs-study-tools/blob/main/military-history.html): `military-history.html`

### Reading companion

- [American history companion](https://github.com/swartzcraft/ocs-study-tools/blob/main/american-military-history.html): `american-military-history.html`
- [Chapter selection](https://github.com/swartzcraft/ocs-study-tools/blob/main/american-military-history.html): `american-military-history.html`
- [Mixed review](https://github.com/swartzcraft/ocs-study-tools/blob/main/american-military-history.html): `american-military-history.html`
- [Recall & Compare](https://github.com/swartzcraft/ocs-study-tools/blob/main/american-military-history.html): `american-military-history.html`
- [Common Mix-Ups](https://github.com/swartzcraft/ocs-study-tools/blob/main/american-military-history.html): `american-military-history.html`
- [Printed references](https://github.com/swartzcraft/ocs-study-tools/blob/main/american-military-history.html): `american-military-history.html`

### Other study pages

- [Retest review page](https://github.com/swartzcraft/ocs-study-tools/blob/main/amh-retest-review.html): `amh-retest-review.html`
- [UCMJ study companion](https://github.com/swartzcraft/ocs-study-tools/blob/main/ucmj-study-companion.html): `ucmj-study-companion.html`

### Other components

- **OCS candidate**

## Connections

- OCS candidate → Military History menu: opens (evidence: `README.md`)
- OCS candidate → Study Hub: opens (evidence: `README.md`)
- Military History menu → POI Study: choose tool (evidence: `README.md`)
- Military History menu → American history companion: choose tool (evidence: `README.md`)
- POI Study → Flashcards: offers (evidence: `README.md`)
- POI Study → Multiple-choice practice: offers (evidence: `README.md`)
- POI Study → Practice test: offers (evidence: `README.md`)
- American history companion → Chapter selection: offers (evidence: `README.md`)
- American history companion → Mixed review: offers (evidence: `README.md`)
- American history companion → Recall & Compare: offers (evidence: `README.md`)
- American history companion → Common Mix-Ups: offers (evidence: `README.md`)
- American history companion → Printed references: includes (evidence: `README.md`)
- OCS candidate → POI Study: downloads offline (evidence: `README.md`)
- OCS candidate → American history companion: downloads offline (evidence: `README.md`)
