# rezosolver/rezo-gen architecture

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

- Interactive diagram: https://gitdiagram.com/rezosolver/rezo-gen
- Repository: https://github.com/rezosolver/rezo-gen

## Overview

Rezo Discord Gen automates account registration: a user starts the generator, which obtains an email and proxy, prepares a Discord session, handles registration challenges through Rezo Solver, and optionally completes email verification before saving account results. Its documented capabilities also include concurrent workers, proxy rotation, live statistics, and keeping tokens online. The excerpts show the main orchestration and integrations; some internal steps are unsampled, so those connections are omitted rather than inferred.

Main entry points: [`main.py`](https://github.com/rezosolver/rezo-gen/blob/main/main.py) (Worker pool), [`mail.py`](https://github.com/rezosolver/rezo-gen/blob/main/mail.py) (Mail client), [`solver_client.py`](https://github.com/rezosolver/rezo-gen/blob/main/solver_client.py) (Solver client), [`input/config.json`](https://github.com/rezosolver/rezo-gen/blob/main/input/config.json) (Configuration)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_generation["Generation"]
  node_runner["Generator<br/>[main.py]"]
  node_worker["Worker pool<br/>[main.py]"]
  node_session["Session setup<br/>[main.py]"]
  node_fingerprint["Fingerprinting<br/>[main.py]"]
  node_registration["Registration<br/>[main.py]"]
  node_token_status["Token status<br/>[main.py]"]
end

subgraph group_verification["Verification"]
  node_captcha["Captcha handling<br/>[main.py]"]
  node_mailbox["Email inbox<br/>[mail.py]"]
  node_email_verification["Email verification<br/>[main.py]"]
end

subgraph group_operations["Operations"]
  node_proxy["Proxy manager<br/>[main.py]"]
  node_onliner["Background onliner<br/>[main.py]"]
  node_statistics["Live statistics<br/>[main.py]"]
  node_account_output["Account results<br/>[valid.txt]"]
  node_config["Configuration<br/>[config.json]"]
  node_proxy_file["Proxy list<br/>[proxies.txt]"]
end

subgraph group_integrations["Integrations"]
  node_solver["Solver client<br/>[solver_client.py]"]
  node_mail_client["Mail client<br/>[mail.py]"]
end

node_user(("Operator"))
node_discord["Discord"]
node_solver_service["Rezo Solver"]
node_mail_service["Freecustom Email"]

node_user -->|"starts"| node_runner
node_runner -->|"launches"| node_worker
node_worker -->|"gets proxy"| node_proxy
node_proxy_file -->|"reads"| node_proxy
node_worker -->|"creates email"| node_mail_client
node_mail_client -->|"requests inbox"| node_mail_service
node_mail_client -->|"polls messages"| node_mailbox
node_worker -->|"starts registration"| node_session
node_session -->|"fetches session data"| node_discord
node_session -->|"prepares fingerprint"| node_fingerprint
node_registration -->|"submits account"| node_discord
node_registration -->|"handles challenge"| node_captcha
node_captcha -->|"requests solve"| node_solver
node_solver -->|"creates and polls task"| node_solver_service
node_email_verification -->|"gets verify link"| node_mail_client
node_email_verification -->|"submits verification"| node_discord
node_worker -->|"checks token"| node_token_status
node_worker -->|"saves account"| node_account_output
node_config -->|"configures services"| node_runner
node_runner -->|"updates stats"| node_statistics
node_worker -->|"starts background task"| node_onliner
node_onliner -->|"connects gateway"| node_discord

click node_runner "https://github.com/rezosolver/rezo-gen/blob/main/main.py"
click node_worker "https://github.com/rezosolver/rezo-gen/blob/main/main.py"
click node_proxy "https://github.com/rezosolver/rezo-gen/blob/main/main.py"
click node_session "https://github.com/rezosolver/rezo-gen/blob/main/main.py"
click node_fingerprint "https://github.com/rezosolver/rezo-gen/blob/main/main.py"
click node_registration "https://github.com/rezosolver/rezo-gen/blob/main/main.py"
click node_captcha "https://github.com/rezosolver/rezo-gen/blob/main/main.py"
click node_solver "https://github.com/rezosolver/rezo-gen/blob/main/solver_client.py"
click node_mail_client "https://github.com/rezosolver/rezo-gen/blob/main/mail.py"
click node_mailbox "https://github.com/rezosolver/rezo-gen/blob/main/mail.py"
click node_email_verification "https://github.com/rezosolver/rezo-gen/blob/main/main.py"
click node_token_status "https://github.com/rezosolver/rezo-gen/blob/main/main.py"
click node_onliner "https://github.com/rezosolver/rezo-gen/blob/main/main.py"
click node_statistics "https://github.com/rezosolver/rezo-gen/blob/main/main.py"
click node_account_output "https://github.com/rezosolver/rezo-gen/blob/main/output/valid.txt"
click node_config "https://github.com/rezosolver/rezo-gen/blob/main/input/config.json"
click node_proxy_file "https://github.com/rezosolver/rezo-gen/blob/main/input/proxies.txt"

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_runner,node_worker,node_session,node_fingerprint,node_registration,node_token_status toneBlue
class node_captcha,node_mailbox,node_email_verification toneAmber
class node_proxy,node_onliner,node_statistics,node_account_output,node_config,node_proxy_file toneMint
class node_solver,node_mail_client toneRose
class node_user,node_discord,node_solver_service,node_mail_service toneIndigo
```

## Components

### Generation

- [Generator](https://github.com/rezosolver/rezo-gen/blob/main/main.py): `main.py`
- [Worker pool](https://github.com/rezosolver/rezo-gen/blob/main/main.py): `main.py`
- [Session setup](https://github.com/rezosolver/rezo-gen/blob/main/main.py): `main.py`
- [Fingerprinting](https://github.com/rezosolver/rezo-gen/blob/main/main.py): `main.py`
- [Registration](https://github.com/rezosolver/rezo-gen/blob/main/main.py): `main.py`
- [Token status](https://github.com/rezosolver/rezo-gen/blob/main/main.py): `main.py`

### Verification

- [Captcha handling](https://github.com/rezosolver/rezo-gen/blob/main/main.py): `main.py`
- [Email inbox](https://github.com/rezosolver/rezo-gen/blob/main/mail.py): `mail.py`
- [Email verification](https://github.com/rezosolver/rezo-gen/blob/main/main.py): `main.py`

### Operations

- [Proxy manager](https://github.com/rezosolver/rezo-gen/blob/main/main.py): `main.py`
- [Background onliner](https://github.com/rezosolver/rezo-gen/blob/main/main.py): `main.py`
- [Live statistics](https://github.com/rezosolver/rezo-gen/blob/main/main.py): `main.py`
- [Account results](https://github.com/rezosolver/rezo-gen/blob/main/output/valid.txt): `output/valid.txt`
- [Configuration](https://github.com/rezosolver/rezo-gen/blob/main/input/config.json): `input/config.json`
- [Proxy list](https://github.com/rezosolver/rezo-gen/blob/main/input/proxies.txt): `input/proxies.txt`

### Integrations

- [Solver client](https://github.com/rezosolver/rezo-gen/blob/main/solver_client.py): `solver_client.py`
- [Mail client](https://github.com/rezosolver/rezo-gen/blob/main/mail.py): `mail.py`

### Other components

- **Operator**
- **Discord**
- **Rezo Solver**
- **Freecustom Email**

## Connections

- Operator → Generator: starts (evidence: `README.md`)
- Generator → Worker pool: launches (evidence: `main.py`)
- Worker pool → Proxy manager: gets proxy (evidence: `main.py`)
- Proxy list → Proxy manager: reads (evidence: `main.py`)
- Worker pool → Mail client: creates email (evidence: `main.py`)
- Mail client → Freecustom Email: requests inbox (evidence: `mail.py`)
- Mail client → Email inbox: polls messages (evidence: `mail.py`)
- Worker pool → Session setup: starts registration (evidence: `main.py`)
- Session setup → Discord: fetches session data (evidence: `main.py`)
- Session setup → Fingerprinting: prepares fingerprint (evidence: `main.py`)
- Registration → Discord: submits account (evidence: `main.py`)
- Registration → Captcha handling: handles challenge (evidence: `main.py`)
- Captcha handling → Solver client: requests solve (evidence: `main.py`)
- Solver client → Rezo Solver: creates and polls task (evidence: `solver_client.py`)
- Email verification → Mail client: gets verify link (evidence: `main.py`)
- Email verification → Discord: submits verification (evidence: `main.py`)
- Worker pool → Token status: checks token (evidence: `main.py`)
- Worker pool → Account results: saves account (evidence: `main.py`)
- Configuration → Generator: configures services (evidence: `main.py`)
- Generator → Live statistics: updates stats (evidence: `main.py`)
- Worker pool → Background onliner: starts background task (evidence: `main.py`)
- Background onliner → Discord: connects gateway (evidence: `main.py`)
