No description
  • HTML 67%
  • JavaScript 32.4%
  • Dockerfile 0.6%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2026-11-16 12:00:09 +01:00
docker-compose.yml initial version 2026-11-16 11:35:52 +01:00
Dockerfile initial version 2026-11-16 11:35:52 +01:00
index.html initial version 2026-11-16 11:35:52 +01:00
README.md initial version 2026-11-16 11:35:52 +01:00
server.mjs SSRF guard: never fetch private/loopback hosts from story links 2026-11-16 12:00:09 +01:00

The Hacker Post

A newspaper-style reader for Hacker News. Serves the HN front-page RSS as a broadsheet: masthead, lead story with drop cap, three-column flow, snippets of each article (full text if the piece is short). Zero npm dependencies.

Run (Docker)

docker compose up -d --build

Then open http://localhost:8080

Or without compose:

docker build -t hackernewspaper . && docker run -p 8080:8080 hackernewspaper

Run without Docker

node server.mjs            # PORT env var overrides 8080

The server fetches news.ycombinator.com/rss and the linked articles server-side (avoids browser CORS), extracts readable paragraphs, and caches for 15 minutes in memory. GET /api/feed returns the raw JSON if you want it.