How ubed23/oss-ecosystem-intelligence works
This repository delivers open-source maintenance-risk intelligence: a scheduled-by-operator data pipeline turns GitHub and OpenSSF signals into health metrics, score marts, and dashboard-ready outputs. Its main path is source collection → Parquet landing → dbt staging/intermediate transformations → analytics marts → Google Sheets/Tableau. Separate analyses provide historical backtesting and GH Archive source-fidelity evidence. The README documents model lineage and dashboard capabilities; sampled code supports ingestion behavior, while most SQL, Sheets-serving, and dashboard wiring is not excerpted, so those edges are documented rather than inferred from imports.
Main entry points: raw Parquet raw data · staging Source cleanup · to_sheets.py Mart export · fct_repo_health_monthly.sql Monthly health metrics
Components 24
Data ingestion
- Issues and contributions
scripts/pull_github_graphql.py - Release collection
scripts/pull_releases.py - Security signals
scripts/pull_scorecard.py - Archive history
scripts/pull_gharchive.py - Parquet raw data
data/raw
Analytics warehouse
- Source cleanup
models/staging - Domain metrics
models/intermediate - Monthly health metrics
models/marts/fct_repo_health_monthly.sql - Health score history
models/marts/fct_health_score_monthly.sql - Current health snapshot
models/marts/fct_repo_health_current.sql - Contributor cohorts
models/marts/fct_contributor_cohorts.sql - Release reliability
models/marts/fct_release_reliability.sql - Source fidelity
models/marts/fct_source_fidelity.sql - Repository dimension
models/marts/dim_repo.sql
Risk validation
- Historical backtest
scripts/backtest.py - Archive/API comparison
scripts/validate_gharchive.py
Reporting
- Google Sheets
- Mart export
scripts/to_sheets.py - Tableau dashboard
dashboards/Product Reliability & Developer Ecosystem Intelligence.twbx
Other components
- Engineering team
- GitHub GraphQL
- GitHub REST
- OpenSSF Scorecard
- BigQuery sources
Connections 33
- GitHub GraphQL → Issues and contributions: queries
README.md - Issues and contributions → Parquet raw data: writes records
scripts/pull_github_graphql.py - GitHub REST → Release collection: fetches releases
README.md - Release collection → Parquet raw data: writes releases
scripts/pull_releases.py - OpenSSF Scorecard → Security signals: provides scores
scripts/pull_scorecard.py - BigQuery sources → Security signals: provides scores
scripts/pull_scorecard.py - Security signals → Parquet raw data: writes scorecard
scripts/pull_scorecard.py - BigQuery sources → Archive history: provides events
scripts/pull_gharchive.py - Archive history → Parquet raw data: writes history
scripts/pull_gharchive.py - Parquet raw data → Source cleanup: loads sources
README.md - Source cleanup → Domain metrics: cleans and derives
README.md - Domain metrics → Monthly health metrics: builds metrics
README.md - Source cleanup → Monthly health metrics: joins source records
README.md - Repository dimension → Monthly health metrics: adds repository context
README.md - Monthly health metrics → Health score history: scores monthly
README.md - Monthly health metrics → Current health snapshot: builds snapshot
README.md - Contributor cohorts → Current health snapshot: adds retention
README.md - Release reliability → Current health snapshot: reports reliability
- Source cleanup → Contributor cohorts: forms cohorts
README.md - Source cleanup → Release reliability: measures releases
README.md - Source cleanup → Source fidelity: compares sources
README.md - Parquet raw data → Historical backtest: uses history
README.md - BigQuery sources → Historical backtest: queries archive
scripts/backtest.py - Parquet raw data → Archive/API comparison: reads archive
scripts/validate_gharchive.py - GitHub REST → Archive/API comparison: checks API counts
scripts/validate_gharchive.py - Current health snapshot → Mart export: exports marts
README.md - Health score history → Mart export: exports marts
README.md - Contributor cohorts → Mart export: exports marts
README.md - Release reliability → Mart export: exports marts
README.md - Source fidelity → Mart export: exports marts
README.md - Mart export → Google Sheets: refreshes data
README.md - Google Sheets → Tableau dashboard: syncs dashboard
README.md - Engineering team → Tableau dashboard: reviews risk
README.md