How thebiggavin/marketingdashboard works
Market Research Cockpit is a real-time market and industry research dashboard. Users open the web cockpit, whose dashboard sections poll the API client; the client normally calls the Node proxy, which aggregates public market data and returns it for display. The product also includes specialized AI, commodities, gold, and earnings views, plus native and installable shells. The README documents these capabilities; sampled code confirms the main web entry, API client, proxy, and selected data paths. Unsampled subsystem links are omitted where their callers are not shown.
Main entry points: App.tsx Web app · index.cjs Node proxy · api.ts API client · dash Market cockpit
Components 22
Web experience
- Web app
src/App.tsx - Shared polling
src/hooks/useSharedPolling.ts - API client
src/lib/api.ts - Hosted access
src/lib/hosting.ts
Research views
- Market cockpit
src/components/dash - AI cockpit
src/AiDashboard.tsx - Model pricing
src/components/dash/ModelCostPanel.tsx - Earnings window
src/FinDashboard.tsx - Commodity prices
src/GoodsDashboard.tsx - Gold monitor
src/GoldDashboard.tsx - Industry chains
src/components/dash/ChainPanel.tsx - Usage charts
src/components/dash/OpenRouterPanel.tsx
Data service
- Node proxy
server/index.cjs - Market sources
server/sources - Money flow
server/sources/moneyflow.cjs - OpenRouter usage
server/sources/openrouter.cjs
App shells
- Android TV shell
android-tv/app/src/main/java/app/marketcockpit/tv/MainActivity.java - iOS script shell
scriptable/page.tsx - macOS shell
macos/MarketCockpit/main.swift - PWA worker
public/sw.js
Other components
- Researcher
- Public data providers
Connections 23
- Researcher → Web app: opens
README.md - Web app → Market cockpit: renders
src/App.tsx - Web app → AI cockpit: routes to
src/App.tsx - Web app → Commodity prices: routes to
src/App.tsx - Web app → Gold monitor: routes to
src/App.tsx - Web app → Earnings window: routes to
src/App.tsx - Web app → Hosted access: checks access
src/App.tsx - Web app → Shared polling: subscribes
src/App.tsx - Market cockpit → Industry chains: renders
src/App.tsx - Market cockpit → API client: fetches data
src/components/dash/OpenRouterPanel.tsx - Shared polling → API client: polls
src/hooks/useSharedPolling.ts - API client → Node proxy: requests API
README.md - API client → Public data providers: fallback fetches
src/lib/api.ts - Node proxy → Market sources: dispatches
server/index.cjs - Node proxy → Money flow: calls
server/index.cjs - Node proxy → OpenRouter usage: serves usage
server/index.cjs - Usage charts → API client: loads usage
src/components/dash/OpenRouterPanel.tsx - Usage charts → AI cockpit: renders in
- Android TV shell → Web app: loads dashboard
README.md - iOS script shell → Web app: loads dashboard
README.md - macOS shell → Web app: embeds cockpit
README.md - PWA worker → Web app: caches shell
README.md - Public data providers → Node proxy: provides feeds
README.md