# harsh-4210/aceso-traffic-generator architecture

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

- Interactive diagram: https://gitdiagram.com/harsh-4210/aceso-traffic-generator
- Repository: https://github.com/harsh-4210/aceso-traffic-generator

## Overview

This repository presents itself as a synthetic-traffic generator for AcesoLoop. The visible workflow is Playwright running browser scenarios against a target shop; the scenario names indicate authentication, checkout, journeys, and search coverage. The source excerpts show configuration but not scenario implementations, so their detailed behavior and internal calls cannot be verified. The graph therefore limits relationships to the configured test discovery and target URL; the benchmark script is not mapped because its implementation was not shown.

Main entry points: [`tests/e2e/auth.spec.ts`](https://github.com/harsh-4210/aceso-traffic-generator/blob/main/tests/e2e/auth.spec.ts) (Authentication), [`tests/e2e/checkout.spec.ts`](https://github.com/harsh-4210/aceso-traffic-generator/blob/main/tests/e2e/checkout.spec.ts) (Checkout), [`tests/e2e/journeys.spec.ts`](https://github.com/harsh-4210/aceso-traffic-generator/blob/main/tests/e2e/journeys.spec.ts) (Shop journeys), [`tests/e2e/search.spec.ts`](https://github.com/harsh-4210/aceso-traffic-generator/blob/main/tests/e2e/search.spec.ts) (Search)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_traffic["Traffic scenarios"]
  node_auth["Authentication<br/>[auth.spec.ts]"]
  node_checkout["Checkout<br/>[checkout.spec.ts]"]
  node_journeys["Shop journeys<br/>[journeys.spec.ts]"]
  node_search["Search<br/>[search.spec.ts]"]
end

subgraph group_runtime["Browser runtime"]
  node_playwright["Playwright runner"]
end

node_operator(("Traffic operator"))
node_shop["Target shop"]

node_operator -.->|"runs tests"| node_playwright
node_playwright -->|"discovers tests"| node_auth
node_playwright -->|"discovers tests"| node_checkout
node_playwright -->|"discovers tests"| node_journeys
node_playwright -->|"discovers tests"| node_search
node_playwright -->|"targets base URL"| node_shop

click node_auth "https://github.com/harsh-4210/aceso-traffic-generator/blob/main/tests/e2e/auth.spec.ts"
click node_checkout "https://github.com/harsh-4210/aceso-traffic-generator/blob/main/tests/e2e/checkout.spec.ts"
click node_journeys "https://github.com/harsh-4210/aceso-traffic-generator/blob/main/tests/e2e/journeys.spec.ts"
click node_search "https://github.com/harsh-4210/aceso-traffic-generator/blob/main/tests/e2e/search.spec.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_auth,node_checkout,node_journeys,node_search toneBlue
class node_playwright toneAmber
class node_operator,node_shop toneIndigo
```

## Components

### Traffic scenarios

- [Authentication](https://github.com/harsh-4210/aceso-traffic-generator/blob/main/tests/e2e/auth.spec.ts): `tests/e2e/auth.spec.ts`
- [Checkout](https://github.com/harsh-4210/aceso-traffic-generator/blob/main/tests/e2e/checkout.spec.ts): `tests/e2e/checkout.spec.ts`
- [Shop journeys](https://github.com/harsh-4210/aceso-traffic-generator/blob/main/tests/e2e/journeys.spec.ts): `tests/e2e/journeys.spec.ts`
- [Search](https://github.com/harsh-4210/aceso-traffic-generator/blob/main/tests/e2e/search.spec.ts): `tests/e2e/search.spec.ts`

### Browser runtime

- **Playwright runner**

### Other components

- **Traffic operator**
- **Target shop**

## Connections

- Traffic operator → Playwright runner: runs tests
- Playwright runner → Authentication: discovers tests
- Playwright runner → Checkout: discovers tests
- Playwright runner → Shop journeys: discovers tests
- Playwright runner → Search: discovers tests
- Playwright runner → Target shop: targets base URL
