Most active commenters
  • gregsadetsky(5)
  • Imustaskforhelp(4)
  • geuis(3)
  • (3)
  • jasonthorsness(3)
  • jerbear4328(3)

Hacker News Live Feed

(jerbear2008.github.io)
229 points gregsadetsky | 77 comments | | HN request time: 1.854s | source | bottom
1. gregsadetsky ◴[] No.45531368[source]
Source code: https://github.com/jerbear2008/hn-live

And live firebase source/api (run by HN) used for this: https://github.com/HackerNews/API

(just making sure it's obvious - I didn't create this site! all credits to @jerbear4328 who is here on HN - I'll email them to let them know it's trending) :-)

replies(3): >>45531552 #>>45532561 #>>45532795 #
2. toomuchtodo ◴[] No.45531552[source]
Very cool! Thanks for sharing!

(edit: terminal version available?)

replies(1): >>45532484 #
3. insin ◴[] No.45531820[source]
If you want a live version of most of the site (including tracking new comments in items you've already looked at), I made this to improve my React skills when the HN API first came out:

https://insin.github.io/react-hn

replies(1): >>45532627 #
4. ranger_danger ◴[] No.45531906[source]
Bets on how overwhelmingly negative the comment sentiments are? Anyone got an LLM handy to analyze that
replies(3): >>45531998 #>>45532261 #>>45532848 #
5. Rendello ◴[] No.45531918[source]
I often wonder if dang and tomhow have something like this running.
replies(2): >>45532146 #>>45533357 #
6. AlecSchueler ◴[] No.45531998[source]
It's actually quite stark looking at it this way and makes me question how healthy it is to use this site as often as I do. Fully aware that we're also piling on the negative sentiment.
7. Descon ◴[] No.45532047[source]
Fun! A css animation would make the updates less jarring and the feed easier to read
8. poly2it ◴[] No.45532146[source]
I wonder to what extent they read everything which is posted here.
replies(3): >>45532245 #>>45532432 #>>45532538 #
9. krapp ◴[] No.45532245{3}[source]
I know they get an alert whenever a comment is flagged. I assume they get an alert whenever certain "problematic" accounts post. Maybe they get an alert whenever the flamewar detector goes off? This forum is written in a Lisp so they can probably hotpatch whatever code they want and add whatever filters they want.

But dang has said numerous times that he doesn't read everything, that would probably not even be feasible.

The question is, YC being what it is, are they using LLMs to automate moderation or do sentiment analysis?

replies(1): >>45532658 #
10. gregsadetsky ◴[] No.45532261[source]
a very very quick copy/paste of 73 comments there - fed to claude with a basic "characterize+count comments" give me 70% neutral/technical, 14% positive, 16% negative.

claude also said "The negative comments tend to be more substantive critiques of systems or research approaches rather than personal attacks." - so... that's good? :-)

11. ChrisArchitect ◴[] No.45532279[source]
(2024) Show HN from the dev https://news.ycombinator.com/item?id=39509910
12. dang ◴[] No.45532432{3}[source]
Not even close.

https://news.ycombinator.com/item?id=20652157

https://hn.algolia.com/?dateRange=all&page=0&prefix=true&que...

replies(1): >>45534147 #
13. gregsadetsky ◴[] No.45532484{3}[source]
I'm not the author of this live feed site, but I did just find

https://github.com/ggerganov/hnterm

from the author of llama.cpp (!!).

it also has a beautiful web version thanks to emscripten: https://hnterm.ggerganov.com/

14. bigwheels ◴[] No.45532538{3}[source]
A person would lose their mind pretty quickly this way.

Great potential job for an LLM to potentially spot abuse. The existing mod tools/system seem to work quite well.. I like HN how it is!

15. blinding-streak ◴[] No.45532549[source]
Cool!

Would be slightly more contextual if the title of the original post was displayed.

replies(3): >>45532857 #>>45533018 #>>45533212 #
16. bigwheels ◴[] No.45532561[source]
It would be great to have the "on: x y z thread" field included.

This is literally the only thing that seems missing- Stupendous work!

replies(1): >>45534109 #
17. 1zael ◴[] No.45532602[source]
Pretty cool! I must manually refresh to see new posts. Implementing real-time updates (e.x. via WebSocket or Server-Sent Events) would significantly improve usability.
replies(1): >>45532753 #
18. MrCzar ◴[] No.45532627[source]
Wow it looks really cool, I think I might enjoy actually using it as the main way to view the site
replies(1): >>45533335 #
19. dang ◴[] No.45532658{4}[source]
We're working on the latter but it's not yet in production. We're only going to deploy it once it's clear that it significantly improves on what mods + the existing software are already doing. The hard part, of course, is how to evaluate that.
20. geuis ◴[] No.45532726[source]
oh boy I wrote one of these many years ago for HN.

Within like an hour or two pg emailed me asking me to stop. I didn't know it at the time, but HN was being run on a rusty potato and scraping the homepage every 5 or 10 seconds was causing significant load.

replies(2): >>45532992 #>>45533195 #
21. geuis ◴[] No.45532753[source]
It sounds cool, but for usability its not great. Think about how reddit recalculates the results order as you're paging through, and you see items from the previous page show up on the next. Now imagine that happening in realtime. Maybe there's a link you want to read, but you get pulled away for 10 minutes. By the time you get back the link is higher or lower, or may be completely missing.

As a side feature, that would be neat though.

replies(1): >>45533965 #
22. ◴[] No.45532766[source]
23. jasonthorsness ◴[] No.45532777[source]
Another great use of the HN API! It would be nice to filter it somehow to threads where I have commented, sometimes I don't notice until days later that someone replied to me.

To shill my own use of the API:

I did an animated "replay" view for historical threads like Rust 1.0 launch: https://hn.unlurker.com/replay?item=9551937

And a (static, refreshable) view of recent activity grouped by topic: https://hn.unlurker.com

replies(1): >>45533046 #
24. jasonthorsness ◴[] No.45532795[source]
Ha amazing that this is just an HTML file
25. Karrot_Kream ◴[] No.45532848[source]
I've done it before on large threads. Neutral sentiment tends to dominate at roughly 50% but negative sentiment is much higher than positive sentiment. Negative sentiment is also higher if you just take the highest ranked comments.
26. lovich ◴[] No.45532853[source]
Cool idea.

Separately I didn’t know posts/submissions could be instantly flagged dead and I didn’t know there are decade+ old bots still configured to spam this site https://news.ycombinator.com/submitted?id=VivaTechnics

27. neom ◴[] No.45532857[source]
I found it a fun game to guess what I thought the post was about.
28. Retr0id ◴[] No.45532873[source]
Writing this comment just to see how quickly it shows up

Edit: Felt like it took almost a minute, I wasn't timing precisely because I didn't expect it to take so long!

replies(1): >>45533234 #
29. wizzwizz4 ◴[] No.45532992[source]
Afaict, HN is still running on a rusty potato. The software's written well, so it doesn't need to run on more than that. (What's going to happen to it? Someone links to it from HN?)
replies(2): >>45533075 #>>45533588 #
30. HotGarbage ◴[] No.45533003[source]
I did this too: https://hn.hotgarba.ge/

Edit: Through my own tool I see this comment got insta-marked as [dead], rude.

replies(2): >>45533278 #>>45535015 #
31. jkarneges ◴[] No.45533018[source]
The HN/Firebase API doesn't make this easy. For https://hnstream.com I ended up crawling items to find the article.
replies(2): >>45533616 #>>45535590 #
32. onli ◴[] No.45533046[source]
You know about https://www.hnreplies.com/ ? Sends you a mail when someone replies to your comment.
replies(3): >>45533088 #>>45533446 #>>45537280 #
33. gregsadetsky ◴[] No.45533075{3}[source]
less rusty as of ~sep 2024 :-) https://news.ycombinator.com/item?id=44099006
replies(1): >>45533303 #
34. jasonthorsness ◴[] No.45533088{3}[source]
perfect, thanks
35. jerbear4328 ◴[] No.45533195[source]
Haha, my version makes a websocket connection to the official Firebase that the HN servers already send everything to, so it is zero extra load on HN
replies(2): >>45533683 #>>45534106 #
36. jerbear4328 ◴[] No.45533212[source]
I tried this, but it required making a request for every comment and would probably call for a backend, wheras this can run just off of the Firebase websocket stream on a static HTML file.
37. jerbear4328 ◴[] No.45533234[source]
It (hopefully) took exactly 30 seconds, the page delays every item until 30 seconds after its posted date. It doesn't poll HN's server, it opens a websocket to the official HN Firebase, and without the delay, items appear in large chunks. I'm pretty sure the HN server syncs with Firebase every 30 seconds, so this is as fast as it can go while still being accurate.
replies(1): >>45533899 #
38. lcnPylGDnU4H9OF ◴[] No.45533278[source]
I wonder if the domain is banned for some reason. Another comment of yours is dead, which includes a link to the same domain.

https://news.ycombinator.com/item?id=39669357

https://hotgarba.ge/

(Edit: Yep, this comment is dead on arrival.)

39. wizzwizz4 ◴[] No.45533303{4}[source]
They've upgraded to a multi-eye potato‽ Truly the wonders of modern technology have no bound.
replies(1): >>45533635 #
40. Imustaskforhelp ◴[] No.45533335{3}[source]
I was going to say the same thing too!

I just wish there was a dark mode.. Let me install night reader to see how well it looks :p

Edit: would've loved if there was a way to sign up or make comments from there, oh well :< I wish there was, I am not sure if that's possible tho but I hope it could be.

41. Imustaskforhelp ◴[] No.45533357[source]
Lol. Imagine them having a whole room of tv's running it...

Could be a cool movie scene where the stream of data is actually live HN comments lol.

42. Imustaskforhelp ◴[] No.45533383[source]
I checked the github repo and I found out that its a single static html page and ahh I forgot to see that its hosted on github.io as well because of their static hosting, somehow I didn't see it!!

Static hosting is super cool and I am going to tinker with it to have monospace-web instead for something like this https://owickstrom.github.io/the-monospace-web/

Thanks a lot for creating this! Appreciate it, I haven't read the source code but I am going to read it oneday (If I don't procastinate lol)!

Have a nice day!

43. Imustaskforhelp ◴[] No.45533446{3}[source]
Didn't know about this! Thanks, I just wish something like this was on signal or discord but maybe that's because I don't operate much mail and I really like signal...

But anyways, just as a headsup for a moment I was confused that I wasn't getting the verification mail and I was literally going to comment it but then I got the mail just in time, so maybe to anyone out there, maybe be a bit patient as its worth it (or it could totally just be an issue from my side as I spammed it twice or maybe it got congested I am not sure)

EDIT: It wasn't that they sent me 2 mails but rather that they sent me 1 mail and I clicked on it and then got another and I thought it was because of me spamming verification twice but it turns out that they sent me a mail because someone had responded to me :)

Neato. I really like this.

replies(1): >>45536131 #
44. 01HNNWZ0MV43FF ◴[] No.45533588{3}[source]
A LISPy potato, right?
45. ◴[] No.45533594[source]
46. esafak ◴[] No.45533616{3}[source]
The comments don't even have a thread ID?
replies(1): >>45533693 #
47. consumer451 ◴[] No.45533635{5}[source]
I mean, I love what it says about the insanity of some of the tech stacks that we run these days.

The potato with multiple eyes works to serve one of the more important and trafficked properties on the Internet.

replies(1): >>45533670 #
48. NetOpWibby ◴[] No.45533647[source]
This is pretty sweet
49. pinkmuffinere ◴[] No.45533670{6}[source]
> one of the more important and trafficked properties on the Internet.

I like HN, but it's really only important within a very niche subset of the Internet, and it also doesn't have much traffic. There's like a single post submitted every two minutes. That's not much.

replies(2): >>45534118 #>>45534473 #
50. lxgr ◴[] No.45533683{3}[source]
That sounds interesting, are there any public details on this? Is it https://github.com/HackerNews/API ?
replies(1): >>45534174 #
51. zamadatix ◴[] No.45533693{4}[source]
Comment items look like https://hacker-news.firebaseio.com/v0/item/45533616.json?pri...:

  {
    "by" : "jkarneges",
    "id" : 45533018,
    "kids" : [ 45533616 ],
    "parent" : 45532549,
    "text" : "The HN&#x2F;Firebase API doesn&#x27;t make this easy. For <a href=\"https:&#x2F;&#x2F;hnstream.com\" rel=\"nofollow\">https:&#x2F;&#x2F;hnstream.com</a> I ended up   crawling items to find the article.",
    "time" : 1760043552,
    "type" : "comment"
  }
"parent" can either be the actual parent comment or the parent article, depending where in the comment chain you are.
replies(2): >>45534256 #>>45535461 #
52. dzhiurgis ◴[] No.45533899{3}[source]
Interestingly some comments appear as [delayed].
53. 1zael ◴[] No.45533965{3}[source]
That is a good point, however there are design solutions around it. For example: - Poll every X seconds instead of real-time - Enable user to toggle real-time mode - Load new posts in with a "+" button at the top to fetch the latest posts (like Twitter)
54. citbl ◴[] No.45534024[source]
It works, but I'd advise about using the same branding. Consider making it significantly different than the website's comments page to avoid any issues, since it's not part of the webapp nor sanctioned.
replies(1): >>45534055 #
55. moralestapia ◴[] No.45534055[source]
Ignore this guy, lol.
replies(1): >>45534451 #
56. geuis ◴[] No.45534106{3}[source]
Yours is the MUCH better approach. When I did it, no api!
57. jaytaylor ◴[] No.45534109{3}[source]
https://jaytaylor.github.io/hn-live2

Enjoy!

58. youniverse ◴[] No.45534118{7}[source]
I wonder what % of users submit posts and browse new submissions on here and on reddit.
replies(1): >>45537542 #
59. Rendello ◴[] No.45534147{4}[source]
I moderated a few chat rooms and dreamed of all this complex tooling I could build to automate and help me fix issues right away. Of course, the tiny chat rooms didn't need any of that. The hard part is actually moderating fairly and trying to figure out where the boundaries are. I couldn't do it. Makes sense why pg said "don't start a forum".
60. rahimnathwani ◴[] No.45534174{4}[source]
You can stream the ID of the most recent item with something like this:

  curl -N -H "Accept: text/event-stream" "https://hacker-news.firebaseio.com/v0/maxitem.json"
Then you will need to iterate through the new item IDs and fetch them, e.g.

https://hacker-news.firebaseio.com/v0/item/45534174.json

61. esafak ◴[] No.45534256{5}[source]
Perhaps @kogir, who was active on https://github.com/HackerNews/API could add the thread id.
62. citbl ◴[] No.45534451{3}[source]
Okay, maybe you could explain why copying the look of a product to look exactly like the said product, without it being warranted is a worth ignoring and funny?
63. airstrike ◴[] No.45534473{7}[source]
Given how often a link that makes it to the front page struggles to serve the incoming traffic from HN, it's fair to say HN is quite efficient
replies(1): >>45535390 #
64. nelsonfigueroa ◴[] No.45535015[source]
Love the domain lol
65. sebmellen ◴[] No.45535159[source]
This is so cool. Waiting to see my own comment
replies(2): >>45535161 #>>45535356 #
66. sebmellen ◴[] No.45535161[source]
Saw it!
67. pazimzadeh ◴[] No.45535356[source]
test
68. ◴[] No.45535390{8}[source]
69. smusamashah ◴[] No.45535461{5}[source]
https://jaytaylor.github.io/hn-live2 is doing it though.
replies(1): >>45538201 #
70. ryandrake ◴[] No.45535590{3}[source]
Any tips on respectfully crawling HN so you don’t get throttled? I had an application idea that could not be served by the API (need karma values) so I started to write code to scrape but got rate limited pretty quickly.
71. onli ◴[] No.45536131{4}[source]
Yeah, you need to give it a moment. In active discussions I usually see the reply before getting the notification. I guess the service needs a bit to detect responses, and then each email need a bit of time as well.
72. ferguu ◴[] No.45537075[source]
This is awesome!
73. jval43 ◴[] No.45537280{3}[source]
This has been very reliable for me in the past, great project.
74. consumer451 ◴[] No.45537542{8}[source]
I think it’s single digit percentages that have an account.
75. zamadatix ◴[] No.45538201{6}[source]
As does hnstream.com from the sourced sample comment itself. Both just traverse the parent id until it's the root (article). It takes more queries, but the API is not rate limited.
replies(1): >>45538267 #
76. krapp ◴[] No.45538267{7}[source]
It wouldn't take more queries if the comments were cached. It could probably be done entirely in memory, HN's entire corpus can't be that large.

If one were to start at the page endpoints (eg /topstories) one could add references to origin ids while preloading comments, and probably cover the most likely to be referenced ID, and even make traversal up the tree even more efficient.