# argoonid/wow_forever_auc architecture

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

- Interactive diagram: https://gitdiagram.com/argoonid/wow_forever_auc
- Repository: https://github.com/argoonid/wow_forever_auc

## Overview

WoW: Forever is an auction-market terminal: Blizzard auction data is collected into a shared market store, analyzed for trading opportunities, then presented alongside personal portfolio and watchlist tools. The README documents the split between shared market data and local personal data. The graph preserves the documented analytics and UI capabilities; some route-level wiring is unsampled, so those relationships are omitted or marked unverified.

Main entry points: [`web.py`](https://github.com/argoonid/wow_forever_auc/blob/main/web.py) (FastAPI server), [`static/js/bootstrap.js`](https://github.com/argoonid/wow_forever_auc/blob/main/static/js/bootstrap.js) (UI bootstrap), [`static/js/core.js`](https://github.com/argoonid/wow_forever_auc/blob/main/static/js/core.js) (UI state and API), [`analyzer/context.py`](https://github.com/argoonid/wow_forever_auc/blob/main/analyzer/context.py) (Snapshot context)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_collection["Market collection"]
  node_collector["Snapshot collector<br/>[collect_once.py]"]
  node_auction_source["Auction source"]
  node_resolver["Item resolver<br/>[resolver.py]"]
end

subgraph group_analysis["Market analysis"]
  node_context["Snapshot context<br/>[context.py]"]
  node_stats["Market statistics<br/>[stats.py]"]
  node_scoring["Opportunity scoring<br/>[scoring.py]"]
  node_outcomes["Signal outcomes<br/>[outcomes.py]"]
  node_raid_radar["Raid radar<br/>[raid_radar.py]"]
  node_digest["Market digest<br/>[digest.py]"]
end

subgraph group_service["Terminal and storage"]
  node_settings["Configuration<br/>[config.py]"]
  node_market_store[("Shared market DB<br/>[database.py]")]
  node_personal_store[("Personal DB<br/>[database.py]")]
  node_market_models["Market models<br/>[models.py]"]
  node_market_cache["Market cache<br/>[market_cache.py]"]
  node_web_server["FastAPI server<br/>[web.py]"]
  node_desktop["Desktop launcher<br/>[desktop_app.py]"]
  node_portfolio_service["Portfolio service<br/>[portfolio.py]"]
end

subgraph group_interface["User interface"]
  node_page["Terminal page<br/>[index.html]"]
  node_bootstrap["UI bootstrap<br/>[bootstrap.js]"]
  node_ui_core["UI state and API<br/>[core.js]"]
  node_market_ui["Market views<br/>[market.js]"]
  node_charts["Charts and notes<br/>[charts.js]"]
  node_portfolio_ui["Portfolio views<br/>[portfolio.js]"]
  node_watchlist_ui["Watchlist views<br/>[watchlist.js]"]
  node_ui_helpers["UI helpers<br/>[ui.js]"]
end

node_blizzard{{"Blizzard API"}}
node_browser(("Terminal user"))

node_collector -->|"collects from"| node_auction_source
node_auction_source -->|"requests data"| node_blizzard
node_collector -->|"resolves items"| node_resolver
node_collector -->|"writes snapshots"| node_market_store
node_auction_source -->|"persists market data"| node_market_store
node_web_server -->|"reads market data"| node_market_store
node_web_server -->|"uses personal data"| node_personal_store
node_web_server -->|"uses cache"| node_market_cache
node_web_server -->|"delegates portfolio"| node_portfolio_service
node_web_server -->|"requests analysis"| node_context
node_web_server -->|"uses models"| node_market_models
node_context -->|"loads snapshots"| node_market_store
node_context -->|"queries ticks"| node_market_models
node_scoring -->|"uses statistics"| node_stats
node_outcomes -->|"loads context"| node_context
node_outcomes -->|"scores opportunities"| node_scoring
node_outcomes -->|"records outcomes"| node_market_store
node_digest -->|"loads context"| node_context
node_digest -->|"reads positions"| node_personal_store
node_desktop -->|"launches server"| node_web_server
node_browser -->|"opens terminal"| node_page
node_page -.->|"loads interface"| node_bootstrap
node_bootstrap -->|"imports"| node_ui_core
node_bootstrap -->|"imports"| node_market_ui
node_bootstrap -->|"imports"| node_charts
node_bootstrap -->|"imports"| node_portfolio_ui
node_bootstrap -->|"imports"| node_watchlist_ui
node_bootstrap -->|"imports"| node_ui_helpers
node_market_ui -->|"uses state and API"| node_ui_core
node_charts -->|"uses state and API"| node_ui_core
node_portfolio_ui -->|"uses state and API"| node_ui_core
node_watchlist_ui -->|"uses state and API"| node_ui_core
node_charts -->|"uses helpers"| node_ui_helpers
node_portfolio_ui -->|"uses helpers"| node_ui_helpers
node_watchlist_ui -->|"uses helpers"| node_ui_helpers
node_ui_core -.->|"sends API requests"| node_web_server

click node_collector "https://github.com/argoonid/wow_forever_auc/blob/main/collect_once.py"
click node_auction_source "https://github.com/argoonid/wow_forever_auc/blob/main/sources/blizzard_forever.py"
click node_resolver "https://github.com/argoonid/wow_forever_auc/blob/main/resolver.py"
click node_settings "https://github.com/argoonid/wow_forever_auc/blob/main/config.py"
click node_market_store "https://github.com/argoonid/wow_forever_auc/blob/main/database.py"
click node_personal_store "https://github.com/argoonid/wow_forever_auc/blob/main/database.py"
click node_market_models "https://github.com/argoonid/wow_forever_auc/blob/main/models.py"
click node_market_cache "https://github.com/argoonid/wow_forever_auc/blob/main/market_cache.py"
click node_web_server "https://github.com/argoonid/wow_forever_auc/blob/main/web.py"
click node_desktop "https://github.com/argoonid/wow_forever_auc/blob/main/desktop_app.py"
click node_context "https://github.com/argoonid/wow_forever_auc/blob/main/analyzer/context.py"
click node_stats "https://github.com/argoonid/wow_forever_auc/blob/main/analyzer/stats.py"
click node_scoring "https://github.com/argoonid/wow_forever_auc/blob/main/analyzer/scoring.py"
click node_outcomes "https://github.com/argoonid/wow_forever_auc/blob/main/analyzer/outcomes.py"
click node_raid_radar "https://github.com/argoonid/wow_forever_auc/blob/main/analyzer/raid_radar.py"
click node_digest "https://github.com/argoonid/wow_forever_auc/blob/main/analyzer/digest.py"
click node_portfolio_service "https://github.com/argoonid/wow_forever_auc/blob/main/portfolio.py"
click node_page "https://github.com/argoonid/wow_forever_auc/blob/main/static/index.html"
click node_bootstrap "https://github.com/argoonid/wow_forever_auc/blob/main/static/js/bootstrap.js"
click node_ui_core "https://github.com/argoonid/wow_forever_auc/blob/main/static/js/core.js"
click node_market_ui "https://github.com/argoonid/wow_forever_auc/blob/main/static/js/market.js"
click node_charts "https://github.com/argoonid/wow_forever_auc/blob/main/static/js/charts.js"
click node_portfolio_ui "https://github.com/argoonid/wow_forever_auc/blob/main/static/js/portfolio.js"
click node_watchlist_ui "https://github.com/argoonid/wow_forever_auc/blob/main/static/js/watchlist.js"
click node_ui_helpers "https://github.com/argoonid/wow_forever_auc/blob/main/static/js/ui.js"

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_collector,node_auction_source,node_resolver,node_browser toneBlue
class node_context,node_stats,node_scoring,node_outcomes,node_raid_radar,node_digest toneAmber
class node_settings,node_market_store,node_personal_store,node_market_models,node_market_cache,node_web_server,node_desktop,node_portfolio_service,node_blizzard toneMint
class node_page,node_bootstrap,node_ui_core,node_market_ui,node_charts,node_portfolio_ui,node_watchlist_ui,node_ui_helpers toneRose
```

## Components

### Market collection

- [Snapshot collector](https://github.com/argoonid/wow_forever_auc/blob/main/collect_once.py): `collect_once.py`
- [Auction source](https://github.com/argoonid/wow_forever_auc/blob/main/sources/blizzard_forever.py): `sources/blizzard_forever.py`
- [Item resolver](https://github.com/argoonid/wow_forever_auc/blob/main/resolver.py): `resolver.py`

### Market analysis

- [Snapshot context](https://github.com/argoonid/wow_forever_auc/blob/main/analyzer/context.py): `analyzer/context.py`
- [Market statistics](https://github.com/argoonid/wow_forever_auc/blob/main/analyzer/stats.py): `analyzer/stats.py`
- [Opportunity scoring](https://github.com/argoonid/wow_forever_auc/blob/main/analyzer/scoring.py): `analyzer/scoring.py`
- [Signal outcomes](https://github.com/argoonid/wow_forever_auc/blob/main/analyzer/outcomes.py): `analyzer/outcomes.py`
- [Raid radar](https://github.com/argoonid/wow_forever_auc/blob/main/analyzer/raid_radar.py): `analyzer/raid_radar.py`
- [Market digest](https://github.com/argoonid/wow_forever_auc/blob/main/analyzer/digest.py): `analyzer/digest.py`

### Terminal and storage

- [Configuration](https://github.com/argoonid/wow_forever_auc/blob/main/config.py): `config.py`
- [Shared market DB](https://github.com/argoonid/wow_forever_auc/blob/main/database.py): `database.py`
- [Personal DB](https://github.com/argoonid/wow_forever_auc/blob/main/database.py): `database.py`
- [Market models](https://github.com/argoonid/wow_forever_auc/blob/main/models.py): `models.py`
- [Market cache](https://github.com/argoonid/wow_forever_auc/blob/main/market_cache.py): `market_cache.py`
- [FastAPI server](https://github.com/argoonid/wow_forever_auc/blob/main/web.py): `web.py`
- [Desktop launcher](https://github.com/argoonid/wow_forever_auc/blob/main/desktop_app.py): `desktop_app.py`
- [Portfolio service](https://github.com/argoonid/wow_forever_auc/blob/main/portfolio.py): `portfolio.py`

### User interface

- [Terminal page](https://github.com/argoonid/wow_forever_auc/blob/main/static/index.html): `static/index.html`
- [UI bootstrap](https://github.com/argoonid/wow_forever_auc/blob/main/static/js/bootstrap.js): `static/js/bootstrap.js`
- [UI state and API](https://github.com/argoonid/wow_forever_auc/blob/main/static/js/core.js): `static/js/core.js`
- [Market views](https://github.com/argoonid/wow_forever_auc/blob/main/static/js/market.js): `static/js/market.js`
- [Charts and notes](https://github.com/argoonid/wow_forever_auc/blob/main/static/js/charts.js): `static/js/charts.js`
- [Portfolio views](https://github.com/argoonid/wow_forever_auc/blob/main/static/js/portfolio.js): `static/js/portfolio.js`
- [Watchlist views](https://github.com/argoonid/wow_forever_auc/blob/main/static/js/watchlist.js): `static/js/watchlist.js`
- [UI helpers](https://github.com/argoonid/wow_forever_auc/blob/main/static/js/ui.js): `static/js/ui.js`

### Other components

- **Blizzard API**
- **Terminal user**

## Connections

- Snapshot collector → Auction source: collects from (evidence: `collect_once.py`)
- Auction source → Blizzard API: requests data (evidence: `sources/blizzard_forever.py`)
- Snapshot collector → Item resolver: resolves items (evidence: `collect_once.py`)
- Snapshot collector → Shared market DB: writes snapshots (evidence: `collect_once.py`)
- Auction source → Shared market DB: persists market data (evidence: `sources/blizzard_forever.py`)
- FastAPI server → Shared market DB: reads market data (evidence: `web.py`)
- FastAPI server → Personal DB: uses personal data (evidence: `web.py`)
- FastAPI server → Market cache: uses cache (evidence: `web.py`)
- FastAPI server → Portfolio service: delegates portfolio (evidence: `web.py`)
- FastAPI server → Snapshot context: requests analysis (evidence: `web.py`)
- FastAPI server → Market models: uses models (evidence: `web.py`)
- Snapshot context → Shared market DB: loads snapshots (evidence: `analyzer/context.py`)
- Snapshot context → Market models: queries ticks (evidence: `analyzer/context.py`)
- Opportunity scoring → Market statistics: uses statistics (evidence: `analyzer/scoring.py`)
- Signal outcomes → Snapshot context: loads context (evidence: `analyzer/outcomes.py`)
- Signal outcomes → Opportunity scoring: scores opportunities (evidence: `analyzer/outcomes.py`)
- Signal outcomes → Shared market DB: records outcomes (evidence: `analyzer/outcomes.py`)
- Market digest → Snapshot context: loads context (evidence: `analyzer/digest.py`)
- Market digest → Personal DB: reads positions (evidence: `analyzer/digest.py`)
- Desktop launcher → FastAPI server: launches server (evidence: `desktop_app.py`)
- Terminal user → Terminal page: opens terminal (evidence: `README.md`)
- Terminal page → UI bootstrap: loads interface
- UI bootstrap → UI state and API: imports (evidence: `static/js/bootstrap.js`)
- UI bootstrap → Market views: imports (evidence: `static/js/bootstrap.js`)
- UI bootstrap → Charts and notes: imports (evidence: `static/js/bootstrap.js`)
- UI bootstrap → Portfolio views: imports (evidence: `static/js/bootstrap.js`)
- UI bootstrap → Watchlist views: imports (evidence: `static/js/bootstrap.js`)
- UI bootstrap → UI helpers: imports (evidence: `static/js/bootstrap.js`)
- Market views → UI state and API: uses state and API (evidence: `static/js/market.js`)
- Charts and notes → UI state and API: uses state and API (evidence: `static/js/charts.js`)
- Portfolio views → UI state and API: uses state and API (evidence: `static/js/portfolio.js`)
- Watchlist views → UI state and API: uses state and API (evidence: `static/js/watchlist.js`)
- Charts and notes → UI helpers: uses helpers (evidence: `static/js/charts.js`)
- Portfolio views → UI helpers: uses helpers (evidence: `static/js/portfolio.js`)
- Watchlist views → UI helpers: uses helpers (evidence: `static/js/watchlist.js`)
- UI state and API → FastAPI server: sends API requests
