# technicalheadquarter/seeker architecture

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

- Interactive diagram: https://gitdiagram.com/technicalheadquarter/seeker
- Repository: https://github.com/technicalheadquarter/seeker

## Overview

Seeker hosts a selected location-request page, optionally exposes it through Serveo, and processes the device and location data submitted by the page. Its main runtime stages are template selection, PHP hosting and tunneling, browser-side collection, PHP-backed capture, and console/export output. The README documents four page variants and location fallback behavior; sampled source confirms the runner, device-information submission, and IP reconnaissance. Some page-to-handler and location-data wiring is documented but not fully shown in the excerpts.

Main entry points: [`seeker.py`](https://github.com/technicalheadquarter/seeker/blob/main/seeker.py) (Seeker runner), [`template/nearyou`](https://github.com/technicalheadquarter/seeker/tree/main/template/nearyou) (NearYou page), [`template/nearyou/js/info.js`](https://github.com/technicalheadquarter/seeker/blob/main/template/nearyou/js/info.js) (Device collection), [`template/nearyou/js/location.js`](https://github.com/technicalheadquarter/seeker/blob/main/template/nearyou/js/location.js) (Location collection)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_runner["Runtime orchestration"]
  node_seeker["Seeker runner<br/>[seeker.py]"]
  node_serveo["Serveo tunnel"]
  node_phpserver["PHP web server"]
end

subgraph group_templates["Capture templates"]
  node_templatepicker["Template picker<br/>[templates.json]"]
  node_nearyou["NearYou page"]
  node_gdrive["Drive page"]
  node_telegram["Telegram page"]
  node_whatsapp["WhatsApp page"]
end

subgraph group_collection["Browser collection"]
  node_devicejs["Device collection<br/>[info.js]"]
  node_locationjs["Location collection<br/>[location.js]"]
  node_infohandler["Device handler<br/>[info.php]"]
  node_locationhandler["Location handler<br/>[result.php]"]
end

subgraph group_results["Result processing"]
  node_infostore[("Device data<br/>[info.txt]")]
  node_locationstore[("Location data<br/>[result.txt]")]
  node_iplookup["IP reconnaissance"]
  node_csv[("CSV results<br/>[results.csv]")]
  node_kml["KML export<br/>[sample.kml]"]
end

node_operator(("Operator"))

node_operator -->|"starts"| node_seeker
node_seeker -->|"selects"| node_templatepicker
node_seeker -->|"starts tunnel"| node_serveo
node_seeker -->|"starts server"| node_phpserver
node_phpserver -->|"serves page"| node_nearyou
node_phpserver -.->|"serves page"| node_gdrive
node_phpserver -.->|"serves page"| node_telegram
node_phpserver -.->|"serves page"| node_whatsapp
node_nearyou -.->|"loads script"| node_devicejs
node_nearyou -.->|"loads script"| node_locationjs
node_devicejs -->|"posts data"| node_infohandler
node_locationjs -.->|"submits location"| node_locationhandler
node_infohandler -->|"writes data"| node_infostore
node_locationhandler -.->|"writes location"| node_locationstore
node_seeker -->|"reads data"| node_infostore
node_seeker -->|"reads location"| node_locationstore
node_seeker -->|"requests lookup"| node_iplookup
node_iplookup -->|"returns details"| node_seeker
node_seeker -->|"appends results"| node_csv
node_seeker -->|"uses sample"| node_kml

click node_seeker "https://github.com/technicalheadquarter/seeker/blob/main/seeker.py"
click node_templatepicker "https://github.com/technicalheadquarter/seeker/blob/main/template/templates.json"
click node_nearyou "https://github.com/technicalheadquarter/seeker/tree/main/template/nearyou"
click node_gdrive "https://github.com/technicalheadquarter/seeker/tree/main/template/gdrive"
click node_telegram "https://github.com/technicalheadquarter/seeker/tree/main/template/telegram"
click node_whatsapp "https://github.com/technicalheadquarter/seeker/tree/main/template/whatsapp"
click node_devicejs "https://github.com/technicalheadquarter/seeker/blob/main/template/nearyou/js/info.js"
click node_locationjs "https://github.com/technicalheadquarter/seeker/blob/main/template/nearyou/js/location.js"
click node_infohandler "https://github.com/technicalheadquarter/seeker/blob/main/template/nearyou/php/info.php"
click node_locationhandler "https://github.com/technicalheadquarter/seeker/blob/main/template/nearyou/php/result.php"
click node_infostore "https://github.com/technicalheadquarter/seeker/blob/main/template/nearyou/php/info.txt"
click node_locationstore "https://github.com/technicalheadquarter/seeker/blob/main/template/nearyou/php/result.txt"
click node_csv "https://github.com/technicalheadquarter/seeker/blob/main/db/results.csv"
click node_kml "https://github.com/technicalheadquarter/seeker/blob/main/template/sample.kml"

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_seeker,node_serveo,node_phpserver toneBlue
class node_templatepicker,node_nearyou,node_gdrive,node_telegram,node_whatsapp toneAmber
class node_devicejs,node_locationjs,node_infohandler,node_locationhandler toneMint
class node_infostore,node_locationstore,node_iplookup,node_csv,node_kml toneRose
class node_operator toneIndigo
```

## Components

### Runtime orchestration

- [Seeker runner](https://github.com/technicalheadquarter/seeker/blob/main/seeker.py): `seeker.py`
- **Serveo tunnel**
- **PHP web server**

### Capture templates

- [Template picker](https://github.com/technicalheadquarter/seeker/blob/main/template/templates.json): `template/templates.json`
- [NearYou page](https://github.com/technicalheadquarter/seeker/tree/main/template/nearyou): `template/nearyou`
- [Drive page](https://github.com/technicalheadquarter/seeker/tree/main/template/gdrive): `template/gdrive`
- [Telegram page](https://github.com/technicalheadquarter/seeker/tree/main/template/telegram): `template/telegram`
- [WhatsApp page](https://github.com/technicalheadquarter/seeker/tree/main/template/whatsapp): `template/whatsapp`

### Browser collection

- [Device collection](https://github.com/technicalheadquarter/seeker/blob/main/template/nearyou/js/info.js): `template/nearyou/js/info.js`
- [Location collection](https://github.com/technicalheadquarter/seeker/blob/main/template/nearyou/js/location.js): `template/nearyou/js/location.js`
- [Device handler](https://github.com/technicalheadquarter/seeker/blob/main/template/nearyou/php/info.php): `template/nearyou/php/info.php`
- [Location handler](https://github.com/technicalheadquarter/seeker/blob/main/template/nearyou/php/result.php): `template/nearyou/php/result.php`

### Result processing

- [Device data](https://github.com/technicalheadquarter/seeker/blob/main/template/nearyou/php/info.txt): `template/nearyou/php/info.txt`
- [Location data](https://github.com/technicalheadquarter/seeker/blob/main/template/nearyou/php/result.txt): `template/nearyou/php/result.txt`
- **IP reconnaissance**
- [CSV results](https://github.com/technicalheadquarter/seeker/blob/main/db/results.csv): `db/results.csv`
- [KML export](https://github.com/technicalheadquarter/seeker/blob/main/template/sample.kml): `template/sample.kml`

### Other components

- **Operator**

## Connections

- Operator → Seeker runner: starts (evidence: `README.md`)
- Seeker runner → Template picker: selects (evidence: `seeker.py`)
- Seeker runner → Serveo tunnel: starts tunnel (evidence: `seeker.py`)
- Seeker runner → PHP web server: starts server (evidence: `seeker.py`)
- PHP web server → NearYou page: serves page
- PHP web server → Drive page: serves page (evidence: `README.md`)
- PHP web server → Telegram page: serves page (evidence: `README.md`)
- PHP web server → WhatsApp page: serves page (evidence: `README.md`)
- NearYou page → Device collection: loads script (evidence: `README.md`)
- NearYou page → Location collection: loads script (evidence: `README.md`)
- Device collection → Device handler: posts data (evidence: `template/nearyou/js/info.js`)
- Location collection → Location handler: submits location (evidence: `README.md`)
- Device handler → Device data: writes data (evidence: `template/nearyou/php/info.php`)
- Location handler → Location data: writes location (evidence: `README.md`)
- Seeker runner → Device data: reads data (evidence: `seeker.py`)
- Seeker runner → Location data: reads location (evidence: `seeker.py`)
- Seeker runner → IP reconnaissance: requests lookup (evidence: `seeker.py`)
- IP reconnaissance → Seeker runner: returns details (evidence: `seeker.py`)
- Seeker runner → CSV results: appends results (evidence: `seeker.py`)
- Seeker runner → KML export: uses sample (evidence: `seeker.py`)
