Repository navigation
Conversation
Adds apple/: a SwiftUI app for macOS 14+ and iOS 17+ generated from an XcodeGen spec, plus SkyreaderKit, a Foundation-only Swift package with the timeline API client and wire models. The app signs in with a pasted session ID (debug builds only, until native OAuth), cold-starts /api/v2/timeline over Bearer auth, and reads articles as plain text. Apple CI runs the kit tests on Linux and unsigned xcodebuild builds of both targets on macos-15 for PRs touching apple/. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WgeSghB1ro1QRmB3t28BEd
Port of frontend/src/lib/utils/tid.ts for subscription and save rkeys, with tests pinned to the JS implementation's encoding. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WgeSghB1ro1QRmB3t28BEd
The macOS/iOS app starts login with native_challenge (base64url SHA-256 of a secret it keeps). The callback stores a one-time code bound to that challenge and redirects to skyreader://auth/callback?code=..., never the session: a custom URL scheme can be claimed by any app on the device. The app trades code + verifier for the session at POST /api/auth/native/exchange. Codes live two minutes, burn on first use whatever the verifier, and expired ones are swept with oauth_state. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WgeSghB1ro1QRmB3t28BEd
SkyreaderKit gains the full client (auth, timeline, reading, bodies, subscriptions, saves) and Library: an observable store that syncs the timeline with a global cursor, keeps read state with a persisted outbox and the read-positions delta, trims each feed to the server's window, and caches everything on disk for offline reading. Tests cover paging, cursor commit, delta vs pending writes, persistence and trimming. The app gets native sign-in through a web authentication session, a three-column reader (folders and feeds, article list with unread filter and swipe actions, a serif reader with JavaScript off), saves, add/rename/move/unsubscribe feeds, save-a-link, settings, and menu commands with keyboard shortcuts. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WgeSghB1ro1QRmB3t28BEd
WebKit's API is main-actor isolated; the representable's helpers weren't. Also parenthesize a trailing closure in an if-let condition. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WgeSghB1ro1QRmB3t28BEd
Against a backend that predates native sign-in, the auth sheet finished in the web app instead of returning to the app. The login response now says native: true when it accepted native_challenge, and the app refuses to open the sheet without it, with a clear message. Debug builds can pick Production, Staging or Local (127.0.0.1:8787) on the sign-in screen, so a backend branch can be tested with ./scripts/dev-local.sh before it deploys; NSAllowsLocalNetworking lets the app reach loopback over plain HTTP. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WgeSghB1ro1QRmB3t28BEd
A feed followed on another device sits below the global timeline cursor, and one the server hadn't crawled has nothing to deliver, so both stayed empty in the app. Port the web client's backfill: each sync, up to ten followed feeds with no local items get a one-off feeds/fetch (which also pulls an uncrawled feed through the crawler), rotating the start so a broken feed can't hog the budget. Empty successes are remembered; failures retry next sync. The sidebar also marks standard.site publications, which the app can't show yet, instead of leaving them silently empty. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WgeSghB1ro1QRmB3t28BEd
records/list can carry a null feedUrl (some atproto source types), and a single such record failed the whole decode, so no subscriptions synced. Decode records one by one and skip what the app can't read. Debug builds now label a non-production server in the sidebar: a local backend is its own, empty database, and its missing feeds looked like a sync bug. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WgeSghB1ro1QRmB3t28BEd
disnet
marked this pull request as draft
November 9, 2026 01:03
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds
apple/, a native SwiftUI reader for macOS 14+ and iOS 17+. It also includes a small backend change so the app can sign in natively.Backend: native sign-in handoff
The web app gets its session as an HttpOnly cookie, and the CLI gets it on a loopback port. A native app can only be reached on its custom URL scheme, and any other app on the device can register that same scheme. So the session never goes over the scheme; instead there is a PKCE-style handoff:
GET /api/auth/loginwithnative_challenge = base64url(SHA-256(verifier)). The response carriesnative: trueto confirm the server understood the challenge. The app won't open the auth sheet without it, because an older server ignores the challenge and would finish in the web app inside the sheet.skyreader://auth/callback?code=…with no cookie.{ code, verifier }toPOST /api/auth/native/exchangeand gets back{ sessionId }.The code:
oauth_staterows.If the auth server returns an error during a native flow, the redirect goes back to the app scheme.
0088_native_auth_handoff.sql. It addsoauth_state.native_challengeand thenative_auth_handofftable.backend/src/routes/native-auth.ts. The tests are inbackend/test/native-auth.spec.tsandauth-login.spec.ts. The full backend suite passes.SkyreaderKit (Swift package, Foundation-only, tests run on Linux)
Client: covers auth, timeline, reading, bodies, subscriptions and saves.
session_refresh_pendingresponses are retried with the web client's backoff.feedUrl, can't hide the rest.Library: an observable store that follows the web client's model.since_seq+generationcursor;ARTICLE_WINDOW_PER_FEED, and saved items are never trimmed.feeds/fetch.backfillMissingSubscriptions.mark-read-bulk/mark-unreadafter a short debounce;updatedAt;GET /api/reading/positions, and a local change that hasn't been sent yet wins.items/body, elseextract.Application Support/Skyreader/library.json.Tests: 26 tests cover:
App
WebAuthenticationSession, with the session stored in the keychain.127.0.0.1:8787for./scripts/dev-local.sh);NSAllowsLocalNetworkingpermits plain HTTP to loopback.category), feeds, unread badges and a failing-feed marker. standard.site publications are shown as not yet supported.WKWebViewruns with JavaScript off. Clicked links open in the browser, and main-frame navigations other than the page's own are refused.Build and CI
project.ymlis an XcodeGen spec. The.xcodeprojand the Info.plists are generated and gitignored..github/workflows/apple-ci.ymlruns the kit tests on Linux and unsignedxcodebuildbuilds of both targets onmacos-15, only for PRs that touchapple/.apple/CLAUDE.md(including testing against a local backend), and the sign-in modes inbackend/CLAUDE.md.Testing notes
Not yet
standard.site documents, highlights and notes, linkblog sharing, channels, OPML import, a share extension, an app icon, and signing/TestFlight.
🤖 Generated with Claude Code
https://claude.ai/code/session_01WgeSghB1ro1QRmB3t28BEd