# maddin-damago/ts-dabble architecture

> Architecture diagram of the GitHub repository maddin-damago/ts-dabble, 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/maddin-damago/ts-dabble
- Repository: https://github.com/maddin-damago/ts-dabble

## Overview

ts-dabble is a small TypeScript playground of independent browser exercises, not a single end-to-end product. Users interact with separate demos: general programming exercises, a guessing/list exercise, a todo list, rock-paper-scissors, a spacecraft-systems dashboard, and a dungeon inventory. The sampled scripts show DOM event handling and rendering; the todo demo also persists submissions in localStorage. The README offers no additional capabilities, and the HTML files were not sampled, so page-to-script wiring is not asserted.

Main entry points: [`src/scripts/script3.ts`](https://github.com/maddin-damago/ts-dabble/blob/main/src/scripts/script3.ts) (Todo List), [`src/scripts/script1.ts`](https://github.com/maddin-damago/ts-dabble/blob/main/src/scripts/script1.ts) (Basic Exercises), [`src/scripts/script2.ts`](https://github.com/maddin-damago/ts-dabble/blob/main/src/scripts/script2.ts) (Guessing and Lists), [`src/scripts/scriptRPS.ts`](https://github.com/maddin-damago/ts-dabble/blob/main/src/scripts/scriptRPS.ts) (Rock Paper Scissors)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_exercises["Browser Exercises"]
  node_basics["Basic Exercises<br/>[script1.ts]"]
  node_guessing["Guessing and Lists<br/>[script2.ts]"]
end

subgraph group_games["Mini Games"]
  node_rps["Rock Paper Scissors<br/>[scriptRPS.ts]"]
end

subgraph group_simulations["Simulations"]
  node_spacecraft["Elysium Systems<br/>[elysium.ts]"]
  node_inventory["Dungeon Inventory<br/>[dungeon-manager.ts]"]
end

subgraph group_tasks["Task Tracking"]
  node_todos["Todo List<br/>[script3.ts]"]
end

node_user(("Browser User"))
node_browser["Browser UI"]
node_localstorage[("Local Storage")]

node_user -->|"clicks controls"| node_basics
node_basics -->|"logs results"| node_browser
node_user -->|"submits guesses"| node_guessing
node_guessing -->|"updates feedback and lists"| node_browser
node_user -->|"chooses and plays"| node_rps
node_rps -->|"updates score and display"| node_browser
node_user -->|"repairs systems"| node_spacecraft
node_spacecraft -->|"renders system dashboard"| node_browser
node_user -->|"filters and manages items"| node_inventory
node_inventory -->|"renders inventory"| node_browser
node_user -->|"submits and clicks tasks"| node_todos
node_todos -->|"renders tasks"| node_browser
node_todos -->|"saves todo list"| node_localstorage

click node_basics "https://github.com/maddin-damago/ts-dabble/blob/main/src/scripts/script1.ts"
click node_guessing "https://github.com/maddin-damago/ts-dabble/blob/main/src/scripts/script2.ts"
click node_rps "https://github.com/maddin-damago/ts-dabble/blob/main/src/scripts/scriptRPS.ts"
click node_spacecraft "https://github.com/maddin-damago/ts-dabble/blob/main/src/scripts/elysium.ts"
click node_inventory "https://github.com/maddin-damago/ts-dabble/blob/main/src/scripts/dungeon-manager.ts"
click node_todos "https://github.com/maddin-damago/ts-dabble/blob/main/src/scripts/script3.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_basics,node_guessing,node_user,node_browser toneBlue
class node_rps,node_localstorage toneAmber
class node_spacecraft,node_inventory toneMint
class node_todos toneRose
```

## Components

### Browser Exercises

- [Basic Exercises](https://github.com/maddin-damago/ts-dabble/blob/main/src/scripts/script1.ts): `src/scripts/script1.ts`
- [Guessing and Lists](https://github.com/maddin-damago/ts-dabble/blob/main/src/scripts/script2.ts): `src/scripts/script2.ts`

### Mini Games

- [Rock Paper Scissors](https://github.com/maddin-damago/ts-dabble/blob/main/src/scripts/scriptRPS.ts): `src/scripts/scriptRPS.ts`

### Simulations

- [Elysium Systems](https://github.com/maddin-damago/ts-dabble/blob/main/src/scripts/elysium.ts): `src/scripts/elysium.ts`
- [Dungeon Inventory](https://github.com/maddin-damago/ts-dabble/blob/main/src/scripts/dungeon-manager.ts): `src/scripts/dungeon-manager.ts`

### Task Tracking

- [Todo List](https://github.com/maddin-damago/ts-dabble/blob/main/src/scripts/script3.ts): `src/scripts/script3.ts`

### Other components

- **Browser User**
- **Browser UI**
- **Local Storage**

## Connections

- Browser User → Basic Exercises: clicks controls (evidence: `src/scripts/script1.ts`)
- Basic Exercises → Browser UI: logs results (evidence: `src/scripts/script1.ts`)
- Browser User → Guessing and Lists: submits guesses (evidence: `src/scripts/script2.ts`)
- Guessing and Lists → Browser UI: updates feedback and lists (evidence: `src/scripts/script2.ts`)
- Browser User → Rock Paper Scissors: chooses and plays (evidence: `src/scripts/scriptRPS.ts`)
- Rock Paper Scissors → Browser UI: updates score and display (evidence: `src/scripts/scriptRPS.ts`)
- Browser User → Elysium Systems: repairs systems (evidence: `src/scripts/elysium.ts`)
- Elysium Systems → Browser UI: renders system dashboard (evidence: `src/scripts/elysium.ts`)
- Browser User → Dungeon Inventory: filters and manages items (evidence: `src/scripts/dungeon-manager.ts`)
- Dungeon Inventory → Browser UI: renders inventory (evidence: `src/scripts/dungeon-manager.ts`)
- Browser User → Todo List: submits and clicks tasks (evidence: `src/scripts/script3.ts`)
- Todo List → Browser UI: renders tasks (evidence: `src/scripts/script3.ts`)
- Todo List → Local Storage: saves todo list (evidence: `src/scripts/script3.ts`)
