Jason Flatford Fractional CTO
Book 30 minutes (opens Google Calendar in a new tab)

Public Good

People's Economy Hub

A non-partisan platform that translates government economic data into three household-centered metrics anyone can understand in 90 seconds. Automated data pipelines power it, and it is deployed at zero cost on GitHub Pages.

  • Next.js 16 Static Export
  • Automated Data Pipeline
  • Terraform IaC
  • $0/month Infrastructure

Overview

People's Economy Hub connects headline economic indicators to real household experiences. While GDP and stock indices dominate news coverage, they rarely answer the question families actually ask: "Am I better off than last year?" PEH addresses this with three clear metrics, each sourced directly from government data.

  • Three household metrics: Purchasing power, essentials cost pressure, and financial cushion, each grounded in federal survey data.
  • Plain-language explainers: Educational articles on GDP versus wellbeing, mean versus median, inflation baskets, and more.
  • Transparent methodology: Every metric links to its source data, calculation formula, update frequency, and known limitations
  • Zero-cost operation: Static export on GitHub Pages with free CI/CD and free government APIs

Problem

Mainstream economic reporting focuses on metrics that do not reflect household realities. This disconnect, as highlighted by economists like Joseph Stiglitz, erodes public trust and leaves families without actionable information.

Wrong metrics

  • GDP measures total output, not distribution
  • Stock indices measure investor wealth rather than wages.
  • Headline inflation hides essential-goods spikes

Inaccessible data

  • BLS and Federal Reserve data are buried in dense reports.
  • Economic jargon excludes non-specialists
  • No single source for household-level picture

Partisan framing

  • Economic data weaponized for political narratives
  • Cherry-picked timeframes distort the picture
  • No neutral, methodology-transparent alternative

Solution

The goal is to build a single-page dashboard that distills federal data into three metrics understandable by non-economists in 90 seconds. The dashboard is meant to be non-partisan, transparent, mobile-first, and free to operate at any scale.

Design principles

  1. Household-centered: Every metric answers the question, "How does this affect my family?"
  2. Non-partisan: Data-driven with no editorial spin. A neutral color palette avoids implying positive or negative outcomes.
  3. Transparent: Source data, formulas, update schedules, and limitations are all publicly available.
  4. Accessible: WCAG AA compliance, plain language, and a 90-second comprehension target.
  5. Zero cost: Static export, free APIs, and free hosting make it sustainable indefinitely.

The three metrics

Each metric is selected to represent a distinct dimension of household economic health (income, costs, and resilience) using federal data that updates on a known schedule.

Purchasing power of the median paycheck

Tracks year-over-year change in real (inflation-adjusted) median wages for prime-age workers using BLS Current Population Survey data (quarterly). Focuses on the median, not the mean, to avoid distortion from high earners.

Essentials cost pressure

Measures year-over-year inflation on housing, food, energy, transportation, and healthcare, weighted by typical household spending. Uses CPI sub-indexes (monthly) to reveal the gap between headline CPI and what families actually feel at checkout.

Household financial cushion

Reports the share of U.S. households able to cover a $400 emergency expense without borrowing, using the Federal Reserve SHED survey (annual). This widely cited resilience indicator captures financial fragility beyond income alone.

Data pipeline

An automated pipeline fetches, validates, and publishes federal economic data, incorporating fallback values, schema enforcement, and failure notifications.

Pipeline stepDetails
1. Scheduled fetchGitHub Actions cron triggers BLS and Federal Reserve API calls on monthly/quarterly cadence
2. Schema validationZod schemas enforce data types, ranges, and required fields; malformed responses are rejected
3. TransformationRaw API data is normalized into metric JSON files with historical time series and metadata
4. Fallback handlingIf an API is delayed or returns errors, manually curated fallback values are used with a visible freshness warning
5. Auto-commit & deployChanged data files are committed to main, triggering a rebuild and deploy to GitHub Pages
6. Failure notificationOn error, a GitHub Issue is created automatically with diagnostic details for triage

Data sources

  • BLS: Current Population Survey (wages), CPI sub-indexes (inflation)
  • Federal Reserve: SHED survey (financial cushion)
  • FRED: Supplemental economic indicators and time series

Data integrity

  • Git-versioned: Every data change is committed, providing a full audit trail.
  • Zod validated: Runtime schema enforcement detects type and range errors.
  • Freshness tracking: The dashboard displays last-updated timestamps for each metric.

Infrastructure

The platform is designed for zero operating cost at scale, using static export on GitHub Pages, Terraform-managed repository configuration, and GitHub Actions CI/CD.

Stack

  • GitHub Pages: Free static hosting for public repositories
  • GitHub Actions: CI (lint, typecheck, test, build, Lighthouse) + CD (deploy) + scheduled data updates
  • Terraform: Repository config, branch protection, status checks, secrets, and Pages environment - all in code
  • Next.js static export: No server runtime; pure HTML/CSS/JS output

CI/CD workflows

  • CI: Lint, type check, test, build, accessibility audit, Lighthouse
  • Deploy: Build and push to GitHub Pages on merge to main
  • Data update: Scheduled cron + manual trigger for API fetches
  • Terraform: Plan/apply on infrastructure changes
  • Lighthouse: Performance and accessibility gates (90+ targets)

Accessibility

A public-good platform must be usable by everyone. Accessibility is a primary design constraint, enforced through automated testing in CI.

WCAG AA compliance

  • 4.5:1 minimum contrast ratios throughout
  • ARIA labels on all interactive and chart elements
  • Full keyboard navigation with visible focus indicators
  • Skip-to-content links and semantic landmarks
  • Screen reader-friendly chart descriptions

Inclusive design choices

  • Neutral blue chart palette avoids red/green color-blind issues
  • Plain language is used throughout, with no economic jargon left unexplained.
  • Mobile-first responsive layout (320px-1440px)
  • Axe-core accessibility testing in CI pipeline
  • Lighthouse accessibility score target: 90+

Outcomes

3
Household metrics
3
Federal data sources
$0
Monthly operating cost
90+
Lighthouse score targets
100%
Infrastructure as code

Delivered capabilities

  • Three core metrics with interactive Chart.js visualizations
  • Automated data pipeline with Zod validation and fallbacks
  • Transparent methodology page with sources, formulas, and limitations
  • Five educational articles explaining economic concepts in plain language
  • Terraform-managed GitHub repository and Pages deployment
  • Full CI/CD with lint, typecheck, test, build, and Lighthouse gates
  • WCAG AA accessibility with axe-core testing in CI
  • Curated resources page with external calculators and data sources

Building data-driven public tools?

People's Economy Hub demonstrates automated data pipelines, zero-cost infrastructure, accessibility-first design, and the ability to make complex data approachable. If you are facing similar challenges or need someone who can ship the full stack, please reach out.

Return to top

Press Esc to close • ⌘K / Ctrl K to open