# luffystoreeldorado/eldoradomanager-miner architecture

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

- Interactive diagram: https://gitdiagram.com/luffystoreeldorado/eldoradomanager-miner
- Repository: https://github.com/luffystoreeldorado/eldoradomanager-miner

## Overview

EldoradoManager-Miner is a set of Node.js CLI scripts that fetches Eldorado.gg account-game data and the seller API definition, then saves JSON artifacts. The game workflow can fetch an account-game list or read that list to fetch batched game details and offer attributes. A separate script fetches the authenticated Swagger definition. The excerpts show configuration use and file operations; the README documents the product scope. The listed output files are generated artifacts, not runtime code.

Main entry points: [`generateGames.mjs`](https://github.com/luffystoreeldorado/eldoradomanager-miner/blob/main/generateGames.mjs) (Detail Batching), [`generateApi.mjs`](https://github.com/luffystoreeldorado/eldoradomanager-miner/blob/main/generateApi.mjs) (Swagger Fetcher), [`config.mjs`](https://github.com/luffystoreeldorado/eldoradomanager-miner/blob/main/config.mjs) (Miner Config), [`output/EldoradoGames.json`](https://github.com/luffystoreeldorado/eldoradomanager-miner/blob/main/output/EldoradoGames.json) (Game List JSON)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_games["Game Mining"]
  node_games_cli["Game CLI<br/>[generateGames.mjs]"]
  node_listing_fetch["Account Listings<br/>[generateGames.mjs]"]
  node_detail_batch["Detail Batching<br/>[generateGames.mjs]"]
  node_game_details["Game Details<br/>[generateGames.mjs]"]
  node_offer_attributes["Offer Attributes<br/>[generateGames.mjs]"]
end

subgraph group_swagger["API Definition"]
  node_api_cli["Swagger Fetcher<br/>[generateApi.mjs]"]
end

subgraph group_shared["Configuration and Output"]
  node_config["Miner Config<br/>[config.mjs]"]
  node_games_output["Game List JSON<br/>[EldoradoGames.json]"]
  node_details_output["Details JSON"]
  node_swagger_output["Swagger JSON<br/>[api.json]"]
end

node_user(("CLI User"))
node_eldorado_library["Eldorado Library API"]
node_seller_swagger["Seller Swagger API"]

node_user -->|"runs command"| node_games_cli
node_games_cli -->|"dispatches games"| node_listing_fetch
node_games_cli -->|"dispatches details"| node_detail_batch
node_listing_fetch -->|"reads settings"| node_config
node_detail_batch -->|"reads settings"| node_config
node_listing_fetch -->|"fetches listings"| node_eldorado_library
node_listing_fetch -->|"writes list"| node_games_output
node_detail_batch -->|"reads list"| node_games_output
node_detail_batch -->|"fetches in batches"| node_game_details
node_game_details -->|"fetches details"| node_eldorado_library
node_game_details -->|"fetches attributes"| node_offer_attributes
node_offer_attributes -->|"fetches attributes"| node_eldorado_library
node_detail_batch -->|"writes details"| node_details_output
node_user -->|"runs script"| node_api_cli
node_api_cli -->|"reads settings"| node_config
node_api_cli -->|"fetches definition"| node_seller_swagger
node_api_cli -->|"writes definition"| node_swagger_output

click node_games_cli "https://github.com/luffystoreeldorado/eldoradomanager-miner/blob/main/generateGames.mjs"
click node_listing_fetch "https://github.com/luffystoreeldorado/eldoradomanager-miner/blob/main/generateGames.mjs"
click node_detail_batch "https://github.com/luffystoreeldorado/eldoradomanager-miner/blob/main/generateGames.mjs"
click node_game_details "https://github.com/luffystoreeldorado/eldoradomanager-miner/blob/main/generateGames.mjs"
click node_offer_attributes "https://github.com/luffystoreeldorado/eldoradomanager-miner/blob/main/generateGames.mjs"
click node_api_cli "https://github.com/luffystoreeldorado/eldoradomanager-miner/blob/main/generateApi.mjs"
click node_config "https://github.com/luffystoreeldorado/eldoradomanager-miner/blob/main/config.mjs"
click node_games_output "https://github.com/luffystoreeldorado/eldoradomanager-miner/blob/main/output/EldoradoGames.json"
click node_details_output "https://github.com/luffystoreeldorado/eldoradomanager-miner/blob/main/output/EldoradoDetails.json"
click node_swagger_output "https://github.com/luffystoreeldorado/eldoradomanager-miner/blob/main/output/api.json"

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_games_cli,node_listing_fetch,node_detail_batch,node_game_details,node_offer_attributes,node_user toneBlue
class node_api_cli toneAmber
class node_config,node_games_output,node_details_output,node_swagger_output,node_eldorado_library,node_seller_swagger toneMint
```

## Components

### Game Mining

- [Game CLI](https://github.com/luffystoreeldorado/eldoradomanager-miner/blob/main/generateGames.mjs): `generateGames.mjs`
- [Account Listings](https://github.com/luffystoreeldorado/eldoradomanager-miner/blob/main/generateGames.mjs): `generateGames.mjs`
- [Detail Batching](https://github.com/luffystoreeldorado/eldoradomanager-miner/blob/main/generateGames.mjs): `generateGames.mjs`
- [Game Details](https://github.com/luffystoreeldorado/eldoradomanager-miner/blob/main/generateGames.mjs): `generateGames.mjs`
- [Offer Attributes](https://github.com/luffystoreeldorado/eldoradomanager-miner/blob/main/generateGames.mjs): `generateGames.mjs`

### API Definition

- [Swagger Fetcher](https://github.com/luffystoreeldorado/eldoradomanager-miner/blob/main/generateApi.mjs): `generateApi.mjs`

### Configuration and Output

- [Miner Config](https://github.com/luffystoreeldorado/eldoradomanager-miner/blob/main/config.mjs): `config.mjs`
- [Game List JSON](https://github.com/luffystoreeldorado/eldoradomanager-miner/blob/main/output/EldoradoGames.json): `output/EldoradoGames.json`
- [Details JSON](https://github.com/luffystoreeldorado/eldoradomanager-miner/blob/main/output/EldoradoDetails.json): `output/EldoradoDetails.json`
- [Swagger JSON](https://github.com/luffystoreeldorado/eldoradomanager-miner/blob/main/output/api.json): `output/api.json`

### Other components

- **CLI User**
- **Eldorado Library API**
- **Seller Swagger API**

## Connections

- CLI User → Game CLI: runs command (evidence: `generateGames.mjs`)
- Game CLI → Account Listings: dispatches games (evidence: `generateGames.mjs`)
- Game CLI → Detail Batching: dispatches details (evidence: `generateGames.mjs`)
- Account Listings → Miner Config: reads settings (evidence: `generateGames.mjs`)
- Detail Batching → Miner Config: reads settings (evidence: `generateGames.mjs`)
- Account Listings → Eldorado Library API: fetches listings (evidence: `generateGames.mjs`)
- Account Listings → Game List JSON: writes list (evidence: `generateGames.mjs`)
- Detail Batching → Game List JSON: reads list (evidence: `generateGames.mjs`)
- Detail Batching → Game Details: fetches in batches (evidence: `generateGames.mjs`)
- Game Details → Eldorado Library API: fetches details (evidence: `generateGames.mjs`)
- Game Details → Offer Attributes: fetches attributes (evidence: `generateGames.mjs`)
- Offer Attributes → Eldorado Library API: fetches attributes (evidence: `generateGames.mjs`)
- Detail Batching → Details JSON: writes details (evidence: `generateGames.mjs`)
- CLI User → Swagger Fetcher: runs script (evidence: `ReadME.md`)
- Swagger Fetcher → Miner Config: reads settings (evidence: `generateApi.mjs`)
- Swagger Fetcher → Seller Swagger API: fetches definition (evidence: `generateApi.mjs`)
- Swagger Fetcher → Swagger JSON: writes definition (evidence: `generateApi.mjs`)
