# yverhaegen604-lgtm/reverse-engineering-toolbox architecture

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

- Interactive diagram: https://gitdiagram.com/yverhaegen604-lgtm/reverse-engineering-toolbox
- Repository: https://github.com/yverhaegen604-lgtm/reverse-engineering-toolbox

## Overview

Rea Agents Studio is a web workspace for designing and running multi-agent AI workflows, with separate code-generation and web-preview capabilities. The documented user journey is to choose workflow templates or chain agents, submit a task, then inspect execution telemetry and synthesized output. The agent API implements sequential workflow execution and direct single-agent runs through Gemini; the code API separately generates or refactors code. The graph also preserves project, authentication, publishing, and dashboard features visible in the tree. Frontend-to-API wiring is not shown in the sampled source, so those links are omitted.

Main entry points: [`components/WorkflowStudio.tsx`](https://github.com/yverhaegen604-lgtm/reverse-engineering-toolbox/blob/main/components/WorkflowStudio.tsx) (Workflow Studio), [`app/api/agents/run/route.ts`](https://github.com/yverhaegen604-lgtm/reverse-engineering-toolbox/blob/main/app/api/agents/run/route.ts) (Agent Run API), [`components/AuthModal.tsx`](https://github.com/yverhaegen604-lgtm/reverse-engineering-toolbox/blob/main/components/AuthModal.tsx) (Authentication), [`lib/firebase.ts`](https://github.com/yverhaegen604-lgtm/reverse-engineering-toolbox/blob/main/lib/firebase.ts) (Firebase Auth)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_workspace["Workspace UI"]
  node_studio["Workflow Studio<br/>[WorkflowStudio.tsx]"]
  node_canvas["Workflow Canvas<br/>[WorkflowCanvas.tsx]"]
  node_dashboard["Dashboard<br/>[Dashboard.tsx]"]
  node_navbar["Navigation<br/>[Navbar.tsx]"]
  node_quickstart["Quick Start"]
end

subgraph group_agents["Agent Workflows"]
  node_agent_library["Agent Library<br/>[AgentLibrary.tsx]"]
  node_agent_data["Agent Definitions<br/>[agents-data.ts]"]
  node_playground["Agent Playground"]
  node_run_api["Agent Run API<br/>[route.ts]"]
end

subgraph group_coding["Code Tools"]
  node_code_editor["Code Editor<br/>[CodeEditor.tsx]"]
  node_code_api["Code Generation API<br/>[route.ts]"]
  node_preview["Web Previewer<br/>[WebPreviewer.tsx]"]
end

subgraph group_identity["Identity And Projects"]
  node_auth_modal["Authentication<br/>[AuthModal.tsx]"]
  node_firebase["Firebase Auth<br/>[firebase.ts]"]
  node_projects["Project Manager<br/>[ProjectManager.tsx]"]
  node_publish["GitHub Publishing"]
end

node_user(("Developer"))
node_gemini{{"Gemini AI"}}

node_user -->|"designs workflows"| node_studio
node_studio -->|"presents telemetry"| node_user
node_user -->|"submits task"| node_run_api
node_run_api -->|"requests generation"| node_gemini
node_auth_modal -->|"authenticates with"| node_firebase

click node_studio "https://github.com/yverhaegen604-lgtm/reverse-engineering-toolbox/blob/main/components/WorkflowStudio.tsx"
click node_canvas "https://github.com/yverhaegen604-lgtm/reverse-engineering-toolbox/blob/main/components/WorkflowCanvas.tsx"
click node_dashboard "https://github.com/yverhaegen604-lgtm/reverse-engineering-toolbox/blob/main/components/Dashboard.tsx"
click node_agent_library "https://github.com/yverhaegen604-lgtm/reverse-engineering-toolbox/blob/main/components/AgentLibrary.tsx"
click node_agent_data "https://github.com/yverhaegen604-lgtm/reverse-engineering-toolbox/blob/main/lib/agents-data.ts"
click node_playground "https://github.com/yverhaegen604-lgtm/reverse-engineering-toolbox/blob/main/components/AgentPlayground.tsx"
click node_run_api "https://github.com/yverhaegen604-lgtm/reverse-engineering-toolbox/blob/main/app/api/agents/run/route.ts"
click node_code_editor "https://github.com/yverhaegen604-lgtm/reverse-engineering-toolbox/blob/main/components/CodeEditor.tsx"
click node_code_api "https://github.com/yverhaegen604-lgtm/reverse-engineering-toolbox/blob/main/app/api/code/generate/route.ts"
click node_preview "https://github.com/yverhaegen604-lgtm/reverse-engineering-toolbox/blob/main/components/WebPreviewer.tsx"
click node_auth_modal "https://github.com/yverhaegen604-lgtm/reverse-engineering-toolbox/blob/main/components/AuthModal.tsx"
click node_firebase "https://github.com/yverhaegen604-lgtm/reverse-engineering-toolbox/blob/main/lib/firebase.ts"
click node_projects "https://github.com/yverhaegen604-lgtm/reverse-engineering-toolbox/blob/main/components/ProjectManager.tsx"
click node_publish "https://github.com/yverhaegen604-lgtm/reverse-engineering-toolbox/blob/main/components/GitHubPublishModal.tsx"
click node_navbar "https://github.com/yverhaegen604-lgtm/reverse-engineering-toolbox/blob/main/components/Navbar.tsx"
click node_quickstart "https://github.com/yverhaegen604-lgtm/reverse-engineering-toolbox/blob/main/components/QuickStartToast.tsx"

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_studio,node_canvas,node_dashboard,node_navbar,node_quickstart toneBlue
class node_agent_library,node_agent_data,node_playground,node_run_api toneAmber
class node_code_editor,node_code_api,node_preview toneMint
class node_auth_modal,node_firebase,node_projects,node_publish toneRose
class node_user,node_gemini toneIndigo
```

## Components

### Workspace UI

- [Workflow Studio](https://github.com/yverhaegen604-lgtm/reverse-engineering-toolbox/blob/main/components/WorkflowStudio.tsx): `components/WorkflowStudio.tsx`
- [Workflow Canvas](https://github.com/yverhaegen604-lgtm/reverse-engineering-toolbox/blob/main/components/WorkflowCanvas.tsx): `components/WorkflowCanvas.tsx`
- [Dashboard](https://github.com/yverhaegen604-lgtm/reverse-engineering-toolbox/blob/main/components/Dashboard.tsx): `components/Dashboard.tsx`
- [Navigation](https://github.com/yverhaegen604-lgtm/reverse-engineering-toolbox/blob/main/components/Navbar.tsx): `components/Navbar.tsx`
- [Quick Start](https://github.com/yverhaegen604-lgtm/reverse-engineering-toolbox/blob/main/components/QuickStartToast.tsx): `components/QuickStartToast.tsx`

### Agent Workflows

- [Agent Library](https://github.com/yverhaegen604-lgtm/reverse-engineering-toolbox/blob/main/components/AgentLibrary.tsx): `components/AgentLibrary.tsx`
- [Agent Definitions](https://github.com/yverhaegen604-lgtm/reverse-engineering-toolbox/blob/main/lib/agents-data.ts): `lib/agents-data.ts`
- [Agent Playground](https://github.com/yverhaegen604-lgtm/reverse-engineering-toolbox/blob/main/components/AgentPlayground.tsx): `components/AgentPlayground.tsx`
- [Agent Run API](https://github.com/yverhaegen604-lgtm/reverse-engineering-toolbox/blob/main/app/api/agents/run/route.ts): `app/api/agents/run/route.ts`

### Code Tools

- [Code Editor](https://github.com/yverhaegen604-lgtm/reverse-engineering-toolbox/blob/main/components/CodeEditor.tsx): `components/CodeEditor.tsx`
- [Code Generation API](https://github.com/yverhaegen604-lgtm/reverse-engineering-toolbox/blob/main/app/api/code/generate/route.ts): `app/api/code/generate/route.ts`
- [Web Previewer](https://github.com/yverhaegen604-lgtm/reverse-engineering-toolbox/blob/main/components/WebPreviewer.tsx): `components/WebPreviewer.tsx`

### Identity And Projects

- [Authentication](https://github.com/yverhaegen604-lgtm/reverse-engineering-toolbox/blob/main/components/AuthModal.tsx): `components/AuthModal.tsx`
- [Firebase Auth](https://github.com/yverhaegen604-lgtm/reverse-engineering-toolbox/blob/main/lib/firebase.ts): `lib/firebase.ts`
- [Project Manager](https://github.com/yverhaegen604-lgtm/reverse-engineering-toolbox/blob/main/components/ProjectManager.tsx): `components/ProjectManager.tsx`
- [GitHub Publishing](https://github.com/yverhaegen604-lgtm/reverse-engineering-toolbox/blob/main/components/GitHubPublishModal.tsx): `components/GitHubPublishModal.tsx`

### Other components

- **Developer**
- **Gemini AI**

## Connections

- Developer → Workflow Studio: designs workflows (evidence: `README.md`)
- Workflow Studio → Developer: presents telemetry (evidence: `README.md`)
- Developer → Agent Run API: submits task (evidence: `app/api/agents/run/route.ts`)
- Agent Run API → Gemini AI: requests generation (evidence: `app/api/agents/run/route.ts`)
- Authentication → Firebase Auth: authenticates with (evidence: `components/AuthModal.tsx`)
