Technical objective
Integrate shipping scenarios and public energy/economic data into a responsive, source-aware dashboard while preserving provenance and explicitly handling missing observations.
Deployed architecture
Cloudflare Pages hosts HTML, CSS, and JavaScript. A Cloudflare Worker brokers REST API requests and stores provider credentials as environment secrets. Leaflet renders the U.S. map.
Data integrations
Shippo supplies test-mode carrier quotes; EIA supplies published fuel prices; BLS supplies CPI-U and long-distance general freight trucking PPI. These are distinct metrics with different meanings.
Fuel aggregation
Published weekly EIA fuel-price observations are aggregated into arithmetic monthly averages for comparisons with monthly BLS data. Missing periods are not interpolated.
Indexed trends
For each series, indexed value = (observation ÷ first available observation in the selected window) × 100. Series can start in different months and should not be interpreted as synchronized causal evidence.
Geographic series selection
State selections map to published EIA state or regional reporting areas. Values are labeled with actual geographic coverage and observation dates; unsupported series return N/A.
Python analytics layer — proposed
A reproducible companion ETL could ingest archived API JSON, normalize source identifiers and dates, validate duplicates and missing periods, aggregate weekly fuel data, and export auditable datasets. This Python layer is not part of the currently deployed V14 application.
SQL data model — proposed
A companion relational model could use dim_metric, dim_geography, fact_observation, fact_shipping_quote, and etl_run_log. SQL would support monthly summaries, source checks, period comparisons, and reproducible extracts. No SQL runtime or database is claimed for the deployed dashboard.
Validation approach
Check API identifiers and publication dates, reject invalid numeric values, verify regional mappings, compare monthly aggregates with source observations, and test all timeframe buttons and missing-data behavior.
Security and operational limits
API secrets are kept in Cloudflare Worker configuration. Shipping estimates use test credentials; the public demo does not buy labels. Source freshness and coverage vary by provider.
Next engineering milestone
Implement and test the proposed Python ETL and SQL schema, save validation results and a data dictionary, then update this report with actual executable artifacts and measured test results.
Demonstration project. Published economic observations and Shippo test-mode rates are distinguished from real carrier purchase prices. Python and SQL components are a proposed engineering extension, not deployed functionality.