# Horizon **Repository Path**: sanjuan/Horizon ## Basic Information - **Project Name**: Horizon - **Description**: No description available - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: main - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2026-02-27 - **Last Updated**: 2026-02-27 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README
# ๐ŸŒ… Horizon **AI curates the tech news. You just read.** [![Python](https://img.shields.io/badge/python-3.11+-blue.svg?style=flat-square&logo=python&logoColor=white)](https://www.python.org/downloads/) [![License](https://img.shields.io/badge/license-MIT-green.svg?style=flat-square)](LICENSE) [![uv](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/uv/main/assets/badge/v0.json&style=flat-square)](https://github.com/astral-sh/uv) [![Daily Summary](https://github.com/Thysrael/Horizon/actions/workflows/deploy-docs.yml/badge.svg?style=flat-square)](https://thysrael.github.io/Horizon/) [![GitHub commit activity](https://img.shields.io/github/commit-activity/m/Thysrael/Horizon?style=flat-square)](https://github.com/Thysrael/Horizon/commits/main) [![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=flat-square)](http://makeapullrequest.com)
![Claude](https://img.shields.io/badge/Claude-f0daba?style=flat-square&logo=anthropic&logoColor=black) ![GPT-4](https://img.shields.io/badge/GPT--4-412991?style=flat-square&logo=openai&logoColor=white) ![Gemini](https://img.shields.io/badge/Gemini-8E75B2?style=flat-square&logo=google&logoColor=white) ![DeepSeek](https://img.shields.io/badge/DeepSeek-0A6DC2?style=flat-square&logo=deepseek&logoColor=white) ![Doubao](https://img.shields.io/badge/Doubao-00D6C2?style=flat-square&logoColor=white) Horizon collects news from multiple customizable sources, uses AI to score and filter them, and generates a daily briefing โ€” complete with summaries, community discussions, and background explanations in both English and Chinese. [๐Ÿ“– Live Demo](https://thysrael.github.io/Horizon/) ยท [๐Ÿ“‹ Configuration Guide](https://thysrael.github.io/Horizon/configuration) ยท [็ฎ€ไฝ“ไธญๆ–‡](README_zh.md)
## Screenshots

Daily Overview

Daily Overview

News Detail

News Detail
Terminal Output

Terminal Output

## Features - **๐Ÿ“ก Multi-Source Aggregation** โ€” Collects from Hacker News, RSS feeds, Reddit, Telegram channels, and GitHub (releases & user events) - **๐Ÿค– AI-Powered Scoring** โ€” Uses Claude, GPT-4, Gemini, DeepSeek, Doubao, or any OpenAI-compatible API to rate each item 0-10, filtering out the noise - **๐ŸŒ Bilingual Summaries** โ€” Generates daily reports in both English and Chinese - **๐Ÿ” Content Enrichment** โ€” Searches the web to provide background knowledge for unfamiliar concepts - **๐Ÿ’ฌ Community Voices** โ€” Collects and summarizes discussions from comments on HackerNews, Reddit, etc. - **๐Ÿ”— Cross-Source Deduplication** โ€” Merges duplicate items from different platforms automatically - **๐Ÿ“ฐ Static Site Generation** โ€” Deploys as a GitHub Pages site via GitHub Actions, updated on a schedule - **โš™๏ธ Fully Configurable** โ€” Single JSON config file, easy to customize sources, thresholds, and AI providers ## How It Works ``` โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ” โ”‚ Hacker โ”‚ โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ” โ”‚ News โ”‚ โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ” โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ” โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ” โ”‚ RSS โ”‚โ”€โ”€โ–ถโ”‚ Reddit โ”‚โ”€โ”€โ–ถโ”‚ AI Score โ”‚โ”€โ”€โ–ถโ”‚ Enrich โ”‚โ”€โ”€โ–ถโ”‚ Summary โ”‚ โ”‚ Telegramโ”‚ โ”‚ GitHub โ”‚ โ”‚ & Filter โ”‚ โ”‚ & Search โ”‚ โ”‚ & Deploy โ”‚ โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜ โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜ โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜ โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜ โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜ Fetch from Merge & Score Web search Generate all sources deduplicate 0-10 each background Markdown & & filter knowledge deploy site ``` 1. **Fetch** โ€” Pull latest content from all configured sources concurrently 2. **Deduplicate** โ€” Merge items pointing to the same URL across different platforms 3. **Score** โ€” AI rates each item 0-10 based on technical depth, novelty, and impact 4. **Filter** โ€” Keep only items above your configured threshold (default: 6.0) 5. **Enrich** โ€” For high-scoring items, search the web for background context and collect community discussions 6. **Summarize** โ€” Generate a structured Markdown report with summaries, tags, and references 7. **Deploy** โ€” Optionally publish to GitHub Pages as a daily-updated static site ## Quick Start ### 1. Install ```bash git clone https://github.com/Thysrael/Horizon.git cd horizon # Install with uv (recommended) uv sync # Or with pip pip install -e . ``` ### 2. Configure ```bash cp .env.example .env # Add your API keys cp data/config.example.json data/config.json # Customize your sources ``` Here's what a config looks like: ```jsonc { "ai": { "provider": "openai", // or "anthropic", "gemini", "doubao" "model": "gpt-4", "api_key_env": "OPENAI_API_KEY", "languages": ["en", "zh"] // bilingual output }, "sources": { "hackernews": { "enabled": true, "fetch_top_stories": 20, "min_score": 100 }, "rss": [ { "name": "Simon Willison", "url": "https://simonwillison.net/atom/everything/" } ], "reddit": { "subreddits": [{ "subreddit": "MachineLearning", "sort": "hot" }], "fetch_comments": 5 }, "telegram": { "channels": [{ "channel": "zaihuapd", "fetch_limit": 20 }] } }, "filtering": { "ai_score_threshold": 6.0, "time_window_hours": 24 } } ``` For the full reference, see the [Configuration Guide](docs/configuration.md). ### 3. Run ```bash uv run horizon # Run with default 24h window uv run horizon --hours 48 # Fetch from last 48 hours ``` The generated report will be saved to `data/summaries/`. ### 4. Automate (Optional) Horizon works great as a **GitHub Actions** cron job. See [`.github/workflows/daily-summary.yml`](.github/workflows/daily-summary.yml) for a ready-to-use workflow that generates and deploys your daily briefing to GitHub Pages automatically. ## Supported Sources | Source | What it fetches | Comments | |--------|----------------|----------| | **Hacker News** | Top stories by score | Yes (top N comments) | | **RSS / Atom** | Any RSS or Atom feed | โ€” | | **Reddit** | Subreddits + user posts | Yes (top N comments) | | **Telegram** | Public channel messages | โ€” | | **GitHub** | User events & repo releases | โ€” | ## Roadmap - [x] Multi-source aggregation (HN, RSS, Reddit, Telegram, GitHub) - [x] AI scoring with multiple providers - [x] Bilingual summary generation (EN/ZH) - [x] Web search for background enrichment - [x] Community discussion collection - [x] GitHub Pages deployment - [ ] Email / Slack / Webhook notification - [x] Web UI dashboard - [ ] More source types (Twitter/X, Discord, etc.) - [ ] Custom scoring prompts per source ## Contributing Contributions are welcome! Feel free to open issues or submit pull requests. ## License [MIT](LICENSE)