How anugrahapauljk/news-aggregator works
Daily Signal combines an Expo briefing app, a scheduled FastAPI collector/API backed by PostgreSQL, and an independent Python CLI digest backed by SQLite. The principal workflow is app requests → market/news API → collected, normalized, categorized and summarized data → cached database → briefing screens. README documents provider and scheduler behavior; source-index references support many internal module links, but unsampled implementations are represented only at documented subsystem level.
Main entry points: news.py News collector · main.py FastAPI service · pipeline.py Digest pipeline · storage.py SQLite storage
Components 22
Mobile briefing
- Briefing tabs
mobile/App.tsx - API client
mobile/src/api.ts - Briefing UI
mobile/src/components.tsx - Visual theme
mobile/src/theme.ts
Briefing API
- FastAPI service
backend/app/main.py - Runtime settings
backend/app/settings.py - PostgreSQL
backend/app/db.py - Schema migrations
backend/app/migrations/001_initial.sql
News collection
- News collector
backend/app/news.py - AI summaries
backend/app/summaries.py - RSS and source adapters
src/tech_news/collectors.py - Text and URL cleaning
src/tech_news/clean.py - Story matching
src/tech_news/dedup.py - News item model
src/tech_news/models.py - Source configuration
src/tech_news/config.py
Market data
- Quote adapters
backend/app/markets.py - Market providers
Local digest
- CLI digest
src/tech_news/cli.py - Digest pipeline
src/tech_news/pipeline.py - SQLite storage
src/tech_news/storage.py - Digest web server
src/tech_news/web.py
Other components
- Reader
Connections 35
- Reader → Briefing tabs: views
README.md - Briefing tabs → API client: requests data
mobile/App.tsx - Briefing tabs → Briefing UI: renders
mobile/App.tsx - Briefing tabs → Visual theme: styles with
mobile/App.tsx - API client → FastAPI service: calls endpoints
README.md - FastAPI service → PostgreSQL: uses database
backend/app/main.py - FastAPI service → News collector: schedules collection
README.md - FastAPI service → Quote adapters: schedules collection
backend/app/main.py - FastAPI service → Runtime settings: loads settings
backend/app/main.py - PostgreSQL → Runtime settings: reads connection
backend/app/db.py - FastAPI service → PostgreSQL: applies migrations
backend/app/db.py - News collector → RSS and source adapters: collects from
backend/app/news.py - News collector → Source configuration: loads sources
backend/app/news.py - News collector → Text and URL cleaning: canonicalizes URLs
backend/app/news.py - News collector → Story matching: matches stories
backend/app/news.py - News collector → News item model: processes items
backend/app/news.py - News collector → AI summaries: creates summaries
backend/app/news.py - News collector → PostgreSQL: reads and writes
backend/app/news.py - RSS and source adapters → Text and URL cleaning: cleans feed data
src/tech_news/collectors.py - RSS and source adapters → News item model: creates items
src/tech_news/collectors.py - Quote adapters → PostgreSQL: reads and writes
backend/app/markets.py - Quote adapters → Runtime settings: reads credentials
backend/app/markets.py - Quote adapters → Market providers: fetches quotes
README.md - AI summaries → Runtime settings: reads provider settings
backend/app/summaries.py - AI summaries → Market providers
- CLI digest → Digest pipeline: runs collection
src/tech_news/cli.py - CLI digest → Digest web server: starts server
src/tech_news/cli.py - Digest pipeline → RSS and source adapters: collects items
src/tech_news/pipeline.py - Digest pipeline → Source configuration: uses configuration
src/tech_news/pipeline.py - Digest pipeline → SQLite storage: stores items
src/tech_news/pipeline.py - Digest web server → Digest pipeline: runs collection
src/tech_news/web.py - Digest web server → SQLite storage: reads stories
src/tech_news/web.py - SQLite storage → Text and URL cleaning: canonicalizes URLs
src/tech_news/storage.py - SQLite storage → Story matching: matches stories
src/tech_news/storage.py - SQLite storage → News item model: stores items
src/tech_news/storage.py