# hahwul/gori architecture

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

- Interactive diagram: https://gitdiagram.com/hahwul/gori
- Repository: https://github.com/hahwul/gori

## Overview

gori is a terminal-focused web security testing tool: it captures traffic through a proxy, stores it as project flows, and lets users replay, inspect, fuzz, and scan those flows. The README documents three entry points—TUI, headless CLI, and MCP—sharing project data and core testing workflows. It also describes discovery, authorization testing, token analysis, OAST, and findings export. Source excerpts were not provided, so the graph uses documented relationships only; uncertain internal calls are omitted.

Main entry points: [`src/gori/tui`](https://github.com/hahwul/gori/tree/main/src/gori/tui) (Terminal UI), [`src/gori/cli/run`](https://github.com/hahwul/gori/tree/main/src/gori/cli/run) (Headless CLI), [`src/gori/mcp`](https://github.com/hahwul/gori/tree/main/src/gori/mcp) (MCP server), [`src/gori/store`](https://github.com/hahwul/gori/tree/main/src/gori/store) (Project database)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_entry["User entry points"]
  node_tui["Terminal UI"]
  node_headless["Headless CLI"]
  node_mcp["MCP server"]
end

subgraph group_traffic["Traffic and projects"]
  node_proxy["Capture proxy"]
  node_project[("Project database")]
  node_history["Flow history"]
  node_intercept["Intercept controls"]
end

subgraph group_testing["Testing workbenches"]
  node_repeater["Repeater"]
  node_fuzzer["Fuzzer"]
  node_decoder["Decoder"]
  node_comparer["Flow comparer"]
end

subgraph group_assessment["Assessment and findings"]
  node_discover["Surface discovery"]
  node_scanner["Vulnerability scanner"]
  node_authorize["Authorization matrix"]
  node_sequencer["Token sequencer"]
  node_oast["OAST collector"]
  node_findings["Findings export"]
end

node_human(("Human operator"))
node_agent(("AI agent"))
node_scripts(("Scripts"))

node_human -->|"uses"| node_tui
node_scripts -->|"drives"| node_headless
node_agent -->|"connects through"| node_mcp
node_tui -->|"starts proxy"| node_proxy
node_proxy -->|"captures flows"| node_history
node_tui -->|"shares project data"| node_project
node_headless -->|"shares project data"| node_project
node_mcp -->|"shares project data"| node_project
node_tui -->|"controls"| node_intercept
node_tui -->|"offers workflow"| node_repeater
node_tui -->|"offers workflow"| node_fuzzer
node_tui -->|"offers workflow"| node_decoder
node_tui -->|"offers workflow"| node_comparer
node_tui -->|"offers workflow"| node_discover
node_tui -->|"offers workflow"| node_scanner
node_tui -->|"offers workflow"| node_authorize
node_tui -->|"offers workflow"| node_sequencer
node_tui -->|"offers workflow"| node_oast
node_tui -->|"exports findings"| node_findings
node_headless -->|"exposes core workflows"| node_scanner
node_mcp -->|"exposes core workflows"| node_scanner

click node_tui "https://github.com/hahwul/gori/tree/main/src/gori/tui"
click node_headless "https://github.com/hahwul/gori/tree/main/src/gori/cli/run"
click node_mcp "https://github.com/hahwul/gori/tree/main/src/gori/mcp"
click node_proxy "https://github.com/hahwul/gori/tree/main/src/gori/proxy"
click node_project "https://github.com/hahwul/gori/tree/main/src/gori/store"
click node_history "https://github.com/hahwul/gori/tree/main/src/gori/store"
click node_intercept "https://github.com/hahwul/gori/tree/main/src/gori/proxy"
click node_repeater "https://github.com/hahwul/gori/tree/main/src/gori/repeater"
click node_fuzzer "https://github.com/hahwul/gori/tree/main/src/gori/fuzz"
click node_decoder "https://github.com/hahwul/gori/tree/main/src/gori/decoder"
click node_comparer "https://github.com/hahwul/gori/tree/main/src/gori/diff"
click node_discover "https://github.com/hahwul/gori/tree/main/src/gori/discover"
click node_scanner "https://github.com/hahwul/gori/tree/main/src/gori/probe"
click node_authorize "https://github.com/hahwul/gori/tree/main/src/gori/authorize"
click node_sequencer "https://github.com/hahwul/gori/tree/main/src/gori/sequencer"
click node_oast "https://github.com/hahwul/gori/tree/main/src/gori/oast"
click node_findings "https://github.com/hahwul/gori/tree/main/src/gori/issues_export"

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_tui,node_headless,node_mcp toneBlue
class node_proxy,node_project,node_history,node_intercept toneAmber
class node_repeater,node_fuzzer,node_decoder,node_comparer toneMint
class node_discover,node_scanner,node_authorize,node_sequencer,node_oast,node_findings toneRose
class node_human,node_agent,node_scripts toneIndigo
```

## Components

### User entry points

- [Terminal UI](https://github.com/hahwul/gori/tree/main/src/gori/tui): `src/gori/tui`
- [Headless CLI](https://github.com/hahwul/gori/tree/main/src/gori/cli/run): `src/gori/cli/run`
- [MCP server](https://github.com/hahwul/gori/tree/main/src/gori/mcp): `src/gori/mcp`

### Traffic and projects

- [Capture proxy](https://github.com/hahwul/gori/tree/main/src/gori/proxy): `src/gori/proxy`
- [Project database](https://github.com/hahwul/gori/tree/main/src/gori/store): `src/gori/store`
- [Flow history](https://github.com/hahwul/gori/tree/main/src/gori/store): `src/gori/store`
- [Intercept controls](https://github.com/hahwul/gori/tree/main/src/gori/proxy): `src/gori/proxy`

### Testing workbenches

- [Repeater](https://github.com/hahwul/gori/tree/main/src/gori/repeater): `src/gori/repeater`
- [Fuzzer](https://github.com/hahwul/gori/tree/main/src/gori/fuzz): `src/gori/fuzz`
- [Decoder](https://github.com/hahwul/gori/tree/main/src/gori/decoder): `src/gori/decoder`
- [Flow comparer](https://github.com/hahwul/gori/tree/main/src/gori/diff): `src/gori/diff`

### Assessment and findings

- [Surface discovery](https://github.com/hahwul/gori/tree/main/src/gori/discover): `src/gori/discover`
- [Vulnerability scanner](https://github.com/hahwul/gori/tree/main/src/gori/probe): `src/gori/probe`
- [Authorization matrix](https://github.com/hahwul/gori/tree/main/src/gori/authorize): `src/gori/authorize`
- [Token sequencer](https://github.com/hahwul/gori/tree/main/src/gori/sequencer): `src/gori/sequencer`
- [OAST collector](https://github.com/hahwul/gori/tree/main/src/gori/oast): `src/gori/oast`
- [Findings export](https://github.com/hahwul/gori/tree/main/src/gori/issues_export): `src/gori/issues_export`

### Other components

- **Human operator**
- **AI agent**
- **Scripts**

## Connections

- Human operator → Terminal UI: uses (evidence: `README.md`)
- Scripts → Headless CLI: drives (evidence: `README.md`)
- AI agent → MCP server: connects through (evidence: `README.md`)
- Terminal UI → Capture proxy: starts proxy (evidence: `README.md`)
- Capture proxy → Flow history: captures flows (evidence: `README.md`)
- Terminal UI → Project database: shares project data (evidence: `README.md`)
- Headless CLI → Project database: shares project data (evidence: `README.md`)
- MCP server → Project database: shares project data (evidence: `README.md`)
- Terminal UI → Intercept controls: controls (evidence: `README.md`)
- Terminal UI → Repeater: offers workflow (evidence: `README.md`)
- Terminal UI → Fuzzer: offers workflow (evidence: `README.md`)
- Terminal UI → Decoder: offers workflow (evidence: `README.md`)
- Terminal UI → Flow comparer: offers workflow (evidence: `README.md`)
- Terminal UI → Surface discovery: offers workflow (evidence: `README.md`)
- Terminal UI → Vulnerability scanner: offers workflow (evidence: `README.md`)
- Terminal UI → Authorization matrix: offers workflow (evidence: `README.md`)
- Terminal UI → Token sequencer: offers workflow (evidence: `README.md`)
- Terminal UI → OAST collector: offers workflow (evidence: `README.md`)
- Terminal UI → Findings export: exports findings (evidence: `README.md`)
- Headless CLI → Vulnerability scanner: exposes core workflows (evidence: `README.md`)
- MCP server → Vulnerability scanner: exposes core workflows (evidence: `README.md`)
