How zt6453928/news-agent works
News Agent Web collects RSS stories, turns them into AI-generated daily articles, and exposes them through a configurable web application. The main workflow runs through the backend collection service, which coordinates feed collection and article generation before persisting results; it can be started manually or on a schedule. The frontend provides article browsing and feed, category, API, and schedule management. Relationships for sampled backend calls are supported by source references or excerpts; frontend-to-API links and unsampled capabilities are based on the README, so implementation detail there is limited.
Main entry points: news_service.py News service · main.py HTTP API routes · api.ts API client · generator.py Article generator
Components 18
Web application
- Article home
frontend/src/app/page.tsx - Article list
frontend/src/components/article-list.tsx - Article detail
frontend/src/app/article/[slug]/page.tsx - Settings UI
frontend/src/app/settings/page.tsx - API client
frontend/src/lib/api.ts - App shell
frontend/src/app/layout.tsx
API and services
- HTTP API routes
backend/app/main.py - API and domain schemas
backend/app/schemas.py
News production
- News service
backend/app/news_service.py - RSS collector
backend/app/collector.py - Article generator
backend/app/generator.py
Persistence and settings
- Data models
backend/app/models.py - SQLite database
backend/app/models.py - Settings service
backend/app/settings_service.py
Scheduling
- Daily scheduler
backend/app/scheduler.py
Other components
- Reader / admin
- RSS providers
- OpenAI-compatible API
Connections 21
- Reader / admin → Article home: browses
README.md - Reader / admin → Settings UI: configures
README.md - Article home → API client: requests articles
- Article detail → API client: requests article
- Settings UI → API client: manages settings
frontend/src/app/settings/page.tsx - App shell → Article home: renders page
- API client → HTTP API routes: calls API
README.md - HTTP API routes → News service: delegates news
backend/app/main.py - HTTP API routes → Settings service: delegates settings
backend/app/main.py - HTTP API routes → Daily scheduler: updates schedule
backend/app/main.py - News service → RSS collector: collects feeds
backend/app/news_service.py - News service → Article generator: generates articles
backend/app/news_service.py - RSS collector → RSS providers: fetches RSS
backend/app/collector.py - Article generator → OpenAI-compatible API: requests generation
backend/app/generator.py - News service → Data models: reads and writes
backend/app/news_service.py - Settings service → Data models: reads and writes
backend/app/settings_service.py - Data models → SQLite database: persists records
backend/app/models.py - News service → API and domain schemas: uses domain types
backend/app/news_service.py - Article generator → API and domain schemas: uses article types
backend/app/generator.py - Daily scheduler → News service: runs collection
backend/app/scheduler.py - Daily scheduler → Settings service: reads schedule
backend/app/scheduler.py