# eastar0102/stickerboard architecture

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

- Interactive diagram: https://gitdiagram.com/eastar0102/stickerboard
- Repository: https://github.com/eastar0102/stickerboard

## Overview

StickerBoard is a Windows desktop sticky-note board. Users paste or drop images, create and format notes, add link cards, and draw over the board; the app keeps board content and ink saved locally. The graph shows the main window as the interaction and item-lifecycle coordinator, with separate content, desktop, and persistence responsibilities. Some relationships rely on README or SOURCE INDEX references because excerpts omit parts of the main window and item-view implementation.

Main entry points: [`MainWindow.xaml.cs`](https://github.com/eastar0102/stickerboard/blob/main/MainWindow.xaml.cs) (Board window), [`Links.cs`](https://github.com/eastar0102/stickerboard/blob/main/Links.cs) (Link utilities), [`Storage.cs`](https://github.com/eastar0102/stickerboard/blob/main/Storage.cs) (Storage), [`MainWindow.xaml`](https://github.com/eastar0102/stickerboard/blob/main/MainWindow.xaml) (Board surface)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_board["Board experience"]
  node_window["Board window<br/>[MainWindow.xaml.cs]"]
  node_window_ui["Board surface<br/>[MainWindow.xaml]"]
end

subgraph group_content["Board content"]
  node_items["Board items<br/>[ItemView.cs]"]
  node_images["Image intake<br/>[ImageData.cs]"]
  node_notes["Rich notes<br/>[ItemView.Note.cs]"]
  node_link_cards["Link cards<br/>[ItemView.Link.cs]"]
  node_link_tools["Link utilities<br/>[Links.cs]"]
end

subgraph group_desktop["Desktop features"]
  node_pen["Pen and ink<br/>[MainWindow.Pen.cs]"]
  node_desktop_controls["Window controls<br/>[MainWindow.xaml.cs]"]
end

subgraph group_storage["Persistence and language"]
  node_localization["Localization<br/>[Localization.cs]"]
  node_storage_code["Storage<br/>[Storage.cs]"]
  node_saved_data[("Board data files")]
end

node_user(("Windows user"))
node_browser["Web browser"]

node_user -->|"uses"| node_window_ui
node_window_ui -->|"hosts"| node_window
node_window -->|"creates and manages"| node_items
node_window -->|"extracts pasted images"| node_images
node_window -->|"loads and saves"| node_storage_code
node_items -.->|"builds note view"| node_notes
node_link_cards -->|"fetches titles and opens links"| node_link_tools
node_notes -->|"linkifies note text"| node_link_tools
node_link_tools -->|"opens address"| node_browser
node_window -.->|"provides board interaction"| node_pen
node_pen -->|"loads and saves ink"| node_storage_code
node_window -->|"manages window behavior"| node_desktop_controls
node_window -->|"initializes language"| node_localization
node_storage_code -->|"reads and writes"| node_saved_data

click node_window "https://github.com/eastar0102/stickerboard/blob/main/MainWindow.xaml.cs"
click node_window_ui "https://github.com/eastar0102/stickerboard/blob/main/MainWindow.xaml"
click node_items "https://github.com/eastar0102/stickerboard/blob/main/ItemView.cs"
click node_images "https://github.com/eastar0102/stickerboard/blob/main/ImageData.cs"
click node_notes "https://github.com/eastar0102/stickerboard/blob/main/ItemView.Note.cs"
click node_link_cards "https://github.com/eastar0102/stickerboard/blob/main/ItemView.Link.cs"
click node_link_tools "https://github.com/eastar0102/stickerboard/blob/main/Links.cs"
click node_pen "https://github.com/eastar0102/stickerboard/blob/main/MainWindow.Pen.cs"
click node_desktop_controls "https://github.com/eastar0102/stickerboard/blob/main/MainWindow.xaml.cs"
click node_localization "https://github.com/eastar0102/stickerboard/blob/main/Localization.cs"
click node_storage_code "https://github.com/eastar0102/stickerboard/blob/main/Storage.cs"

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_window,node_window_ui,node_user,node_browser toneBlue
class node_items,node_images,node_notes,node_link_cards,node_link_tools toneAmber
class node_pen,node_desktop_controls toneMint
class node_localization,node_storage_code,node_saved_data toneRose
```

## Components

### Board experience

- [Board window](https://github.com/eastar0102/stickerboard/blob/main/MainWindow.xaml.cs): `MainWindow.xaml.cs`
- [Board surface](https://github.com/eastar0102/stickerboard/blob/main/MainWindow.xaml): `MainWindow.xaml`

### Board content

- [Board items](https://github.com/eastar0102/stickerboard/blob/main/ItemView.cs): `ItemView.cs`
- [Image intake](https://github.com/eastar0102/stickerboard/blob/main/ImageData.cs): `ImageData.cs`
- [Rich notes](https://github.com/eastar0102/stickerboard/blob/main/ItemView.Note.cs): `ItemView.Note.cs`
- [Link cards](https://github.com/eastar0102/stickerboard/blob/main/ItemView.Link.cs): `ItemView.Link.cs`
- [Link utilities](https://github.com/eastar0102/stickerboard/blob/main/Links.cs): `Links.cs`

### Desktop features

- [Pen and ink](https://github.com/eastar0102/stickerboard/blob/main/MainWindow.Pen.cs): `MainWindow.Pen.cs`
- [Window controls](https://github.com/eastar0102/stickerboard/blob/main/MainWindow.xaml.cs): `MainWindow.xaml.cs`

### Persistence and language

- [Localization](https://github.com/eastar0102/stickerboard/blob/main/Localization.cs): `Localization.cs`
- [Storage](https://github.com/eastar0102/stickerboard/blob/main/Storage.cs): `Storage.cs`
- **Board data files**

### Other components

- **Windows user**
- **Web browser**

## Connections

- Windows user → Board surface: uses (evidence: `README.md`)
- Board surface → Board window: hosts (evidence: `MainWindow.xaml.cs`)
- Board window → Board items: creates and manages (evidence: `MainWindow.xaml.cs`)
- Board window → Image intake: extracts pasted images (evidence: `MainWindow.xaml.cs`)
- Board window → Storage: loads and saves (evidence: `MainWindow.xaml.cs`)
- Board items → Rich notes: builds note view (evidence: `ItemView.Note.cs`)
- Link cards → Link utilities: fetches titles and opens links (evidence: `ItemView.Link.cs`)
- Rich notes → Link utilities: linkifies note text (evidence: `ItemView.Note.cs`)
- Link utilities → Web browser: opens address (evidence: `Links.cs`)
- Board window → Pen and ink: provides board interaction
- Pen and ink → Storage: loads and saves ink (evidence: `MainWindow.Pen.cs`)
- Board window → Window controls: manages window behavior (evidence: `MainWindow.xaml.cs`)
- Board window → Localization: initializes language
- Storage → Board data files: reads and writes (evidence: `Storage.cs`)
