# prakharyadav2006/novadrive architecture

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

- Interactive diagram: https://gitdiagram.com/prakharyadav2006/novadrive
- Repository: https://github.com/prakharyadav2006/novadrive

## Overview

LIGHTHOUSE is a static supplier-risk and sourcing decision app for the fictional NovaDrive case. A user opens the app, enters through its startup and router, and explores the overview, supplier, network, risk, event, alternate-supplier, scenario, and evidence screens; methodology, help, and a guided first visit round out the experience. Its bundled data and client-side logic support decision analysis without a server. Ask Lighthouse answers fixed question types from that same data and logic. Relationships below are limited to those documented in the README; source excerpts were unavailable.

Main entry points: [`assets/ui.js`](https://github.com/prakharyadav2006/novadrive/blob/main/assets/ui.js) (UI and router), [`assets/p_ask.js`](https://github.com/prakharyadav2006/novadrive/blob/main/assets/p_ask.js) (Ask Lighthouse), [`index.html`](https://github.com/prakharyadav2006/novadrive/blob/main/index.html) (App shell), [`assets/boot.js`](https://github.com/prakharyadav2006/novadrive/blob/main/assets/boot.js) (Startup)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_shell["App shell"]
  node_app["App shell<br/>[index.html]"]
  node_startup["Startup<br/>[boot.js]"]
  node_ui["UI and router<br/>[ui.js]"]
end

subgraph group_screens["Decision screens"]
  node_overview["Overview<br/>[p_overview.js]"]
  node_network["Network explorer<br/>[p_network.js]"]
  node_supplier["Supplier 360<br/>[p_supplier.js]"]
  node_risk["Risk intelligence<br/>[p_risk.js]"]
  node_events["External events<br/>[p_events.js]"]
  node_sourcing["Alternate suppliers<br/>[p_sourcing.js]"]
  node_scenario["Scenario lab<br/>[p_scenario.js]"]
  node_evidence["Evidence center<br/>[p_evidence.js]"]
  node_ask["Ask Lighthouse<br/>[p_ask.js]"]
  node_other["Methodology and help<br/>[p_misc.js]"]
end

subgraph group_analysis["Analysis engine"]
  node_logic["Risk and scenario logic<br/>[logic.js]"]
end

subgraph group_knowledge["Bundled knowledge"]
  node_data["Bundled case data<br/>[data.js]"]
end

node_user(("Decision maker"))

node_user -->|"opens"| node_app
node_app -->|"starts"| node_startup
node_startup -->|"starts router"| node_ui
node_ui -->|"routes to"| node_overview
node_ui -->|"routes to"| node_network
node_ui -->|"routes to"| node_supplier
node_ui -->|"routes to"| node_risk
node_ui -->|"routes to"| node_events
node_ui -->|"routes to"| node_sourcing
node_ui -->|"routes to"| node_scenario
node_ui -->|"routes to"| node_evidence
node_ui -->|"routes to"| node_ask
node_ui -->|"routes to"| node_other
node_ask -->|"answers from"| node_data
node_ask -->|"answers from"| node_logic
node_scenario -->|"simulates with"| node_logic

click node_app "https://github.com/prakharyadav2006/novadrive/blob/main/index.html"
click node_startup "https://github.com/prakharyadav2006/novadrive/blob/main/assets/boot.js"
click node_ui "https://github.com/prakharyadav2006/novadrive/blob/main/assets/ui.js"
click node_overview "https://github.com/prakharyadav2006/novadrive/blob/main/assets/p_overview.js"
click node_network "https://github.com/prakharyadav2006/novadrive/blob/main/assets/p_network.js"
click node_supplier "https://github.com/prakharyadav2006/novadrive/blob/main/assets/p_supplier.js"
click node_risk "https://github.com/prakharyadav2006/novadrive/blob/main/assets/p_risk.js"
click node_events "https://github.com/prakharyadav2006/novadrive/blob/main/assets/p_events.js"
click node_sourcing "https://github.com/prakharyadav2006/novadrive/blob/main/assets/p_sourcing.js"
click node_scenario "https://github.com/prakharyadav2006/novadrive/blob/main/assets/p_scenario.js"
click node_evidence "https://github.com/prakharyadav2006/novadrive/blob/main/assets/p_evidence.js"
click node_ask "https://github.com/prakharyadav2006/novadrive/blob/main/assets/p_ask.js"
click node_other "https://github.com/prakharyadav2006/novadrive/blob/main/assets/p_misc.js"
click node_logic "https://github.com/prakharyadav2006/novadrive/blob/main/assets/logic.js"
click node_data "https://github.com/prakharyadav2006/novadrive/blob/main/assets/data.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_startup,node_ui toneBlue
class node_overview,node_network,node_supplier,node_risk,node_events,node_sourcing,node_scenario,node_evidence,node_ask,node_other toneAmber
class node_logic toneMint
class node_data toneRose
class node_user toneIndigo
```

## Components

### App shell

- [App shell](https://github.com/prakharyadav2006/novadrive/blob/main/index.html): `index.html`
- [Startup](https://github.com/prakharyadav2006/novadrive/blob/main/assets/boot.js): `assets/boot.js`
- [UI and router](https://github.com/prakharyadav2006/novadrive/blob/main/assets/ui.js): `assets/ui.js`

### Decision screens

- [Overview](https://github.com/prakharyadav2006/novadrive/blob/main/assets/p_overview.js): `assets/p_overview.js`
- [Network explorer](https://github.com/prakharyadav2006/novadrive/blob/main/assets/p_network.js): `assets/p_network.js`
- [Supplier 360](https://github.com/prakharyadav2006/novadrive/blob/main/assets/p_supplier.js): `assets/p_supplier.js`
- [Risk intelligence](https://github.com/prakharyadav2006/novadrive/blob/main/assets/p_risk.js): `assets/p_risk.js`
- [External events](https://github.com/prakharyadav2006/novadrive/blob/main/assets/p_events.js): `assets/p_events.js`
- [Alternate suppliers](https://github.com/prakharyadav2006/novadrive/blob/main/assets/p_sourcing.js): `assets/p_sourcing.js`
- [Scenario lab](https://github.com/prakharyadav2006/novadrive/blob/main/assets/p_scenario.js): `assets/p_scenario.js`
- [Evidence center](https://github.com/prakharyadav2006/novadrive/blob/main/assets/p_evidence.js): `assets/p_evidence.js`
- [Ask Lighthouse](https://github.com/prakharyadav2006/novadrive/blob/main/assets/p_ask.js): `assets/p_ask.js`
- [Methodology and help](https://github.com/prakharyadav2006/novadrive/blob/main/assets/p_misc.js): `assets/p_misc.js`

### Analysis engine

- [Risk and scenario logic](https://github.com/prakharyadav2006/novadrive/blob/main/assets/logic.js): `assets/logic.js`

### Bundled knowledge

- [Bundled case data](https://github.com/prakharyadav2006/novadrive/blob/main/assets/data.js): `assets/data.js`

### Other components

- **Decision maker**

## Connections

- Decision maker → App shell: opens (evidence: `README.md`)
- App shell → Startup: starts (evidence: `README.md`)
- Startup → UI and router: starts router (evidence: `README.md`)
- UI and router → Overview: routes to (evidence: `README.md`)
- UI and router → Network explorer: routes to (evidence: `README.md`)
- UI and router → Supplier 360: routes to (evidence: `README.md`)
- UI and router → Risk intelligence: routes to (evidence: `README.md`)
- UI and router → External events: routes to (evidence: `README.md`)
- UI and router → Alternate suppliers: routes to (evidence: `README.md`)
- UI and router → Scenario lab: routes to (evidence: `README.md`)
- UI and router → Evidence center: routes to (evidence: `README.md`)
- UI and router → Ask Lighthouse: routes to (evidence: `README.md`)
- UI and router → Methodology and help: routes to (evidence: `README.md`)
- Ask Lighthouse → Bundled case data: answers from (evidence: `README.md`)
- Ask Lighthouse → Risk and scenario logic: answers from (evidence: `README.md`)
- Scenario lab → Risk and scenario logic: simulates with (evidence: `README.md`)
