cd /news/ai-tools/show-hn-local-hn-brief Β· home β€Ί topics β€Ί ai-tools β€Ί article
[ARTICLE Β· art-178059] src=github.com β†— pub= topic=ai-tools verified=true sentiment=↑ positive

Show HN: Local HN-Brief

A developer released HN-Brief, an open-source tool that uses a Cloudflare Worker running every 2 hours to pull the top 20 Hacker News stories from the HN Algolia API, summarize each article and its discussion through an LLM (OpenRouter by default, with Cebras, Nvidia NIM and Xiaomi MiMo as fallbacks), and publish a daily digest as a static site. The Worker commits the generated markdown files to GitHub, triggering a Cloudflare Pages redeploy, and the project ships a Bun-based CLI (v1.0+) with flags for date selection, article-only or digest-only runs, and repair of low-quality stories by HN ID. A separate private pipeline runs once a day in Podman and writes retained JSON, Markdown and LLM traces to a host directory, where agents read latest.json to find the newest briefing.

key takeaway

HN-Brief's Bun CLI supports --date, --articles, --digest and --repair (with repeatable --id) flags, and defaults summarization to OpenRouter with Cebras, Nvidia NIM and Xiaomi MiMo as fallbacks.

read4 min views2 publishedNov 29, 2026
Show HN: Local HN-Brief
Image: Michielbdejong (auto-discovered)

AI-powered daily summaries of Hacker News stories and discussions.

Too busy to scroll through Hacker News every day? HN-Brief automatically fetches the top 20 stories, summarizes each article and its discussion using AI, and generates a cohesive daily digest all hosted as a simple static site.

πŸ”— Live site: hn-brief.com

  1. Fetch β€” A Cloudflare Worker runs every 2 hours, pulling the top stories from theHN Algolia API .
  2. Summarize β€” Each story + its comments are sent to an LLM (viaOpenRouter by default, with Cebras/Nvidia/Xiaomi as fallbacks).
  3. Digest β€” All summaries are combined into a single, flowing narrative for quick reading.
  4. Publish β€” The Worker commits the markdown files directly to GitHub, triggering a Cloudflare Pages redeploy.
  • Article Mode : Per-story summaries with article + discussion breakdown

  • Digest Mode : All stories summarized into one cohesive narrative

  • Daily Archive : Browse summaries from previous days via calendar picker

  • HN Aesthetic : Classic Hacker News styling with Verdana font

  • Zero Framework : Pure HTML/CSS/JS frontend

  • Bun (v1.0+)

  • API key for summarization (Cebras, Nvidia NIM, Xiaomi MiMo, OpenRouter, or OpenAI-compatible)

git clone https://github.com/jnd0/hn-brief.git
cd hn-brief

bun install

cp .env.example .env
bunx serve .

Visit http://localhost:3000

bun run summarize

bun run summarize -- --help
Option Short Description
--date <YYYY-MM-DD> -d Run for a specific date (default: today)
--articles -a Generate only article summaries
--digest -g Generate only digest summary
--repair -r Repair low-quality stories in an existing article file
--id <HN_ID> - Repair a specific story ID (repeatable, with --repair )
--help -h Show help message
bun run summarize

bun run summarize -- --date 2025-12-25

bun run summarize -- --articles

bun run summarize -- -d 2025-12-25 -g

bun run summarize -- -r -d 2026-02-06

bun run summarize -- -r -d 2026-02-06 --id 46911869

A separate, private pipeline runs once a day in Podman and writes retained JSON, Markdown, and LLM traces to a host directory. Agents read latest.json in that directory to find the newest briefing. See docs/local-data-pipeline.md for setup, scheduling, failure inspection, and pruning. The upstream Cloudflare Worker documentation below still applies.

Variable Description Required
OPENROUTER_API_KEY OpenRouter API key (preferred) Yes (or one of below)
OPENROUTER_MODEL OpenRouter model override No
CEBRAS_API_KEY Cebras API key (fallback) Yes (or one of below)
CEBRAS_API_URL Cebras API URL override No
CEBRAS_API_MODEL Cebras model (default: qwen-3-235b-a22b-instruct-2507 ) No
NVIDIA_API_KEY Nvidia NIM API key (fallback) Yes (or one of below)
NVIDIA_MODEL Nvidia model override (default: moonshotai/kimi-k2.5 ) No
XIAOMI_API_KEY Xiaomi MiMo API key (fallback) Yes (or one of below)
XIAOMI_API_URL Xiaomi API URL override No
XIAOMI_MODEL Xiaomi model override (default: mimo-v2-flash ) No
OPENAI_API_KEY OpenAI-compatible API key Yes (or another key)
LLM_MODEL Legacy model override for OpenRouter/Nvidia/OpenAI-compatible No
LLM_API_URL Override LLM API URL (OpenRouter/Nvidia/OpenAI-compatible) No
LLM_THINKING_FORCE Force thinking mode for providers that support it ( true /false ) No
LLM_THINKING Alias for LLM_THINKING_FORCE No
GITHUB_TOKEN GitHub PAT for automated commits For Worker only
REPO_OWNER GitHub username For Worker only
REPO_NAME Repository name For Worker only
MAX_COMMENT_CHARS Character budget for comments (default: 15000) No
MAX_COMMENTS_PER_ROOT Max comments per top-level thread (default: 3) No

When using Nvidia NIM, article summaries run in Instant mode (temp 0.6) and digest runs in Thinking mode (temp 1.0). Set LLM_THINKING_FORCE to force both.

hn-brief/
β”œβ”€β”€ index.html          # Frontend (Article/Digest toggle)
β”œβ”€β”€ assets/
β”‚   β”œβ”€β”€ style.css       # HN-style CSS
β”‚   β”œβ”€β”€ app.js          # Frontend JavaScript
β”‚   └── favicon.png     # Site favicon
β”œβ”€β”€ pages/
β”‚   β”œβ”€β”€ faq.html        # FAQ page
β”‚   └── about.html      # About page
β”œβ”€β”€ scripts/
β”‚   └── summarizer.ts   # Bun script for local generation
β”œβ”€β”€ worker/
β”‚   β”œβ”€β”€ index.ts        # Cloudflare Worker
β”‚   └── wrangler.jsonc  # Worker config
└── summaries/          # Generated summaries (organized by year/month)
    β”œβ”€β”€ archive.json    # Index of available dates (see below)
    └── YYYY/
        └── MM/
            β”œβ”€β”€ DD.md
            └── DD-digest.md

See CONTRIBUTING.md for guidelines.

MIT

── more in #ai-tools 4 stories Β· sorted by recency
── more on @hn-brief 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain β€” perfect for shipping the agent you just read about.

$git push zahid main
β†’ Live at https://your-agent.zahid.host βœ“
Get free account β†’ Pricing
from €0/mo Β· no card required
LIVE [news/show-hn-local-hn-bri…] indexed:0 read:4min 2026-11-29 Β· β€”