# nilesh07g/geo-auditor architecture

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

- Interactive diagram: https://gitdiagram.com/nilesh07g/geo-auditor
- Repository: https://github.com/nilesh07g/geo-auditor

## Overview

GEO Auditor takes a business URL, crawls a small set of key pages, evaluates four AI-extraction readiness checks, combines their findings into a weighted score and action plan, and presents an exportable report. The README documents the four check domains and the limited crawl scope. The API and frontend call paths are excerpted; some UI and scoring details are supported only by the source index, so the graph avoids inferring unshown internal calls.

Main entry points: [`frontend/src/App.tsx`](https://github.com/nilesh07g/geo-auditor/blob/master/frontend/src/App.tsx) (Audit UI), [`backend/main.py`](https://github.com/nilesh07g/geo-auditor/blob/master/backend/main.py) (Audit API), [`frontend/src/components`](https://github.com/nilesh07g/geo-auditor/tree/master/frontend/src/components) (Report views), [`frontend/src/types/audit.ts`](https://github.com/nilesh07g/geo-auditor/blob/master/frontend/src/types/audit.ts) (Frontend audit types)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_frontend["Audit interface"]
  node_ui["Audit UI<br/>[App.tsx]"]
  node_urlform["URL input<br/>[UrlInput.tsx]"]
  node_progress["Progress display<br/>[AuditProgress.tsx]"]
  node_report["Report views"]
  node_findings["Finding cards<br/>[FindingCard.tsx]"]
  node_actions["Action plan view<br/>[ActionPlan.tsx]"]
  node_methodology["Methodology view"]
  node_probe["Visibility probe UI"]
  node_export["HTML export<br/>[exportHtml.ts]"]
  node_mockdata["Mock audit data<br/>[mockAudit.ts]"]
  node_types["Frontend audit types<br/>[audit.ts]"]
end

subgraph group_api["Audit orchestration"]
  node_api["Audit API<br/>[main.py]"]
end

subgraph group_crawl["Crawl and parsing"]
  node_fetch["Site fetcher<br/>[fetcher.py]"]
  node_parser["Page parser<br/>[parser.py]"]
end

subgraph group_checks["Readiness checks"]
  node_crawlercheck["Crawler access check<br/>[crawler_access.py]"]
  node_entitycheck["Entity clarity check<br/>[entity_clarity.py]"]
  node_schemacheck["Structured data check<br/>[structured_data.py]"]
  node_answercheck["Answer-ready check<br/>[answer_ready.py]"]
end

subgraph group_results["Scoring and results"]
  node_models["Audit data models<br/>[models.py]"]
  node_scoring["Weighted scoring<br/>[scoring.py]"]
end

node_business(("Business user"))

node_business -->|"enters URL"| node_urlform
node_urlform -->|"submits URL"| node_ui
node_ui -->|"shows progress"| node_progress
node_ui -->|"POSTs audit"| node_api
node_api -->|"crawls site"| node_fetch
node_fetch -->|"parses pages"| node_parser
node_api -->|"evaluates access"| node_crawlercheck
node_api -->|"evaluates entity"| node_entitycheck
node_api -->|"evaluates schemas"| node_schemacheck
node_api -->|"evaluates content"| node_answercheck
node_api -->|"calculates score"| node_scoring
node_ui -->|"renders report"| node_report
node_report -->|"renders findings"| node_findings
node_report -->|"renders plan"| node_actions
node_report -->|"renders method"| node_methodology
node_ui -->|"exports report"| node_export
node_ui -->|"uses fallback"| node_mockdata
node_ui -->|"renders probe"| node_probe
node_api -->|"uses schemas"| node_models
node_ui -->|"uses types"| node_types
node_findings -->|"uses types"| node_types
node_actions -->|"uses types"| node_types
node_probe -->|"uses sample"| node_mockdata

click node_ui "https://github.com/nilesh07g/geo-auditor/blob/master/frontend/src/App.tsx"
click node_urlform "https://github.com/nilesh07g/geo-auditor/blob/master/frontend/src/components/UrlInput.tsx"
click node_progress "https://github.com/nilesh07g/geo-auditor/blob/master/frontend/src/components/AuditProgress.tsx"
click node_report "https://github.com/nilesh07g/geo-auditor/tree/master/frontend/src/components"
click node_findings "https://github.com/nilesh07g/geo-auditor/blob/master/frontend/src/components/FindingCard.tsx"
click node_actions "https://github.com/nilesh07g/geo-auditor/blob/master/frontend/src/components/ActionPlan.tsx"
click node_methodology "https://github.com/nilesh07g/geo-auditor/blob/master/frontend/src/components/MethodologySection.tsx"
click node_probe "https://github.com/nilesh07g/geo-auditor/blob/master/frontend/src/components/ExperimentalProbe.tsx"
click node_export "https://github.com/nilesh07g/geo-auditor/blob/master/frontend/src/utils/exportHtml.ts"
click node_api "https://github.com/nilesh07g/geo-auditor/blob/master/backend/main.py"
click node_models "https://github.com/nilesh07g/geo-auditor/blob/master/backend/models.py"
click node_fetch "https://github.com/nilesh07g/geo-auditor/blob/master/backend/fetcher.py"
click node_parser "https://github.com/nilesh07g/geo-auditor/blob/master/backend/parser.py"
click node_crawlercheck "https://github.com/nilesh07g/geo-auditor/blob/master/backend/checks/crawler_access.py"
click node_entitycheck "https://github.com/nilesh07g/geo-auditor/blob/master/backend/checks/entity_clarity.py"
click node_schemacheck "https://github.com/nilesh07g/geo-auditor/blob/master/backend/checks/structured_data.py"
click node_answercheck "https://github.com/nilesh07g/geo-auditor/blob/master/backend/checks/answer_ready.py"
click node_scoring "https://github.com/nilesh07g/geo-auditor/blob/master/backend/scoring.py"
click node_mockdata "https://github.com/nilesh07g/geo-auditor/blob/master/frontend/src/data/mockAudit.ts"
click node_types "https://github.com/nilesh07g/geo-auditor/blob/master/frontend/src/types/audit.ts"

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_ui,node_urlform,node_progress,node_report,node_findings,node_actions,node_methodology,node_probe,node_export,node_mockdata,node_types,node_business toneBlue
class node_api toneAmber
class node_fetch,node_parser toneMint
class node_crawlercheck,node_entitycheck,node_schemacheck,node_answercheck toneRose
class node_models,node_scoring toneIndigo
```

## Components

### Audit interface

- [Audit UI](https://github.com/nilesh07g/geo-auditor/blob/master/frontend/src/App.tsx): `frontend/src/App.tsx`
- [URL input](https://github.com/nilesh07g/geo-auditor/blob/master/frontend/src/components/UrlInput.tsx): `frontend/src/components/UrlInput.tsx`
- [Progress display](https://github.com/nilesh07g/geo-auditor/blob/master/frontend/src/components/AuditProgress.tsx): `frontend/src/components/AuditProgress.tsx`
- [Report views](https://github.com/nilesh07g/geo-auditor/tree/master/frontend/src/components): `frontend/src/components`
- [Finding cards](https://github.com/nilesh07g/geo-auditor/blob/master/frontend/src/components/FindingCard.tsx): `frontend/src/components/FindingCard.tsx`
- [Action plan view](https://github.com/nilesh07g/geo-auditor/blob/master/frontend/src/components/ActionPlan.tsx): `frontend/src/components/ActionPlan.tsx`
- [Methodology view](https://github.com/nilesh07g/geo-auditor/blob/master/frontend/src/components/MethodologySection.tsx): `frontend/src/components/MethodologySection.tsx`
- [Visibility probe UI](https://github.com/nilesh07g/geo-auditor/blob/master/frontend/src/components/ExperimentalProbe.tsx): `frontend/src/components/ExperimentalProbe.tsx`
- [HTML export](https://github.com/nilesh07g/geo-auditor/blob/master/frontend/src/utils/exportHtml.ts): `frontend/src/utils/exportHtml.ts`
- [Mock audit data](https://github.com/nilesh07g/geo-auditor/blob/master/frontend/src/data/mockAudit.ts): `frontend/src/data/mockAudit.ts`
- [Frontend audit types](https://github.com/nilesh07g/geo-auditor/blob/master/frontend/src/types/audit.ts): `frontend/src/types/audit.ts`

### Audit orchestration

- [Audit API](https://github.com/nilesh07g/geo-auditor/blob/master/backend/main.py): `backend/main.py`

### Crawl and parsing

- [Site fetcher](https://github.com/nilesh07g/geo-auditor/blob/master/backend/fetcher.py): `backend/fetcher.py`
- [Page parser](https://github.com/nilesh07g/geo-auditor/blob/master/backend/parser.py): `backend/parser.py`

### Readiness checks

- [Crawler access check](https://github.com/nilesh07g/geo-auditor/blob/master/backend/checks/crawler_access.py): `backend/checks/crawler_access.py`
- [Entity clarity check](https://github.com/nilesh07g/geo-auditor/blob/master/backend/checks/entity_clarity.py): `backend/checks/entity_clarity.py`
- [Structured data check](https://github.com/nilesh07g/geo-auditor/blob/master/backend/checks/structured_data.py): `backend/checks/structured_data.py`
- [Answer-ready check](https://github.com/nilesh07g/geo-auditor/blob/master/backend/checks/answer_ready.py): `backend/checks/answer_ready.py`

### Scoring and results

- [Audit data models](https://github.com/nilesh07g/geo-auditor/blob/master/backend/models.py): `backend/models.py`
- [Weighted scoring](https://github.com/nilesh07g/geo-auditor/blob/master/backend/scoring.py): `backend/scoring.py`

### Other components

- **Business user**

## Connections

- Business user → URL input: enters URL
- URL input → Audit UI: submits URL (evidence: `frontend/src/App.tsx`)
- Audit UI → Progress display: shows progress (evidence: `frontend/src/App.tsx`)
- Audit UI → Audit API: POSTs audit (evidence: `frontend/src/App.tsx`)
- Audit API → Site fetcher: crawls site (evidence: `backend/main.py`)
- Site fetcher → Page parser: parses pages (evidence: `backend/fetcher.py`)
- Audit API → Crawler access check: evaluates access (evidence: `backend/main.py`)
- Audit API → Entity clarity check: evaluates entity (evidence: `backend/main.py`)
- Audit API → Structured data check: evaluates schemas (evidence: `backend/main.py`)
- Audit API → Answer-ready check: evaluates content (evidence: `backend/main.py`)
- Audit API → Weighted scoring: calculates score (evidence: `backend/main.py`)
- Audit UI → Report views: renders report (evidence: `frontend/src/App.tsx`)
- Report views → Finding cards: renders findings (evidence: `frontend/src/App.tsx`)
- Report views → Action plan view: renders plan (evidence: `frontend/src/App.tsx`)
- Report views → Methodology view: renders method (evidence: `frontend/src/App.tsx`)
- Audit UI → HTML export: exports report (evidence: `frontend/src/App.tsx`)
- Audit UI → Mock audit data: uses fallback (evidence: `frontend/src/App.tsx`)
- Audit UI → Visibility probe UI: renders probe (evidence: `frontend/src/App.tsx`)
- Audit API → Audit data models: uses schemas (evidence: `backend/main.py`)
- Audit UI → Frontend audit types: uses types (evidence: `frontend/src/App.tsx`)
- Finding cards → Frontend audit types: uses types (evidence: `frontend/src/components/FindingCard.tsx`)
- Action plan view → Frontend audit types: uses types (evidence: `frontend/src/components/ActionPlan.tsx`)
- Visibility probe UI → Mock audit data: uses sample (evidence: `frontend/src/components/ExperimentalProbe.tsx`)
