miantiao-me/hacker-podcast
一个基于 AI 的 Hacker News 中文播客项目,每天自动抓取 Hacker News 热门文章,通过 AI 生成中文总结并转换为播客内容。
What it solves
This project automates the creation of a daily Chinese-language podcast about Hacker News. Instead of manually reading English articles and writing summaries, it scrapes the day's hottest Hacker News posts, uses AI to generate Chinese summaries and narration scripts, then converts them into audio with text-to-speech. It saves time for Chinese-speaking audiences who want to keep up with tech news in their own language.
How it works
The workflow runs on Cloudflare Workers with scheduled triggers:
- Fetch popular articles from Hacker News each day.
- Use the OpenAI API (default model gpt-4.1) to generate Chinese summaries and full narration scripts based on the article content and comments.
- Convert the scripts to audio using TTS (Edge TTS is used, with some caveats noted for local development).
- Store the generated audio and metadata in Cloudflare R2 and KV storage.
- Serve the podcast through an RSS feed and a web app built with vinext (Vite + React Server Components) and Tailwind CSS.
The project is split into two parts: a Worker that handles scraping, AI processing, and audio generation, and a web app that displays episodes and provides the RSS feed. Deployment is done via Cloudflare Workers with environment variables for API keys and storage bindings.
Who it's for
This is aimed at Mandarin-speaking tech enthusiasts who want a daily Chinese-language recap of Hacker News highlights. It's also useful for developers interested in building automated podcast pipelines or AI-driven content generation systems. The code provides a reference for integrating OpenAI APIs, TTS, and Cloudflare's serverless infrastructure.
Highlights
- Fully automated daily pipeline from news scraping to published podcast.
- AI-generated summaries and scripts in Chinese, covering both articles and comments.
- Supports multiple distribution channels: RSS, Apple Podcasts, YouTube, 小宇宙 (Xiaoyuzhou), and Spotify.
- Built on Cloudflare Workers, R2, KV, and workflows, making it serverless and scalable.
- Provides both a web interface and podcast app compatibility.
- Includes optional configuration for custom OpenAI base URLs and headers, offering flexibility for different API providers.
- Open source with clear local development and deployment instructions.
Related
- Project
- Project
- Project
- Project
- Project