# xnewt0/proxychecker architecture

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

- Interactive diagram: https://gitdiagram.com/xnewt0/proxychecker
- Repository: https://github.com/xnewt0/proxychecker

## Overview

Proxy Checker is a single-file async command-line tool. The user supplies a proxy-list file; the program parses entries, tests each across supported protocols and fallback endpoints under a concurrency limit, then reports results and saves working proxies. Parsing, checking, orchestration, and reporting are responsibilities within the same source file, not separate modules. The README documents the endpoint fallbacks and output behavior; implementation details are drawn from the excerpted source.

Main entry points: [`proxy_checker.py`](https://github.com/xnewt0/proxychecker/blob/main/proxy_checker.py) (Async runner)

## Diagram (Mermaid)

```mermaid
flowchart TD

node_user(("User"))
node_cli["CLI entry<br/>[proxy_checker.py]"]
node_input["Proxy input<br/>[proxy_checker.py]"]
node_parser["Line parser<br/>[proxy_checker.py]"]
node_runner["Async runner<br/>[proxy_checker.py]"]
node_checker["Proxy checker<br/>[proxy_checker.py]"]
node_protocols["Protocol tests<br/>[proxy_checker.py]"]
node_endpoints["Test endpoints"]
node_reporting["Live reporting<br/>[proxy_checker.py]"]
node_output["Results file<br/>[proxy_checker.py]"]

node_user -->|"runs"| node_cli
node_cli -->|"starts"| node_runner
node_runner -->|"reads"| node_input
node_runner -->|"parses lines"| node_parser
node_runner -->|"dispatches checks"| node_checker
node_checker -->|"tests protocols"| node_protocols
node_protocols -->|"requests"| node_endpoints
node_checker -->|"prints status"| node_reporting
node_runner -->|"writes results"| node_output
node_runner -->|"prints summary"| node_reporting

click node_cli "https://github.com/xnewt0/proxychecker/blob/main/proxy_checker.py"
click node_input "https://github.com/xnewt0/proxychecker/blob/main/proxy_checker.py"
click node_parser "https://github.com/xnewt0/proxychecker/blob/main/proxy_checker.py"
click node_runner "https://github.com/xnewt0/proxychecker/blob/main/proxy_checker.py"
click node_checker "https://github.com/xnewt0/proxychecker/blob/main/proxy_checker.py"
click node_protocols "https://github.com/xnewt0/proxychecker/blob/main/proxy_checker.py"
click node_reporting "https://github.com/xnewt0/proxychecker/blob/main/proxy_checker.py"
click node_output "https://github.com/xnewt0/proxychecker/blob/main/proxy_checker.py"

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_user toneBlue
class node_cli,node_input,node_parser,node_runner,node_checker,node_protocols,node_reporting,node_output toneTeal
class node_endpoints toneIndigo
```

## Components

### Other components

- **User**
- [CLI entry](https://github.com/xnewt0/proxychecker/blob/main/proxy_checker.py): `proxy_checker.py`
- [Proxy input](https://github.com/xnewt0/proxychecker/blob/main/proxy_checker.py): `proxy_checker.py`
- [Line parser](https://github.com/xnewt0/proxychecker/blob/main/proxy_checker.py): `proxy_checker.py`
- [Async runner](https://github.com/xnewt0/proxychecker/blob/main/proxy_checker.py): `proxy_checker.py`
- [Proxy checker](https://github.com/xnewt0/proxychecker/blob/main/proxy_checker.py): `proxy_checker.py`
- [Protocol tests](https://github.com/xnewt0/proxychecker/blob/main/proxy_checker.py): `proxy_checker.py`
- **Test endpoints**
- [Live reporting](https://github.com/xnewt0/proxychecker/blob/main/proxy_checker.py): `proxy_checker.py`
- [Results file](https://github.com/xnewt0/proxychecker/blob/main/proxy_checker.py): `proxy_checker.py`

## Connections

- User → CLI entry: runs (evidence: `README.md`)
- CLI entry → Async runner: starts (evidence: `proxy_checker.py`)
- Async runner → Proxy input: reads (evidence: `proxy_checker.py`)
- Async runner → Line parser: parses lines (evidence: `proxy_checker.py`)
- Async runner → Proxy checker: dispatches checks (evidence: `proxy_checker.py`)
- Proxy checker → Protocol tests: tests protocols (evidence: `proxy_checker.py`)
- Protocol tests → Test endpoints: requests (evidence: `proxy_checker.py`)
- Proxy checker → Live reporting: prints status (evidence: `proxy_checker.py`)
- Async runner → Results file: writes results (evidence: `proxy_checker.py`)
- Async runner → Live reporting: prints summary (evidence: `proxy_checker.py`)
