# monocraft0/display-sumaho architecture

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

- Interactive diagram: https://gitdiagram.com/monocraft0/display-sumaho
- Repository: https://github.com/monocraft0/display-sumaho

## Overview

A small browser-based LED marquee: users enter text and adjust its color, size, and speed, preview it, then open a full-screen scrolling display. The runtime is implemented in one TypeScript file; styling is imported separately. The graph reflects only relationships visible in the sampled source.

Main entry points: [`src/main.ts`](https://github.com/monocraft0/display-sumaho/blob/main/src/main.ts) (Display session), [`src/style.css`](https://github.com/monocraft0/display-sumaho/blob/main/src/style.css) (Application styling)

## Diagram (Mermaid)

```mermaid
flowchart TD

node_user(("User"))
node_settings["Settings controls<br/>[main.ts]"]
node_preview["Live preview<br/>[main.ts]"]
node_display["Display session<br/>[main.ts]"]
node_marquee["Scrolling marquee<br/>[main.ts]"]
node_browser["Browser APIs"]
node_styling["Application styling<br/>[style.css]"]

node_user -->|"edits settings"| node_settings
node_settings -->|"updates preview"| node_preview
node_user -->|"opens or closes"| node_display
node_display -->|"starts animation"| node_marquee
node_display -->|"requests fullscreen"| node_browser
node_browser -->|"signals fullscreen change"| node_display
node_browser -->|"signals resize"| node_marquee
node_settings -->|"uses styles"| node_styling
node_display -->|"uses styles"| node_styling

click node_settings "https://github.com/monocraft0/display-sumaho/blob/main/src/main.ts"
click node_preview "https://github.com/monocraft0/display-sumaho/blob/main/src/main.ts"
click node_display "https://github.com/monocraft0/display-sumaho/blob/main/src/main.ts"
click node_marquee "https://github.com/monocraft0/display-sumaho/blob/main/src/main.ts"
click node_styling "https://github.com/monocraft0/display-sumaho/blob/main/src/style.css"

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_user,node_preview,node_browser toneBlue
class node_settings,node_display,node_marquee,node_styling toneTeal
```

## Components

### Other components

- **User**
- [Settings controls](https://github.com/monocraft0/display-sumaho/blob/main/src/main.ts): `src/main.ts`
- [Live preview](https://github.com/monocraft0/display-sumaho/blob/main/src/main.ts): `src/main.ts`
- [Display session](https://github.com/monocraft0/display-sumaho/blob/main/src/main.ts): `src/main.ts`
- [Scrolling marquee](https://github.com/monocraft0/display-sumaho/blob/main/src/main.ts): `src/main.ts`
- **Browser APIs**
- [Application styling](https://github.com/monocraft0/display-sumaho/blob/main/src/style.css): `src/style.css`

## Connections

- User → Settings controls: edits settings (evidence: `src/main.ts`)
- Settings controls → Live preview: updates preview (evidence: `src/main.ts`)
- User → Display session: opens or closes (evidence: `src/main.ts`)
- Display session → Scrolling marquee: starts animation (evidence: `src/main.ts`)
- Display session → Browser APIs: requests fullscreen (evidence: `src/main.ts`)
- Browser APIs → Display session: signals fullscreen change (evidence: `src/main.ts`)
- Browser APIs → Scrolling marquee: signals resize (evidence: `src/main.ts`)
- Settings controls → Application styling: uses styles (evidence: `src/main.ts`)
- Display session → Application styling: uses styles (evidence: `src/main.ts`)
