# harris6s/signalboard architecture

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

- Interactive diagram: https://gitdiagram.com/harris6s/signalboard
- Repository: https://github.com/harris6s/signalboard

## Overview

Signalboard is a static, browser-based analytics dashboard and action planner. Its main workflow is: platform data is collected into a workbook, the dashboard reads and analyses that data, then presents analytics pages and prioritized actions. The README documents the optional Cloudflare Worker path for private, live workbook access; sampled code also shows workbook parsing, action-rule logic, and browser-side caching. Some page-to-parser wiring is not visible in the excerpts, so those internal connections are omitted.

Main entry points: [`index.html`](https://github.com/harris6s/signalboard/blob/main/index.html) (Dashboard site), [`app.js`](https://github.com/harris6s/signalboard/blob/main/app.js) (Analytics pages), [`cloudflare-worker.js`](https://github.com/harris6s/signalboard/blob/main/cloudflare-worker.js) (Cloudflare Worker), [`sources.js`](https://github.com/harris6s/signalboard/blob/main/sources.js) (Source reference)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_collection["Data collection"]
  node_platform_apis(("Platform APIs"))
  node_scheduled_collectors["Scheduled collectors"]
  node_workbook[("Reporting workbook")]
  node_sources_reference["Source reference<br/>[sources.js]"]
end

subgraph group_connections["Workbook connections"]
  node_worker["Cloudflare Worker"]
  node_direct_file["Hosted workbook"]
  node_local_file["Local workbook"]
end

subgraph group_dashboard["Dashboard experience"]
  node_settings["Dashboard settings<br/>[config.js]"]
  node_personalization["Brand personalization<br/>[brand.js]"]
  node_dashboard_site["Dashboard site<br/>[index.html]"]
end

subgraph group_analysis["Analysis"]
  node_workbook_reader["Workbook parser<br/>[reader.js]"]
  node_analytics_pages["Analytics pages<br/>[app.js]"]
  node_action_engine["Action plan engine<br/>[actions.js]"]
  node_initial_data["Initial dashboard data<br/>[data.js]"]
  node_browser_cache[("Browser data cache<br/>[app.js]")]
end

node_platform_apis -->|"supply metrics"| node_scheduled_collectors
node_scheduled_collectors -->|"write daily data"| node_workbook
node_sources_reference -->|"defines tabs"| node_workbook
node_workbook -->|"read privately"| node_worker
node_worker -->|"serve workbook"| node_dashboard_site
node_direct_file -->|"provide workbook"| node_dashboard_site
node_local_file -->|"open locally"| node_dashboard_site
node_settings -->|"configure dashboard"| node_dashboard_site
node_dashboard_site -->|"present dashboard"| node_analytics_pages
node_dashboard_site -->|"recalculate actions"| node_action_engine
node_workbook_reader -->|"parse workbook"| node_workbook
node_analytics_pages -.->|"use initial data"| node_initial_data
node_analytics_pages -->|"read and write"| node_browser_cache
node_personalization -.->|"customize appearance"| node_dashboard_site

click node_sources_reference "https://github.com/harris6s/signalboard/blob/main/sources.js"
click node_worker "https://github.com/harris6s/signalboard/blob/main/cloudflare-worker.js"
click node_settings "https://github.com/harris6s/signalboard/blob/main/config.js"
click node_personalization "https://github.com/harris6s/signalboard/blob/main/brand.js"
click node_dashboard_site "https://github.com/harris6s/signalboard/blob/main/index.html"
click node_workbook_reader "https://github.com/harris6s/signalboard/blob/main/reader.js"
click node_analytics_pages "https://github.com/harris6s/signalboard/blob/main/app.js"
click node_action_engine "https://github.com/harris6s/signalboard/blob/main/actions.js"
click node_initial_data "https://github.com/harris6s/signalboard/blob/main/data.js"
click node_browser_cache "https://github.com/harris6s/signalboard/blob/main/app.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_platform_apis,node_scheduled_collectors,node_workbook,node_sources_reference toneBlue
class node_worker,node_direct_file,node_local_file toneAmber
class node_settings,node_personalization,node_dashboard_site toneMint
class node_workbook_reader,node_analytics_pages,node_action_engine,node_initial_data,node_browser_cache toneRose
```

## Components

### Data collection

- **Platform APIs**
- **Scheduled collectors**
- **Reporting workbook**
- [Source reference](https://github.com/harris6s/signalboard/blob/main/sources.js): `sources.js`

### Workbook connections

- [Cloudflare Worker](https://github.com/harris6s/signalboard/blob/main/cloudflare-worker.js): `cloudflare-worker.js`
- **Hosted workbook**
- **Local workbook**

### Dashboard experience

- [Dashboard settings](https://github.com/harris6s/signalboard/blob/main/config.js): `config.js`
- [Brand personalization](https://github.com/harris6s/signalboard/blob/main/brand.js): `brand.js`
- [Dashboard site](https://github.com/harris6s/signalboard/blob/main/index.html): `index.html`

### Analysis

- [Workbook parser](https://github.com/harris6s/signalboard/blob/main/reader.js): `reader.js`
- [Analytics pages](https://github.com/harris6s/signalboard/blob/main/app.js): `app.js`
- [Action plan engine](https://github.com/harris6s/signalboard/blob/main/actions.js): `actions.js`
- [Initial dashboard data](https://github.com/harris6s/signalboard/blob/main/data.js): `data.js`
- [Browser data cache](https://github.com/harris6s/signalboard/blob/main/app.js): `app.js`

## Connections

- Platform APIs → Scheduled collectors: supply metrics (evidence: `README.md`)
- Scheduled collectors → Reporting workbook: write daily data (evidence: `README.md`)
- Source reference → Reporting workbook: defines tabs (evidence: `sources.js`)
- Reporting workbook → Cloudflare Worker: read privately (evidence: `README.md`)
- Cloudflare Worker → Dashboard site: serve workbook (evidence: `README.md`)
- Hosted workbook → Dashboard site: provide workbook (evidence: `README.md`)
- Local workbook → Dashboard site: open locally (evidence: `README.md`)
- Dashboard settings → Dashboard site: configure dashboard (evidence: `README.md`)
- Dashboard site → Analytics pages: present dashboard (evidence: `README.md`)
- Dashboard site → Action plan engine: recalculate actions (evidence: `README.md`)
- Workbook parser → Reporting workbook: parse workbook (evidence: `reader.js`)
- Analytics pages → Initial dashboard data: use initial data
- Analytics pages → Browser data cache: read and write (evidence: `app.js`)
- Brand personalization → Dashboard site: customize appearance
