# azhagesan-dev/orderflowmap architecture

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

- Interactive diagram: https://gitdiagram.com/azhagesan-dev/orderflowmap
- Repository: https://github.com/azhagesan-dev/orderflowmap

## Overview

OrderFlowMap is a browser-based, single-file market-data visualizer. Its documented workflow is either synthetic simulation or a WebSocket connection to a self-hosted OpenAlgo server; live snapshots are used to reconstruct trades, and market activity is presented through charts, analytics, and trading views. The README documents these capabilities, but no source excerpts were provided, so internal implementation boundaries and calls cannot be verified; the product components therefore point to index.html.

Main entry points: [`index.html`](https://github.com/azhagesan-dev/orderflowmap/blob/main/index.html) (Live WebSocket)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_data["Market Data"]
  node_simulator["Market Simulator<br/>[index.html]"]
  node_live["Live WebSocket<br/>[index.html]"]
  node_reconstruction["Trade Reconstruction<br/>[index.html]"]
end

subgraph group_visuals["Visualization"]
  node_heatmap["Depth Heatmap<br/>[index.html]"]
  node_trade_bubbles["Trade Bubbles<br/>[index.html]"]
  node_overlays["Chart Overlays<br/>[index.html]"]
  node_volume_profile["Volume Profile<br/>[index.html]"]
  node_cvd["CVD Pane<br/>[index.html]"]
  node_liquidity_walls["Liquidity Walls<br/>[index.html]"]
end

subgraph group_analytics["Trading Views"]
  node_dom["DOM Ladder<br/>[index.html]"]
  node_tape["Time &amp; Sales<br/>[index.html]"]
  node_stats["Microstructure Stats<br/>[index.html]"]
  node_presets["Presets &amp; Controls<br/>[index.html]"]
end

node_user(("Trader"))
node_openalgo["OpenAlgo Server"]
node_exchange["Exchange Feed"]

node_user -->|"starts simulation"| node_simulator
node_simulator -->|"streams data"| node_heatmap
node_user -->|"connects"| node_live
node_live -->|"opens WebSocket"| node_openalgo
node_openalgo -->|"receives feed"| node_exchange
node_openalgo -->|"sends snapshots"| node_live
node_live -->|"provides snapshots"| node_reconstruction
node_reconstruction -->|"reconstructs trades"| node_trade_bubbles
node_live -->|"renders depth"| node_heatmap
node_simulator -->|"generates trades"| node_trade_bubbles
node_user -->|"adjusts display"| node_presets

click node_simulator "https://github.com/azhagesan-dev/orderflowmap/blob/main/index.html"
click node_live "https://github.com/azhagesan-dev/orderflowmap/blob/main/index.html"
click node_reconstruction "https://github.com/azhagesan-dev/orderflowmap/blob/main/index.html"
click node_heatmap "https://github.com/azhagesan-dev/orderflowmap/blob/main/index.html"
click node_trade_bubbles "https://github.com/azhagesan-dev/orderflowmap/blob/main/index.html"
click node_overlays "https://github.com/azhagesan-dev/orderflowmap/blob/main/index.html"
click node_volume_profile "https://github.com/azhagesan-dev/orderflowmap/blob/main/index.html"
click node_cvd "https://github.com/azhagesan-dev/orderflowmap/blob/main/index.html"
click node_liquidity_walls "https://github.com/azhagesan-dev/orderflowmap/blob/main/index.html"
click node_dom "https://github.com/azhagesan-dev/orderflowmap/blob/main/index.html"
click node_tape "https://github.com/azhagesan-dev/orderflowmap/blob/main/index.html"
click node_stats "https://github.com/azhagesan-dev/orderflowmap/blob/main/index.html"
click node_presets "https://github.com/azhagesan-dev/orderflowmap/blob/main/index.html"

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_simulator,node_live,node_reconstruction toneBlue
class node_heatmap,node_trade_bubbles,node_overlays,node_volume_profile,node_cvd,node_liquidity_walls toneAmber
class node_dom,node_tape,node_stats,node_presets,node_openalgo toneMint
class node_user,node_exchange toneIndigo
```

## Components

### Market Data

- [Market Simulator](https://github.com/azhagesan-dev/orderflowmap/blob/main/index.html): `index.html`
- [Live WebSocket](https://github.com/azhagesan-dev/orderflowmap/blob/main/index.html): `index.html`
- [Trade Reconstruction](https://github.com/azhagesan-dev/orderflowmap/blob/main/index.html): `index.html`

### Visualization

- [Depth Heatmap](https://github.com/azhagesan-dev/orderflowmap/blob/main/index.html): `index.html`
- [Trade Bubbles](https://github.com/azhagesan-dev/orderflowmap/blob/main/index.html): `index.html`
- [Chart Overlays](https://github.com/azhagesan-dev/orderflowmap/blob/main/index.html): `index.html`
- [Volume Profile](https://github.com/azhagesan-dev/orderflowmap/blob/main/index.html): `index.html`
- [CVD Pane](https://github.com/azhagesan-dev/orderflowmap/blob/main/index.html): `index.html`
- [Liquidity Walls](https://github.com/azhagesan-dev/orderflowmap/blob/main/index.html): `index.html`

### Trading Views

- [DOM Ladder](https://github.com/azhagesan-dev/orderflowmap/blob/main/index.html): `index.html`
- [Time & Sales](https://github.com/azhagesan-dev/orderflowmap/blob/main/index.html): `index.html`
- [Microstructure Stats](https://github.com/azhagesan-dev/orderflowmap/blob/main/index.html): `index.html`
- [Presets & Controls](https://github.com/azhagesan-dev/orderflowmap/blob/main/index.html): `index.html`

### Other components

- **Trader**
- **OpenAlgo Server**
- **Exchange Feed**

## Connections

- Trader → Market Simulator: starts simulation (evidence: `README.md`)
- Market Simulator → Depth Heatmap: streams data (evidence: `README.md`)
- Trader → Live WebSocket: connects (evidence: `README.md`)
- Live WebSocket → OpenAlgo Server: opens WebSocket (evidence: `README.md`)
- OpenAlgo Server → Exchange Feed: receives feed (evidence: `README.md`)
- OpenAlgo Server → Live WebSocket: sends snapshots (evidence: `README.md`)
- Live WebSocket → Trade Reconstruction: provides snapshots (evidence: `README.md`)
- Trade Reconstruction → Trade Bubbles: reconstructs trades (evidence: `README.md`)
- Live WebSocket → Depth Heatmap: renders depth (evidence: `README.md`)
- Market Simulator → Trade Bubbles: generates trades (evidence: `README.md`)
- Trader → Presets & Controls: adjusts display (evidence: `README.md`)
