{"id":50974270,"url":"https://github.com/can4hou6joeng4/readermacapp","last_synced_at":"2026-06-19T06:01:22.892Z","repository":{"id":365422748,"uuid":"1271929890","full_name":"can4hou6joeng4/ReaderMacApp","owner":"can4hou6joeng4","description":"本地优先的 Mac 阅读与收藏 App — 抓取/阅读/整理,自带 AI Key 做摘要·翻译·对话·二创(SwiftUI · 数据全本地)","archived":false,"fork":false,"pushed_at":"2026-06-17T09:58:15.000Z","size":704,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-06-17T10:13:07.151Z","etag":null,"topics":["ai","llm","local-first","macos","read-it-later","reader","rss","sqlite","swift","swiftui"],"latest_commit_sha":null,"homepage":"https://github.com/can4hou6joeng4/ReaderMacApp/releases","language":"Swift","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/can4hou6joeng4.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":"AGENTS.md","dco":null,"cla":null}},"created_at":"2026-06-17T06:16:59.000Z","updated_at":"2026-06-17T09:58:19.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/can4hou6joeng4/ReaderMacApp","commit_stats":null,"previous_names":["can4hou6joeng4/readermacapp"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/can4hou6joeng4/ReaderMacApp","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/can4hou6joeng4%2FReaderMacApp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/can4hou6joeng4%2FReaderMacApp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/can4hou6joeng4%2FReaderMacApp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/can4hou6joeng4%2FReaderMacApp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/can4hou6joeng4","download_url":"https://codeload.github.com/can4hou6joeng4/ReaderMacApp/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/can4hou6joeng4%2FReaderMacApp/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34519051,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-19T02:00:06.005Z","response_time":61,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ai","llm","local-first","macos","read-it-later","reader","rss","sqlite","swift","swiftui"],"created_at":"2026-06-19T06:01:21.413Z","updated_at":"2026-06-19T06:01:22.885Z","avatar_url":"https://github.com/can4hou6joeng4.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\n  \u003cimg src=\"docs/reader-icon.png\" alt=\"Reader\" width=\"176\" /\u003e\n  \u003ch1\u003eReader\u003c/h1\u003e\n  \u003cp\u003e\u003cem\u003e本地优先的 Mac 阅读与收藏 —— 抓取、阅读、整理,并用你自带的 AI 做摘要 / 翻译 / 对话 / 二次创作。\u003c/em\u003e\u003c/p\u003e\n\u003c/div\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://github.com/can4hou6joeng4/ReaderMacApp/releases/latest\"\u003e\u003cimg src=\"https://img.shields.io/github/v/release/can4hou6joeng4/ReaderMacApp?style=flat-square\u0026color=D2973F\" alt=\"Release\"\u003e\u003c/a\u003e\n  \u003ca href=\"https://github.com/can4hou6joeng4/ReaderMacApp/releases\"\u003e\u003cimg src=\"https://img.shields.io/github/downloads/can4hou6joeng4/ReaderMacApp/total?style=flat-square\" alt=\"Downloads\"\u003e\u003c/a\u003e\n  \u003ca href=\"https://github.com/can4hou6joeng4/ReaderMacApp/stargazers\"\u003e\u003cimg src=\"https://img.shields.io/github/stars/can4hou6joeng4/ReaderMacApp?style=flat-square\" alt=\"Stars\"\u003e\u003c/a\u003e\n  \u003cimg src=\"https://img.shields.io/badge/macOS-13%2B-111111?style=flat-square\u0026logo=apple\" alt=\"macOS 13+\"\u003e\n  \u003ca href=\"https://github.com/can4hou6joeng4/ReaderMacApp/actions/workflows/release.yml\"\u003e\u003cimg src=\"https://img.shields.io/github/actions/workflow/status/can4hou6joeng4/ReaderMacApp/release.yml?style=flat-square\u0026label=release\" alt=\"Build\"\u003e\u003c/a\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\u003cstrong\u003e数据全在本地。无后端、无中间服务器,只有你的 Mac。\u003c/strong\u003e\u003c/p\u003e\n\n---\n\n## ✨ 功能特性\n\n- **采集** —— URL 正文提取 + 封面、RSS / Atom / JSON 订阅(去重、条件请求、并发同步)、本地 PDF/图片导入。\n- **阅读** —— 三栏布局、划词高亮与笔记、双语对照、衬线/排版调节、阅读进度与位置记忆。\n- **整理** —— 标签、树形目录、收藏、SQLite FTS5 全文搜索(中英文)、条目删除、键盘导航。\n- **AI(自带 Key)** —— 摘要(结构化)、翻译(逐段保 id)、对话与二次创作(流式输出);结果回流落库,离线可读。\n- **本地优先** —— 库 / 高亮 / 笔记 / 阅读位置全部本地持久化;AI 默认关闭、显式开启、绝不自动发送。\n\n## 📦 下载安装\n\n1. 从 [**Releases**](https://github.com/can4hou6joeng4/ReaderMacApp/releases/latest) 下载 `Reader.dmg`。\n2. 打开 DMG,把 **Reader** 拖进 **Applications**。\n3. 首次打开 —— 当前版本未做 Apple 公证,需放行一次 Gatekeeper:在「应用程序」里**右键 Reader → 打开**,或在终端执行:\n\n   ```bash\n   xattr -dr com.apple.quarantine /Applications/Reader.app\n   ```\n\n## 🔄 自动更新\n\nApp 菜单 **Reader → 检查更新…** 即可。更新由 [Sparkle](https://sparkle-project.org) 分发,经 EdDSA 签名校验,不必再去网站手动下载。\n\n## 🤖 配置 AI(自带 Key)\n\n在应用内「设置」选择 Provider 并填入 Key(**只存 Keychain**):\n\n- **Anthropic 官方** —— 默认 `api.anthropic.com`。\n- **Anthropic 兼容网关 / 自定义端点** —— 填 Base URL + 鉴权方式(API Key 或 Auth Token)+ 模型;模型支持 `xxx[1m]` 写法(自动转 1M 上下文)。可直接**粘贴连接配置**(形如 `{\"env\":{\"ANTHROPIC_BASE_URL\":...,\"ANTHROPIC_AUTH_TOKEN\":...},\"model\":...}`)一键导入。\n- **OpenAI / OpenAI 兼容** —— 填 Base URL(可指向本地 Ollama / LM Studio)+ 模型。\n\n\u003e AI 处理会把所选内容发送到你配置的端点;其余数据始终只在本地。\n\n## 🔒 数据与隐私\n\n- 数据库:`~/Library/Application Support/ReaderMacApp/reader.sqlite`\n- API Key:macOS Keychain(按 Provider 隔离,不写入磁盘明文)\n- 不收集、不上传任何遥测;唯一的对外请求是你主动触发的 AI 调用与订阅抓取。\n\n## 🛠 从源码构建\n\n```bash\nswift build                  # 编译\nswift test                   # 全部单测\n./script/build_and_run.sh    # 开发期:拼最小 .app 并运行\n./script/package_app.sh      # 打包成品:dist/Reader.app + dist/Reader.dmg\n```\n\n## 📐 技术栈与架构\n\nSwift 5.9 / SwiftUI / macOS 13+,SwiftPM 单工程,原生 `URLSession`(AI 与抓取均无第三方 SDK)。依赖 [GRDB](https://github.com/groue/GRDB.swift)(SQLite/FTS5)、[SwiftSoup](https://github.com/scinfu/SwiftSoup)(正文提取)、[FeedKit](https://github.com/nmdias/FeedKit)(订阅解析)、[Sparkle](https://github.com/sparkle-project/Sparkle)(自更新)。\n\n```\nSources/\n  ReaderCore/        # 纯逻辑,与 UI 解耦,可单测\n    AI/              # AIService 协议 + Anthropic / OpenAI 兼容 + Prompts + Keychain\n    Capture/         # HTTPClient / 正文提取 / RSS 同步 / 附件导入\n    Persistence/     # Repository 协议 + GRDB 实现 + 迁移(含 FTS5)\n  ReaderMacApp/      # SwiftUI 界面(App / Views / Support)\nTests/               # 91 个单测(零真实网络,mock 传输 + fixture)\n```\n\n---\n\n\u003cdiv align=\"center\"\u003e\u003csub\u003e以本地优先为原则构建 · 数据归你所有\u003c/sub\u003e\u003c/div\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcan4hou6joeng4%2Freadermacapp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcan4hou6joeng4%2Freadermacapp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcan4hou6joeng4%2Freadermacapp/lists"}