# sotluf/kanban-board architecture

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

- Interactive diagram: https://gitdiagram.com/sotluf/kanban-board
- Repository: https://github.com/sotluf/kanban-board

## Overview

This is a small, browser-only Kanban board. Users create, edit, delete, sort, and drag tasks among four status columns; task details and theme preference persist in local storage. The graph separates the board interface, task behavior, and supporting state/presentation. The JavaScript excerpt supports the runtime relationships; README statements support documented UI and styling links.

Main entry points: [`index.html`](https://github.com/sotluf/kanban-board/blob/main/index.html) (Board and dialogs), [`js/script.js`](https://github.com/sotluf/kanban-board/blob/main/js/script.js) (Browser storage), [`css/style.css`](https://github.com/sotluf/kanban-board/blob/main/css/style.css) (Responsive styling)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_board["Board Interface"]
  node_interface["Board and dialogs<br/>[index.html]"]
end

subgraph group_tasks["Task Management"]
  node_task_ops["Task operations<br/>[script.js]"]
  node_task_render["Task rendering<br/>[script.js]"]
  node_drag_drop["Drag and drop<br/>[script.js]"]
  node_sorting["Task sorting<br/>[script.js]"]
  node_deadlines["Deadline handling<br/>[script.js]"]
end

subgraph group_support["State and Presentation"]
  node_persistence[("Browser storage<br/>[script.js]")]
  node_theme["Theme preference<br/>[script.js]"]
  node_styling["Responsive styling<br/>[style.css]"]
end

node_user(("Board user"))

node_user -->|"uses"| node_interface
node_interface -->|"submits task actions"| node_task_ops
node_task_ops -->|"creates tasks"| node_task_render
node_task_ops -->|"saves changes"| node_persistence
node_persistence -->|"restores tasks"| node_task_render
node_interface -->|"moves tasks"| node_drag_drop
node_interface -->|"selects sort order"| node_sorting
node_sorting -->|"saves order"| node_persistence
node_task_render -->|"formats and flags"| node_deadlines
node_user -->|"toggles theme"| node_theme
node_theme -->|"stores preference"| node_persistence
node_interface -->|"is styled by"| node_styling

click node_interface "https://github.com/sotluf/kanban-board/blob/main/index.html"
click node_task_ops "https://github.com/sotluf/kanban-board/blob/main/js/script.js"
click node_task_render "https://github.com/sotluf/kanban-board/blob/main/js/script.js"
click node_drag_drop "https://github.com/sotluf/kanban-board/blob/main/js/script.js"
click node_sorting "https://github.com/sotluf/kanban-board/blob/main/js/script.js"
click node_deadlines "https://github.com/sotluf/kanban-board/blob/main/js/script.js"
click node_persistence "https://github.com/sotluf/kanban-board/blob/main/js/script.js"
click node_theme "https://github.com/sotluf/kanban-board/blob/main/js/script.js"
click node_styling "https://github.com/sotluf/kanban-board/blob/main/css/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_interface,node_user toneBlue
class node_task_ops,node_task_render,node_drag_drop,node_sorting,node_deadlines toneAmber
class node_persistence,node_theme,node_styling toneMint
```

## Components

### Board Interface

- [Board and dialogs](https://github.com/sotluf/kanban-board/blob/main/index.html): `index.html`

### Task Management

- [Task operations](https://github.com/sotluf/kanban-board/blob/main/js/script.js): `js/script.js`
- [Task rendering](https://github.com/sotluf/kanban-board/blob/main/js/script.js): `js/script.js`
- [Drag and drop](https://github.com/sotluf/kanban-board/blob/main/js/script.js): `js/script.js`
- [Task sorting](https://github.com/sotluf/kanban-board/blob/main/js/script.js): `js/script.js`
- [Deadline handling](https://github.com/sotluf/kanban-board/blob/main/js/script.js): `js/script.js`

### State and Presentation

- [Browser storage](https://github.com/sotluf/kanban-board/blob/main/js/script.js): `js/script.js`
- [Theme preference](https://github.com/sotluf/kanban-board/blob/main/js/script.js): `js/script.js`
- [Responsive styling](https://github.com/sotluf/kanban-board/blob/main/css/style.css): `css/style.css`

### Other components

- **Board user**

## Connections

- Board user → Board and dialogs: uses (evidence: `README.md`)
- Board and dialogs → Task operations: submits task actions (evidence: `README.md`)
- Task operations → Task rendering: creates tasks (evidence: `js/script.js`)
- Task operations → Browser storage: saves changes (evidence: `js/script.js`)
- Browser storage → Task rendering: restores tasks (evidence: `js/script.js`)
- Board and dialogs → Drag and drop: moves tasks (evidence: `README.md`)
- Board and dialogs → Task sorting: selects sort order (evidence: `README.md`)
- Task sorting → Browser storage: saves order (evidence: `js/script.js`)
- Task rendering → Deadline handling: formats and flags (evidence: `js/script.js`)
- Board user → Theme preference: toggles theme (evidence: `README.md`)
- Theme preference → Browser storage: stores preference (evidence: `js/script.js`)
- Board and dialogs → Responsive styling: is styled by (evidence: `README.md`)
