Primarily built this to learn how NextJS works and also a bit about Tailwind CSS.
Also has request caching using the WebCache API + expiration which is quite a hacky implementation.<p>Let me know what you think!<p>Source is at <a href="https://github.com/say4n/hn">https://github.com/say4n/hn</a>, pull requests welcome!
> Application error: a client-side exception has occurred (see the browser console for more information).<p>Thanks... I see nothing. Next is really doing well, eh.
The hardest part for me when building a HN reader was getting each article metadata to render the meta image / descriptions. I know the main site doesn’t do this, but my favorite iOS hn reader app (Octal) does this so I’m used to it and quite like it.<p>I wanted to do it all locally / serverless but I struggled to find a good client friendly library for parsing meta tags that was 0 deps and typed so I wound up making a cloudflare worker to bypass cors and manually streamed the html to extract and parse the head element with a bit of regex and elbow grease.<p>It worked out, but I wish the HN api would cache and provide that stuff once to save the authors from the extra load of all the clients like mine that need to make extra requests to each articles home page.
Looking good, but seems to be under the HN-hug of death, so slow. Also doesn't work with uBlock-origin, been lazy and just switching that of for your site.