Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

The "favorites" feature is amazing and just rightly inconspicuous. On my website, https://mihir.ch/#hn, I've been collecting and displaying my favorited posts and comments from an API I created for this purpose only.

The API: https://hn-faves.now.sh

Source: https://github.com/plibither8/hn-faves-api



Thanks for sharing your source too! I was curious how you got a web scraper on a small now.sh server (45mb)

Usually I'd use puppeteer, but that would make it like 400mb. I've never heard of [1] x-ray, it looks a great package for lightweight containers!

[1] https://www.npmjs.com/package/x-ray




Consider applying for YC's Fall 2025 batch! Applications are open till Aug 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: