krz/moonrise

Night-sky companion for iPhone, Apple Watch and Vision Pro: what's up tonight, the Moon, planets, launches and missions, and a Library of the solar system. SwiftUI app with a Cloudflare Workers backend. astronomy cloudflare-workers ios night-sky space swiftui visionos watchos

Commit f268ef43a3

f268ef43a39f0f53e717c6d7a5bea846c07875e9

parent: 0eeda4418f

Unsigned

cmc <hello@cleberg.net> · 2026-10-21 19:41 UTC

PLAN: SF Pro, Tycho-2 to V 9, visionOS results (!92)

- Design: SF Pro decided over Helvetica Neue.
- v4.1: visionOS globes and orrery checked; immersive sky pending. New items: black globe in the iPhone app on Vision Pro, small-text legibility.
- v5.2: fainter stars from Tycho-2 to V 9, BSC5 merge rule; Gaia "can't be used" removed.
- Data sources: Tycho-2, Hipparcos, Gaia as CC BY-NC 3.0 IGO; HYG not used.
- Open questions: Vision Pro distribution.

Layout: unified · split

PLAN.org +21 −9
@@ -34,7 +34,8 @@ that can be computed; fetches only live feeds.
3434* design
3535After NASA's 1975 Graphics Standards Manual.
3636
37- Helvetica Neue (ships with iOS). Tabular figures for all numbers.
37- SF Pro, the system font (decided 2026-10-21 over Helvetica Neue for
38 small-size legibility and Dynamic Type). Tabular figures for all numbers.
3839- Strict grid, flush left, black hairlines, numbered modules.
3940- Off-white and ink by day. Near-black with white line work at night.
4041- One red accent for alerts and emphasis. Not NASA's exact red, no NASA
@@ -135,7 +136,9 @@ Checked 2026-10-17 against primary sources unless marked unconfirmed.
135136|-
136137| Astronomy Engine v2.1.19 (Don Cross) | Sun, moon, planet positions; rise, set, phases, eclipses, conjunctions | MIT, keep notice. No Swift package; C source vendored as an SPM target. Last release 2023-12. |
137138| Yale Bright Star Catalogue (VizieR V/50) | 9,096 stars with V mag, bundled | No licence in ReadMe; VizieR says "free in a scientific context", check per catalogue. US-government origin (NSSDC); public domain unconfirmed. |
138| HYG database | Star names, distances | CC BY-SA 4.0; use only if BSC5 is not enough |
139| HYG database | Star names, distances | CC BY-SA 4.0, but built from ESA (NC) data; not used |
140| Tycho-2 (VizieR I/259) | Stars V 6.5–9: positions, proper motions, BT/VT → V, B−V; HIP cross-IDs | ESA archive data, CC BY-NC 3.0 IGO (inferred: ReadMe not read). Credit: "ESA". |
141| Hipparcos, Gaia | Fallback for Tycho-2 | CC BY-NC 3.0 IGO (https://www.cosmos.esa.int/web/esdc/terms-and-conditions). Commercial use means any direct or indirect financial gain; the free app qualifies. Credits: "ESA"; "ESA, Gaia DPAC". |
139142| IAU boundaries (VizieR VI/49) | Boundaries | Same VizieR ambiguity as BSC5 |
140143| Constellation lines: van der Sluys ConstellationLines v1.4 | Stick figures by HR number, bundled | CC BY 4.0. Credit: "Constellation lines: Marc van der Sluys, ConstellationLines (doi:10.5281/zenodo.10397192), CC BY 4.0." Stellarium (CC BY-SA, AGPL repo) and d3-celestial (no data licence) rejected. |
141144| OpenNGC | Messier and NGC object data | CC BY-SA 4.0; ShareAlike on the data file. Decide before M5. |
@@ -462,7 +465,13 @@ Sky, System, Sun, Launches, Library core (above).
462465
463466** v4.1: run and check
464467- visionOS: run the app (globes, orrery volume, immersive star field) in the
465 visionOS simulator. It compiles but has never run.
468 visionOS simulator. Done: globes, orrery volume and immersive star field
469 checked in the visionOS 27.0 simulator.
470- iPhone app on Vision Pro (iPad compatibility mode): "View as a globe" is
471 black. GlobeView's non-visionOS branch (virtual camera, own light) draws
472 nothing there; fall back when =isiOSAppOnVisionOS=.
473- Small text: 9–10 pt Canvas labels in EclipseScreen ignore Dynamic Type;
474 10 pt uppercase at 0.6 opacity in the Pass and Launch Live Activities.
466475- App Shortcuts phrases tested on a device.
467476- Artemis II (Horizons =-1024=, 1–10 April 2026) in =server/src/live.ts= as
468477 a past event for replay.
@@ -470,8 +479,6 @@ Sky, System, Sun, Launches, Library core (above).
470479 Charts start-up); RealityKit's first start (about 1.4 s) when switching to
471480 3D, checked on a device; Sun snapshot OVATION grid compressed (156 KB to
472481 about 90 KB).
473- Typeface: the design calls for Helvetica Neue; the app uses the system
474 font. Pick one after a design review, before App Store screenshots.
475482
476483** v4.2: widgets and controls
477484- Lock Screen: Kp, next launch. Home Screen: Voyager 1 distance, today's Sun
@@ -499,13 +506,14 @@ Sky, System, Sun, Launches, Library core (above).
499506
500507** v5.2: Sky
501508- Milky Way from ESA's "Gaia's sky in colour" (CC BY-SA), clipped before
502 projection. Gaia data itself is CC BY-NC and can't be used.
509 projection.
503510- Comets in the Sky tab and the orrery from JPL SBDB, fetched daily by the
504511 Worker. The orrery has periodic comets (Kepler.swift); needs parabolic and
505512 hyperbolic orbits. Then bright asteroids.
506- Stars fainter than V 6.5, NGC objects, a deeper zoom and eyepiece
507 field-of-view circles from the equipment inventory. Catalogue not chosen:
508 Tycho-2 (VizieR licence question as BSC5) or HYG (CC BY-SA).
513- Stars fainter than V 6.5 from Tycho-2 to V 9 (about 110k stars, about
514 1.6 MB binary), NGC objects, a deeper zoom and eyepiece field-of-view
515 circles from the equipment inventory. Merge: drop Tycho-2 stars matched to
516 BSC5 by HIP/HD, then by position (10″, ΔV 0.5); BSC5 keeps HR numbers.
509517- Horizon profile.
510518
511519** v5.3: AR camera overlay
@@ -565,3 +573,7 @@ Sky, System, Sun, Launches, Library core (above).
565573* open questions
566574- Fallback for APNs if Workers' HTTP/2 stops working: Containers sender
567575 vs. a separate small VPS. The M0 probe worked, so this is a contingency.
576- Vision Pro: keep the iPhone app in compatibility mode (MoonriseVision
577 stays an experiment), or add visionOS to the main app so it runs natively
578 with globes, orrery and immersive sky as extras. The immersive sky is
579 fixed to Chicago and stars brighter than magnitude 4.5.