How sansan0/trendradar works
TrendRadar collects trending-news and RSS data, analyzes and filters it, then produces reports and notifications; it also exposes stored data and analytics through an MCP server. The graph preserves the documented AI, RSS, reporting, notification, storage, and MCP capabilities. Edges are limited to relationships visible in the supplied excerpts or SOURCE INDEX; several feature modules were not sampled, so their internal wiring is intentionally omitted.
Main entry points: __main__.py Application entry · server.py MCP server · filter_pipeline.py Filter workflow · data_service.py Data service
Components 28
Collection and analysis
- Application entry
trendradar/__main__.py - App context
trendradar/context.py - Hotlist crawler
trendradar/crawler/fetcher.py - RSS fetching
trendradar/crawler/rss/fetcher.py - RSS parsing
trendradar/crawler/rss/parser.py - News analysis
trendradar/core/analyzer.py - Keyword frequency
trendradar/core/frequency.py - AI analysis
trendradar/ai/analyzer.py - AI filtering
trendradar/ai/filter.py - Filter workflow
trendradar/ai/filter_pipeline.py - AI translation
trendradar/ai/translator.py
Reports and notifications
- Report generation
trendradar/report/generator.py - HTML rendering
trendradar/report/html.py - Notification dispatch
trendradar/notification/dispatcher.py - Notification senders
trendradar/notification/senders.py
Storage and retrieval
- Storage manager
trendradar/storage/manager.py - Local storage
trendradar/storage/local.py - Remote storage
trendradar/storage/remote.py - Remote backend
trendradar/storage/remote.py
MCP access
- MCP server
mcp_server/server.py - Data service
mcp_server/services/data_service.py - Database parser
mcp_server/services/parser_service.py - Analytics tools
mcp_server/tools/analytics.py - Query tools
mcp_server/tools/data_query.py - Search tools
mcp_server/tools/search_tools.py - Storage sync
mcp_server/tools/storage_sync.py
Other components
- User or scheduler
- Newsnow API
Connections 23
- User or scheduler → Application entry: runs
trendradar/__main__.py - Application entry → App context: uses
trendradar/__main__.py - Application entry → News analysis: imports
trendradar/__main__.py - Application entry → Filter workflow: imports
trendradar/__main__.py - Application entry → HTML rendering: imports
trendradar/__main__.py - Application entry → RSS parsing: imports
trendradar/__main__.py - App context → Filter workflow: uses
trendradar/context.py - Filter workflow → AI filtering: calls
trendradar/ai/filter_pipeline.py - Filter workflow → Keyword frequency: uses
trendradar/ai/filter_pipeline.py - RSS parsing → HTML rendering: imports
trendradar/crawler/rss/parser.py - Storage manager → Local storage: selects
trendradar/storage/manager.py - Storage manager → Remote storage: selects
trendradar/storage/manager.py - MCP server → Query tools: dispatches
mcp_server/server.py - MCP server → Analytics tools: dispatches
mcp_server/server.py - MCP server → Search tools: dispatches
mcp_server/server.py - MCP server → Storage sync: dispatches
mcp_server/server.py - Query tools → Data service: calls
mcp_server/tools/data_query.py - Search tools → Data service: calls
mcp_server/tools/search_tools.py - Analytics tools → News analysis: uses
mcp_server/tools/analytics.py - Data service → Database parser: uses
mcp_server/services/data_service.py - Database parser → Keyword frequency: loads
mcp_server/services/parser_service.py - Storage sync → Remote backend: uses
mcp_server/tools/storage_sync.py - Newsnow API → Hotlist crawler: provides data
README.md