# sakshi-jadiya/livepulse architecture

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

- Interactive diagram: https://gitdiagram.com/sakshi-jadiya/livepulse
- Repository: https://github.com/sakshi-jadiya/livepulse

## Overview

LivePulse turns live ICMP traffic into explainable network-behavior results, with separate terminal and Streamlit experiences. The principal workflow is capture, parse, correlate requests and replies, measure network behavior, classify signals, and present results. The terminal monitor and dashboard each orchestrate that workflow. README-documented dashboard features are represented, though some dashboard implementation details were not excerpted; the graph avoids inferring unsupported calls between pipeline stages.

Main entry points: [`livepulse/monitor.py`](https://github.com/sakshi-jadiya/livepulse/blob/main/livepulse/monitor.py) (Terminal monitor), [`dashboard.py`](https://github.com/sakshi-jadiya/livepulse/blob/main/dashboard.py) (Live dashboard), [`livepulse/capture.py`](https://github.com/sakshi-jadiya/livepulse/blob/main/livepulse/capture.py) (TShark capture), [`livepulse/metrics.py`](https://github.com/sakshi-jadiya/livepulse/blob/main/livepulse/metrics.py) (Metrics and behavior)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_ingest["Traffic ingest"]
  node_capture["TShark capture<br/>[capture.py]"]
  node_parser["Packet parser<br/>[parser.py]"]
end

subgraph group_analysis["Network analysis"]
  node_metrics["Metrics and behavior<br/>[metrics.py]"]
end

subgraph group_experiences["User experiences"]
  node_main["Terminal launcher<br/>[main.py]"]
  node_monitor["Terminal monitor<br/>[monitor.py]"]
  node_dashboard["Live dashboard<br/>[dashboard.py]"]
  node_terminal["Terminal results<br/>[monitor.py]"]
  node_visuals["Dashboard visuals<br/>[dashboard.py]"]
end

node_operator(("Operator"))
node_tshark["TShark"]
node_target(("ICMP target"))

node_operator -->|"starts"| node_main
node_main -->|"creates and starts"| node_monitor
node_operator -->|"opens and configures"| node_dashboard
node_monitor -->|"starts and stops"| node_capture
node_dashboard -->|"starts and stops"| node_capture
node_capture -->|"runs capture"| node_tshark
node_target -.->|"sends ICMP"| node_tshark
node_capture -.->|"streams text to"| node_parser
node_monitor -->|"parses lines with"| node_parser
node_dashboard -->|"parses lines with"| node_parser
node_monitor -->|"processes packets with"| node_metrics
node_dashboard -->|"processes packets with"| node_metrics
node_metrics -->|"calculates and classifies"| node_metrics
node_monitor -->|"prints results"| node_terminal
node_dashboard -->|"renders metrics and events"| node_visuals

click node_main "https://github.com/sakshi-jadiya/livepulse/blob/main/main.py"
click node_monitor "https://github.com/sakshi-jadiya/livepulse/blob/main/livepulse/monitor.py"
click node_dashboard "https://github.com/sakshi-jadiya/livepulse/blob/main/dashboard.py"
click node_capture "https://github.com/sakshi-jadiya/livepulse/blob/main/livepulse/capture.py"
click node_parser "https://github.com/sakshi-jadiya/livepulse/blob/main/livepulse/parser.py"
click node_metrics "https://github.com/sakshi-jadiya/livepulse/blob/main/livepulse/metrics.py"
click node_terminal "https://github.com/sakshi-jadiya/livepulse/blob/main/livepulse/monitor.py"
click node_visuals "https://github.com/sakshi-jadiya/livepulse/blob/main/dashboard.py"

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_capture,node_parser toneBlue
class node_metrics toneAmber
class node_main,node_monitor,node_dashboard,node_terminal,node_visuals toneMint
class node_operator,node_tshark,node_target toneIndigo
```

## Components

### Traffic ingest

- [TShark capture](https://github.com/sakshi-jadiya/livepulse/blob/main/livepulse/capture.py): `livepulse/capture.py`
- [Packet parser](https://github.com/sakshi-jadiya/livepulse/blob/main/livepulse/parser.py): `livepulse/parser.py`

### Network analysis

- [Metrics and behavior](https://github.com/sakshi-jadiya/livepulse/blob/main/livepulse/metrics.py): `livepulse/metrics.py`

### User experiences

- [Terminal launcher](https://github.com/sakshi-jadiya/livepulse/blob/main/main.py): `main.py`
- [Terminal monitor](https://github.com/sakshi-jadiya/livepulse/blob/main/livepulse/monitor.py): `livepulse/monitor.py`
- [Live dashboard](https://github.com/sakshi-jadiya/livepulse/blob/main/dashboard.py): `dashboard.py`
- [Terminal results](https://github.com/sakshi-jadiya/livepulse/blob/main/livepulse/monitor.py): `livepulse/monitor.py`
- [Dashboard visuals](https://github.com/sakshi-jadiya/livepulse/blob/main/dashboard.py): `dashboard.py`

### Other components

- **Operator**
- **TShark**
- **ICMP target**

## Connections

- Operator → Terminal launcher: starts (evidence: `README.md`)
- Terminal launcher → Terminal monitor: creates and starts (evidence: `main.py`)
- Operator → Live dashboard: opens and configures (evidence: `README.md`)
- Terminal monitor → TShark capture: starts and stops (evidence: `livepulse/monitor.py`)
- Live dashboard → TShark capture: starts and stops (evidence: `dashboard.py`)
- TShark capture → TShark: runs capture (evidence: `livepulse/capture.py`)
- ICMP target → TShark: sends ICMP
- TShark capture → Packet parser: streams text to
- Terminal monitor → Packet parser: parses lines with (evidence: `livepulse/monitor.py`)
- Live dashboard → Packet parser: parses lines with (evidence: `dashboard.py`)
- Terminal monitor → Metrics and behavior: processes packets with (evidence: `livepulse/monitor.py`)
- Live dashboard → Metrics and behavior: processes packets with (evidence: `dashboard.py`)
- Metrics and behavior → Metrics and behavior: calculates and classifies (evidence: `livepulse/metrics.py`)
- Terminal monitor → Terminal results: prints results (evidence: `livepulse/monitor.py`)
- Live dashboard → Dashboard visuals: renders metrics and events (evidence: `dashboard.py`)
