# hephzibahbehulahhq/adigunlightdesign architecture

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

- Interactive diagram: https://gitdiagram.com/hephzibahbehulahhq/adigunlightdesign
- Repository: https://github.com/hephzibahbehulahhq/adigunlightdesign

## Overview

AdigunLightDesign is a browser-based color and lighting studio. Users design palettes and rooms, arrange virtual fixtures, author cue sequences, and save or export a versioned project; the README also describes offline reopening, optional cloud accounts, and Lux assistance. The graph keeps the app as the user-facing orchestrator and separates design, lighting, timeline, and output concerns. Several runtime connections are based on documented capabilities or imports rather than inspected call sites, so those links are marked unverified or omitted; physical DMX output is not part of the verified release.

Main entry points: [`src/app.js`](https://github.com/hephzibahbehulahhq/adigunlightdesign/blob/main/src/app.js) (Studio application), [`src/export/formats.js`](https://github.com/hephzibahbehulahhq/adigunlightdesign/blob/main/src/export/formats.js) (Export formats), [`src/timeline/engine.ts`](https://github.com/hephzibahbehulahhq/adigunlightdesign/blob/main/src/timeline/engine.ts) (Cue timeline engine), [`src/ai/chat-session.js`](https://github.com/hephzibahbehulahhq/adigunlightdesign/blob/main/src/ai/chat-session.js) (Lux chat session)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_studio["Studio experience"]
  node_app["Studio application<br/>[app.js]"]
  node_landing["Landing preview<br/>[landing.js]"]
  node_accessibility["Keyboard shortcuts<br/>[shortcuts.js]"]
end

subgraph group_design["Color and project design"]
  node_project["Project document<br/>[project.ts]"]
  node_color["Color engine<br/>[color-engine.ts]"]
  node_palette[("Palette store<br/>[palette-store.js]")]
  node_roomlooks["Room lighting looks"]
end

subgraph group_lighting["Lighting and cues"]
  node_renderer["3D preview renderer<br/>[renderer.js]"]
  node_dmx["Virtual fixture engine<br/>[engine.ts]"]
  node_timeline["Cue timeline engine<br/>[engine.ts]"]
  node_keyframes["Channel keyframes<br/>[keyframes.ts]"]
end

subgraph group_services["Persistence and assistance"]
  node_storage[("Browser storage<br/>[browser-storage.ts]")]
  node_cloudaccount["Cloud account adapter<br/>[account.js]"]
  node_cloudprojects["Cloud projects<br/>[projects.js]"]
  node_luxui["Lux assistant UI<br/>[lux-service.js]"]
  node_chat["Lux chat session<br/>[chat-session.js]"]
  node_ai_preview["Action preview<br/>[action-preview.js]"]
end

subgraph group_outputs["Exports"]
  node_exports["Export formats<br/>[formats.js]"]
  node_raster["Raster export<br/>[raster.js]"]
  node_pdf["PDF export<br/>[pdf.js]"]
end

node_user(("Studio user"))
node_browser(("Browser"))
node_luxservice{{"Optional Lux service"}}

node_user -->|"uses"| node_app
node_app -->|"binds preview"| node_landing
node_app -->|"reads preferences"| node_storage
node_app -.->|"edits document"| node_project
node_app -->|"uses colors"| node_color
node_app -.->|"edits palette"| node_palette
node_app -.->|"shows preview"| node_renderer
node_app -.->|"edits fixtures"| node_dmx
node_app -.->|"authors cues"| node_timeline
node_app -->|"downloads formats"| node_exports
node_app -->|"opens cloud project"| node_cloudprojects
node_app -.->|"provides assistant"| node_luxui
node_roomlooks -->|"supplies looks"| node_landing
node_renderer -->|"reads fixture profiles"| node_dmx
node_timeline -->|"evaluates frames"| node_keyframes
node_timeline -->|"uses fixtures"| node_dmx
node_cloudaccount -->|"supports projects"| node_cloudprojects
node_cloudprojects -->|"imports project"| node_project
node_luxui -->|"starts session"| node_chat
node_chat -->|"previews actions"| node_ai_preview
node_chat -.->|"requests suggestions"| node_luxservice
node_ai_preview -->|"validates changes"| node_project
node_exports -->|"reads palette"| node_palette
node_raster -->|"uses formats"| node_exports
node_pdf -->|"uses raster output"| node_raster
node_pdf -->|"uses formats"| node_exports
node_user -->|"runs studio in"| node_browser

click node_app "https://github.com/hephzibahbehulahhq/adigunlightdesign/blob/main/src/app.js"
click node_landing "https://github.com/hephzibahbehulahhq/adigunlightdesign/blob/main/src/ui/landing.js"
click node_accessibility "https://github.com/hephzibahbehulahhq/adigunlightdesign/blob/main/src/accessibility/shortcuts.js"
click node_project "https://github.com/hephzibahbehulahhq/adigunlightdesign/blob/main/src/domain/project.ts"
click node_color "https://github.com/hephzibahbehulahhq/adigunlightdesign/blob/main/src/domain/color-engine.ts"
click node_palette "https://github.com/hephzibahbehulahhq/adigunlightdesign/blob/main/src/domain/palette-store.js"
click node_roomlooks "https://github.com/hephzibahbehulahhq/adigunlightdesign/blob/main/src/domain/room-lighting-looks.js"
click node_renderer "https://github.com/hephzibahbehulahhq/adigunlightdesign/blob/main/src/light-lab/renderer.js"
click node_dmx "https://github.com/hephzibahbehulahhq/adigunlightdesign/blob/main/src/dmx/engine.ts"
click node_timeline "https://github.com/hephzibahbehulahhq/adigunlightdesign/blob/main/src/timeline/engine.ts"
click node_keyframes "https://github.com/hephzibahbehulahhq/adigunlightdesign/blob/main/src/timeline/keyframes.ts"
click node_storage "https://github.com/hephzibahbehulahhq/adigunlightdesign/blob/main/src/domain/browser-storage.ts"
click node_cloudaccount "https://github.com/hephzibahbehulahhq/adigunlightdesign/blob/main/src/cloud/account.js"
click node_cloudprojects "https://github.com/hephzibahbehulahhq/adigunlightdesign/blob/main/src/cloud/projects.js"
click node_luxui "https://github.com/hephzibahbehulahhq/adigunlightdesign/blob/main/src/ui/lux-service.js"
click node_chat "https://github.com/hephzibahbehulahhq/adigunlightdesign/blob/main/src/ai/chat-session.js"
click node_ai_preview "https://github.com/hephzibahbehulahhq/adigunlightdesign/blob/main/src/ai/action-preview.js"
click node_exports "https://github.com/hephzibahbehulahhq/adigunlightdesign/blob/main/src/export/formats.js"
click node_raster "https://github.com/hephzibahbehulahhq/adigunlightdesign/blob/main/src/export/raster.js"
click node_pdf "https://github.com/hephzibahbehulahhq/adigunlightdesign/blob/main/src/export/pdf.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_app,node_landing,node_accessibility,node_user,node_browser toneBlue
class node_project,node_color,node_palette,node_roomlooks toneAmber
class node_renderer,node_dmx,node_timeline,node_keyframes toneMint
class node_storage,node_cloudaccount,node_cloudprojects,node_luxui,node_chat,node_ai_preview toneRose
class node_exports,node_raster,node_pdf,node_luxservice toneIndigo
```

## Components

### Studio experience

- [Studio application](https://github.com/hephzibahbehulahhq/adigunlightdesign/blob/main/src/app.js): `src/app.js`
- [Landing preview](https://github.com/hephzibahbehulahhq/adigunlightdesign/blob/main/src/ui/landing.js): `src/ui/landing.js`
- [Keyboard shortcuts](https://github.com/hephzibahbehulahhq/adigunlightdesign/blob/main/src/accessibility/shortcuts.js): `src/accessibility/shortcuts.js`

### Color and project design

- [Project document](https://github.com/hephzibahbehulahhq/adigunlightdesign/blob/main/src/domain/project.ts): `src/domain/project.ts`
- [Color engine](https://github.com/hephzibahbehulahhq/adigunlightdesign/blob/main/src/domain/color-engine.ts): `src/domain/color-engine.ts`
- [Palette store](https://github.com/hephzibahbehulahhq/adigunlightdesign/blob/main/src/domain/palette-store.js): `src/domain/palette-store.js`
- [Room lighting looks](https://github.com/hephzibahbehulahhq/adigunlightdesign/blob/main/src/domain/room-lighting-looks.js): `src/domain/room-lighting-looks.js`

### Lighting and cues

- [3D preview renderer](https://github.com/hephzibahbehulahhq/adigunlightdesign/blob/main/src/light-lab/renderer.js): `src/light-lab/renderer.js`
- [Virtual fixture engine](https://github.com/hephzibahbehulahhq/adigunlightdesign/blob/main/src/dmx/engine.ts): `src/dmx/engine.ts`
- [Cue timeline engine](https://github.com/hephzibahbehulahhq/adigunlightdesign/blob/main/src/timeline/engine.ts): `src/timeline/engine.ts`
- [Channel keyframes](https://github.com/hephzibahbehulahhq/adigunlightdesign/blob/main/src/timeline/keyframes.ts): `src/timeline/keyframes.ts`

### Persistence and assistance

- [Browser storage](https://github.com/hephzibahbehulahhq/adigunlightdesign/blob/main/src/domain/browser-storage.ts): `src/domain/browser-storage.ts`
- [Cloud account adapter](https://github.com/hephzibahbehulahhq/adigunlightdesign/blob/main/src/cloud/account.js): `src/cloud/account.js`
- [Cloud projects](https://github.com/hephzibahbehulahhq/adigunlightdesign/blob/main/src/cloud/projects.js): `src/cloud/projects.js`
- [Lux assistant UI](https://github.com/hephzibahbehulahhq/adigunlightdesign/blob/main/src/ui/lux-service.js): `src/ui/lux-service.js`
- [Lux chat session](https://github.com/hephzibahbehulahhq/adigunlightdesign/blob/main/src/ai/chat-session.js): `src/ai/chat-session.js`
- [Action preview](https://github.com/hephzibahbehulahhq/adigunlightdesign/blob/main/src/ai/action-preview.js): `src/ai/action-preview.js`

### Exports

- [Export formats](https://github.com/hephzibahbehulahhq/adigunlightdesign/blob/main/src/export/formats.js): `src/export/formats.js`
- [Raster export](https://github.com/hephzibahbehulahhq/adigunlightdesign/blob/main/src/export/raster.js): `src/export/raster.js`
- [PDF export](https://github.com/hephzibahbehulahhq/adigunlightdesign/blob/main/src/export/pdf.js): `src/export/pdf.js`

### Other components

- **Studio user**
- **Browser**
- **Optional Lux service**

## Connections

- Studio user → Studio application: uses (evidence: `README.md`)
- Studio application → Landing preview: binds preview (evidence: `src/app.js`)
- Studio application → Browser storage: reads preferences (evidence: `src/app.js`)
- Studio application → Project document: edits document
- Studio application → Color engine: uses colors (evidence: `src/app.js`)
- Studio application → Palette store: edits palette (evidence: `src/app.js`)
- Studio application → 3D preview renderer: shows preview (evidence: `src/app.js`)
- Studio application → Virtual fixture engine: edits fixtures
- Studio application → Cue timeline engine: authors cues
- Studio application → Export formats: downloads formats (evidence: `src/app.js`)
- Studio application → Cloud projects: opens cloud project (evidence: `src/app.js`)
- Studio application → Lux assistant UI: provides assistant
- Room lighting looks → Landing preview: supplies looks (evidence: `src/ui/landing.js`)
- 3D preview renderer → Virtual fixture engine: reads fixture profiles (evidence: `src/light-lab/renderer.js`)
- Cue timeline engine → Channel keyframes: evaluates frames (evidence: `src/timeline/engine.ts`)
- Cue timeline engine → Virtual fixture engine: uses fixtures (evidence: `src/timeline/engine.ts`)
- Cloud account adapter → Cloud projects: supports projects (evidence: `src/cloud/account.js`)
- Cloud projects → Project document: imports project (evidence: `src/cloud/projects.js`)
- Lux assistant UI → Lux chat session: starts session (evidence: `src/ui/lux-service.js`)
- Lux chat session → Action preview: previews actions (evidence: `src/ai/chat-session.js`)
- Lux chat session → Optional Lux service: requests suggestions
- Action preview → Project document: validates changes (evidence: `src/ai/action-preview.js`)
- Export formats → Palette store: reads palette (evidence: `src/export/formats.js`)
- Raster export → Export formats: uses formats (evidence: `src/export/raster.js`)
- PDF export → Raster export: uses raster output (evidence: `src/export/pdf.js`)
- PDF export → Export formats: uses formats (evidence: `src/export/pdf.js`)
- Studio user → Browser: runs studio in (evidence: `README.md`)
