# learnwithray/dab-app architecture

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

- Interactive diagram: https://gitdiagram.com/learnwithray/dab-app
- Repository: https://github.com/learnwithray/dab-app

## Overview

This repository provides a Streamlit dashboard for monitoring Databricks Apps, backed by metadata populated separately by a notebook. The user workflow is to open the dashboard, load metadata through a SQL warehouse, filter apps, and inspect status summaries, charts, and detailed records. The README documents the notebook’s Databricks Apps API-to-Delta-table pipeline and the dashboard’s warehouse access. The notebook was not sampled, so its implementation details are not shown; relationships for that pipeline rely on the README.

Main entry points: [`src/databricks_apps_monitoring/app.py`](https://github.com/learnwithray/dab-app/blob/main/src/databricks_apps_monitoring/app.py) (Streamlit dashboard), [`notebooks/populate_apps_metadata.ipynb`](https://github.com/learnwithray/dab-app/blob/main/notebooks/populate_apps_metadata.ipynb) (Metadata population notebook)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_collection["Metadata collection"]
  node_apps_api["Databricks Apps API"]
  node_metadata_notebook["Metadata population notebook"]
end

subgraph group_data["Metadata access"]
  node_metadata_table[("Apps metadata table")]
  node_warehouse["Serverless SQL warehouse"]
end

subgraph group_dashboard["Monitoring dashboard"]
  node_dashboard_app["Streamlit dashboard<br/>[app.py]"]
  node_metadata_query["Metadata query<br/>[app.py]"]
  node_app_filters["App filters<br/>[app.py]"]
  node_status_metrics["Status metrics<br/>[app.py]"]
  node_state_chart["State chart<br/>[app.py]"]
  node_metadata_table_view["Metadata table view<br/>[app.py]"]
end

node_viewer(("Dashboard user"))

node_viewer -->|"uses"| node_dashboard_app
node_apps_api -->|"provides app metadata"| node_metadata_notebook
node_metadata_notebook -->|"populates"| node_metadata_table
node_dashboard_app -->|"loads data"| node_metadata_query
node_metadata_query -->|"queries"| node_warehouse
node_warehouse -->|"reads"| node_metadata_table
node_dashboard_app -->|"filters data"| node_app_filters
node_dashboard_app -->|"computes"| node_status_metrics
node_dashboard_app -->|"renders"| node_state_chart
node_dashboard_app -->|"renders"| node_metadata_table_view

click node_metadata_notebook "https://github.com/learnwithray/dab-app/blob/main/notebooks/populate_apps_metadata.ipynb"
click node_dashboard_app "https://github.com/learnwithray/dab-app/blob/main/src/databricks_apps_monitoring/app.py"
click node_metadata_query "https://github.com/learnwithray/dab-app/blob/main/src/databricks_apps_monitoring/app.py"
click node_app_filters "https://github.com/learnwithray/dab-app/blob/main/src/databricks_apps_monitoring/app.py"
click node_status_metrics "https://github.com/learnwithray/dab-app/blob/main/src/databricks_apps_monitoring/app.py"
click node_state_chart "https://github.com/learnwithray/dab-app/blob/main/src/databricks_apps_monitoring/app.py"
click node_metadata_table_view "https://github.com/learnwithray/dab-app/blob/main/src/databricks_apps_monitoring/app.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_apps_api,node_metadata_notebook,node_viewer toneBlue
class node_metadata_table,node_warehouse toneAmber
class node_dashboard_app,node_metadata_query,node_app_filters,node_status_metrics,node_state_chart,node_metadata_table_view toneMint
```

## Components

### Metadata collection

- **Databricks Apps API**
- [Metadata population notebook](https://github.com/learnwithray/dab-app/blob/main/notebooks/populate_apps_metadata.ipynb): `notebooks/populate_apps_metadata.ipynb`

### Metadata access

- **Apps metadata table**
- **Serverless SQL warehouse**

### Monitoring dashboard

- [Streamlit dashboard](https://github.com/learnwithray/dab-app/blob/main/src/databricks_apps_monitoring/app.py): `src/databricks_apps_monitoring/app.py`
- [Metadata query](https://github.com/learnwithray/dab-app/blob/main/src/databricks_apps_monitoring/app.py): `src/databricks_apps_monitoring/app.py`
- [App filters](https://github.com/learnwithray/dab-app/blob/main/src/databricks_apps_monitoring/app.py): `src/databricks_apps_monitoring/app.py`
- [Status metrics](https://github.com/learnwithray/dab-app/blob/main/src/databricks_apps_monitoring/app.py): `src/databricks_apps_monitoring/app.py`
- [State chart](https://github.com/learnwithray/dab-app/blob/main/src/databricks_apps_monitoring/app.py): `src/databricks_apps_monitoring/app.py`
- [Metadata table view](https://github.com/learnwithray/dab-app/blob/main/src/databricks_apps_monitoring/app.py): `src/databricks_apps_monitoring/app.py`

### Other components

- **Dashboard user**

## Connections

- Dashboard user → Streamlit dashboard: uses (evidence: `README.md`)
- Databricks Apps API → Metadata population notebook: provides app metadata (evidence: `README.md`)
- Metadata population notebook → Apps metadata table: populates (evidence: `README.md`)
- Streamlit dashboard → Metadata query: loads data (evidence: `src/databricks_apps_monitoring/app.py`)
- Metadata query → Serverless SQL warehouse: queries (evidence: `src/databricks_apps_monitoring/app.py`)
- Serverless SQL warehouse → Apps metadata table: reads (evidence: `README.md`)
- Streamlit dashboard → App filters: filters data (evidence: `src/databricks_apps_monitoring/app.py`)
- Streamlit dashboard → Status metrics: computes (evidence: `src/databricks_apps_monitoring/app.py`)
- Streamlit dashboard → State chart: renders (evidence: `src/databricks_apps_monitoring/app.py`)
- Streamlit dashboard → Metadata table view: renders (evidence: `src/databricks_apps_monitoring/app.py`)
