Reason to build: I've seen few blogs that link to HN as primary forum and think it's great, but AFAIU that forces you to update post after publishing to add HN link. With this you can just link to discuss-on-hn.xyz/go and it will update itself.<p>Inside it uses HN Algolia API [0] to search and redirect to first item and in-memory hashmap; I'll add rate limiting tomorrow, right now I need some sleep. Also this is my first Common Lisp project ever, that turns out to be quite fun.<p>[0] <a href="https://hn.algolia.com/api" rel="nofollow">https://hn.algolia.com/api</a>
What does it do when Algolia doesn't find the post?<p>An "advanced" feature request: Some sites are rewritten, for example <a href="https://example.blogspot.com.ar" rel="nofollow">https://example.blogspot.com.ar</a> is transformed to by HN to <a href="https://example.blogspot.com" rel="nofollow">https://example.blogspot.com</a> and BlogSpot will transform it to whatever country you are, so it would be nice to add in version 2 some canonizations to make it more compatible with HN. Also, medium is a nightmare, because it adds a random mark to the url and the HN post may have a different random mark. And the nytimes adds something like &r_1=0 or something. (Probably medium is the more important use case.)<p>Another idea: Can you transform this into a bookmarklet?
I think this could be against the HN rules as read in the FAQ[1], if anyone who came to the link were to upvote the post. HN penalizes these posts by not allowing them to be promoted outside of newest.<p>> Can I ask people to upvote my submission?<p>> No. Users should vote for a story because it's intellectually interesting, not because someone is promoting it.<p>> When the software detects a voting ring, it penalizes the post. Accounts that vote like this eventually get their votes ignored.<p>1. <a href="https://news.ycombinator.com/newsfaq.html" rel="nofollow">https://news.ycombinator.com/newsfaq.html</a>