Loading page...Загружаем страницу...正在加载页面...
AtlasRepo

HackerTube: YouTube built from videos recommended by HN

Description and use

HackerTube is a YouTube‑style site built from videos recommended by Hacker News comments, created in about two hours using Claude Code and Opus 5.5, with low token costs and minimal infrastructure needs.

Problem

Build a YouTube‑like site using only videos recommended by Hacker News, while keeping costs low and automating content curation.

Outcome

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.

Workflow

  • 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).

Evidence

Karpathy เขียนว่าเว็บนี้ใช้เวลาทำราวสองชั่วโมง

Source

ขั้นที่สองคือการกรองด้วยกฎที่คนกำหนด วิดีโอจะผ่านก็ต่อเมื่อ มีคนอย่างน้อยสามคนลิงก์มันพร้อมความเห็นจริง และลิงก์นั้นกระจายอยู่ในอย่างน้อยสามเดือนต่างกัน

Source

ขั้นที่สาม ให้ Claude อ่านคอมเมนต์ทุกอันพร้อมชื่อกระทู้ แล้วตัดสินว่าเจ้าของคอมเมนต์กำลัง แนะนำ อ้างอิง เล่นมุก หรือวิจารณ์ วิดีโอนั้น

Source

อินพุต 504,000,000 โทเคน (แคชไว้ราว 90%) เอาต์พุต 7,600,000 โทเคน สัดส่วนการใช้งาน เกิน 90% เป็น Sonnet อ่านและติดป้ายคอมเมนต์ ราว 1 ล้าน เป็นงานจริงของ Opus 5.5

Source

เมื่อแบ่งอินพุต 504 ล้านโทเคนเป็น Sonnet 503 ล้านและ Opus 1 ล้าน แล้วคิดแคช 90% ตามที่เขาบอก ผลลัพธ์คือประมาณ 227 ดอลลาร์สหรัฐ

Source

  • Record date: 2026-11-03T11:14:09.179Z