|
|
|
|
|
by aome510
1887 days ago
|
|
> What are some additional features in mind that you are planning to add? I don't really have any particular ideas in mind rn. I would love to receive feedbacks and ideas from the community. > Here is an idea for extra hacker vibe - try adding "The Matrix" effect when rendering the screen:
https://twitter.com/ggerganov/status/1337719342465748993 Wow this looks dope. I'll try it out. I just realize that you are the author of https://github.com/ggerganov/hnterm. I just came across with it recently while finding some HackerNews apps on GitHub. If I understand correctly, `hnterm` seems to use the official Hacker news API for rendering. I found it quite hard to use compared to the HN Algolia APIs. Do you have any suggestions on how to utilize the official APIs better? |
|
From quick look, it seems the Algolia API offers a Search API which I don't think you can implement using the official API.
However, the official API seems to have a big advantage that it tells you which were the items that were updated recently - i.e. scores, comments, stories, etc. Using this you can implement real-time updates of the screen by fetching only the modified items. I believe using the Algolia API you would need to fetch everything over and over.
But other than that, the two APIs are similar. I guess the official one is more low-level than the other. The main difference is that you need to fetch the children one-by-one while with Algolia you seem to get this in one call.