# groww-oss/appollo architecture

> Architecture diagram of the GitHub repository groww-oss/appollo, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2025-08-09). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/groww-oss/appollo
- Repository: https://github.com/groww-oss/appollo

## Overview

##### Project Type and Purpose
- Appollo is primarily a CLI-driven security reconnaissance and continuous attack-surface testing tool written in Python, with a lightweight Appsmith-based dashboard for visualizing stored results.
- Its purpose is to orchestrate multiple sub-scans (DNS/subdomain monitoring, SSL checks, port scans, endpoint fuzzing, CVE scans, historical data analysis, technology fingerprinting), aggregate results in MongoDB, and push alerts into Slack/Jira.

##### File Structure
- Top‐level files:
- Dockerfile / .dockerignore → containerization
- requirements.txt → Python dependencies
- README.md / CONTRIBUTe.md → documentation & contribution guidelines
- .gitignore / .env.sample → environment config
- src/
- appollo.py → main CLI entrypoint and orchestration
- banner.py → UX utility (console banner)
- modules/ → plugin-style scan modules (cloudflare, gcp, portscan, ssl_checker, nuclei, wayback, technology, endpoints)
- system/ → core services (db connection in db.py, shared utilities in utils.py)
- dashboard/ → Appsmith JSON config for the UI
- images/, poc/ → assets & proof-of-concept video

##### Architecture Summary from README
- Orchestration Layer (CLI) →
- Multiple Scan Modules →
- External Services & Binaries (nuclei, naabu, ffuf, gau, tlsx, BuiltWith, Cloudflare API, GCP SDK) →
- MongoDB Data Store →
- Notification Hooks (Slack webhook, Jira API) →
- Dashboard UI (Appsmith)

## Diagram (Mermaid)

```mermaid
flowchart TB
    %% Orchestration Layer
    subgraph "Orchestration Layer"
        direction TB
        Orchestrator["CLI Orchestrator\n(appollo.py)"]:::core
        Banner["Banner Utility\n(banner.py)"]:::core
        Orchestrator -->|invokes| Banner
    end

    %% Module Layer
    subgraph "Module Layer"
        direction TB
        CF["Module: Cloudflare\n(cloudflare.py)"]:::core
        GCP["Module: GCP\n(gcp.py)"]:::core
        Port["Module: Portscan\n(portscan.py)"]:::core
        SSL["Module: SSL Checker\n(ssl_checker.py)"]:::core
        Nuc["Module: Nuclei\n(nuclei.py)"]:::core
        Way["Module: Wayback\n(wayback.py)"]:::core
        Tech["Module: Technology\n(technology.py)"]:::core
        Endp["Module: Endpoints\n(endpoints.py)"]:::core
    end

    %% Core Services
    subgraph "Core Services"
        direction TB
        Utils["Utility Layer\n(utils.py)"]:::core
        DBLayer["DB Connector\n(db.py)"]:::db
    end

    %% External Dependencies
    subgraph "External Binaries & APIs"
        direction TB
        subgraph "Local Binaries"
            direction TB
            Bin1["nuclei"]:::bin
            Bin2["naabu"]:::bin
            Bin3["ffuf"]:::bin
            Bin4["gau"]:::bin
            Bin5["tlsx"]:::bin
        end
        subgraph "External APIs"
            direction TB
            BWAPI["BuiltWith API"]:::ext
            CFAPI["Cloudflare API"]:::ext
            GCPAPI["GCP SDK"]:::ext
        end
    end

    %% Persistence Layer
    Mongo["MongoDB"]:::db

    %% Notification Services
    subgraph "Notifications"
        direction TB
        Slack["Slack Webhook"]:::ext
        Jira["Jira API"]:::ext
    end

    %% Presentation Layer
    AppUI["Appsmith Dashboard\n(Appollo.json)"]:::ui

    %% Configuration & Deployment
    subgraph "Config & Deployment"
        direction TB
        Env[".env.sample"]:::config
        Dock["Dockerfile"]:::config
        DockIgnore[".dockerignore"]:::config
        Req["requirements.txt"]:::config
        Readme["README.md"]:::config
        Contrib["CONTRIBUTE.md"]:::config
    end

    %% Data Flows
    Orchestrator -->|"loads .env"| Env
    Orchestrator -->|"dispatches to modules"| CF & GCP & Port & SSL & Nuc & Way & Tech & Endp
    CF -->|uses| CFAPI
    GCP -->|uses| GCPAPI
    Port -->|invokes| Bin2
    SSL -->|invokes| Bin5
    Nuc -->|invokes| Bin1
    Way -->|invokes| Bin4
    Endp -->|invokes| Bin3
    Tech -->|uses| BWAPI
    CF & GCP & Port & SSL & Nuc & Way & Tech & Endp -->|persist results via| DBLayer
    DBLayer -->|writes to| Mongo
    Orchestrator -->|triggers| Slack & Jira
    AppUI -->|reads from| Mongo

    %% Core utils link
    CF & GCP & Port & SSL & Nuc & Way & Tech & Endp --> Utils
    Orchestrator --> Utils

    %% Click Events
    click Orchestrator "https://github.com/groww-oss/appollo/blob/main/src/appollo.py"
    click Banner "https://github.com/groww-oss/appollo/blob/main/src/banner.py"
    click CF "https://github.com/groww-oss/appollo/blob/main/src/modules/cloudflare.py"
    click GCP "https://github.com/groww-oss/appollo/blob/main/src/modules/gcp.py"
    click Port "https://github.com/groww-oss/appollo/blob/main/src/modules/portscan.py"
    click SSL "https://github.com/groww-oss/appollo/blob/main/src/modules/ssl_checker.py"
    click Nuc "https://github.com/groww-oss/appollo/blob/main/src/modules/nuclei.py"
    click Way "https://github.com/groww-oss/appollo/blob/main/src/modules/wayback.py"
    click Tech "https://github.com/groww-oss/appollo/blob/main/src/modules/technology.py"
    click Endp "https://github.com/groww-oss/appollo/blob/main/src/modules/endpoints.py"
    click DBLayer "https://github.com/groww-oss/appollo/blob/main/src/system/db.py"
    click Utils "https://github.com/groww-oss/appollo/blob/main/src/system/utils.py"
    click AppUI "https://github.com/groww-oss/appollo/blob/main/src/dashboard/Appollo.json"
    click Env "https://github.com/groww-oss/appollo/blob/main/src/.env.sample"
    click Dock "https://github.com/groww-oss/appollo/tree/main/Dockerfile"
    click DockIgnore "https://github.com/groww-oss/appollo/blob/main/.dockerignore"
    click Req "https://github.com/groww-oss/appollo/blob/main/requirements.txt"
    click Readme "https://github.com/groww-oss/appollo/blob/main/README.md"
    click Contrib "https://github.com/groww-oss/appollo/blob/main/CONTRIBUTE.md"

    %% Styles
    classDef core fill:#cce5ff,stroke:#004085,color:#004085;
    classDef ext fill:#d4edda,stroke:#155724,color:#155724;
    classDef db fill:#fff3cd,stroke:#856404,color:#856404;
    classDef ui fill:#e2e3e5,stroke:#6c757d,color:#6c757d;
    classDef config fill:#f8f9fa,stroke:#343a40,color:#343a40;
    classDef bin fill:#d1ecf1,stroke:#0c5460,color:#0c5460;
```
