{"by":"clacker-o-matic","descendants":45,"id":44176909,"kids":[44177966,44177979,44180165,44177636,44178938,44177019,44179744,44177602,44179417,44177489,44178475,44180401,44182430,44178279,44180148,44177675,44179602],"score":78,"text":"Hi yall!<p>I&#x27;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.<p>The thing that pushed me over the edge was Hackclub&#x27;s shipwrecked <a href=\"https:&#x2F;&#x2F;shipwrecked.hackclub.com&#x2F;\" rel=\"nofollow\">https:&#x2F;&#x2F;shipwrecked.hackclub.com&#x2F;</a> (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 &quot;going viral&quot; 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.<p>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.\nSpoiler it is amazing. I&#x27;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.<p>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.<p>Also btw all the code is open source ofc on both my tangled repo (<a href=\"https:&#x2F;&#x2F;tangled.sh&#x2F;@dunkirk.sh&#x2F;hn-alerts\" rel=\"nofollow\">https:&#x2F;&#x2F;tangled.sh&#x2F;@dunkirk.sh&#x2F;hn-alerts</a>) as well as a github repo (<a href=\"https:&#x2F;&#x2F;github.com&#x2F;taciturnaxolotl&#x2F;hn-alerts\">https:&#x2F;&#x2F;github.com&#x2F;taciturnaxolotl&#x2F;hn-alerts</a>) and you can try the hosted version at <a href=\"https:&#x2F;&#x2F;hn.dunkirk.sh\" rel=\"nofollow\">https:&#x2F;&#x2F;hn.dunkirk.sh</a>\nI&#x27;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.<p>Also you can view specific item&#x27;s data by simply replacing news.yc.com with hn.dunkirk.sh like: <a href=\"https:&#x2F;&#x2F;hn.dunkirk.sh&#x2F;item?id=44115853\" rel=\"nofollow\">https:&#x2F;&#x2F;hn.dunkirk.sh&#x2F;item?id=44115853</a>","time":1749007110,"title":"Show HN: Hacker News historic upvote and score data","type":"story","url":"https://hn.dunkirk.sh/"}