Readit News logoReadit News
Posted by u/clacker-o-matic 7 months ago
Show HN: Hacker News historic upvote and score datahn.dunkirk.sh/...
Hi yall!

I've been using hacker news for a while but one of the things I started wanting recently was the ability to have alerts for any stories I post.

The thing that pushed me over the edge was Hackclub's shipwrecked https://shipwrecked.hackclub.com/ (hackathon in the boston bay for anyone that can make 4 projects over the summer and get at least one of them to go viral). One of the options for "going viral" was to get to the front page of hacker news but I was constantly scared that I would miss it getting on there lol so I whipped up a quick slackbot to send alerts to a channel. It was dead simple but it did work.

Once I had the bot I realized I could do wayyyy more with the data I was collecting so I decided to add some historical data initially thinking I would generate graphs and then embed them in the message but decided to quickly try using Bun.serve to host a quick dashboard mainly since I wanted to see how the developer experience was. Spoiler it is amazing. I've gotten really inspired by web components and the idea of only using universally supported `html`, `css`, and `js`. Bun results in an amazingly nice developer experience where you can just import the `index.html` and assign it to your root route and be done. Sorry for shilling about bun but it truly was one of my favorite parts of building this besides drizzle.

The dashboard has a graph of the points earned and position on the leaderboard over time (updated every 5 minutes) and then the expected stats like peak points, peak position, author, and comment count.

Also btw all the code is open source ofc on both my tangled repo (https://tangled.sh/@dunkirk.sh/hn-alerts) as well as a github repo (https://github.com/taciturnaxolotl/hn-alerts) and you can try the hosted version at https://hn.dunkirk.sh I'm planning to add the ability to just install the slackbot to any workspace and have workspace specific leaderboards but that will require a bit of refactoring and probably abandoning the slack-edge package.

Also you can view specific item's data by simply replacing news.yc.com with hn.dunkirk.sh like: https://hn.dunkirk.sh/item?id=44115853

bilekas · 7 months ago
Are you sure this data is correct ? There is a listing of the "Most Upvoted Story" at 390, but I feel like I have seen regularly items higher than that.

One example I see today is : https://news.ycombinator.com/item?id=44174965

with 393.

das_keyboard · 7 months ago
If I understand correctly it does only show stats for the current frontpage (aka top 30). So it's the "Most Upvoted Story (on the frontpage right now)".
clacker-o-matic · 7 months ago
Yeah it would probably be better to phrase it that way
TheEdonian · 7 months ago
Looking at the charts they all seem to take off. To me that begs the question, do they take off because they hit the front-page and get all the attention, or are some of them bought upvotes like on Reddit?
qingcharles · 7 months ago
I've yet to see anyone selling HN upvotes on the usual dubious forums like BHW. I'm not saying it doesn't happen, but I don't believe there is any commercial service being advertised.
Zobat · 7 months ago
Isn't this because upvotes "early" are worth more than upvotes later?
clacker-o-matic · 7 months ago
Thats my guess; also survivorship bias. Those that make it have to show quick promise early on in order to hit the front page
doodlebugging · 7 months ago
Malwarebytes warned me about this site.

Website blocked due to riskware. IP 37.27.51.34 port 443

Firefox error reported as Problem Loading Page:

>SSL received a record that exceeded the maximum permissible length.

Error code: SSL_ERROR_RX_RECORD_TOO_LONG

Could be my machine. I'm on Win7Pro with FF 115.24.0 so old and out of date here.

clacker-o-matic · 7 months ago
oh hmm; the website is running off a tilde server I share with 500 ish other kids so something might have gotten flagged
Bender · 7 months ago
I see it on VT [1] "Bfore.Ai PreCrime"

[1] - https://www.virustotal.com/gui/url/eab0487f9da6dd832f69dbbe0...

areyourllySorry · 7 months ago
the firefox error is also caused by malwarebytes blocking.
jcmp · 7 months ago
You made it to the frontpage :D
clacker-o-matic · 7 months ago
I honestly cant believe it lol; first project of mine to make it
welder · 7 months ago
clacker-o-matic · 7 months ago
Oooh that has some nice graphs
NAHWheatCracker · 7 months ago
Nice site, slick. Not sure what use the data has to me, but I don't make posts, so that's my fault.

It would be nice if the chart would move down or something when you select a post that's lower in the rankings. I had to scroll back to the top after clicking one of the bottom posts.

clacker-o-matic · 7 months ago
That’s a good idea; shouldn’t be terribly hard to implement
leoff · 7 months ago
it's easy:

1. add `position: relative;` to `main-container`

2. add `position: sticky; top: 0;` to `graph-container`

you need to figure out what to do in the mobile display though

ChrisMarshallNY · 7 months ago
> Highest Points 461 Most upvoted story

Not sure that's accurate. If you look at just yesterday, you have this story: https://news.ycombinator.com/item?id=44163063

Which has over 2200 points.

clacker-o-matic · 7 months ago
its highest out of the current data from the front page
baxtr · 7 months ago
Nice site. Looks slick!

I wonder though how the data is actionable? What can I do with it?

clacker-o-matic · 7 months ago
Honestly nothing, i really made it to scratch an itch lol