Chat-to-Build Personalized Hacker News Email Digest
Описание и применение
Разработчик создал приложение для создания персонализированных дайджестов Hacker News через чат. Пользователи описывают интересы, настраивают фильтры и расписание доставки писем, используя свой ключ Resend. Решение использует CopilotKit, Next.js и Upstash QStash.
Задача
Generic Hacker News newsletters do not align with individual interests, and manual curation is time-consuming. Existing solutions are either too broad or require complex setup.
Результат
A fully functional, self-hostable web application that allows users to generate and schedule personalized Hacker News digests via natural language chat, using their own email sending credentials.
Рабочий процесс
- User describes desired content (e.g., 'security news from last 48h') in the chat editor.
- LLM parses intent and calls frontend tools to update the newsletter configuration state.
- Configuration is sent to the preview API, which renders the email using React Email.
- User reviews the live preview and adjusts filters or sections via chat.
- User activates the digest by providing a Resend API key and recipient email.
- System encrypts the API key (AES-256-GCM) and stores the schedule in Neon Postgres.
- Upstash QStash schedules HTTP callbacks based on user timezone and frequency.
- On schedule trigger, the system fetches fresh HN data, renders the email, and sends it via the user's Resend key.
Доказательства
You can chat to build your own personalized Hacker News newsletter, preview it live with real HN data, and schedule it to your inbox
The chat doesn't directly write to the database. The LLM's tool calls only update the browser state.
- Дата записи: 2026-09-07T02:07:17.477Z