# devendervermaa/insta-reporter-dev architecture

> Architecture diagram of the GitHub repository devendervermaa/insta-reporter-dev, 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/devendervermaa/insta-reporter-dev
- Repository: https://github.com/devendervermaa/insta-reporter-dev

## Overview

InstaReporter has two distinct user-facing workflows: a CLI that selects profile or video reports, optionally sources proxies, and dispatches reporting requests; and a Streamlit dashboard that creates report records in session state without executing reports. The CLI’s request flow is visible in excerpts, while some module behavior is only partially sampled. The README is empty, so capability coverage relies on the supplied source excerpts and index.

Main entry points: [`streamlit_app.py`](https://github.com/devendervermaa/insta-reporter-dev/blob/main/streamlit_app.py) (Dashboard form), [`InstaReporter.py`](https://github.com/devendervermaa/insta-reporter-dev/blob/main/InstaReporter.py) (CLI entry), [`libbs/attack.py`](https://github.com/devendervermaa/insta-reporter-dev/blob/main/libbs/attack.py) (Report requests), [`libbs/proxy_harvester.py`](https://github.com/devendervermaa/insta-reporter-dev/blob/main/libbs/proxy_harvester.py) (Proxy harvester)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_cli["CLI coordination"]
  node_cli["CLI entry<br/>[InstaReporter.py]"]
  node_report_choice["Report selection<br/>[InstaReporter.py]"]
  node_proxy_choice["Proxy selection<br/>[InstaReporter.py]"]
  node_proxy_file["Proxy file parser<br/>[utils.py]"]
  node_proxy_harvester["Proxy harvester<br/>[proxy_harvester.py]"]
  node_workers["Process workers<br/>[InstaReporter.py]"]
end

subgraph group_runtime["Reporting runtime"]
  node_report_engine["Report requests<br/>[attack.py]"]
  node_user_agents[("User-agent list<br/>[user_agents.py]")]
end

subgraph group_dashboard["Record dashboard"]
  node_dashboard_ui["Dashboard form<br/>[streamlit_app.py]"]
  node_report_record["Report record<br/>[streamlit_app.py]"]
  node_session_history[("Session history<br/>[streamlit_app.py]")]
end

node_operator(("Operator"))
node_proxybroker["ProxyBroker"]
node_report_target["Facebook and Instagram"]
node_dashboard_user(("Dashboard user"))

node_operator -->|"starts"| node_cli
node_cli -->|"asks proxy"| node_proxy_choice
node_cli -->|"asks report"| node_report_choice
node_proxy_choice -->|"collects proxies"| node_proxy_harvester
node_proxy_choice -->|"parses file"| node_proxy_file
node_proxy_harvester -->|"requests proxies"| node_proxybroker
node_report_choice -->|"starts workers"| node_workers
node_workers -->|"calls report"| node_report_engine
node_report_engine -->|"gets agent"| node_user_agents
node_report_engine -->|"sends report requests"| node_report_target
node_dashboard_user -->|"enters details"| node_dashboard_ui
node_dashboard_ui -->|"creates record"| node_report_record
node_dashboard_ui -->|"updates history"| node_session_history
node_session_history -->|"renders activity"| node_dashboard_ui

click node_cli "https://github.com/devendervermaa/insta-reporter-dev/blob/main/InstaReporter.py"
click node_report_choice "https://github.com/devendervermaa/insta-reporter-dev/blob/main/InstaReporter.py"
click node_proxy_choice "https://github.com/devendervermaa/insta-reporter-dev/blob/main/InstaReporter.py"
click node_proxy_file "https://github.com/devendervermaa/insta-reporter-dev/blob/main/libbs/utils.py"
click node_proxy_harvester "https://github.com/devendervermaa/insta-reporter-dev/blob/main/libbs/proxy_harvester.py"
click node_workers "https://github.com/devendervermaa/insta-reporter-dev/blob/main/InstaReporter.py"
click node_report_engine "https://github.com/devendervermaa/insta-reporter-dev/blob/main/libbs/attack.py"
click node_user_agents "https://github.com/devendervermaa/insta-reporter-dev/blob/main/libbs/user_agents.py"
click node_dashboard_ui "https://github.com/devendervermaa/insta-reporter-dev/blob/main/streamlit_app.py"
click node_report_record "https://github.com/devendervermaa/insta-reporter-dev/blob/main/streamlit_app.py"
click node_session_history "https://github.com/devendervermaa/insta-reporter-dev/blob/main/streamlit_app.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_cli,node_report_choice,node_proxy_choice,node_proxy_file,node_proxy_harvester,node_workers,node_dashboard_user toneBlue
class node_report_engine,node_user_agents toneAmber
class node_dashboard_ui,node_report_record,node_session_history toneMint
class node_operator,node_proxybroker,node_report_target toneIndigo
```

## Components

### CLI coordination

- [CLI entry](https://github.com/devendervermaa/insta-reporter-dev/blob/main/InstaReporter.py): `InstaReporter.py`
- [Report selection](https://github.com/devendervermaa/insta-reporter-dev/blob/main/InstaReporter.py): `InstaReporter.py`
- [Proxy selection](https://github.com/devendervermaa/insta-reporter-dev/blob/main/InstaReporter.py): `InstaReporter.py`
- [Proxy file parser](https://github.com/devendervermaa/insta-reporter-dev/blob/main/libbs/utils.py): `libbs/utils.py`
- [Proxy harvester](https://github.com/devendervermaa/insta-reporter-dev/blob/main/libbs/proxy_harvester.py): `libbs/proxy_harvester.py`
- [Process workers](https://github.com/devendervermaa/insta-reporter-dev/blob/main/InstaReporter.py): `InstaReporter.py`

### Reporting runtime

- [Report requests](https://github.com/devendervermaa/insta-reporter-dev/blob/main/libbs/attack.py): `libbs/attack.py`
- [User-agent list](https://github.com/devendervermaa/insta-reporter-dev/blob/main/libbs/user_agents.py): `libbs/user_agents.py`

### Record dashboard

- [Dashboard form](https://github.com/devendervermaa/insta-reporter-dev/blob/main/streamlit_app.py): `streamlit_app.py`
- [Report record](https://github.com/devendervermaa/insta-reporter-dev/blob/main/streamlit_app.py): `streamlit_app.py`
- [Session history](https://github.com/devendervermaa/insta-reporter-dev/blob/main/streamlit_app.py): `streamlit_app.py`

### Other components

- **Operator**
- **ProxyBroker**
- **Facebook and Instagram**
- **Dashboard user**

## Connections

- Operator → CLI entry: starts (evidence: `InstaReporter.py`)
- CLI entry → Proxy selection: asks proxy (evidence: `InstaReporter.py`)
- CLI entry → Report selection: asks report (evidence: `InstaReporter.py`)
- Proxy selection → Proxy harvester: collects proxies (evidence: `InstaReporter.py`)
- Proxy selection → Proxy file parser: parses file (evidence: `InstaReporter.py`)
- Proxy harvester → ProxyBroker: requests proxies (evidence: `libbs/proxy_harvester.py`)
- Report selection → Process workers: starts workers (evidence: `InstaReporter.py`)
- Process workers → Report requests: calls report (evidence: `InstaReporter.py`)
- Report requests → User-agent list: gets agent (evidence: `libbs/attack.py`)
- Report requests → Facebook and Instagram: sends report requests (evidence: `libbs/attack.py`)
- Dashboard user → Dashboard form: enters details (evidence: `streamlit_app.py`)
- Dashboard form → Report record: creates record (evidence: `streamlit_app.py`)
- Dashboard form → Session history: updates history (evidence: `streamlit_app.py`)
- Session history → Dashboard form: renders activity (evidence: `streamlit_app.py`)
