# A native macOS client for Hacker News, built with SwiftUI

Hey HN! I built a native macOS desktop client for Hacker News and I'm open-sourcing it under the MIT license. GitHub: https://github.com/IronsideXXVI/Hacker-News Download (signed & notarized DMG, macOS 14.0+): https://github.com/IronsideXXVI/Hacker-News/releases Screenshots: https://github.com/Iron…

- **Page:** https://magpie.gallery/i/a-native-macos-client-for-hacker-news-built-with-s-wo88
- **Type:** Link to an idea elsewhere
- **Category:** Media & reading
- **Runs on:** macos
- **Tags:** hacker-news, reader, swiftui, native, open-source

## Source

Web · IronsideXXVI: A native macOS client for Hacker News, built with SwiftUI

- **Original:** https://news.ycombinator.com/item?id=47088166

> Hey HN! I built a native macOS desktop client for Hacker News and I'm open-sourcing it under the MIT license. GitHub: https://github.com/IronsideXXVI/Hacker-News Download (signed & notarized DMG, macOS 14.0+): https://github.com/IronsideXXVI/Hacker-News/releases Screenshots: https://github.com/IronsideXXVI/Hacker-News#screenshots I spend a lot of time reading HN — I wanted something that felt like a proper Mac app: a sidebar for browsing stories, an integrated reader for articles, and comment threading — all in one window. Essentially, I wanted HN to feel like a first-class citizen on macOS, not a website I visit. What it does: - Split-view layout — stories in a sidebar on the left, articles and comments on the right, using the standard macOS NavigationSplitView pattern. - Built-in ad blocking — a precompiled WKContentRuleList blocks 14 major ad networks (DoubleClick, Google Syndication, Criteo, Taboola, Outbrain, Amazon ads, etc.) right in the WebKit layer. No extensions needed. Toggleable in settings. - Pop-up blocking — kills window.open() calls. Also toggleable. - HN account login — full authentication flow (login, account creation, password reset). Session is stored in the macOS Keychain, and cookies are injected into the WebView so you can upvote, comment, and submit stories while staying logged in. - Bookmarks — save stories locally for offline access. Persisted with Codable serialization, searchable and filterable independently. - Search and filtering — powered by the Algolia HN API. Filter by content type (All, Ask, Show, Jobs, Comments), date range (Today, Past Week, Past Month, All Time), and sort by hot or recent. - Scroll progress indicator — a small orange bar at the top tracks your reading progress via JavaScript-to-native messaging. - Auto-updates via Sparkle with EdDSA-signed updates served from GitHub Pages. - Dark mode — respects system appearance with CSS and meta tag injection. Tech details for the curious: The whole app is ~2,050 lines of Swift

## GitHub projects

- https://github.com/IronsideXXVI/Hacker-News

## Rules for reuse

- Build your own version: don't copy another product's code, look, icons, colours or copy.
- The original belongs to its author; Magpie only links to it.
- The original content's copyright belongs to its creator. Magpie doesn't download or re-upload it; we only show the link and the official preview.
