Skip to content

hugmouse/Hackernews-reader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Hackernews Reader Icon

Hacker News Reader for macOS

Native macOS reader for HackerNews. Based on official Firebase API.

Features

  • Live updates – see changes to stories and comments in real-time [1]
  • Search – fully local text search
  • Tabs – just like in your favorite browser
  • Offline support – read stories and comments offline

[1] You can disable live updates by clicking on "Live" button in the app's title.

Screenshots

Screenshot of a main page of an app Screenshot of a search page in an app
Main view Search view

The Idea

One day, I found out that there was an official API for Hacker News. I decided to try implementing an application around it, which is how this reader came into existence.

The API itself is pretty limiting since it has no auth support. This means you can't comment, post news or really do anything besides reading.

Additionally, the way this API works requires the client to do a lot of requests, see more in disadvantages.

Disadvantages

Using the Hacker News API means that the app has to make a lot of requests.

  • First, we need to retrieve the IDs of the stories.
    • Then, for each story, we need to make another request to retrieve information about the story.
      • Finally, for a selected story, we need to load the comments and replies in a similar way.

For example we have a story with 2000 comments – which is the norm for "Best" stories – this generates over 2000 requests. One request is made to get the stories, one to get a story, and over 2000 to get the comments and replies.

Thanks to this feature, browsing HN on a Nokia Lumia 630 is ultimately faster and uses less bandwidth. This is thanks to server-side rendering, which means that you only need to make a few requests for icons, CSS and HTML.

About

Read YCombinator news in a native MacOS application with live updates.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages