How aboelresh/gnip works
Global News Intelligence Platform collects RSS news, removes duplicates, analyzes articles, clusters coverage into stories, and creates multilingual briefings for API and web users. The README documents the scheduled pipeline; sampled code confirms article deduplication, AI-provider fallback, and API article analysis. Several pipeline commands and feed components were not sampled, so their documented connections are cited to the README rather than inferred from code.
Main entry points: Api API controllers · AIManager.php AI provider manager · Article.php Articles · BriefingGeneratorService.php Briefing generation
Components 21
News ingestion
- Feed fetching
app/Services/Feed/FeedFetcher.php - Fetch command
app/Console/Commands/FetchFeeds.php - Article repository
app/Repositories/ArticleRepository.php
Content analysis
- Analysis command
app/Console/Commands/AnalyzeArticles.php - Article analysis
app/Services/AI/ArticleAnalyzer.php - AI provider manager
app/Services/AI/AIManager.php - AI providers
app/Services/AI - Story clustering
app/Services/Analysis/StoryClusteringService.php - Clustering command
app/Console/Commands/ClusterStories.php - Briefing generation
app/Services/Analysis/BriefingGeneratorService.php - Briefing command
app/Console/Commands/GenerateBriefing.php
User delivery
- REST API
routes/api.php - API controllers
app/Http/Controllers/Api - Web search
app/Http/Controllers/Web/SearchController.php
Domain data
- Articles
app/Models/Article.php - News sources
app/Models/Source.php - AI usage logs
app/Models/AiLog.php - Stories and evidence
app/Models/Story.php - Briefings
app/Models/Briefing.php
Other components
- RSS sources
- News reader
Connections 26
- RSS sources → Feed fetching: supplies feeds
- Fetch command → Feed fetching: runs fetching
- Feed fetching → Article repository: stores items
- Article repository → Articles: deduplicates and saves
app/Repositories/ArticleRepository.php - Feed fetching → News sources: fetches from
- Analysis command → Article analysis: runs analysis
app/Console/Commands/AnalyzeArticles.php - Article analysis → AI provider manager: requests AI
app/Services/AI/ArticleAnalyzer.php - AI provider manager → AI providers: tries providers
app/Services/AI/AIManager.php - AI provider manager → AI usage logs: records usage
app/Services/AI/AIManager.php - Article analysis → Articles: analyzes articles
app/Services/AI/ArticleAnalyzer.php - Articles → Story clustering: feeds clustering
app/Services/Analysis/StoryClusteringService.php - Clustering command → Story clustering: runs clustering
- Story clustering → Stories and evidence: forms stories
app/Services/Analysis/StoryClusteringService.php - Briefing command → Briefing generation: runs generation
- Briefing generation → AI provider manager: requests AI
app/Services/Analysis/BriefingGeneratorService.php - Briefing generation → Stories and evidence: summarizes stories
app/Services/Analysis/BriefingGeneratorService.php - Briefing generation → Briefings: creates briefings
app/Services/Analysis/BriefingGeneratorService.php - REST API → API controllers: routes requests
routes/api.php - API controllers → Articles: serves articles
app/Http/Controllers/Api/ArticleController.php - API controllers → AI provider manager: invokes analysis
app/Http/Controllers/Api/ArticleController.php - API controllers → Stories and evidence: serves stories
routes/api.php - API controllers → Briefings: serves briefings
app/Http/Controllers/Api/BriefingController.php - Web search → Articles: searches articles
app/Http/Controllers/Web/SearchController.php - Web search → Stories and evidence: searches stories
app/Http/Controllers/Web/SearchController.php - News reader → REST API: requests news
- News reader → Web search: searches coverage