HackerReposA FIELD GUIDE TO OPEN SOURCE
ProSponsor the shelf♧ 0
← Back to top all-time
bennyguitar
libHN
Objective-C2013–2014
bennyguitar / libHN

libHN

The definitive Objective-C library for adding HackerNews to your iOS/Mac app.

2Distinct people
6Mentions
0Explicit recommenders
151GitHub stars
REPOSITORY AT A GLANCE

What to know before exploring

What it is

The definitive Objective-C library for adding HackerNews to your iOS/Mac app.

GitHub

Where it is used

No documented product use has been verified yet.

What people are saying

No recommendation phrase was found in the indexed comments.

No classified warning is attached to this page. Read the discussions before treating silence as approval.

Also in these discussions

No other repository is repeatedly linked in the same discussions.

This week on Hacker News

Nov 7–Nov 14 UTC · Direct repository links and separately labeled related project stories. Indexed through 11/14/2026, 5:04:57 PM UTC.

No direct repository links were found in the indexed HN discussions over the past seven days. Older discussions are available below.

Mentions over time

HN mentions by month6 dated mentions

Observed mentions: 2013-11-05 16:57:30 UTC to 2014-10-07 20:18:35 UTC.

0122013-11-01 00:00:00 UTC to 2013-12-01 00:00:00 UTC (exclusive): 2 mentions; 1 submissions, 1 commentsNov 20132013-12-01 00:00:00 UTC to 2014-01-01 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2014-01-01 00:00:00 UTC to 2014-02-01 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2014-02-01 00:00:00 UTC to 2014-03-01 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2014-03-01 00:00:00 UTC to 2014-04-01 00:00:00 UTC (exclusive): 2 mentions; 0 submissions, 2 comments2014-04-01 00:00:00 UTC to 2014-05-01 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 commentsApr 20142014-05-01 00:00:00 UTC to 2014-06-01 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2014-06-01 00:00:00 UTC to 2014-07-01 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2014-07-01 00:00:00 UTC to 2014-08-01 00:00:00 UTC (exclusive): 1 mentions; 0 submissions, 1 comments2014-08-01 00:00:00 UTC to 2014-09-01 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2014-09-01 00:00:00 UTC to 2014-10-01 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2014-10-01 00:00:00 UTC to 2014-11-01 00:00:00 UTC (exclusive): 1 mentions; 0 submissions, 1 commentsOct 2014

Counts come from the repository’s dated source evidence. Index cutoff: 2026-11-02 08:16:59 UTC.

View mention counts and date ranges
UTC ranges include their start and exclude their end. Select a period to filter the source evidence.
PeriodStart (UTC)End (exclusive, UTC)MentionsSubmissionsComments
Nov 20132013-11-01 00:00:00 UTC2013-12-01 00:00:00 UTC211
Dec 20132013-12-01 00:00:00 UTC2014-01-01 00:00:00 UTC000
Jan 20142014-01-01 00:00:00 UTC2014-02-01 00:00:00 UTC000
Feb 20142014-02-01 00:00:00 UTC2014-03-01 00:00:00 UTC000
Mar 20142014-03-01 00:00:00 UTC2014-04-01 00:00:00 UTC202
Apr 20142014-04-01 00:00:00 UTC2014-05-01 00:00:00 UTC000
May 20142014-05-01 00:00:00 UTC2014-06-01 00:00:00 UTC000
Jun 20142014-06-01 00:00:00 UTC2014-07-01 00:00:00 UTC000
Jul 20142014-07-01 00:00:00 UTC2014-08-01 00:00:00 UTC101
Aug 20142014-08-01 00:00:00 UTC2014-09-01 00:00:00 UTC000
Sep 20142014-09-01 00:00:00 UTC2014-10-01 00:00:00 UTC000
Oct 20142014-10-01 00:00:00 UTC2014-11-01 00:00:00 UTC101

What Hacker News says

6 sources
I've been waiting forever for an API from HN, but unfortunately I will not be using it for my app (https://github.com/bennyguitar/News-YC---iPhone). I've built a library for iOS (https://github.com/bennyguitar/libHN) that handles scraping, commenting, submitting, voting, etc pretty well and allows me to make as few web calls as necessary to use HN. It looks like I'd have to drop functionality and completely change the networking scheme to match this API - something I'm not willing to do yet. Correct me if I'm wrong here, but to get every comment on a post, I'd have to recursively get each item for each child. Instead, right now, I can make one network request and get all comments for a story. Granted, I have to parse the HTML (which I hate), but it's a much cleaner solution than going through every item, checking the children and then get
Read the rest
ting those items ad infinitum. Again, I just glanced over the documentation, but that seems untenable to me.
In Hacker News API
It still a work in progress, but my plan is to release it on the launch day of iOS 8, with a lot more features. Like a Today widget and a share extension which will allow you to post to HN right from Safari. Edit: I started an Hacker News Swift scraper, which is what SwiftHN use now, it's called Hacker Swifter: https://github.com/Dimillian/HackerSwifter It's highly inspired from LibHN (https://github.com/bennyguitar/libHN) for the scrapping part at the moment. Feedbacks and pull requests appreciated :)
In Show HN: SwiftHN, a Hacker News reader in Swift
libHN - https://github.com/bennyguitar/libHN News/YC iOS App - https://github.com/bennyguitar/News-YC---iPhone The app uses the libHN library for handling all requests/responses to HackerNews and is mostly just a visual representation of the data. Right now it allows logging in, viewing your own submissions, submitting posts, and submitting comments. --------------- Known Bugs --------------- Sometimes adding a comment crashes the app. I'm not handling an exception somewhere, I just honestly haven't had time to find it. The landscape view for submitting posts/comments is terrible from a user experience stand point. I know there's some interesting stuff that can be done with NSAutoLayoutConstraints but I haven't had too much time to mess with this either. I think better keyboard frame management can be accomplished too. --------------- Add
Read the rest
itional Features --------------- I would like the ability to see comments for a user (similar to clicking "threads" at the top). The data request/response part of this needs to happen in libHN, and the user interface can be similar to the CommentsViewController in the app. I also would like to just go ahead and namespace the app's classes too, either HN or NYC. I like NYC (love it, heh) because HN is used for libHN and I'd kind of like that library to be a separate entity from the actual app.
In Ask HN: Looking for contributors?
libHN and my HackerNews client for iOS. - libHN: https://github.com/bennyguitar/libHN - News/YC: https://github.com/bennyguitar/News-YC---iPhone I love contributing to this community, but the website on mobile is not great at all. I love using Alien Blue for Reddit, so I decided to make a beautiful app to read and contribute to the community for iPhone. I started with just the reader - to view links and comments. However, just recently I made libHN as a wrapper of HackerNews API calls and then the app now uses that to be a portal to HackerNews. The app is an absolute joy to use now, if I may so myself! Right now, it's gotten about 3,000+ downloads from the App Store. I don't track anything, so no idea on daily users. I just launched the pro version with the ability to login/vote/reply/submit for $0.99 two days ago. However, you can build
Read the rest
from source and get it from free ;)
In Ask HN: What open source project is your pride and joy?

MAKE YOURSELF AT HOME

A few shortcuts

/
Search the collection
?
Open this guide
Esc
Close dialogs and navigation

Your saved repositories and interests stay in this browser.