# giridharkavida-73/atlas architecture

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

- Interactive diagram: https://gitdiagram.com/giridharkavida-73/atlas
- Repository: https://github.com/giridharkavida-73/atlas

## Overview

Atlas is a web app for auditing OpenRTB bid requests against buyer expectations for a selected channel and supply-path context. Analysts choose filters, paste or upload a request (or compare two), review parameter states, score and cross-checks, then optionally forecast revenue uplift or download a report. The map separates the browser, request handling, audit/knowledge logic, and account storage. YAML capabilities are documented, but their runtime data-loading paths are not fully shown in the excerpts.

Main entry points: [`app_routes.py`](https://github.com/giridharkavida-73/atlas/blob/main/app_routes.py) (Analysis API), [`dashboard.html`](https://github.com/giridharkavida-73/atlas/blob/main/dashboard.html) (Dashboard UI), [`run.py`](https://github.com/giridharkavida-73/atlas/blob/main/run.py) (App setup), [`dashboard.js`](https://github.com/giridharkavida-73/atlas/blob/main/dashboard.js) (Dashboard behavior)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_browser["Analyst interface"]
  node_dashboard["Dashboard UI<br/>[dashboard.html]"]
  node_dashboard_js["Dashboard behavior<br/>[dashboard.js]"]
  node_upload["Request upload<br/>[upload.js]"]
end

subgraph group_web["Web and accounts"]
  node_app["App setup<br/>[run.py]"]
  node_app_routes["Analysis API<br/>[app_routes.py]"]
  node_auth_routes["Account routes<br/>[auth_routes.py]"]
  node_auth["Authentication<br/>[auth.py]"]
  node_users_db[("User database<br/>[db.py]")]
end

subgraph group_analysis["Audit and analysis"]
  node_knowledge["Rules and resolution<br/>[knowledge.py]"]
  node_parameters["Parameter catalogue<br/>[parameters.yaml]"]
  node_rules["Channel rules<br/>[rules.yaml]"]
  node_audit["Request audit<br/>[audit.py]"]
  node_forecast["Revenue forecast<br/>[forecast.py]"]
end

subgraph group_outputs["Results and deliverables"]
  node_report["Report and email<br/>[report.py]"]
end

node_analyst(("Analyst"))

node_analyst -->|"uses"| node_dashboard
node_analyst -->|"signs in"| node_auth_routes
node_dashboard -.->|"loads behavior"| node_dashboard_js
node_upload -->|"fills request"| node_dashboard
node_app -->|"registers routes"| node_app_routes
node_app -->|"registers routes"| node_auth_routes
node_app -->|"initializes"| node_users_db
node_auth_routes -->|"calls"| node_auth
node_auth -->|"reads and writes"| node_users_db
node_app_routes -->|"renders"| node_dashboard
node_dashboard_js -->|"calls API"| node_app_routes
node_app_routes -->|"resolves filters"| node_knowledge
node_knowledge -->|"loads catalogue"| node_parameters
node_knowledge -->|"loads rules"| node_rules
node_app_routes -->|"audits requests"| node_audit
node_app_routes -->|"calculates forecast"| node_forecast
node_app_routes -->|"builds email"| node_report
node_dashboard_js -->|"requests report"| node_app_routes
node_app_routes -->|"builds document"| node_report

click node_dashboard "https://github.com/giridharkavida-73/atlas/blob/main/dashboard.html"
click node_dashboard_js "https://github.com/giridharkavida-73/atlas/blob/main/dashboard.js"
click node_upload "https://github.com/giridharkavida-73/atlas/blob/main/upload.js"
click node_app "https://github.com/giridharkavida-73/atlas/blob/main/run.py"
click node_app_routes "https://github.com/giridharkavida-73/atlas/blob/main/app_routes.py"
click node_auth_routes "https://github.com/giridharkavida-73/atlas/blob/main/auth_routes.py"
click node_auth "https://github.com/giridharkavida-73/atlas/blob/main/auth.py"
click node_users_db "https://github.com/giridharkavida-73/atlas/blob/main/db.py"
click node_knowledge "https://github.com/giridharkavida-73/atlas/blob/main/knowledge.py"
click node_parameters "https://github.com/giridharkavida-73/atlas/blob/main/parameters.yaml"
click node_rules "https://github.com/giridharkavida-73/atlas/blob/main/rules.yaml"
click node_audit "https://github.com/giridharkavida-73/atlas/blob/main/audit.py"
click node_forecast "https://github.com/giridharkavida-73/atlas/blob/main/forecast.py"
click node_report "https://github.com/giridharkavida-73/atlas/blob/main/report.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_dashboard,node_dashboard_js,node_upload toneBlue
class node_app,node_app_routes,node_auth_routes,node_auth,node_users_db toneAmber
class node_knowledge,node_parameters,node_rules,node_audit,node_forecast toneMint
class node_report toneRose
class node_analyst toneIndigo
```

## Components

### Analyst interface

- [Dashboard UI](https://github.com/giridharkavida-73/atlas/blob/main/dashboard.html): `dashboard.html`
- [Dashboard behavior](https://github.com/giridharkavida-73/atlas/blob/main/dashboard.js): `dashboard.js`
- [Request upload](https://github.com/giridharkavida-73/atlas/blob/main/upload.js): `upload.js`

### Web and accounts

- [App setup](https://github.com/giridharkavida-73/atlas/blob/main/run.py): `run.py`
- [Analysis API](https://github.com/giridharkavida-73/atlas/blob/main/app_routes.py): `app_routes.py`
- [Account routes](https://github.com/giridharkavida-73/atlas/blob/main/auth_routes.py): `auth_routes.py`
- [Authentication](https://github.com/giridharkavida-73/atlas/blob/main/auth.py): `auth.py`
- [User database](https://github.com/giridharkavida-73/atlas/blob/main/db.py): `db.py`

### Audit and analysis

- [Rules and resolution](https://github.com/giridharkavida-73/atlas/blob/main/knowledge.py): `knowledge.py`
- [Parameter catalogue](https://github.com/giridharkavida-73/atlas/blob/main/parameters.yaml): `parameters.yaml`
- [Channel rules](https://github.com/giridharkavida-73/atlas/blob/main/rules.yaml): `rules.yaml`
- [Request audit](https://github.com/giridharkavida-73/atlas/blob/main/audit.py): `audit.py`
- [Revenue forecast](https://github.com/giridharkavida-73/atlas/blob/main/forecast.py): `forecast.py`

### Results and deliverables

- [Report and email](https://github.com/giridharkavida-73/atlas/blob/main/report.py): `report.py`

### Other components

- **Analyst**

## Connections

- Analyst → Dashboard UI: uses (evidence: `README.md`)
- Analyst → Account routes: signs in (evidence: `README.md`)
- Dashboard UI → Dashboard behavior: loads behavior
- Request upload → Dashboard UI: fills request (evidence: `upload.js`)
- App setup → Analysis API: registers routes (evidence: `run.py`)
- App setup → Account routes: registers routes (evidence: `run.py`)
- App setup → User database: initializes (evidence: `run.py`)
- Account routes → Authentication: calls (evidence: `auth_routes.py`)
- Authentication → User database: reads and writes (evidence: `auth.py`)
- Analysis API → Dashboard UI: renders (evidence: `app_routes.py`)
- Dashboard behavior → Analysis API: calls API (evidence: `dashboard.js`)
- Analysis API → Rules and resolution: resolves filters (evidence: `app_routes.py`)
- Rules and resolution → Parameter catalogue: loads catalogue (evidence: `knowledge.py`)
- Rules and resolution → Channel rules: loads rules (evidence: `knowledge.py`)
- Analysis API → Request audit: audits requests (evidence: `app_routes.py`)
- Analysis API → Revenue forecast: calculates forecast (evidence: `app_routes.py`)
- Analysis API → Report and email: builds email (evidence: `app_routes.py`)
- Dashboard behavior → Analysis API: requests report (evidence: `dashboard.js`)
- Analysis API → Report and email: builds document (evidence: `app_routes.py`)
