Old stories were reading "1 hr ago" because updatedAt bumps every time the backend attaches another article to a cluster, however loosely related. firstSeenAt is when the cluster actually first appeared and is already in the API response — just wasn't decoded. Verified live: story_1a37c858235b (F1 Austria GP recap) has firstSeenAt 2026-06-16 but updatedAt 2026-07-11, freshnessScore 0.96 — looked brand new despite being 25 days old. Also confirmed the API's isStale field is unusable as a stopgap (always false regardless of age). Ranking still surfaces old stories at the top — that's server-side (signalScore/freshnessScore) and out of scope for the client per the architecture rule against re-ranking. Logged in BACKLOG #15. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Jarvis (iOS)
A SwiftUI iOS client for a self-hosted RSS news-correlation platform. It shows stories ranked by a server-computed signal score, caches full articles for offline reading, and receives live updates over WebSocket.
This repo is the iOS app only. The backend (RSS ingest, clustering, scoring, REST + WebSocket) is a separate service — see
docs/backend/for the build/handoff spec andAPI/contract.mdfor the wire contract.
Architecture
- REST on launch → WebSocket for live updates. The server computes signal scores; the app only renders them.
- Offline-first via SwiftData (
CachedStory,CachedArticle). - No auth — local network / self-hosted (reach it over LAN or Tailscale).
- Data flows through
StoryStore/ dedicated view-models; views never call the API directly.
Jarvis/
Models/ Codable + SwiftData models
Networking/ APIClient (REST), WebSocketManager
Store/ StoryStore, ServerSettings
Connectivity/ ConnectivitySettings, ConnectivityManager (LAN ⇄ Tailscale)
Views/
Home/ Story/ Reader/ Feeds/ Connectivity/ Shared/
Requirements
- Xcode 16+ (developed on Xcode 26), iOS 17.0+ deployment target (SwiftData).
XcodeGen— the.xcodeprojis generated fromproject.ymland is not committed.
Build & run
brew install xcodegen # once
xcodegen generate # produces Jarvis.xcodeproj
open Jarvis.xcodeproj # ⌘R in Xcode, or:
xcodebuild -project Jarvis.xcodeproj -scheme Jarvis \
-sdk iphonesimulator -destination 'platform=iOS Simulator,name=iPhone 17' build
Connecting to a backend
On first launch, enter the server as host:port (the app prepends http:// and
ws://), e.g. 10.10.1.70:8098. Remote access via Tailscale is configured in the
in-app Connectivity → Remote Access card; the app auto-selects the LAN address when
it's reachable and the Tailscale address when away.
CI
GitHub Actions builds a matrix of macOS runners × Debug/Release on every push and PR —
see .github/workflows/ci.yml.
Status
Frontend complete and verified against a live backend (signal feed, story detail,
article reader, feed manager, connectivity). Open work is tracked in
Issues / docs/BACKLOG.md.