# riisendk/dennyesuppe architecture

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

- Interactive diagram: https://gitdiagram.com/riisendk/dennyesuppe
- Repository: https://github.com/riisendk/dennyesuppe

## Overview

Den Nye Suppe.dk is an interactive explainer and randomized season simulator for the Danish Superliga’s new league structure. On page load, the app simulates the season and passes the resulting team standings to route-selected views: the initial presentation, stages 1–3, European qualification, relegation, and FAQ. The simulation logic calculates match outcomes and standings; React components explain and display them. The README is brief, so stage details rely on the sampled source and route definitions; no backend or persistent store is shown.

Main entry points: [`src/routes.js`](https://github.com/riisendk/dennyesuppe/blob/master/src/routes.js) (Route map), [`src/components/Main.js`](https://github.com/riisendk/dennyesuppe/blob/master/src/components/Main.js) (Season coordinator), [`src/init.js`](https://github.com/riisendk/dennyesuppe/blob/master/src/init.js) (App bootstrap), [`src/components/PresentationComponent.js`](https://github.com/riisendk/dennyesuppe/blob/master/src/components/PresentationComponent.js) (Presentation)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_startup["Application startup"]
  node_init["App bootstrap<br/>[init.js]"]
  node_routes["Route map<br/>[routes.js]"]
  node_analytics["Google Analytics"]
end

subgraph group_simulation["Season simulation"]
  node_main["Season coordinator<br/>[Main.js]"]
  node_simulator["Match simulator<br/>[simulate.js]"]
end

subgraph group_views["League-stage views"]
  node_presentation["Presentation"]
  node_stage1intro["Stage 1 intro"]
  node_stage1results["Stage 1 results"]
  node_stage2intro["Stage 2 intro"]
  node_stage2results["Stage 2 results"]
end

subgraph group_outcomes["Qualification outcomes"]
  node_europe["Europe qualification"]
  node_relegation["Relegation playoffs"]
  node_faq["FAQ<br/>[FAQComponent.js]"]
end

node_visitor(("Visitor"))

node_visitor -.->|"opens app"| node_init
node_init -->|"mounts routes"| node_routes
node_init -->|"tracks pageviews"| node_analytics
node_routes -->|"mounts root"| node_main
node_routes -->|"routes index"| node_presentation
node_routes -->|"routes stage"| node_stage1intro
node_routes -->|"routes results"| node_stage1results
node_routes -->|"routes stage"| node_stage2intro
node_routes -->|"routes results"| node_stage2results
node_routes -->|"routes outcome"| node_europe
node_routes -->|"routes outcome"| node_relegation
node_routes -->|"routes FAQ"| node_faq
node_main -->|"simulates season"| node_simulator
node_main -->|"passes teams"| node_presentation
node_main -->|"passes teams"| node_stage1intro
node_main -->|"passes teams"| node_stage1results
node_main -->|"passes teams"| node_stage2intro
node_main -->|"passes teams"| node_stage2results
node_main -->|"passes teams"| node_europe
node_main -->|"passes teams"| node_relegation

click node_init "https://github.com/riisendk/dennyesuppe/blob/master/src/init.js"
click node_routes "https://github.com/riisendk/dennyesuppe/blob/master/src/routes.js"
click node_main "https://github.com/riisendk/dennyesuppe/blob/master/src/components/Main.js"
click node_simulator "https://github.com/riisendk/dennyesuppe/blob/master/src/simulate.js"
click node_presentation "https://github.com/riisendk/dennyesuppe/blob/master/src/components/PresentationComponent.js"
click node_stage1intro "https://github.com/riisendk/dennyesuppe/blob/master/src/components/Stage1IntroComponent.js"
click node_stage1results "https://github.com/riisendk/dennyesuppe/blob/master/src/components/Stage1SimulatedComponent.js"
click node_stage2intro "https://github.com/riisendk/dennyesuppe/blob/master/src/components/Stage2IntroComponent.js"
click node_stage2results "https://github.com/riisendk/dennyesuppe/blob/master/src/components/Stage2SimulatedComponent.js"
click node_europe "https://github.com/riisendk/dennyesuppe/blob/master/src/components/Stage3SimulatedEuropeComponent.js"
click node_relegation "https://github.com/riisendk/dennyesuppe/blob/master/src/components/Stage3SimulatedRelegationComponent.js"
click node_faq "https://github.com/riisendk/dennyesuppe/blob/master/src/components/FAQComponent.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_init,node_routes,node_analytics toneBlue
class node_main,node_simulator toneAmber
class node_presentation,node_stage1intro,node_stage1results,node_stage2intro,node_stage2results toneMint
class node_europe,node_relegation,node_faq toneRose
class node_visitor toneIndigo
```

## Components

### Application startup

- [App bootstrap](https://github.com/riisendk/dennyesuppe/blob/master/src/init.js): `src/init.js`
- [Route map](https://github.com/riisendk/dennyesuppe/blob/master/src/routes.js): `src/routes.js`
- **Google Analytics**

### Season simulation

- [Season coordinator](https://github.com/riisendk/dennyesuppe/blob/master/src/components/Main.js): `src/components/Main.js`
- [Match simulator](https://github.com/riisendk/dennyesuppe/blob/master/src/simulate.js): `src/simulate.js`

### League-stage views

- [Presentation](https://github.com/riisendk/dennyesuppe/blob/master/src/components/PresentationComponent.js): `src/components/PresentationComponent.js`
- [Stage 1 intro](https://github.com/riisendk/dennyesuppe/blob/master/src/components/Stage1IntroComponent.js): `src/components/Stage1IntroComponent.js`
- [Stage 1 results](https://github.com/riisendk/dennyesuppe/blob/master/src/components/Stage1SimulatedComponent.js): `src/components/Stage1SimulatedComponent.js`
- [Stage 2 intro](https://github.com/riisendk/dennyesuppe/blob/master/src/components/Stage2IntroComponent.js): `src/components/Stage2IntroComponent.js`
- [Stage 2 results](https://github.com/riisendk/dennyesuppe/blob/master/src/components/Stage2SimulatedComponent.js): `src/components/Stage2SimulatedComponent.js`

### Qualification outcomes

- [Europe qualification](https://github.com/riisendk/dennyesuppe/blob/master/src/components/Stage3SimulatedEuropeComponent.js): `src/components/Stage3SimulatedEuropeComponent.js`
- [Relegation playoffs](https://github.com/riisendk/dennyesuppe/blob/master/src/components/Stage3SimulatedRelegationComponent.js): `src/components/Stage3SimulatedRelegationComponent.js`
- [FAQ](https://github.com/riisendk/dennyesuppe/blob/master/src/components/FAQComponent.js): `src/components/FAQComponent.js`

### Other components

- **Visitor**

## Connections

- Visitor → App bootstrap: opens app (evidence: `README.md`)
- App bootstrap → Route map: mounts routes (evidence: `src/init.js`)
- App bootstrap → Google Analytics: tracks pageviews (evidence: `src/init.js`)
- Route map → Season coordinator: mounts root (evidence: `src/routes.js`)
- Route map → Presentation: routes index (evidence: `src/routes.js`)
- Route map → Stage 1 intro: routes stage (evidence: `src/routes.js`)
- Route map → Stage 1 results: routes results (evidence: `src/routes.js`)
- Route map → Stage 2 intro: routes stage (evidence: `src/routes.js`)
- Route map → Stage 2 results: routes results (evidence: `src/routes.js`)
- Route map → Europe qualification: routes outcome (evidence: `src/routes.js`)
- Route map → Relegation playoffs: routes outcome (evidence: `src/routes.js`)
- Route map → FAQ: routes FAQ (evidence: `src/routes.js`)
- Season coordinator → Match simulator: simulates season (evidence: `src/components/Main.js`)
- Season coordinator → Presentation: passes teams (evidence: `src/components/Main.js`)
- Season coordinator → Stage 1 intro: passes teams (evidence: `src/components/Main.js`)
- Season coordinator → Stage 1 results: passes teams (evidence: `src/components/Main.js`)
- Season coordinator → Stage 2 intro: passes teams (evidence: `src/components/Main.js`)
- Season coordinator → Stage 2 results: passes teams (evidence: `src/components/Main.js`)
- Season coordinator → Europe qualification: passes teams (evidence: `src/components/Main.js`)
- Season coordinator → Relegation playoffs: passes teams (evidence: `src/components/Main.js`)
