HackerTube: YouTube built from videos recommended by HN
Описание и применение
HackerTube – сайт, собранный из видео, рекомендованных в комментариях Hacker News, создан за два часа с помощью Claude Code и Opus 5.5, с низкой стоимостью токенов и простыми требованиями к инфраструктуре.
Задача
Build a YouTube‑like site using only videos recommended by Hacker News, while keeping costs low and automating content curation.
Результат
The project was completed in about two hours, required only a YouTube API key, a VPS, and a domain, and cost roughly $227 USD in token usage when caching was applied.
Рабочий процесс
- 1. Scrape all HN comments 2007‑2026 and extract YouTube links.
- 2. Filter links: keep only those referenced by ≥3 users in ≥3 distinct months.
- 3. Use Claude to read each comment and classify it as recommendation, reference, joke, or critique.
- 4. Claude writes a card for each video: summary, reason for popularity, category, and current relevance.
- 5. Rank videos by number of months they were recommended, not by view count.
- 6. Generate thumbnails using the 50% frame of each video.
- 7. Deploy the site with a simple front‑end and vector search (bge‑small embeddings).
Доказательства
Karpathy เขียนว่าเว็บนี้ใช้เวลาทำราวสองชั่วโมง
ขั้นที่สองคือการกรองด้วยกฎที่คนกำหนด วิดีโอจะผ่านก็ต่อเมื่อ มีคนอย่างน้อยสามคนลิงก์มันพร้อมความเห็นจริง และลิงก์นั้นกระจายอยู่ในอย่างน้อยสามเดือนต่างกัน
ขั้นที่สาม ให้ Claude อ่านคอมเมนต์ทุกอันพร้อมชื่อกระทู้ แล้วตัดสินว่าเจ้าของคอมเมนต์กำลัง แนะนำ อ้างอิง เล่นมุก หรือวิจารณ์ วิดีโอนั้น
อินพุต 504,000,000 โทเคน (แคชไว้ราว 90%) เอาต์พุต 7,600,000 โทเคน สัดส่วนการใช้งาน เกิน 90% เป็น Sonnet อ่านและติดป้ายคอมเมนต์ ราว 1 ล้าน เป็นงานจริงของ Opus 5.5
เมื่อแบ่งอินพุต 504 ล้านโทเคนเป็น Sonnet 503 ล้านและ Opus 1 ล้าน แล้วคิดแคช 90% ตามที่เขาบอก ผลลัพธ์คือประมาณ 227 ดอลลาร์สหรัฐ
- Дата записи: 2026-11-03T11:14:09.179Z