# dunamisesports/dunamis_esports architecture

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

- Interactive diagram: https://gitdiagram.com/dunamisesports/dunamis_esports
- Repository: https://github.com/dunamisesports/dunamis_esports

## Overview

Dunamis Esports is an Angular frontend for a Christian gaming community. Visitors browse news and featured Twitch streams, explore identity, games and community-principles pages, or take the HEXAD-inspired questionnaire and see a tribe classification. The sampled questionnaire code supports answer validation, classification and chart-path generation, with browser-local storage helpers. Routing and browser/server bootstrap are visible; Supabase is described only as a future backend, so no implemented backend workflow is shown. Some page content is represented by unsampled component directories, and Twitch embedding is documented in the README.

Main entry points: [`src/app/app.routes.ts`](https://github.com/dunamisesports/dunamis_esports/blob/main/src/app/app.routes.ts) (Page routes), [`src/app/src/Components/duna-questionnaire/duna-questionnaire.ts`](https://github.com/dunamisesports/dunamis_esports/blob/main/src/app/src/Components/duna-questionnaire/duna-questionnaire.ts) (HEXAD questionnaire), [`src/main.ts`](https://github.com/dunamisesports/dunamis_esports/blob/main/src/main.ts) (Browser bootstrap), [`src/app/app.config.server.ts`](https://github.com/dunamisesports/dunamis_esports/blob/main/src/app/app.config.server.ts) (Server configuration)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_runtime["Angular runtime"]
  node_browser_entry["Browser bootstrap<br/>[main.ts]"]
  node_app_shell["App shell<br/>[app.ts]"]
  node_client_config["Client configuration<br/>[app.config.ts]"]
  node_routes["Page routes<br/>[app.routes.ts]"]
  node_server_entry["Server bootstrap<br/>[main.server.ts]"]
  node_server_config["Server configuration"]
  node_server_routes["Prerender routes"]
end

subgraph group_community["Community pages"]
  node_news["News and streams<br/>[duna-news.ts]"]
  node_identity["Community identity<br/>[duna-identity.ts]"]
  node_contact["Contact page<br/>[duna-contact.ts]"]
  node_games["Games page<br/>[ourgames.ts]"]
  node_principles["Principles page<br/>[codex-principia.ts]"]
end

subgraph group_onboarding["Tribe onboarding"]
  node_questionnaire["HEXAD questionnaire"]
  node_classification["Tribe classification"]
  node_local_storage[("Browser storage")]
end

subgraph group_integrations["External integrations"]
  node_twitch["Twitch player"]
  node_supabase[("Supabase backend")]
end

node_visitor(("Visitor"))

node_visitor -.->|"opens app"| node_browser_entry
node_browser_entry -->|"bootstraps"| node_app_shell
node_browser_entry -->|"uses config"| node_client_config
node_client_config -->|"provides router"| node_routes
node_routes -->|"routes to"| node_news
node_routes -->|"routes to"| node_questionnaire
node_routes -->|"routes to"| node_identity
node_routes -->|"routes to"| node_contact
node_routes -->|"routes to"| node_games
node_routes -->|"routes to"| node_principles
node_identity -->|"imports"| node_contact
node_news -->|"builds player URL"| node_twitch
node_questionnaire -->|"calculates result"| node_classification
node_questionnaire -->|"reads and writes"| node_local_storage
node_server_entry -->|"bootstraps"| node_app_shell
node_server_entry -->|"uses config"| node_server_config
node_server_config -->|"merges config"| node_client_config
node_server_config -->|"sets render routes"| node_server_routes
node_supabase -.->|"future backend"| node_questionnaire

click node_browser_entry "https://github.com/dunamisesports/dunamis_esports/blob/main/src/main.ts"
click node_app_shell "https://github.com/dunamisesports/dunamis_esports/blob/main/src/app/app.ts"
click node_client_config "https://github.com/dunamisesports/dunamis_esports/blob/main/src/app/app.config.ts"
click node_routes "https://github.com/dunamisesports/dunamis_esports/blob/main/src/app/app.routes.ts"
click node_server_entry "https://github.com/dunamisesports/dunamis_esports/blob/main/src/main.server.ts"
click node_server_config "https://github.com/dunamisesports/dunamis_esports/blob/main/src/app/app.config.server.ts"
click node_server_routes "https://github.com/dunamisesports/dunamis_esports/blob/main/src/app/app.routes.server.ts"
click node_news "https://github.com/dunamisesports/dunamis_esports/blob/main/src/app/src/Components/duna-news/duna-news.ts"
click node_identity "https://github.com/dunamisesports/dunamis_esports/blob/main/src/app/src/Components/duna-identity/duna-identity.ts"
click node_contact "https://github.com/dunamisesports/dunamis_esports/blob/main/src/app/src/Components/duna-contact/duna-contact.ts"
click node_games "https://github.com/dunamisesports/dunamis_esports/blob/main/src/app/ourgames/ourgames.ts"
click node_principles "https://github.com/dunamisesports/dunamis_esports/blob/main/src/app/codex-principia/codex-principia.ts"
click node_questionnaire "https://github.com/dunamisesports/dunamis_esports/blob/main/src/app/src/Components/duna-questionnaire/duna-questionnaire.ts"
click node_classification "https://github.com/dunamisesports/dunamis_esports/blob/main/src/app/src/Components/duna-questionnaire/duna-questionnaire.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_browser_entry,node_app_shell,node_client_config,node_routes,node_server_entry,node_server_config,node_server_routes toneBlue
class node_news,node_identity,node_contact,node_games,node_principles toneAmber
class node_questionnaire,node_classification,node_local_storage toneMint
class node_twitch,node_supabase toneRose
class node_visitor toneIndigo
```

## Components

### Angular runtime

- [Browser bootstrap](https://github.com/dunamisesports/dunamis_esports/blob/main/src/main.ts): `src/main.ts`
- [App shell](https://github.com/dunamisesports/dunamis_esports/blob/main/src/app/app.ts): `src/app/app.ts`
- [Client configuration](https://github.com/dunamisesports/dunamis_esports/blob/main/src/app/app.config.ts): `src/app/app.config.ts`
- [Page routes](https://github.com/dunamisesports/dunamis_esports/blob/main/src/app/app.routes.ts): `src/app/app.routes.ts`
- [Server bootstrap](https://github.com/dunamisesports/dunamis_esports/blob/main/src/main.server.ts): `src/main.server.ts`
- [Server configuration](https://github.com/dunamisesports/dunamis_esports/blob/main/src/app/app.config.server.ts): `src/app/app.config.server.ts`
- [Prerender routes](https://github.com/dunamisesports/dunamis_esports/blob/main/src/app/app.routes.server.ts): `src/app/app.routes.server.ts`

### Community pages

- [News and streams](https://github.com/dunamisesports/dunamis_esports/blob/main/src/app/src/Components/duna-news/duna-news.ts): `src/app/src/Components/duna-news/duna-news.ts`
- [Community identity](https://github.com/dunamisesports/dunamis_esports/blob/main/src/app/src/Components/duna-identity/duna-identity.ts): `src/app/src/Components/duna-identity/duna-identity.ts`
- [Contact page](https://github.com/dunamisesports/dunamis_esports/blob/main/src/app/src/Components/duna-contact/duna-contact.ts): `src/app/src/Components/duna-contact/duna-contact.ts`
- [Games page](https://github.com/dunamisesports/dunamis_esports/blob/main/src/app/ourgames/ourgames.ts): `src/app/ourgames/ourgames.ts`
- [Principles page](https://github.com/dunamisesports/dunamis_esports/blob/main/src/app/codex-principia/codex-principia.ts): `src/app/codex-principia/codex-principia.ts`

### Tribe onboarding

- [HEXAD questionnaire](https://github.com/dunamisesports/dunamis_esports/blob/main/src/app/src/Components/duna-questionnaire/duna-questionnaire.ts): `src/app/src/Components/duna-questionnaire/duna-questionnaire.ts`
- [Tribe classification](https://github.com/dunamisesports/dunamis_esports/blob/main/src/app/src/Components/duna-questionnaire/duna-questionnaire.ts): `src/app/src/Components/duna-questionnaire/duna-questionnaire.ts`
- **Browser storage**

### External integrations

- **Twitch player**
- **Supabase backend**

### Other components

- **Visitor**

## Connections

- Visitor → Browser bootstrap: opens app
- Browser bootstrap → App shell: bootstraps (evidence: `src/main.ts`)
- Browser bootstrap → Client configuration: uses config (evidence: `src/main.ts`)
- Client configuration → Page routes: provides router (evidence: `src/app/app.config.ts`)
- Page routes → News and streams: routes to (evidence: `src/app/app.routes.ts`)
- Page routes → HEXAD questionnaire: routes to (evidence: `src/app/app.routes.ts`)
- Page routes → Community identity: routes to (evidence: `src/app/app.routes.ts`)
- Page routes → Contact page: routes to (evidence: `src/app/app.routes.ts`)
- Page routes → Games page: routes to (evidence: `src/app/app.routes.ts`)
- Page routes → Principles page: routes to (evidence: `src/app/app.routes.ts`)
- Community identity → Contact page: imports (evidence: `src/app/src/Components/duna-identity/duna-identity.ts`)
- News and streams → Twitch player: builds player URL (evidence: `src/app/src/Components/duna-news/duna-news.ts`)
- HEXAD questionnaire → Tribe classification: calculates result (evidence: `src/app/src/Components/duna-questionnaire/duna-questionnaire.ts`)
- HEXAD questionnaire → Browser storage: reads and writes (evidence: `src/app/src/Components/duna-questionnaire/duna-questionnaire.ts`)
- Server bootstrap → App shell: bootstraps (evidence: `src/main.server.ts`)
- Server bootstrap → Server configuration: uses config (evidence: `src/main.server.ts`)
- Server configuration → Client configuration: merges config (evidence: `src/app/app.config.server.ts`)
- Server configuration → Prerender routes: sets render routes (evidence: `src/app/app.config.server.ts`)
- Supabase backend → HEXAD questionnaire: future backend (evidence: `README.md`)
