# tendsty/gooboo architecture

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

- Interactive diagram: https://gitdiagram.com/tendsty/gooboo
- Repository: https://github.com/tendsty/gooboo

## Overview

Gooboo is a Vue/Vuex idle game distributed for browsers and Electron. Players enter through the game interface, play feature-specific progression systems, and retain or transfer progress through local saves and save-file import/export. The source tree shows a broad set of features—mining, village, farm, Horde combat, events, cards, relics, and more—backed by Vuex state. The sampled excerpts establish startup and save handling, but not most view-to-game-logic dispatch paths; those links are therefore omitted.

Main entry points: [`src/App.vue`](https://github.com/tendsty/gooboo/blob/main/src/App.vue) (Game interface), [`src/main.js`](https://github.com/tendsty/gooboo/blob/main/src/main.js) (Startup), [`src/store/index.js`](https://github.com/tendsty/gooboo/blob/main/src/store/index.js) (Game state), [`src/js/init.js`](https://github.com/tendsty/gooboo/blob/main/src/js/init.js) (Game initialization)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_shell["Game shell"]
  node_app["Game interface<br/>[App.vue]"]
  node_startup["Startup<br/>[main.js]"]
  node_initialization["Game initialization<br/>[init.js]"]
  node_savefile["Save management<br/>[savefile.js]"]
  node_store["Game state<br/>[index.js]"]
  node_views["Feature screens"]
end

subgraph group_progression["Core progression"]
  node_mining["Mining<br/>[mining.js]"]
  node_village["Village<br/>[village.js]"]
  node_farm["Farm<br/>[farm.js]"]
  node_gallery["Gallery<br/>[gallery.js]"]
  node_school["School<br/>[school.js]"]
end

subgraph group_combat["Combat and crafting"]
  node_horde["Horde combat<br/>[horde.js]"]
  node_gem["Gem forging<br/>[gem.js]"]
  node_treasure["Treasure<br/>[treasure.js]"]
end

subgraph group_events["Events and collections"]
  node_events["Seasonal events<br/>[event.js]"]
  node_cards["Cards<br/>[card.js]"]
  node_relic["Relics<br/>[relic.js]"]
end

subgraph group_shared["Shared systems"]
  node_achievement["Achievements<br/>[achievement.js]"]
  node_general["Quests and general<br/>[general.js]"]
  node_cryolab["Cryolab<br/>[cryolab.js]"]
  node_system["Settings and notices<br/>[system.js]"]
end

node_player(("Player"))

node_player -->|"plays through"| node_app
node_startup -->|"creates"| node_store
node_startup -->|"checks local save"| node_savefile
node_startup -->|"loads or starts"| node_initialization
node_startup -->|"mounts"| node_app
node_app -->|"saves and imports"| node_savefile
node_app -->|"loads imported save"| node_initialization
node_app -->|"renders"| node_views
node_store -->|"registers module"| node_system

click node_app "https://github.com/tendsty/gooboo/blob/main/src/App.vue"
click node_startup "https://github.com/tendsty/gooboo/blob/main/src/main.js"
click node_initialization "https://github.com/tendsty/gooboo/blob/main/src/js/init.js"
click node_savefile "https://github.com/tendsty/gooboo/blob/main/src/js/savefile.js"
click node_store "https://github.com/tendsty/gooboo/blob/main/src/store/index.js"
click node_mining "https://github.com/tendsty/gooboo/blob/main/src/js/modules/mining.js"
click node_village "https://github.com/tendsty/gooboo/blob/main/src/js/modules/village.js"
click node_farm "https://github.com/tendsty/gooboo/blob/main/src/js/modules/farm.js"
click node_gallery "https://github.com/tendsty/gooboo/blob/main/src/js/modules/gallery.js"
click node_school "https://github.com/tendsty/gooboo/blob/main/src/js/modules/school.js"
click node_horde "https://github.com/tendsty/gooboo/blob/main/src/js/modules/horde.js"
click node_gem "https://github.com/tendsty/gooboo/blob/main/src/js/modules/gem.js"
click node_treasure "https://github.com/tendsty/gooboo/blob/main/src/js/modules/treasure.js"
click node_events "https://github.com/tendsty/gooboo/blob/main/src/js/modules/event.js"
click node_cards "https://github.com/tendsty/gooboo/blob/main/src/js/modules/card.js"
click node_relic "https://github.com/tendsty/gooboo/blob/main/src/js/modules/relic.js"
click node_achievement "https://github.com/tendsty/gooboo/blob/main/src/js/modules/achievement.js"
click node_general "https://github.com/tendsty/gooboo/blob/main/src/js/modules/general.js"
click node_cryolab "https://github.com/tendsty/gooboo/blob/main/src/js/modules/cryolab.js"
click node_system "https://github.com/tendsty/gooboo/blob/main/src/store/system.js"
click node_views "https://github.com/tendsty/gooboo/tree/main/src/components/view"

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_startup,node_initialization,node_savefile,node_store,node_views toneBlue
class node_mining,node_village,node_farm,node_gallery,node_school toneAmber
class node_horde,node_gem,node_treasure toneMint
class node_events,node_cards,node_relic toneRose
class node_achievement,node_general,node_cryolab,node_system,node_player toneIndigo
```

## Components

### Game shell

- [Game interface](https://github.com/tendsty/gooboo/blob/main/src/App.vue): `src/App.vue`
- [Startup](https://github.com/tendsty/gooboo/blob/main/src/main.js): `src/main.js`
- [Game initialization](https://github.com/tendsty/gooboo/blob/main/src/js/init.js): `src/js/init.js`
- [Save management](https://github.com/tendsty/gooboo/blob/main/src/js/savefile.js): `src/js/savefile.js`
- [Game state](https://github.com/tendsty/gooboo/blob/main/src/store/index.js): `src/store/index.js`
- [Feature screens](https://github.com/tendsty/gooboo/tree/main/src/components/view): `src/components/view`

### Core progression

- [Mining](https://github.com/tendsty/gooboo/blob/main/src/js/modules/mining.js): `src/js/modules/mining.js`
- [Village](https://github.com/tendsty/gooboo/blob/main/src/js/modules/village.js): `src/js/modules/village.js`
- [Farm](https://github.com/tendsty/gooboo/blob/main/src/js/modules/farm.js): `src/js/modules/farm.js`
- [Gallery](https://github.com/tendsty/gooboo/blob/main/src/js/modules/gallery.js): `src/js/modules/gallery.js`
- [School](https://github.com/tendsty/gooboo/blob/main/src/js/modules/school.js): `src/js/modules/school.js`

### Combat and crafting

- [Horde combat](https://github.com/tendsty/gooboo/blob/main/src/js/modules/horde.js): `src/js/modules/horde.js`
- [Gem forging](https://github.com/tendsty/gooboo/blob/main/src/js/modules/gem.js): `src/js/modules/gem.js`
- [Treasure](https://github.com/tendsty/gooboo/blob/main/src/js/modules/treasure.js): `src/js/modules/treasure.js`

### Events and collections

- [Seasonal events](https://github.com/tendsty/gooboo/blob/main/src/js/modules/event.js): `src/js/modules/event.js`
- [Cards](https://github.com/tendsty/gooboo/blob/main/src/js/modules/card.js): `src/js/modules/card.js`
- [Relics](https://github.com/tendsty/gooboo/blob/main/src/js/modules/relic.js): `src/js/modules/relic.js`

### Shared systems

- [Achievements](https://github.com/tendsty/gooboo/blob/main/src/js/modules/achievement.js): `src/js/modules/achievement.js`
- [Quests and general](https://github.com/tendsty/gooboo/blob/main/src/js/modules/general.js): `src/js/modules/general.js`
- [Cryolab](https://github.com/tendsty/gooboo/blob/main/src/js/modules/cryolab.js): `src/js/modules/cryolab.js`
- [Settings and notices](https://github.com/tendsty/gooboo/blob/main/src/store/system.js): `src/store/system.js`

### Other components

- **Player**

## Connections

- Player → Game interface: plays through
- Startup → Game state: creates
- Startup → Save management: checks local save
- Startup → Game initialization: loads or starts
- Startup → Game interface: mounts
- Game interface → Save management: saves and imports
- Game interface → Game initialization: loads imported save
- Game interface → Feature screens: renders
- Game state → Settings and notices: registers module
