# dmbs335/the-map architecture

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

## Overview

The Map combines a web-security knowledge base with a mobile learning app. The main learner workflow is to enter the app, browse a curriculum lesson or vulnerability topic, practice through missions and quizzes, and retain progress for later review. Separate screens support a daily dashboard and research-methodology concepts. The README establishes the breadth and organization of the reference material; source-index relationships and excerpts support the mobile app’s routing, state, storage, and screen dependencies. Some content-data wiring is unsampled, so those links are omitted.

Main entry points: [`apps/mobile/App.tsx`](https://github.com/dmbs335/the-map/blob/main/apps/mobile/App.tsx) (App shell), [`apps/mobile/src/state/LearningContext.tsx`](https://github.com/dmbs335/the-map/blob/main/apps/mobile/src/state/LearningContext.tsx) (Learning state), [`apps/mobile/src/screens/LearnScreen.tsx`](https://github.com/dmbs335/the-map/blob/main/apps/mobile/src/screens/LearnScreen.tsx) (Curriculum browser), [`apps/mobile/src/screens/LibraryScreen.tsx`](https://github.com/dmbs335/the-map/blob/main/apps/mobile/src/screens/LibraryScreen.tsx) (Topic library)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_app["Mobile app"]
  node_appshell["App shell<br/>[App.tsx]"]
end

subgraph group_learning["Learning workflow"]
  node_today["Daily dashboard<br/>[TodayScreen.tsx]"]
  node_learn["Curriculum browser<br/>[LearnScreen.tsx]"]
  node_lesson["Lesson detail"]
  node_lab["Practice lab<br/>[LabScreen.tsx]"]
  node_mission["Mission detail"]
  node_learningdata["Learning content"]
end

subgraph group_reference["Security reference"]
  node_library["Topic library<br/>[LibraryScreen.tsx]"]
  node_topic["Topic detail"]
  node_research["Research guide<br/>[ResearchScreen.tsx]"]
  node_concepts["Research concepts"]
  node_curriculum["Security knowledge base<br/>[README.md]"]
end

subgraph group_foundation["App foundation"]
  node_state["Learning state"]
  node_progress[("Progress storage<br/>[progress.ts]")]
  node_ui["Shared UI<br/>[ui.tsx]"]
  node_theme["Theme<br/>[theme.ts]"]
end

node_learner(("Learner"))

node_learner -->|"opens"| node_appshell
node_appshell -->|"routes to"| node_today
node_appshell -->|"routes to"| node_learn
node_appshell -->|"routes to"| node_library
node_appshell -->|"routes to"| node_lab
node_appshell -->|"routes to"| node_research
node_appshell -->|"opens"| node_lesson
node_appshell -->|"opens"| node_topic
node_appshell -->|"opens"| node_mission
node_appshell -->|"provides"| node_state
node_learn -->|"opens"| node_lesson
node_library -->|"opens"| node_topic
node_lab -->|"opens"| node_mission
node_research -->|"opens"| node_lesson
node_research -->|"renders"| node_concepts
node_today -.->|"reads"| node_learningdata
node_learn -.->|"reads"| node_learningdata
node_library -.->|"reads"| node_learningdata
node_lab -.->|"reads"| node_learningdata
node_lesson -.->|"reads"| node_learningdata
node_mission -.->|"reads"| node_learningdata
node_library -.->|"browses"| node_curriculum
node_learn -.->|"studies"| node_curriculum
node_today -->|"reads"| node_state
node_learn -->|"reads"| node_state
node_library -->|"reads"| node_state
node_lab -->|"updates"| node_state
node_lesson -->|"updates"| node_state
node_topic -->|"updates"| node_state
node_mission -->|"updates"| node_state
node_state -->|"loads and saves"| node_progress
node_today -->|"uses"| node_ui
node_learn -->|"uses"| node_ui
node_library -->|"uses"| node_ui
node_lab -->|"uses"| node_ui
node_research -->|"uses"| node_ui
node_ui -->|"uses"| node_theme
node_appshell -->|"configures"| node_theme

click node_appshell "https://github.com/dmbs335/the-map/blob/main/apps/mobile/App.tsx"
click node_today "https://github.com/dmbs335/the-map/blob/main/apps/mobile/src/screens/TodayScreen.tsx"
click node_learn "https://github.com/dmbs335/the-map/blob/main/apps/mobile/src/screens/LearnScreen.tsx"
click node_lesson "https://github.com/dmbs335/the-map/blob/main/apps/mobile/src/screens/LessonDetailScreen.tsx"
click node_library "https://github.com/dmbs335/the-map/blob/main/apps/mobile/src/screens/LibraryScreen.tsx"
click node_topic "https://github.com/dmbs335/the-map/blob/main/apps/mobile/src/screens/TopicDetailScreen.tsx"
click node_lab "https://github.com/dmbs335/the-map/blob/main/apps/mobile/src/screens/LabScreen.tsx"
click node_mission "https://github.com/dmbs335/the-map/blob/main/apps/mobile/src/screens/MissionDetailScreen.tsx"
click node_research "https://github.com/dmbs335/the-map/blob/main/apps/mobile/src/screens/ResearchScreen.tsx"
click node_concepts "https://github.com/dmbs335/the-map/blob/main/apps/mobile/src/content/researchConcepts.ts"
click node_curriculum "https://github.com/dmbs335/the-map/blob/main/README.md"
click node_learningdata "https://github.com/dmbs335/the-map/tree/main/apps/mobile/src"
click node_state "https://github.com/dmbs335/the-map/blob/main/apps/mobile/src/state/LearningContext.tsx"
click node_progress "https://github.com/dmbs335/the-map/blob/main/apps/mobile/src/storage/progress.ts"
click node_ui "https://github.com/dmbs335/the-map/blob/main/apps/mobile/src/components/ui.tsx"
click node_theme "https://github.com/dmbs335/the-map/blob/main/apps/mobile/src/theme.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_appshell toneBlue
class node_today,node_learn,node_lesson,node_lab,node_mission,node_learningdata toneAmber
class node_library,node_topic,node_research,node_concepts,node_curriculum toneMint
class node_state,node_progress,node_ui,node_theme toneRose
class node_learner toneIndigo
```

## Components

### Mobile app

- [App shell](https://github.com/dmbs335/the-map/blob/main/apps/mobile/App.tsx): `apps/mobile/App.tsx`

### Learning workflow

- [Daily dashboard](https://github.com/dmbs335/the-map/blob/main/apps/mobile/src/screens/TodayScreen.tsx): `apps/mobile/src/screens/TodayScreen.tsx`
- [Curriculum browser](https://github.com/dmbs335/the-map/blob/main/apps/mobile/src/screens/LearnScreen.tsx): `apps/mobile/src/screens/LearnScreen.tsx`
- [Lesson detail](https://github.com/dmbs335/the-map/blob/main/apps/mobile/src/screens/LessonDetailScreen.tsx): `apps/mobile/src/screens/LessonDetailScreen.tsx`
- [Practice lab](https://github.com/dmbs335/the-map/blob/main/apps/mobile/src/screens/LabScreen.tsx): `apps/mobile/src/screens/LabScreen.tsx`
- [Mission detail](https://github.com/dmbs335/the-map/blob/main/apps/mobile/src/screens/MissionDetailScreen.tsx): `apps/mobile/src/screens/MissionDetailScreen.tsx`
- [Learning content](https://github.com/dmbs335/the-map/tree/main/apps/mobile/src): `apps/mobile/src`

### Security reference

- [Topic library](https://github.com/dmbs335/the-map/blob/main/apps/mobile/src/screens/LibraryScreen.tsx): `apps/mobile/src/screens/LibraryScreen.tsx`
- [Topic detail](https://github.com/dmbs335/the-map/blob/main/apps/mobile/src/screens/TopicDetailScreen.tsx): `apps/mobile/src/screens/TopicDetailScreen.tsx`
- [Research guide](https://github.com/dmbs335/the-map/blob/main/apps/mobile/src/screens/ResearchScreen.tsx): `apps/mobile/src/screens/ResearchScreen.tsx`
- [Research concepts](https://github.com/dmbs335/the-map/blob/main/apps/mobile/src/content/researchConcepts.ts): `apps/mobile/src/content/researchConcepts.ts`
- [Security knowledge base](https://github.com/dmbs335/the-map/blob/main/README.md): `README.md`

### App foundation

- [Learning state](https://github.com/dmbs335/the-map/blob/main/apps/mobile/src/state/LearningContext.tsx): `apps/mobile/src/state/LearningContext.tsx`
- [Progress storage](https://github.com/dmbs335/the-map/blob/main/apps/mobile/src/storage/progress.ts): `apps/mobile/src/storage/progress.ts`
- [Shared UI](https://github.com/dmbs335/the-map/blob/main/apps/mobile/src/components/ui.tsx): `apps/mobile/src/components/ui.tsx`
- [Theme](https://github.com/dmbs335/the-map/blob/main/apps/mobile/src/theme.ts): `apps/mobile/src/theme.ts`

### Other components

- **Learner**

## Connections

- Learner → App shell: opens
- App shell → Daily dashboard: routes to (evidence: `apps/mobile/App.tsx`)
- App shell → Curriculum browser: routes to (evidence: `apps/mobile/App.tsx`)
- App shell → Topic library: routes to (evidence: `apps/mobile/App.tsx`)
- App shell → Practice lab: routes to (evidence: `apps/mobile/App.tsx`)
- App shell → Research guide: routes to (evidence: `apps/mobile/App.tsx`)
- App shell → Lesson detail: opens (evidence: `apps/mobile/App.tsx`)
- App shell → Topic detail: opens (evidence: `apps/mobile/App.tsx`)
- App shell → Mission detail: opens (evidence: `apps/mobile/App.tsx`)
- App shell → Learning state: provides (evidence: `apps/mobile/App.tsx`)
- Curriculum browser → Lesson detail: opens (evidence: `apps/mobile/src/screens/LearnScreen.tsx`)
- Topic library → Topic detail: opens (evidence: `apps/mobile/App.tsx`)
- Practice lab → Mission detail: opens (evidence: `apps/mobile/App.tsx`)
- Research guide → Lesson detail: opens (evidence: `apps/mobile/src/screens/ResearchScreen.tsx`)
- Research guide → Research concepts: renders (evidence: `apps/mobile/src/screens/ResearchScreen.tsx`)
- Daily dashboard → Learning content: reads (evidence: `apps/mobile/src/screens/TodayScreen.tsx`)
- Curriculum browser → Learning content: reads (evidence: `apps/mobile/src/screens/LearnScreen.tsx`)
- Topic library → Learning content: reads (evidence: `apps/mobile/src/screens/LibraryScreen.tsx`)
- Practice lab → Learning content: reads (evidence: `apps/mobile/src/screens/LabScreen.tsx`)
- Lesson detail → Learning content: reads (evidence: `apps/mobile/src/screens/LessonDetailScreen.tsx`)
- Mission detail → Learning content: reads (evidence: `apps/mobile/src/screens/MissionDetailScreen.tsx`)
- Topic library → Security knowledge base: browses (evidence: `README.md`)
- Curriculum browser → Security knowledge base: studies (evidence: `README.md`)
- Daily dashboard → Learning state: reads (evidence: `apps/mobile/src/screens/TodayScreen.tsx`)
- Curriculum browser → Learning state: reads (evidence: `apps/mobile/src/screens/LearnScreen.tsx`)
- Topic library → Learning state: reads (evidence: `apps/mobile/src/screens/LibraryScreen.tsx`)
- Practice lab → Learning state: updates (evidence: `apps/mobile/src/screens/LabScreen.tsx`)
- Lesson detail → Learning state: updates (evidence: `apps/mobile/src/screens/LessonDetailScreen.tsx`)
- Topic detail → Learning state: updates (evidence: `apps/mobile/src/screens/TopicDetailScreen.tsx`)
- Mission detail → Learning state: updates (evidence: `apps/mobile/src/screens/MissionDetailScreen.tsx`)
- Learning state → Progress storage: loads and saves (evidence: `apps/mobile/src/state/LearningContext.tsx`)
- Daily dashboard → Shared UI: uses (evidence: `apps/mobile/src/screens/TodayScreen.tsx`)
- Curriculum browser → Shared UI: uses (evidence: `apps/mobile/src/screens/LearnScreen.tsx`)
- Topic library → Shared UI: uses (evidence: `apps/mobile/src/screens/LibraryScreen.tsx`)
- Practice lab → Shared UI: uses (evidence: `apps/mobile/src/screens/LabScreen.tsx`)
- Research guide → Shared UI: uses (evidence: `apps/mobile/src/screens/ResearchScreen.tsx`)
- Shared UI → Theme: uses (evidence: `apps/mobile/src/components/ui.tsx`)
- App shell → Theme: configures (evidence: `apps/mobile/App.tsx`)
