# spyschools/osint-indonesia-v3 architecture

> Architecture diagram of the GitHub repository spyschools/osint-indonesia-v3, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-12-05). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/spyschools/osint-indonesia-v3
- Repository: https://github.com/spyschools/osint-indonesia-v3

## Overview

OSINT Indonesia V3 accepts NIK and Indonesian phone-number targets, parses available identifying details, searches public Google results concurrently, and writes an HTML report. The scanner is the documented user entry point; the builder is a separate repository utility that fetches regional-code data and generates the scanner. Relationships come from the shown source and README; unsampled builder details and the ZIP’s role are not inferred.

Main entry points: [`osint_v3.py`](https://github.com/spyschools/osint-indonesia-v3/blob/main/osint_v3.py) (Target dispatch), [`osint_builder.py`](https://github.com/spyschools/osint-indonesia-v3/blob/main/osint_builder.py) (Region data builder), [`kode_wilayah.json`](https://github.com/spyschools/osint-indonesia-v3/blob/main/kode_wilayah.json) (Region codes)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_workflow["Scanner workflow"]
  node_entry["CLI entry<br/>[osint_v3.py]"]
  node_target_dispatch["Target dispatch<br/>[osint_v3.py]"]
end

subgraph group_parsing["Target parsing"]
  node_nik_parser["NIK parser<br/>[osint_v3.py]"]
  node_phone_parser["Phone parser<br/>[osint_v3.py]"]
  node_region_data[("Region codes<br/>[kode_wilayah.json]")]
end

subgraph group_search["Search and reports"]
  node_dork_scheduler["Dork scheduler<br/>[osint_v3.py]"]
  node_google_scraper["Google scraper<br/>[osint_v3.py]"]
  node_report_writer["HTML report writer<br/>[osint_v3.py]"]
end

subgraph group_builder["Data builder"]
  node_builder["Region data builder<br/>[osint_builder.py]"]
  node_scanner_generator["Scanner generator<br/>[osint_builder.py]"]
end

node_user(("CLI user"))
node_google["Google Search"]
node_report_file["HTML report"]
node_browser(("Browser user"))
node_regions_api["Wilayah API"]

node_user -->|"provides targets"| node_entry
node_entry -->|"submits targets"| node_target_dispatch
node_target_dispatch -->|"parses NIK"| node_nik_parser
node_target_dispatch -->|"parses phone"| node_phone_parser
node_nik_parser -->|"reads codes"| node_region_data
node_target_dispatch -->|"searches targets"| node_dork_scheduler
node_dork_scheduler -->|"dispatches queries"| node_google_scraper
node_google_scraper -->|"requests results"| node_google
node_entry -->|"writes entries"| node_report_writer
node_report_writer -->|"generates HTML"| node_report_file
node_browser -->|"opens report"| node_report_file
node_builder -->|"fetches regions"| node_regions_api
node_builder -->|"writes codes"| node_region_data
node_builder -->|"generates scanner"| node_scanner_generator

click node_entry "https://github.com/spyschools/osint-indonesia-v3/blob/main/osint_v3.py"
click node_target_dispatch "https://github.com/spyschools/osint-indonesia-v3/blob/main/osint_v3.py"
click node_nik_parser "https://github.com/spyschools/osint-indonesia-v3/blob/main/osint_v3.py"
click node_phone_parser "https://github.com/spyschools/osint-indonesia-v3/blob/main/osint_v3.py"
click node_region_data "https://github.com/spyschools/osint-indonesia-v3/blob/main/kode_wilayah.json"
click node_dork_scheduler "https://github.com/spyschools/osint-indonesia-v3/blob/main/osint_v3.py"
click node_google_scraper "https://github.com/spyschools/osint-indonesia-v3/blob/main/osint_v3.py"
click node_report_writer "https://github.com/spyschools/osint-indonesia-v3/blob/main/osint_v3.py"
click node_builder "https://github.com/spyschools/osint-indonesia-v3/blob/main/osint_builder.py"
click node_scanner_generator "https://github.com/spyschools/osint-indonesia-v3/blob/main/osint_builder.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_entry,node_target_dispatch,node_user,node_browser toneBlue
class node_nik_parser,node_phone_parser,node_region_data toneAmber
class node_dork_scheduler,node_google_scraper,node_report_writer,node_regions_api toneMint
class node_builder,node_scanner_generator toneRose
class node_google,node_report_file toneIndigo
```

## Components

### Scanner workflow

- [CLI entry](https://github.com/spyschools/osint-indonesia-v3/blob/main/osint_v3.py): `osint_v3.py`
- [Target dispatch](https://github.com/spyschools/osint-indonesia-v3/blob/main/osint_v3.py): `osint_v3.py`

### Target parsing

- [NIK parser](https://github.com/spyschools/osint-indonesia-v3/blob/main/osint_v3.py): `osint_v3.py`
- [Phone parser](https://github.com/spyschools/osint-indonesia-v3/blob/main/osint_v3.py): `osint_v3.py`
- [Region codes](https://github.com/spyschools/osint-indonesia-v3/blob/main/kode_wilayah.json): `kode_wilayah.json`

### Search and reports

- [Dork scheduler](https://github.com/spyschools/osint-indonesia-v3/blob/main/osint_v3.py): `osint_v3.py`
- [Google scraper](https://github.com/spyschools/osint-indonesia-v3/blob/main/osint_v3.py): `osint_v3.py`
- [HTML report writer](https://github.com/spyschools/osint-indonesia-v3/blob/main/osint_v3.py): `osint_v3.py`

### Data builder

- [Region data builder](https://github.com/spyschools/osint-indonesia-v3/blob/main/osint_builder.py): `osint_builder.py`
- [Scanner generator](https://github.com/spyschools/osint-indonesia-v3/blob/main/osint_builder.py): `osint_builder.py`

### Other components

- **CLI user**
- **Google Search**
- **HTML report**
- **Browser user**
- **Wilayah API**

## Connections

- CLI user → CLI entry: provides targets (evidence: `README.md`)
- CLI entry → Target dispatch: submits targets (evidence: `osint_v3.py`)
- Target dispatch → NIK parser: parses NIK (evidence: `osint_v3.py`)
- Target dispatch → Phone parser: parses phone (evidence: `osint_v3.py`)
- NIK parser → Region codes: reads codes (evidence: `osint_v3.py`)
- Target dispatch → Dork scheduler: searches targets (evidence: `osint_v3.py`)
- Dork scheduler → Google scraper: dispatches queries (evidence: `osint_v3.py`)
- Google scraper → Google Search: requests results (evidence: `osint_v3.py`)
- CLI entry → HTML report writer: writes entries (evidence: `osint_v3.py`)
- HTML report writer → HTML report: generates HTML (evidence: `README.md`)
- Browser user → HTML report: opens report (evidence: `README.md`)
- Region data builder → Wilayah API: fetches regions (evidence: `osint_builder.py`)
- Region data builder → Region codes: writes codes (evidence: `osint_builder.py`)
- Region data builder → Scanner generator: generates scanner (evidence: `osint_builder.py`)
