# elsba3ei/phishcraft-studio architecture

> Architecture diagram of the GitHub repository elsba3ei/phishcraft-studio, 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/elsba3ei/phishcraft-studio
- Repository: https://github.com/elsba3ei/phishcraft-studio

## Overview

PhishCraft Studio is a desktop application for authorized email-security assessments. Its main workflow is to pass a compliance gate, configure SMTP and message headers, edit and preview an email template, then dispatch it asynchronously while observing activity logs. The README describes these capabilities, but the application source was not included in the excerpts, so implementation details and internal call relationships cannot be verified; the links below reflect documented behavior only.

Main entry points: [`app.pyw`](https://github.com/elsba3ei/phishcraft-studio/blob/main/app.pyw) (Studio interface), [`.env`](https://github.com/elsba3ei/phishcraft-studio/blob/main/.env) (Environment config)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_interface["Desktop Interface"]
  node_compliance["Compliance gate<br/>[app.pyw]"]
  node_studio["Studio interface<br/>[app.pyw]"]
end

subgraph group_authoring["Template Authoring"]
  node_template_editor["HTML editor<br/>[app.pyw]"]
  node_live_preview["Live preview<br/>[app.pyw]"]
  node_browser_preview["Browser preview<br/>[app.pyw]"]
end

subgraph group_delivery["Email Delivery"]
  node_smtp_config["SMTP settings<br/>[app.pyw]"]
  node_env_file["Environment config<br/>[.env]"]
  node_header_config["Message headers<br/>[app.pyw]"]
  node_dispatcher["Async dispatcher<br/>[app.pyw]"]
  node_activity_log["Activity log<br/>[app.pyw]"]
end

node_user(("Authorized operator"))
node_smtp_server["SMTP server"]

node_user -->|"launches"| node_compliance
node_compliance -->|"gates access"| node_studio
node_user -->|"configures"| node_studio
node_studio -->|"sets transport"| node_smtp_config
node_smtp_config -->|"persists settings"| node_env_file
node_studio -->|"sets headers"| node_header_config
node_user -->|"edits template"| node_template_editor
node_template_editor -->|"renders HTML"| node_live_preview
node_template_editor -->|"opens preview"| node_browser_preview
node_studio -->|"starts dispatch"| node_dispatcher
node_dispatcher -->|"sends email"| node_smtp_server
node_dispatcher -->|"reports activity"| node_activity_log

click node_compliance "https://github.com/elsba3ei/phishcraft-studio/blob/main/app.pyw"
click node_studio "https://github.com/elsba3ei/phishcraft-studio/blob/main/app.pyw"
click node_smtp_config "https://github.com/elsba3ei/phishcraft-studio/blob/main/app.pyw"
click node_env_file "https://github.com/elsba3ei/phishcraft-studio/blob/main/.env"
click node_header_config "https://github.com/elsba3ei/phishcraft-studio/blob/main/app.pyw"
click node_template_editor "https://github.com/elsba3ei/phishcraft-studio/blob/main/app.pyw"
click node_live_preview "https://github.com/elsba3ei/phishcraft-studio/blob/main/app.pyw"
click node_browser_preview "https://github.com/elsba3ei/phishcraft-studio/blob/main/app.pyw"
click node_dispatcher "https://github.com/elsba3ei/phishcraft-studio/blob/main/app.pyw"
click node_activity_log "https://github.com/elsba3ei/phishcraft-studio/blob/main/app.pyw"

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_compliance,node_studio toneBlue
class node_template_editor,node_live_preview,node_browser_preview toneAmber
class node_smtp_config,node_env_file,node_header_config,node_dispatcher,node_activity_log,node_smtp_server toneMint
class node_user toneIndigo
```

## Components

### Desktop Interface

- [Compliance gate](https://github.com/elsba3ei/phishcraft-studio/blob/main/app.pyw): `app.pyw`
- [Studio interface](https://github.com/elsba3ei/phishcraft-studio/blob/main/app.pyw): `app.pyw`

### Template Authoring

- [HTML editor](https://github.com/elsba3ei/phishcraft-studio/blob/main/app.pyw): `app.pyw`
- [Live preview](https://github.com/elsba3ei/phishcraft-studio/blob/main/app.pyw): `app.pyw`
- [Browser preview](https://github.com/elsba3ei/phishcraft-studio/blob/main/app.pyw): `app.pyw`

### Email Delivery

- [SMTP settings](https://github.com/elsba3ei/phishcraft-studio/blob/main/app.pyw): `app.pyw`
- [Environment config](https://github.com/elsba3ei/phishcraft-studio/blob/main/.env): `.env`
- [Message headers](https://github.com/elsba3ei/phishcraft-studio/blob/main/app.pyw): `app.pyw`
- [Async dispatcher](https://github.com/elsba3ei/phishcraft-studio/blob/main/app.pyw): `app.pyw`
- [Activity log](https://github.com/elsba3ei/phishcraft-studio/blob/main/app.pyw): `app.pyw`

### Other components

- **Authorized operator**
- **SMTP server**

## Connections

- Authorized operator → Compliance gate: launches (evidence: `README.md`)
- Compliance gate → Studio interface: gates access (evidence: `README.md`)
- Authorized operator → Studio interface: configures (evidence: `README.md`)
- Studio interface → SMTP settings: sets transport (evidence: `README.md`)
- SMTP settings → Environment config: persists settings (evidence: `README.md`)
- Studio interface → Message headers: sets headers (evidence: `README.md`)
- Authorized operator → HTML editor: edits template (evidence: `README.md`)
- HTML editor → Live preview: renders HTML (evidence: `README.md`)
- HTML editor → Browser preview: opens preview (evidence: `README.md`)
- Studio interface → Async dispatcher: starts dispatch (evidence: `README.md`)
- Async dispatcher → SMTP server: sends email (evidence: `README.md`)
- Async dispatcher → Activity log: reports activity (evidence: `README.md`)
