展示 HN:一个使用 SwiftUI 构建的 macOS Hacker News 客户端
Show HN: A native macOS client for Hacker News, built with SwiftUI

原始链接: https://github.com/IronsideXXVI/Hacker-News

一个使用SwiftUI构建的Hacker News macOS客户端。浏览头条、最新、最佳、问答、展示和招聘故事。使用内置网页视图阅读文章。广告拦截和弹窗拦截。带有可折叠回复的评论线程。HN账户登录和会话管理。通过Sparkle自动更新。原生macOS外观和感觉。从“Releases”页面下载最新的DMG文件,打开它,并将应用程序拖到“Applications”文件夹。仅此而已——无需Xcode或开发者工具。需要macOS 14.0或更高版本。对于想要构建和修改代码的开发者:克隆仓库 git clone https://github.com/IronsideXXVI/Hacker-News.git 在Xcode 26+中打开Hacker News.xcodeproj。构建并运行(Cmd+R)。Swift包(Sparkle)将自动解决。MIT。

## Hacker News macOS 客户端 一名开发者发布了一款基于 SwiftUI 构建的 Hacker News 原生 macOS 客户端,采用 MIT 许可开源([https://github.com/ironsidexxvi/Hacker-News](https://github.com/ironsidexxvi/Hacker-News))。该应用旨在为浏览 HN 提供桌面级的体验,具有故事侧边栏和文章/评论集成阅读器的分屏布局。 主要功能包括内置广告和弹窗拦截、使用 Keychain 存储的 HN 账户登录、离线书签、Algolia 驱动的搜索和过滤,以及通过 Sparkle 实现的自动更新。该应用大约 2,050 行 Swift 代码,利用了 `@Observable` 和结构化并发等现代 Swift 特性。 开发者详细描述了使用 GitHub Actions 进行代码签名、公证和 DMG 创建的复杂 CI/CD 流程。他们正在寻求反馈,未来可能的功能包括键盘导航、阅读模式和通知支持。初步用户反馈请求用户屏蔽/关注功能以及可自定义的字体设置。
相关文章

原文

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

macOS Swift License

Article View Comments View

  • Browse top, new, best, ask, show, and job stories
  • Read articles with built-in web view
  • Ad blocking and pop-up blocking
  • Comment threads with collapsible replies
  • HN account login and session management
  • Automatic updates via Sparkle
  • Native macOS look and feel

Download the latest DMG from the Releases page, open it, and drag the app to Applications. That's it — no Xcode or developer tools needed.

Requires macOS 14.0 or later.

For developers who want to build and modify the code:

  1. Clone the repository
    git clone https://github.com/IronsideXXVI/Hacker-News.git
  2. Open Hacker News.xcodeproj in Xcode 26+
  3. Build and run (Cmd+R)

Swift packages (Sparkle) will resolve automatically.

MIT

联系我们 contact @ memedata.com