TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Show HN: New Hacker News posts and comments in realtime

1 pointsby jerbear4328about 1 year ago
Hi HN, I made a live feed for viewing all of the new items on Hacker News in almost-realtime. It is a single, modern HTML file that doesn&#x27;t use polling.<p>It works by establishing a websocket connection to the Hacker News Firebase database, to receive updates every time the HN server updates Firebase, which is about once every 30 seconds. This is very efficient, putting no load on HN&#x27;s server and using minimal bandwidth.<p>To make the feed continuous despite the delay, it waits to display each item until exactly 30 seconds before displaying it. I think this is a fair tradeoff, it gives you a sense of how active HN is. For comparision, there are something like 6-7 <i>thousand</i> tweets <i>every second</i>.<p>Official HN Firebase API: <a href="https:&#x2F;&#x2F;github.com&#x2F;HackerNews&#x2F;API">https:&#x2F;&#x2F;github.com&#x2F;HackerNews&#x2F;API</a><p>Source code: <a href="https:&#x2F;&#x2F;github.com&#x2F;jerbear2008&#x2F;hn-live&#x2F;blob&#x2F;main&#x2F;index.html">https:&#x2F;&#x2F;github.com&#x2F;jerbear2008&#x2F;hn-live&#x2F;blob&#x2F;main&#x2F;index.html</a>

1 comment

gus_massaabout 1 year ago
interesting idea, but I think it&#x27;s better to change the logo so it&#x27;s clear that this is not an official site.