# kayveex/switchfast-2026 architecture

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

- Interactive diagram: https://gitdiagram.com/kayveex/switchfast-2026
- Repository: https://github.com/kayveex/switchfast-2026

## Overview

VocaBee is a browser-based English-learning product combining a React learning site with a Godot RPG demo. The main learner journey is to browse the home page, try the mini battle or study persistent flashcards, then launch the full game; the FAQ also supports questions and feedback. The graph reflects the shown React components and documented Godot integration. The Godot export internals and unsampled view implementations are not expanded beyond what the README and tree establish.

Main entry points: [`src/App.tsx`](https://github.com/kayveex/switchfast-2026/blob/main/src/App.tsx) (App router), [`src/views/FaqView.tsx`](https://github.com/kayveex/switchfast-2026/blob/main/src/views/FaqView.tsx) (FAQ and contact form), [`src/components/FlashcardGrid.tsx`](https://github.com/kayveex/switchfast-2026/blob/main/src/components/FlashcardGrid.tsx) (Flashcard grid), [`src/components/DemoBattle.tsx`](https://github.com/kayveex/switchfast-2026/blob/main/src/components/DemoBattle.tsx) (Mini battle)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_shell["Application shell"]
  node_app["App router<br/>[App.tsx]"]
  node_header["Navigation and theme<br/>[Header.tsx]"]
  node_theme["Theme preferences<br/>[useTheme.ts]"]
  node_footer["School footer<br/>[Footer.tsx]"]
end

subgraph group_learning["Learning experience"]
  node_home["Home page<br/>[HomeView.tsx]"]
  node_battles["Mini battle<br/>[DemoBattle.tsx]"]
  node_learning_data["Vocabulary and FAQ data<br/>[vocabee-data.ts]"]
  node_study_view["Study page<br/>[BelajarView.tsx]"]
  node_flashcards["Flashcard grid<br/>[FlashcardGrid.tsx]"]
  node_browser_storage[("Browser localStorage")]
end

subgraph group_game["Game experience"]
  node_game_view["Game launch page<br/>[GameView.tsx]"]
  node_godot["Godot web export"]
end

subgraph group_contact["Help and feedback"]
  node_faq_view["FAQ and contact form<br/>[FaqView.tsx]"]
  node_formsubmit["FormSubmit API"]
end

node_learner(("Learner"))

node_learner -->|"opens site"| node_app
node_app -->|"renders navigation"| node_header
node_app -->|"routes home"| node_home
node_app -->|"routes study"| node_study_view
node_app -->|"routes FAQ"| node_faq_view
node_app -->|"routes game"| node_game_view
node_app -->|"renders footer"| node_footer
node_header -->|"uses theme"| node_theme
node_home -->|"renders battle"| node_battles
node_battles -->|"reads battles"| node_learning_data
node_battles -->|"saves streak"| node_browser_storage
node_study_view -->|"renders cards"| node_flashcards
node_flashcards -->|"reads vocabulary"| node_learning_data
node_flashcards -->|"saves progress"| node_browser_storage
node_faq_view -->|"reads FAQ"| node_learning_data
node_faq_view -->|"backs up feedback"| node_browser_storage
node_faq_view -->|"sends feedback"| node_formsubmit
node_game_view -->|"links to export"| node_godot
node_learner -->|"tries mini battle"| node_home
node_learner -->|"studies words"| node_flashcards
node_learner -->|"plays RPG"| node_godot

click node_app "https://github.com/kayveex/switchfast-2026/blob/main/src/App.tsx"
click node_header "https://github.com/kayveex/switchfast-2026/blob/main/src/components/Header.tsx"
click node_theme "https://github.com/kayveex/switchfast-2026/blob/main/src/hooks/useTheme.ts"
click node_footer "https://github.com/kayveex/switchfast-2026/blob/main/src/components/Footer.tsx"
click node_home "https://github.com/kayveex/switchfast-2026/blob/main/src/views/HomeView.tsx"
click node_battles "https://github.com/kayveex/switchfast-2026/blob/main/src/components/DemoBattle.tsx"
click node_learning_data "https://github.com/kayveex/switchfast-2026/blob/main/src/data/vocabee-data.ts"
click node_study_view "https://github.com/kayveex/switchfast-2026/blob/main/src/views/BelajarView.tsx"
click node_flashcards "https://github.com/kayveex/switchfast-2026/blob/main/src/components/FlashcardGrid.tsx"
click node_game_view "https://github.com/kayveex/switchfast-2026/blob/main/src/views/GameView.tsx"
click node_godot "https://github.com/kayveex/switchfast-2026/tree/main/public/Wordventure_demo"
click node_faq_view "https://github.com/kayveex/switchfast-2026/blob/main/src/views/FaqView.tsx"

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_header,node_theme,node_footer toneBlue
class node_home,node_battles,node_learning_data,node_study_view,node_flashcards,node_browser_storage toneAmber
class node_game_view,node_godot toneMint
class node_faq_view,node_formsubmit toneRose
class node_learner toneIndigo
```

## Components

### Application shell

- [App router](https://github.com/kayveex/switchfast-2026/blob/main/src/App.tsx): `src/App.tsx`
- [Navigation and theme](https://github.com/kayveex/switchfast-2026/blob/main/src/components/Header.tsx): `src/components/Header.tsx`
- [Theme preferences](https://github.com/kayveex/switchfast-2026/blob/main/src/hooks/useTheme.ts): `src/hooks/useTheme.ts`
- [School footer](https://github.com/kayveex/switchfast-2026/blob/main/src/components/Footer.tsx): `src/components/Footer.tsx`

### Learning experience

- [Home page](https://github.com/kayveex/switchfast-2026/blob/main/src/views/HomeView.tsx): `src/views/HomeView.tsx`
- [Mini battle](https://github.com/kayveex/switchfast-2026/blob/main/src/components/DemoBattle.tsx): `src/components/DemoBattle.tsx`
- [Vocabulary and FAQ data](https://github.com/kayveex/switchfast-2026/blob/main/src/data/vocabee-data.ts): `src/data/vocabee-data.ts`
- [Study page](https://github.com/kayveex/switchfast-2026/blob/main/src/views/BelajarView.tsx): `src/views/BelajarView.tsx`
- [Flashcard grid](https://github.com/kayveex/switchfast-2026/blob/main/src/components/FlashcardGrid.tsx): `src/components/FlashcardGrid.tsx`
- **Browser localStorage**

### Game experience

- [Game launch page](https://github.com/kayveex/switchfast-2026/blob/main/src/views/GameView.tsx): `src/views/GameView.tsx`
- [Godot web export](https://github.com/kayveex/switchfast-2026/tree/main/public/Wordventure_demo): `public/Wordventure_demo`

### Help and feedback

- [FAQ and contact form](https://github.com/kayveex/switchfast-2026/blob/main/src/views/FaqView.tsx): `src/views/FaqView.tsx`
- **FormSubmit API**

### Other components

- **Learner**

## Connections

- Learner → App router: opens site (evidence: `README.md`)
- App router → Navigation and theme: renders navigation (evidence: `src/App.tsx`)
- App router → Home page: routes home (evidence: `src/App.tsx`)
- App router → Study page: routes study (evidence: `src/App.tsx`)
- App router → FAQ and contact form: routes FAQ (evidence: `src/App.tsx`)
- App router → Game launch page: routes game (evidence: `src/App.tsx`)
- App router → School footer: renders footer (evidence: `src/App.tsx`)
- Navigation and theme → Theme preferences: uses theme (evidence: `src/components/Header.tsx`)
- Home page → Mini battle: renders battle (evidence: `src/views/HomeView.tsx`)
- Mini battle → Vocabulary and FAQ data: reads battles (evidence: `src/components/DemoBattle.tsx`)
- Mini battle → Browser localStorage: saves streak (evidence: `src/components/DemoBattle.tsx`)
- Study page → Flashcard grid: renders cards (evidence: `src/views/BelajarView.tsx`)
- Flashcard grid → Vocabulary and FAQ data: reads vocabulary (evidence: `src/components/FlashcardGrid.tsx`)
- Flashcard grid → Browser localStorage: saves progress (evidence: `src/components/FlashcardGrid.tsx`)
- FAQ and contact form → Vocabulary and FAQ data: reads FAQ (evidence: `src/views/FaqView.tsx`)
- FAQ and contact form → Browser localStorage: backs up feedback (evidence: `src/views/FaqView.tsx`)
- FAQ and contact form → FormSubmit API: sends feedback (evidence: `src/views/FaqView.tsx`)
- Game launch page → Godot web export: links to export (evidence: `src/views/GameView.tsx`)
- Learner → Home page: tries mini battle (evidence: `README.md`)
- Learner → Flashcard grid: studies words (evidence: `README.md`)
- Learner → Godot web export: plays RPG (evidence: `README.md`)
