# erik-bernardo/simulabb architecture

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

- Interactive diagram: https://gitdiagram.com/erik-bernardo/simulabb
- Repository: https://github.com/erik-bernardo/simulabb

## Overview

SimuLab is a Portuguese-language educational site offering interactive simulations and games. A learner selects an activity, interacts with its browser-based interface, and receives visual or scored feedback; the sampled games show quizzes, word challenges, and canvas-based play. The graph also preserves the site search and the broader simulations catalog. Evidence is limited: there is no README, and many pages and modules were not sampled, so their internal connections are left unspecified.

Main entry points: [`dados/head.js`](https://github.com/erik-bernardo/simulabb/blob/main/dados/head.js) (Site search), [`simulacoes`](https://github.com/erik-bernardo/simulabb/tree/main/simulacoes) (Simulation catalog), [`games/bandeiras/flag_guesser.js`](https://github.com/erik-bernardo/simulabb/blob/main/games/bandeiras/flag_guesser.js) (Flag quiz), [`games/card/script.js`](https://github.com/erik-bernardo/simulabb/blob/main/games/card/script.js) (Philosophy cards)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_site["Site discovery"]
  node_site_search["Site search<br/>[head.js]"]
  node_ai_simulator["SimuAI<br/>[SimuAI.js]"]
end

subgraph group_simulations["Learning simulations"]
  node_simulation_catalog["Simulation catalog"]
  node_geometry["Geometry tools<br/>[geometria.js]"]
  node_electrochemistry["Electrochemistry tools"]
  node_other_simulations["Other simulations"]
end

subgraph group_games["Interactive games"]
  node_flag_game["Flag quiz<br/>[flag_guesser.js]"]
  node_card_game["Philosophy cards<br/>[script.js]"]
  node_stairs_game["Quiz board game<br/>[script.js]"]
  node_flappy_game["Word flight<br/>[script.js]"]
  node_pronoun_game["Pronoun quiz<br/>[script.js]"]
  node_grammar_game["Grammar shooter<br/>[porquê_blast.js]"]
  node_social_game["Language intentions"]
  node_wheel_game["Word wheel<br/>[roda_roda.js]"]
  node_seer_game["Sentence builder<br/>[script.js]"]
  node_immune_game["Immune defense<br/>[imune.js]"]
  node_immune_audio["Immune game audio<br/>[audio-worklet.js]"]
  node_part10_audio["Part 10 audio<br/>[audio-worklet.js]"]
end

subgraph group_extras["Site extras"]
  node_easter_egg["Rainbow easter egg"]
end

node_learner(("Learner"))

node_site_search -->|"indexes activities"| node_simulation_catalog
node_learner -->|"submits answers"| node_flag_game
node_learner -->|"swipes choices"| node_card_game
node_learner -->|"answers quiz"| node_stairs_game
node_learner -->|"starts play"| node_flappy_game
node_learner -->|"advances rounds"| node_pronoun_game
node_learner -->|"plays shooter"| node_grammar_game
node_learner -->|"chooses answers"| node_social_game
node_learner -->|"guesses words"| node_wheel_game
node_learner -->|"arranges words"| node_seer_game
node_learner -->|"moves player"| node_immune_game
node_learner -->|"enters code"| node_easter_egg

click node_site_search "https://github.com/erik-bernardo/simulabb/blob/main/dados/head.js"
click node_ai_simulator "https://github.com/erik-bernardo/simulabb/blob/main/dados/SimuAI.js"
click node_simulation_catalog "https://github.com/erik-bernardo/simulabb/tree/main/simulacoes"
click node_geometry "https://github.com/erik-bernardo/simulabb/blob/main/simulacoes/scripts/geometria.js"
click node_electrochemistry "https://github.com/erik-bernardo/simulabb/blob/main/simulacoes/scripts/pilha-eletroquimica.js"
click node_other_simulations "https://github.com/erik-bernardo/simulabb/tree/main/simulacoes"
click node_flag_game "https://github.com/erik-bernardo/simulabb/blob/main/games/bandeiras/flag_guesser.js"
click node_card_game "https://github.com/erik-bernardo/simulabb/blob/main/games/card/script.js"
click node_stairs_game "https://github.com/erik-bernardo/simulabb/blob/main/games/escada/script.js"
click node_flappy_game "https://github.com/erik-bernardo/simulabb/blob/main/games/flappy-words/script.js"
click node_pronoun_game "https://github.com/erik-bernardo/simulabb/blob/main/games/owner/script.js"
click node_grammar_game "https://github.com/erik-bernardo/simulabb/blob/main/games/porque-blast/porqu%C3%AA_blast.js"
click node_social_game "https://github.com/erik-bernardo/simulabb/blob/main/games/portugues-social/portugues_social.js"
click node_wheel_game "https://github.com/erik-bernardo/simulabb/blob/main/games/roda-roda/roda_roda.js"
click node_seer_game "https://github.com/erik-bernardo/simulabb/blob/main/games/seer/script.js"
click node_immune_game "https://github.com/erik-bernardo/simulabb/blob/main/games/virus/imune.js"
click node_immune_audio "https://github.com/erik-bernardo/simulabb/blob/main/games/Imune/html5game/audio-worklet.js"
click node_part10_audio "https://github.com/erik-bernardo/simulabb/blob/main/games/Part%2010/html5game/sound/worklets/audio-worklet.js"
click node_easter_egg "https://github.com/erik-bernardo/simulabb/blob/main/devjokes/easter_egg_slide.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_site_search,node_ai_simulator toneBlue
class node_simulation_catalog,node_geometry,node_electrochemistry,node_other_simulations toneAmber
class node_flag_game,node_card_game,node_stairs_game,node_flappy_game,node_pronoun_game,node_grammar_game,node_social_game,node_wheel_game,node_seer_game,node_immune_game,node_immune_audio,node_part10_audio toneMint
class node_easter_egg toneRose
class node_learner toneIndigo
```

## Components

### Site discovery

- [Site search](https://github.com/erik-bernardo/simulabb/blob/main/dados/head.js): `dados/head.js`
- [SimuAI](https://github.com/erik-bernardo/simulabb/blob/main/dados/SimuAI.js): `dados/SimuAI.js`

### Learning simulations

- [Simulation catalog](https://github.com/erik-bernardo/simulabb/tree/main/simulacoes): `simulacoes`
- [Geometry tools](https://github.com/erik-bernardo/simulabb/blob/main/simulacoes/scripts/geometria.js): `simulacoes/scripts/geometria.js`
- [Electrochemistry tools](https://github.com/erik-bernardo/simulabb/blob/main/simulacoes/scripts/pilha-eletroquimica.js): `simulacoes/scripts/pilha-eletroquimica.js`
- [Other simulations](https://github.com/erik-bernardo/simulabb/tree/main/simulacoes): `simulacoes`

### Interactive games

- [Flag quiz](https://github.com/erik-bernardo/simulabb/blob/main/games/bandeiras/flag_guesser.js): `games/bandeiras/flag_guesser.js`
- [Philosophy cards](https://github.com/erik-bernardo/simulabb/blob/main/games/card/script.js): `games/card/script.js`
- [Quiz board game](https://github.com/erik-bernardo/simulabb/blob/main/games/escada/script.js): `games/escada/script.js`
- [Word flight](https://github.com/erik-bernardo/simulabb/blob/main/games/flappy-words/script.js): `games/flappy-words/script.js`
- [Pronoun quiz](https://github.com/erik-bernardo/simulabb/blob/main/games/owner/script.js): `games/owner/script.js`
- [Grammar shooter](https://github.com/erik-bernardo/simulabb/blob/main/games/porque-blast/porqu%C3%AA_blast.js): `games/porque-blast/porquê_blast.js`
- [Language intentions](https://github.com/erik-bernardo/simulabb/blob/main/games/portugues-social/portugues_social.js): `games/portugues-social/portugues_social.js`
- [Word wheel](https://github.com/erik-bernardo/simulabb/blob/main/games/roda-roda/roda_roda.js): `games/roda-roda/roda_roda.js`
- [Sentence builder](https://github.com/erik-bernardo/simulabb/blob/main/games/seer/script.js): `games/seer/script.js`
- [Immune defense](https://github.com/erik-bernardo/simulabb/blob/main/games/virus/imune.js): `games/virus/imune.js`
- [Immune game audio](https://github.com/erik-bernardo/simulabb/blob/main/games/Imune/html5game/audio-worklet.js): `games/Imune/html5game/audio-worklet.js`
- [Part 10 audio](https://github.com/erik-bernardo/simulabb/blob/main/games/Part%2010/html5game/sound/worklets/audio-worklet.js): `games/Part 10/html5game/sound/worklets/audio-worklet.js`

### Site extras

- [Rainbow easter egg](https://github.com/erik-bernardo/simulabb/blob/main/devjokes/easter_egg_slide.js): `devjokes/easter_egg_slide.js`

### Other components

- **Learner**

## Connections

- Site search → Simulation catalog: indexes activities (evidence: `dados/head.js`)
- Learner → Flag quiz: submits answers (evidence: `games/bandeiras/flag_guesser.js`)
- Learner → Philosophy cards: swipes choices (evidence: `games/card/script.js`)
- Learner → Quiz board game: answers quiz (evidence: `games/escada/script.js`)
- Learner → Word flight: starts play (evidence: `games/flappy-words/script.js`)
- Learner → Pronoun quiz: advances rounds (evidence: `games/owner/script.js`)
- Learner → Grammar shooter: plays shooter (evidence: `games/porque-blast/porquê_blast.js`)
- Learner → Language intentions: chooses answers (evidence: `games/portugues-social/portugues_social.js`)
- Learner → Word wheel: guesses words (evidence: `games/roda-roda/roda_roda.js`)
- Learner → Sentence builder: arranges words (evidence: `games/seer/script.js`)
- Learner → Immune defense: moves player (evidence: `games/virus/imune.js`)
- Learner → Rainbow easter egg: enters code (evidence: `devjokes/easter_egg_slide.js`)
