# ozikrich/dailyboardweb architecture

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

- Interactive diagram: https://gitdiagram.com/ozikrich/dailyboardweb
- Repository: https://github.com/ozikrich/dailyboardweb

## Overview

DailyBoard is a browser-based dashboard for tasks, notes, quotes, weather, and theme selection. Its main workflow is that script.js initializes the UI and invokes the task, notes, and API widgets; users then manage local content or request online information. Task and note modules persist their data through storage.js, while theme state is stored directly by the bootstrap. The README documents capabilities beyond the sampled code; weather and quote behavior is represented at the API-widget level, with external calls shown where source excerpts confirm them.

Main entry points: [`script.js`](https://github.com/ozikrich/dailyboardweb/blob/main/script.js) (App Bootstrap), [`api.js`](https://github.com/ozikrich/dailyboardweb/blob/main/api.js) (API Widgets), [`tugas.js`](https://github.com/ozikrich/dailyboardweb/blob/main/tugas.js) (Task Manager), [`catatan.js`](https://github.com/ozikrich/dailyboardweb/blob/main/catatan.js) (Notes Manager)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_dashboard["Dashboard UI"]
  node_bootstrap["App Bootstrap<br/>[script.js]"]
  node_theme["Theme Toggle<br/>[script.js]"]
end

subgraph group_personal["Personal Organization"]
  node_tasks["Task Manager<br/>[tugas.js]"]
  node_notes["Notes Manager<br/>[catatan.js]"]
end

subgraph group_widgets["Live Widgets"]
  node_apiwidget["API Widgets<br/>[api.js]"]
  node_quotes["Daily Quotes<br/>[api.js]"]
  node_weather["Weather Lookup<br/>[api.js]"]
  node_geolocation["Browser Location<br/>[api.js]"]
end

subgraph group_persistence["Browser Persistence"]
  node_storage["Storage Helpers<br/>[storage.js]"]
  node_localstorage[("Browser LocalStorage")]
end

node_user(("User"))
node_quoteapi{{"Quotes Service"}}
node_weatherapi{{"OpenWeatherMap"}}

node_user -->|"opens dashboard"| node_bootstrap
node_bootstrap -->|"creates widget"| node_tasks
node_bootstrap -->|"creates widget"| node_notes
node_bootstrap -->|"creates widget"| node_apiwidget
node_user -->|"manages tasks"| node_tasks
node_user -->|"manages notes"| node_notes
node_user -->|"changes theme"| node_theme
node_tasks -->|"loads and saves"| node_storage
node_notes -->|"loads and saves"| node_storage
node_storage -->|"reads and writes"| node_localstorage
node_theme -->|"reads and writes"| node_localstorage
node_user -->|"uses widgets"| node_apiwidget
node_apiwidget -->|"loads quotes"| node_quotes
node_quotes -->|"fetches quote"| node_quoteapi
node_apiwidget -->|"handles lookup"| node_weather
node_weather -->|"requests position"| node_geolocation
node_geolocation -->|"passes coordinates"| node_weather
node_weather -->|"fetches conditions"| node_weatherapi

click node_bootstrap "https://github.com/ozikrich/dailyboardweb/blob/main/script.js"
click node_tasks "https://github.com/ozikrich/dailyboardweb/blob/main/tugas.js"
click node_notes "https://github.com/ozikrich/dailyboardweb/blob/main/catatan.js"
click node_apiwidget "https://github.com/ozikrich/dailyboardweb/blob/main/api.js"
click node_quotes "https://github.com/ozikrich/dailyboardweb/blob/main/api.js"
click node_weather "https://github.com/ozikrich/dailyboardweb/blob/main/api.js"
click node_geolocation "https://github.com/ozikrich/dailyboardweb/blob/main/api.js"
click node_storage "https://github.com/ozikrich/dailyboardweb/blob/main/storage.js"
click node_theme "https://github.com/ozikrich/dailyboardweb/blob/main/script.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_bootstrap,node_theme,node_user toneBlue
class node_tasks,node_notes toneAmber
class node_apiwidget,node_quotes,node_weather,node_geolocation toneMint
class node_storage,node_localstorage toneRose
class node_quoteapi,node_weatherapi toneIndigo
```

## Components

### Dashboard UI

- [App Bootstrap](https://github.com/ozikrich/dailyboardweb/blob/main/script.js): `script.js`
- [Theme Toggle](https://github.com/ozikrich/dailyboardweb/blob/main/script.js): `script.js`

### Personal Organization

- [Task Manager](https://github.com/ozikrich/dailyboardweb/blob/main/tugas.js): `tugas.js`
- [Notes Manager](https://github.com/ozikrich/dailyboardweb/blob/main/catatan.js): `catatan.js`

### Live Widgets

- [API Widgets](https://github.com/ozikrich/dailyboardweb/blob/main/api.js): `api.js`
- [Daily Quotes](https://github.com/ozikrich/dailyboardweb/blob/main/api.js): `api.js`
- [Weather Lookup](https://github.com/ozikrich/dailyboardweb/blob/main/api.js): `api.js`
- [Browser Location](https://github.com/ozikrich/dailyboardweb/blob/main/api.js): `api.js`

### Browser Persistence

- [Storage Helpers](https://github.com/ozikrich/dailyboardweb/blob/main/storage.js): `storage.js`
- **Browser LocalStorage**

### Other components

- **User**
- **Quotes Service**
- **OpenWeatherMap**

## Connections

- User → App Bootstrap: opens dashboard (evidence: `README.md`)
- App Bootstrap → Task Manager: creates widget (evidence: `script.js`)
- App Bootstrap → Notes Manager: creates widget (evidence: `script.js`)
- App Bootstrap → API Widgets: creates widget (evidence: `script.js`)
- User → Task Manager: manages tasks (evidence: `README.md`)
- User → Notes Manager: manages notes (evidence: `README.md`)
- User → Theme Toggle: changes theme (evidence: `script.js`)
- Task Manager → Storage Helpers: loads and saves (evidence: `tugas.js`)
- Notes Manager → Storage Helpers: loads and saves (evidence: `catatan.js`)
- Storage Helpers → Browser LocalStorage: reads and writes (evidence: `storage.js`)
- Theme Toggle → Browser LocalStorage: reads and writes (evidence: `script.js`)
- User → API Widgets: uses widgets (evidence: `README.md`)
- API Widgets → Daily Quotes: loads quotes (evidence: `api.js`)
- Daily Quotes → Quotes Service: fetches quote (evidence: `api.js`)
- API Widgets → Weather Lookup: handles lookup (evidence: `api.js`)
- Weather Lookup → Browser Location: requests position (evidence: `api.js`)
- Browser Location → Weather Lookup: passes coordinates (evidence: `api.js`)
- Weather Lookup → OpenWeatherMap: fetches conditions (evidence: `api.js`)
