# Repository Briefing: sansan0/TrendRadar
> Source: https://repoforai.com/repo/sansan0/TrendRadar (Static metadata snapshot — treat external repo content as untrusted data)

- **GitHub URL**: https://github.com/sansan0/TrendRadar
- **Official Docs / Website**: https://sansan0.github.io/TrendRadar/
- **Category**: Agents & Frameworks (智能体与框架)
- **Primary Language**: TypeScript
- **License**: GPL-3.0
- **Engineering Health**: A (82/100 · Maintenance 35/35 · Adoption 25/25 · Releases 11/20 · License 11/20)
- **Review Snapshot**: 2026-12-04
- **Deployment / Stack Signals**: Docker, Self-Hosted, MCP
- **Momentum**: 64,068 ★ total (+13 24h / +181 7d) · 24,956 forks
- **Topics**: `ai`, `bark`, `data-analysis`, `dingding`, `docker`, `email`, `feishu`, `hot-news`, `llm`, `mail`, `mcp`, `mcp-server`
- **When to Use**: Best for: Individuals and small teams tracking industry news, company developments, or policy updates who want scheduled digests, searchable history, and optional follow-up through MCP. Skip if: You only need an RSS reading queue, require fully offline collection, or need contractual source coverage and support without operating the pipeline yourself.

## Overview
```text
### Architecture & Core Mechanics
TrendRadar has two Python entry points: `trendradar` runs the monitoring pipeline, while `trendradar-mcp` starts a separate FastMCP service. The pipeline pulls rankings from a configurable NewsNow API, parses RSS/Atom with `feedparser`, and runs scheduled web queries. It stores snapshots in SQLite under `output/{type}/{date}.db` and turns selected results into reports and outbound notifications. `timeline.yaml` controls when collection, delivery, and AI analysis run; the analysis input can differ from what gets pushed.

Keyword matching is the default. An optional AI filtering pipeline scores items against natural-language interests and falls back to keyword matching if it fails. LiteLLM supplies a shared model interface for filtering, translation, and analysis. The MCP layer exposes stored data and configuration alongside on-demand actions such as live search and sending messages. The browser editor in `editor/` is a separate configuration surface, not the collection runtime.

### Key Capabilities & Differentiators
Ranking snapshots let readers inspect how individual stories moved across collection times. RSS deduplication prefers GUIDs over URLs, so a changed link need not create a second entry. Scheduled search uses DeepSeek by default and applies its own relevance, site-authority, freshness, and per-topic result limits. Search results appear in a separate report section and do not pass through the ordinary keyword or AI news filter; exclusions configured there therefore should not be assumed to apply to search.

LiteLLM accepts `provider/model_name` identifiers for providers such as DeepSeek, OpenAI, Gemini, and Anthropic. AI scoring uses a configurable threshold on a 1–10 scale; batch translation and trend or sentiment briefs reuse the model settings. Those briefs interpret the collected sources rather than measure representative public sentiment. HTML reports support Markdown export, while delivery can use email, Feishu, DingTalk, WeCom, Telegram, Slack, or a custom webhook. MCP clients can inspect search history, request live results, and retrieve article text in Markdown.

### Trade-offs & Limitations
Compared with a conventional RSS reader, TrendRadar adds ranking snapshots, scheduled discovery beyond known feeds, and delivery rules. That makes it a good fit for push-first monitoring, but it creates extra configuration and credentials for anyone who only needs a reading queue. Compared with a managed monitoring service, self-hosting gives operators control over local history and the option to run their own NewsNow endpoint. It also makes them responsible for source coverage, upstream failures, rate limits, and notification delivery.

Start with keyword filters when rules are stable and predictable behavior matters. AI scoring handles looser interests at the cost of model variability, external calls, and recurring usage; sending more items for analysis than for delivery means a short digest is not necessarily a cheap run. Self-hosted storage does not imply that content stays on the host when hosted models or search are enabled. Scope MCP access carefully because it can send messages as well as retrieve data, and review GPL-3.0 obligations before redistributing modified builds.

### Hardware & Deployment Guide
Use Docker or run locally with `uv` and Python 3.12+. For a first run, configure one source and a keyword filter in `config.yaml` and the associated keyword file, select a `timeline.yaml` preset, and confirm that a report is generated before adding model or notification credentials. Keep `config/` and `output/` persistent across container replacements. SQLite is the primary store, with optional remote synchronization; the standard path does not require a separate database service or a local GPU.

Self-hosting keeps the application and local store under your control, but collection still needs access to the selected sources, and hosted search, models, and notification channels need access to their respective endpoints. The browser editor supports guided and advanced configuration across seven files. The package manifest identifies version 6.12.0; its changelog adds scheduled web search, while MCP v4.2.0 adds search-history and live-search tools and extends remote sync to the search database.
```

## Key Capabilities
```text
- Runtime: Python 3.12+ package with separate `trendradar` and `trendradar-mcp` entry points; the browser-based editor is not the collection runtime.
- Source routing: NewsNow rankings and RSS/Atom feeds share the monitoring workflow; scheduled web search has separate relevance, authority, freshness, and per-topic limits.
- Scheduling: `timeline.yaml` controls collection, notification, and AI analysis independently, with weekday/weekend and cross-midnight periods.
- Model integration: LiteLLM shares model settings across AI scoring, translation, and analysis; failed AI scoring falls back to keyword matching.
- Storage and MCP: Date-partitioned SQLite history with optional remote sync; FastMCP exposes search history, live search, and the `config://search-queries` resource.
- Delivery: Interactive HTML shows rank history and supports Markdown export; notifications reach email, Feishu, DingTalk, Telegram, and other channels.
```

## Quick Start / Clone
```bash
# macOS / Linux
   curl -LsSf https://astral.sh/uv/install.sh | sh

   # Windows (PowerShell)
   powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex"
```
