# raybags-dev/data-forge-elt architecture

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

- Interactive diagram: https://gitdiagram.com/raybags-dev/data-forge-elt
- Repository: https://github.com/raybags-dev/data-forge-elt

## Overview

DataForge is an ELT platform whose principal workflow is an API/UI-triggered pipeline run: orchestration coordinates crawling and dataset ingestion, stages data through the lake, loads DuckDB, and invokes dbt transformations. Separate product branches expose crawl and dataset operations, pipeline/log controls, and Streamlit analytics. The graph follows relationships shown in the README or sampled source; major dbt and dashboard capabilities are documented, but their internal implementation paths are not present in this tree.

Main entry points: [`orchestration/pipeline.py`](https://github.com/raybags-dev/data-forge-elt/blob/main/orchestration/pipeline.py) (Pipeline orchestration), [`app/main.py`](https://github.com/raybags-dev/data-forge-elt/blob/main/app/main.py) (FastAPI routers), [`crawlers/base/crawler.py`](https://github.com/raybags-dev/data-forge-elt/blob/main/crawlers/base/crawler.py) (Crawler engine), [`datalake/manager.py`](https://github.com/raybags-dev/data-forge-elt/blob/main/datalake/manager.py) (Medallion data lake)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_control["Control plane"]
  node_react["React control UI<br/>[App.jsx]"]
  node_api["FastAPI routers<br/>[main.py]"]
  node_services["API services"]
  node_config["Settings and DI<br/>[dependencies.py]"]
  node_orchestrator["Pipeline orchestration<br/>[pipeline.py]"]
end

subgraph group_ingest["Collection and ingestion"]
  node_crawling["Crawler engine<br/>[crawler.py]"]
  node_profiles["Source crawler profiles"]
  node_kaggle["Kaggle ingestion"]
  node_crawlapi["Crawl service<br/>[crawl_service.py]"]
end

subgraph group_data["Lake and warehouse"]
  node_lake[("Medallion data lake<br/>[manager.py]")]
  node_warehouse[("DuckDB warehouse<br/>[warehouse.py]")]
end

subgraph group_analytics["Analytics and operations"]
  node_dbt["dbt transformations"]
  node_streamlit["Streamlit analytics<br/>[streamlit_app.py]"]
  node_observability["Logs and metrics<br/>[log_stream.py]"]
  node_notifier["Notifications<br/>[notifier.py]"]
end

node_operator(("Operator"))
node_external(("Web sources"))
node_kaggle_ext(("Kaggle"))

node_operator -->|"controls"| node_react
node_react -->|"calls REST"| node_api
node_api -->|"dispatches"| node_services
node_api -->|"dispatches"| node_crawlapi
node_config -->|"wires"| node_orchestrator
node_services -->|"runs pipeline"| node_orchestrator
node_orchestrator -->|"runs crawl"| node_crawling
node_orchestrator -->|"ingests datasets"| node_kaggle
node_crawling -.->|"specializes"| node_profiles
node_external -->|"provides pages"| node_crawling
node_kaggle_ext -->|"provides datasets"| node_kaggle
node_crawlapi -->|"writes crawl data"| node_lake
node_orchestrator -->|"coordinates lake"| node_lake
node_orchestrator -->|"coordinates loads"| node_warehouse
node_lake -->|"promotes and loads"| node_warehouse
node_warehouse -->|"supplies sources"| node_dbt
node_dbt -->|"feeds analytics"| node_streamlit
node_orchestrator -->|"sends run events"| node_notifier
node_orchestrator -.->|"emits logs"| node_observability
node_api -->|"serves log stream"| node_observability
node_operator -->|"views analytics"| node_streamlit

click node_react "https://github.com/raybags-dev/data-forge-elt/blob/main/app/ui/src/App.jsx"
click node_api "https://github.com/raybags-dev/data-forge-elt/blob/main/app/main.py"
click node_services "https://github.com/raybags-dev/data-forge-elt/tree/main/app/services"
click node_config "https://github.com/raybags-dev/data-forge-elt/blob/main/app/dependencies.py"
click node_orchestrator "https://github.com/raybags-dev/data-forge-elt/blob/main/orchestration/pipeline.py"
click node_crawling "https://github.com/raybags-dev/data-forge-elt/blob/main/crawlers/base/crawler.py"
click node_profiles "https://github.com/raybags-dev/data-forge-elt/tree/main/crawlers"
click node_kaggle "https://github.com/raybags-dev/data-forge-elt/tree/main/ingestion/kaggle"
click node_crawlapi "https://github.com/raybags-dev/data-forge-elt/blob/main/app/services/crawl_service.py"
click node_lake "https://github.com/raybags-dev/data-forge-elt/blob/main/datalake/manager.py"
click node_warehouse "https://github.com/raybags-dev/data-forge-elt/blob/main/warehouse/duckdb/warehouse.py"
click node_streamlit "https://github.com/raybags-dev/data-forge-elt/blob/main/dashboard/streamlit_app.py"
click node_observability "https://github.com/raybags-dev/data-forge-elt/blob/main/shared/log_stream.py"
click node_notifier "https://github.com/raybags-dev/data-forge-elt/blob/main/shared/notifier.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_react,node_api,node_services,node_config,node_orchestrator toneBlue
class node_crawling,node_profiles,node_kaggle,node_crawlapi toneAmber
class node_lake,node_warehouse toneMint
class node_dbt,node_streamlit,node_observability,node_notifier toneRose
class node_operator,node_external,node_kaggle_ext toneIndigo
```

## Components

### Control plane

- [React control UI](https://github.com/raybags-dev/data-forge-elt/blob/main/app/ui/src/App.jsx): `app/ui/src/App.jsx`
- [FastAPI routers](https://github.com/raybags-dev/data-forge-elt/blob/main/app/main.py): `app/main.py`
- [API services](https://github.com/raybags-dev/data-forge-elt/tree/main/app/services): `app/services`
- [Settings and DI](https://github.com/raybags-dev/data-forge-elt/blob/main/app/dependencies.py): `app/dependencies.py`
- [Pipeline orchestration](https://github.com/raybags-dev/data-forge-elt/blob/main/orchestration/pipeline.py): `orchestration/pipeline.py`

### Collection and ingestion

- [Crawler engine](https://github.com/raybags-dev/data-forge-elt/blob/main/crawlers/base/crawler.py): `crawlers/base/crawler.py`
- [Source crawler profiles](https://github.com/raybags-dev/data-forge-elt/tree/main/crawlers): `crawlers`
- [Kaggle ingestion](https://github.com/raybags-dev/data-forge-elt/tree/main/ingestion/kaggle): `ingestion/kaggle`
- [Crawl service](https://github.com/raybags-dev/data-forge-elt/blob/main/app/services/crawl_service.py): `app/services/crawl_service.py`

### Lake and warehouse

- [Medallion data lake](https://github.com/raybags-dev/data-forge-elt/blob/main/datalake/manager.py): `datalake/manager.py`
- [DuckDB warehouse](https://github.com/raybags-dev/data-forge-elt/blob/main/warehouse/duckdb/warehouse.py): `warehouse/duckdb/warehouse.py`

### Analytics and operations

- **dbt transformations**
- [Streamlit analytics](https://github.com/raybags-dev/data-forge-elt/blob/main/dashboard/streamlit_app.py): `dashboard/streamlit_app.py`
- [Logs and metrics](https://github.com/raybags-dev/data-forge-elt/blob/main/shared/log_stream.py): `shared/log_stream.py`
- [Notifications](https://github.com/raybags-dev/data-forge-elt/blob/main/shared/notifier.py): `shared/notifier.py`

### Other components

- **Operator**
- **Web sources**
- **Kaggle**

## Connections

- Operator → React control UI: controls (evidence: `README.md`)
- React control UI → FastAPI routers: calls REST (evidence: `README.md`)
- FastAPI routers → API services: dispatches
- FastAPI routers → Crawl service: dispatches
- Settings and DI → Pipeline orchestration: wires (evidence: `app/dependencies.py`)
- API services → Pipeline orchestration: runs pipeline (evidence: `app/services/pipeline_service.py`)
- Pipeline orchestration → Crawler engine: runs crawl (evidence: `README.md`)
- Pipeline orchestration → Kaggle ingestion: ingests datasets (evidence: `README.md`)
- Crawler engine → Source crawler profiles: specializes (evidence: `crawlers/base/crawler.py`)
- Web sources → Crawler engine: provides pages (evidence: `README.md`)
- Kaggle → Kaggle ingestion: provides datasets (evidence: `README.md`)
- Crawl service → Medallion data lake: writes crawl data (evidence: `app/services/crawl_service.py`)
- Pipeline orchestration → Medallion data lake: coordinates lake (evidence: `orchestration/pipeline.py`)
- Pipeline orchestration → DuckDB warehouse: coordinates loads (evidence: `orchestration/pipeline.py`)
- Medallion data lake → DuckDB warehouse: promotes and loads (evidence: `README.md`)
- DuckDB warehouse → dbt transformations: supplies sources (evidence: `README.md`)
- dbt transformations → Streamlit analytics: feeds analytics (evidence: `README.md`)
- Pipeline orchestration → Notifications: sends run events (evidence: `orchestration/pipeline.py`)
- Pipeline orchestration → Logs and metrics: emits logs
- FastAPI routers → Logs and metrics: serves log stream (evidence: `app/main.py`)
- Operator → Streamlit analytics: views analytics (evidence: `README.md`)
