How deepanprasath23/global_news_hub works
Global Trends & Information Hub is a public news dashboard backed by a live aggregation API. Visitors browse or search categorized stories, open attributed story details, and view briefings, trending topics, and source information. The backend fetches publisher RSS and Hacker News data, normalizes and deduplicates articles, temporarily caches results in memory, and serves REST endpoints; trending analysis uses coverage, engagement, and recency signals. The graph includes README-documented capabilities whose implementation was not sampled; those links are cited to the README, and source-level edges use the indexed or excerpted files.
Main entry points: App.tsx Dashboard App · aggregator.py Feed Aggregator · routes.py REST Endpoints · models.py Response Models
Components 22
Visitor Dashboard
- Dashboard App
frontend/src/App.tsx - API Client
frontend/src/services/api.ts - Story Views
frontend/src/components/StoryCard.tsx - Article Details
frontend/src/components/ArticleModal.tsx - Trending View
frontend/src/components/TrendingSection.tsx - Daily Briefing
frontend/src/components/HeroBriefing.tsx - Category Filter
frontend/src/components/CategoryBar.tsx - Sources Directory
frontend/src/components/SourcesDirectory.tsx - API Docs View
frontend/src/components/DevDocs.tsx - Display Formatters
frontend/src/utils/formatters.ts
API Service
- FastAPI App
backend/app/main.py - REST Endpoints
backend/app/api/routes.py - Response Models
backend/app/schemas/models.py - RAM TTL Cache
backend/app/cache.py
Live Ingestion
- RSS Fetcher
backend/app/ingestion/rss_fetcher.py - Hacker News Fetcher
backend/app/ingestion/hacker_news.py
Feed Intelligence
- Feed Aggregator
backend/app/services/aggregator.py - Trending Analysis
backend/app/services/trending.py - Article Deduplication
backend/app/ingestion/deduplicator.py
Other components
- Visitor
- News Publishers
- Hacker News API
Connections 28
- Visitor → Dashboard App: browses
README.md - Dashboard App → API Client: requests data
frontend/src/App.tsx - API Client → REST Endpoints: calls REST API
README.md - Dashboard App → Story Views: renders
frontend/src/App.tsx - Dashboard App → Article Details: opens details
frontend/src/App.tsx - Dashboard App → Trending View: renders
frontend/src/App.tsx - Dashboard App → Daily Briefing: renders
frontend/src/App.tsx - Dashboard App → Category Filter: renders
frontend/src/App.tsx - Dashboard App → Sources Directory: renders
frontend/src/App.tsx - Dashboard App → API Docs View: renders
frontend/src/App.tsx - Story Views → Display Formatters: formats display
frontend/src/components/StoryCard.tsx - Trending View → Story Views: renders stories
frontend/src/components/TrendingSection.tsx - FastAPI App → REST Endpoints: registers routes
backend/app/main.py - REST Endpoints → Feed Aggregator: requests feed data
backend/app/api/routes.py - REST Endpoints → Trending Analysis: analyzes topics
backend/app/api/routes.py - REST Endpoints → RAM TTL Cache: reads health stats
backend/app/api/routes.py - Feed Aggregator → RAM TTL Cache: reads and writes
backend/app/services/aggregator.py - Feed Aggregator → RSS Fetcher: fetches feeds
backend/app/services/aggregator.py - Feed Aggregator → Hacker News Fetcher: fetches stories
backend/app/services/aggregator.py - Feed Aggregator → Article Deduplication: deduplicates articles
backend/app/services/aggregator.py - Trending Analysis → Article Deduplication: tokenizes phrases
backend/app/services/trending.py - RSS Fetcher → News Publishers: fetches RSS
backend/app/ingestion/rss_fetcher.py - Hacker News Fetcher → Hacker News API: fetches stories
backend/app/ingestion/hacker_news.py - Feed Aggregator → Response Models: creates responses
backend/app/services/aggregator.py - RSS Fetcher → Response Models: creates articles
backend/app/ingestion/rss_fetcher.py - Hacker News Fetcher → Response Models: creates articles
backend/app/ingestion/hacker_news.py - REST Endpoints → Response Models: returns typed responses
backend/app/api/routes.py - Feed Aggregator → REST Endpoints: serves search and briefing
README.md