# derickbenites/tz-bridge architecture

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

- Interactive diagram: https://gitdiagram.com/derickbenites/tz-bridge
- Repository: https://github.com/derickbenites/tz-bridge

## Overview

tz-bridge is a browser-only meeting-time planner. The user selects a date, time, and entry side, then compares the equivalent time in the browser’s zone and a chosen IANA zone. The app also presents UTC offsets, daylight-saving gap changes, shared 09:00–18:00 working hours, and a copyable summary. The UI is bootstrapped in src/main.tsx; src/App.tsx owns interaction and presentation, while src/lib/time.ts contains the pure time-zone calculations. Edges reflect the shown imports and documented runtime behavior; unsampled UI details are not expanded.

Main entry points: [`src/App.tsx`](https://github.com/derickbenites/tz-bridge/blob/main/src/App.tsx) (Planner inputs and results), [`src/lib/time.ts`](https://github.com/derickbenites/tz-bridge/blob/main/src/lib/time.ts) (Wall-time conversion), [`src/main.tsx`](https://github.com/derickbenites/tz-bridge/blob/main/src/main.tsx) (React bootstrap)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_bootstrap["Application entry"]
  node_entry["React bootstrap<br/>[main.tsx]"]
end

subgraph group_planner["Planner interface"]
  node_planner_ui["Planner inputs and results<br/>[App.tsx]"]
end

subgraph group_time["Time-zone logic"]
  node_zone_catalog["Zone selection<br/>[time.ts]"]
  node_wall_conversion["Wall-time conversion<br/>[time.ts]"]
  node_offset_dst["Offsets and DST<br/>[time.ts]"]
  node_work_overlap["Working-hour overlap<br/>[time.ts]"]
  node_meeting_summary["Meeting summary format<br/>[time.ts]"]
end

node_user(("Meeting planner user"))
node_intl["Native Intl APIs"]

node_entry -->|"renders"| node_planner_ui
node_user -->|"sets meeting"| node_planner_ui
node_planner_ui -->|"loads zones"| node_zone_catalog
node_planner_ui -->|"converts time"| node_wall_conversion
node_planner_ui -->|"calculates gap"| node_offset_dst
node_planner_ui -->|"calculates overlap"| node_work_overlap
node_planner_ui -->|"formats summary"| node_meeting_summary
node_zone_catalog -->|"reads zone catalog"| node_intl
node_wall_conversion -->|"reads zone offsets"| node_intl
node_offset_dst -->|"reads zone offsets"| node_intl
node_work_overlap -->|"converts hourly times"| node_wall_conversion

click node_entry "https://github.com/derickbenites/tz-bridge/blob/main/src/main.tsx"
click node_planner_ui "https://github.com/derickbenites/tz-bridge/blob/main/src/App.tsx"
click node_zone_catalog "https://github.com/derickbenites/tz-bridge/blob/main/src/lib/time.ts"
click node_wall_conversion "https://github.com/derickbenites/tz-bridge/blob/main/src/lib/time.ts"
click node_offset_dst "https://github.com/derickbenites/tz-bridge/blob/main/src/lib/time.ts"
click node_work_overlap "https://github.com/derickbenites/tz-bridge/blob/main/src/lib/time.ts"
click node_meeting_summary "https://github.com/derickbenites/tz-bridge/blob/main/src/lib/time.ts"

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_entry,node_user toneBlue
class node_planner_ui toneAmber
class node_zone_catalog,node_wall_conversion,node_offset_dst,node_work_overlap,node_meeting_summary,node_intl toneMint
```

## Components

### Application entry

- [React bootstrap](https://github.com/derickbenites/tz-bridge/blob/main/src/main.tsx): `src/main.tsx`

### Planner interface

- [Planner inputs and results](https://github.com/derickbenites/tz-bridge/blob/main/src/App.tsx): `src/App.tsx`

### Time-zone logic

- [Zone selection](https://github.com/derickbenites/tz-bridge/blob/main/src/lib/time.ts): `src/lib/time.ts`
- [Wall-time conversion](https://github.com/derickbenites/tz-bridge/blob/main/src/lib/time.ts): `src/lib/time.ts`
- [Offsets and DST](https://github.com/derickbenites/tz-bridge/blob/main/src/lib/time.ts): `src/lib/time.ts`
- [Working-hour overlap](https://github.com/derickbenites/tz-bridge/blob/main/src/lib/time.ts): `src/lib/time.ts`
- [Meeting summary format](https://github.com/derickbenites/tz-bridge/blob/main/src/lib/time.ts): `src/lib/time.ts`

### Other components

- **Meeting planner user**
- **Native Intl APIs**

## Connections

- React bootstrap → Planner inputs and results: renders (evidence: `src/main.tsx`)
- Meeting planner user → Planner inputs and results: sets meeting (evidence: `README.md`)
- Planner inputs and results → Zone selection: loads zones (evidence: `src/App.tsx`)
- Planner inputs and results → Wall-time conversion: converts time (evidence: `src/App.tsx`)
- Planner inputs and results → Offsets and DST: calculates gap (evidence: `src/App.tsx`)
- Planner inputs and results → Working-hour overlap: calculates overlap (evidence: `src/App.tsx`)
- Planner inputs and results → Meeting summary format: formats summary (evidence: `src/App.tsx`)
- Zone selection → Native Intl APIs: reads zone catalog (evidence: `README.md`)
- Wall-time conversion → Native Intl APIs: reads zone offsets (evidence: `src/lib/time.ts`)
- Offsets and DST → Native Intl APIs: reads zone offsets (evidence: `src/lib/time.ts`)
- Working-hour overlap → Wall-time conversion: converts hourly times (evidence: `src/lib/time.ts`)
