TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Ask HN: What features for an offline Hacker News reader?

57 pointsby ers35about 5 years ago
HN is a treasure trove of information. The primary way I read HN is to bookmark stories and read the comments when the discussion is complete. Others actively participate. Some get jobs via &quot;Who is hiring?&quot;. We all use HN differently.<p>There are ways to read HN other than this website. However, I have not found one that meets all of these requirements:<p><pre><code> - Self-hosted. - Offline access of data. - Query data via SQL. - Full text search of stories and comments. - Notification of replies to comments. </code></pre> Some ideas:<p>1) A tool that maintains a copy of the HN API[1] in an SQLite database, with indexing and full-text search[2]. This supports the development of the other tools.<p>2) A command line tool that demonstrates how to use the database and supports the development of scripts. For example:<p><pre><code> #!&#x2F;bin&#x2F;sh # Run notify whenever someone replies to a comment. $ hn replies username | notify </code></pre> 3) A web UI for browsing and searching. This can be hosted locally or on a remote server.<p>What features interest you?<p><pre><code> [1]: https:&#x2F;&#x2F;github.com&#x2F;HackerNews&#x2F;API [2]: https:&#x2F;&#x2F;www.sqlite.org&#x2F;fts5.html</code></pre>

18 comments

markus_zhangabout 5 years ago
I&#x27;m thinking about the same thing i.e. building a personal HN reader with Python and QT.<p>I have never explored the API, and I&#x27;m not a professional programmer, but allow me to describe the ideas from top of head when I read your posts:<p>Requirements:<p>1 - Self-hosted: So essentially, it&#x27;s too heavy to keep the whole sites offline. However, because I always read by topic (e.g. I&#x27;d type &quot;SICP ycombinator&quot; in Google and read the top pages), I think one approach is to let the user enter a <i></i>topic<i></i>, say &quot;SICP&quot;, as well as number of top-level stories to return, say 25, and invoke the API to return stories. The app will then dump the stories and their comments into a database with data modelling that suits for a forum.<p>2 - Offline access of data: Essentially what I mentioned above. The app should also allow user to remove a story (and its children), modify topics, favorite a story and create new topics. I think those are the barebone requirements. The backend would interact with the database and do updates.<p>3 - Query data via SQL: I think it might be too much work to parse queries, and the easiest thing to do is to just access a string as query and pass that to the database engine. Or maybe only allow user certain actions and let the backend assemble the queries.<p>4 - Full text search of stories and comments: Not sure what to do as my programming knowledge is very limited. I saw the second link you provided and it is very interesting.<p>5 - Notification of replies to comments: Maybe give user a button to update all his favorite stories.<p>TBH I really want to see what other people&#x27;s implementations will be.
评论 #22481352 未加载
评论 #22490194 未加载
评论 #22490183 未加载
geoahabout 5 years ago
I&#x27;d be very interested in something that can cache the actual article&#x2F;page from the main HN link as well as a reading list.<p>There are times when I add HN articles to mobile chrome&#x27;s &quot;read later&quot; list, and when I have time go through them. Being able to read them later when not having internet access would be amazing (London&#x27;s tube is annoying when it comes to internet, internet only exists in the stations).
评论 #22482548 未加载
评论 #22492531 未加载
评论 #22482262 未加载
Tomteabout 5 years ago
A kill file. De-emphasizing comments I have already seen. notifying me of replies to my comments. Notifying me of my submissions that got re-upped while I was sleeping, so I can see the discussion.
评论 #22490723 未加载
tylerjwilk00about 5 years ago
I recently built an HN client [1] to scratch an itch and try out the HN API. It caches data to SQL and redis.<p>It has never been shared and I only use it personally so expect lots of bugs.<p>I may open source the code after I clean it up.<p>[1] <a href="http:&#x2F;&#x2F;app.hackerdelivery.com&#x2F;" rel="nofollow">http:&#x2F;&#x2F;app.hackerdelivery.com&#x2F;</a>
mlang23about 5 years ago
If up&#x2F;downvoting would work in Lynx, I wouldn&#x27;t actually need a CLI tool to read HN. Well, I guess you can&#x27;t have anerything.<p>I wouldn&#x27;t need offline mode, but a CLI tool to read HN would be very much welcome.
评论 #22482292 未加载
评论 #22483660 未加载
stevenicrabout 5 years ago
I&#x27;d like to be able to move a discussion thread to the bottom, or collapse a discussion thread. Perhaps sort by timestamp the comments option as well.<p>Sometimes the scroll gets real and I want to get past a discussion to see other angles of whatever subject - scrolling trying to find where thread 2 ends and a different subject comes up is challenging at times - so I often go to a new tab on a different story and don&#x27;t come back.<p>Even click&#x2F;tap to draw a line from comment 2 to all sub comments so I can find where comment 3 starts would be helpful.
saxelsenabout 5 years ago
I use the Android app Materialistic, which I really enjoy.<p>In particular I like the fact that I can bookmark posts and comments with it.<p>I very often jump to the discussion to read opinions - there&#x27;s often a treasure trove of stuff there of someone who knows something more than what the article states.<p>A really annoying, missing feature for the discussion&#x2F;comments parts, is that the threads are extremely difficult to tell apart and traverse. On a small screen, the threads are very close together and only distinguishable through color differences. Scrolling through them is a nightmare, whereas I&#x27;ve really come to love the Reddit app&#x27;s feature with a button that allows you to scroll to the next sibling comment, e.g. if you want TO quickly see the next comment to the OP, instead of scrolling endlessly and not knowing how far along you are.
rcarmoabout 5 years ago
Definitely sane, responsive thread layouts with more readable text. HN has, let us say, a very “traditional” approach to HTML, and it is _very_ hard to read on some devices (I wish that someone revised the markup accordingly).<p>Which is why I usually read it on <a href="https:&#x2F;&#x2F;hackerweb.app&#x2F;" rel="nofollow">https:&#x2F;&#x2F;hackerweb.app&#x2F;</a> instead.<p>Forking <a href="https:&#x2F;&#x2F;hackerweb.app" rel="nofollow">https:&#x2F;&#x2F;hackerweb.app</a> and adding offline support would be a good starting point, IMHO.
gitgudabout 5 years ago
The query api at: <a href="https:&#x2F;&#x2F;hn.algolia.com" rel="nofollow">https:&#x2F;&#x2F;hn.algolia.com</a> is pretty amazing, searches all stories.<p>The biggest qualms for me would be; notifications of comments and searching my previous comments.<p>Other than that Hacker News is actually highly reliable and available and I&#x27;ve never personally needed an off-line version (except maybe on a plane)
评论 #22491707 未加载
评论 #22491744 未加载
folmarabout 5 years ago
I doubt we need another reader program. What I would really see is a two-way translation to NNTP, and the user could use any client and addons they want - it&#x27;s old and popular, you get pretty much everything possible off the shelf, and it quite matches the semantics of HN (minus the voting).
rchaudabout 5 years ago
One thing I&#x27;d find useful:<p>- save individual posts as &quot;favorites&quot;, and allow users to tag them somehow (e.g. &#x27;finance&#x27;, or &#x27;front-end&#x27;) for easy searchability. The saved quote should be available for offline reading, and should link back to the original topic. The original topic doesn&#x27;t need to be available offline.
评论 #22490538 未加载
SkyMarshalabout 5 years ago
Don’t forget to include the basics - upvote, downvote, unvote, comment, submit, save submission, save comment - and have all that sync when reconnecting to internet.
评论 #22494831 未加载
评论 #22494713 未加载
anotheryouabout 5 years ago
- rip links (at least article&#x27;s text)<p>- mark links and comments as seen<p>- hide seen<p>- fold comments to only show top level<p>- favorite links (preferably to a list that is easily dumped in to e.g. pocket with a few buttons for that)
caseyf7about 5 years ago
Show only top-level comments so you can skip long off-topic discussions and drill-down on the discussions you are interested in.
contingenciesabout 5 years ago
Suggest considering implementing a bridge to NNTP, or SMTP mail spools. Then use offline NTTP or mail readers.
评论 #22490184 未加载
评论 #22482335 未加载
kwhitefootabout 5 years ago
Sounds interesting. Here are a couple of extra ideas:<p>- an Android app embodying the same features,<p>- The ability to comment while offline.
andrei_says_about 5 years ago
All posts and comments I’ve upvoted and bookmarked are searchable.
floatingatollabout 5 years ago
To clarify, why is “self-hosted” an important criteria to you?
评论 #22490649 未加载