Travel, together. Native iOS 17+ SwiftUI travel companion for planning trips, keeping every booking and plan together, and seeing what's on today, with an Astro marketing and legal site at growmoss.app. StoreKit provides the Supporter subscription. Free accounts get two lifetime trips, including deleted trips.
-
Whole-trip map with plan pins, transport endpoints, optional Apple Maps walking, driving and cycling route overlays, transit journeys that open in Apple Maps and shared manual visit progress.
-
Email/password, Sign in with Apple and Google sign-in (Better Auth on the Herman API)
-
Offline-first SQLite mirrored to PostgreSQL on Herman through self-hosted PowerSync
-
Trips with destination, dates and notes
-
Day-by-day itineraries: flights, stays, food, activities, transport and notes
-
Up to three camera or photo library images per plan, available offline and shared with the trip
-
Share one trip, or every trip you own, with other Moss accounts as editors or viewers; invitees get an email and accept or decline in the app
-
Today screen with the current or next trip and today's plans
-
Home Screen widget (next trip and today) and App Shortcuts to plan a trip or open today
-
Supporter subscription for unlimited trips
-
Light / Dark / System appearance
-
Account deletion
-
Product analytics, error tracking and crash reports through PostHog (optional)
| Concern | Tool |
|---|---|
| UI | SwiftUI, iOS 17+, WidgetKit, AppIntents |
| Backend | Bun/TypeScript API in Backend/ with PostgreSQL/Drizzle on Herman |
| Sync | PowerSync Swift SDK |
| Auth | Better Auth (email, Sign in with Apple, Google), Brevo email |
| Subscriptions | StoreKit 2, verified server-side with Apple's server library |
| Push | APNs through the API or the shared push gateway (docs/push-gateway.md) |
| Analytics | posthog-ios |
| Project gen | XcodeGen |
Every iOS app shares this layout; Scripts/SHARED_IOS_CORE.md is the reference.
Moss/
App/ entry point, AppServices, AppSecrets, AppDelegate, routing
Auth/ AuthClient, APIClient, sign-in views, Apple + Google flows
Billing/ StoreKit repository, access state, paywall
Components/ Theme, Theme+App, Card, PrimaryButton, LoadingView, Lottie
Extensions/ Foundation helpers
Intents/ AppIntents and App Shortcuts
Itineraries/ Today tab, itinerary items and their repository
Logging/ OSLog/PostHog wrapper
Models/ Trip, ItineraryItem, Profile
Notifications/ shared push core and APNs registration
Resources/ assets, Moss.icon, animations, fonts, StoreKit configuration
Settings/ settings, appearance, profile repository
Sharing/ shared sharing core, trip and all-trips sharing screens
Sync/ PowerSync schema, manager, connector, sync issues
Trips/ trips list, detail, editor, repository and creation quota
Utilities/ display formatting
Widgets/ widget snapshot store (shared with the extension)
MossTests/ unit tests
MossWidgets/ WidgetKit extension
Backend/ Bun API, Drizzle migrations, PowerSync config, Herman deploy
Site/ Astro marketing, support and legal site
Config/ Secrets.xcconfig.example
Scripts/ shared-code checks, CI export options
docs/ push gateway contract
deploy/ container health contract
./setup.shThe script checks for Homebrew, XcodeGen and the pinned Bun (1.4.4), copies
Config/Secrets.xcconfig.example to Config/Secrets.xcconfig if it doesn't
exist, installs the backend dependencies and generates Moss.xcodeproj. It
never touches a production backend.
Fill in Config/Secrets.xcconfig:
API_URL: the Moss API origin (the publicBETTER_AUTH_URLof the Herman API).POWERSYNC_URL: the Moss PowerSync origin.PUSH_GATEWAY_URL: optional; leave blank to register devices with the API.POSTHOG_PROJECT_TOKEN: optional; leave blank to disable PostHog locally.POSTHOG_HOST: the PostHog ingestion origin (https:/$()/eu.i.posthog.comorhttps:/$()/us.i.posthog.com).
TestFlight builds take both PostHog values from GitHub, not from
IOS_SECRETS_XCCONFIG.
Escape URL slashes as https:/$()/... in xcconfig. The example's placeholders
build fine but show configuration errors instead of signing in or syncing.
Moss.xcodeproj is git-ignored: run xcodegen generate after changing
sources, targets, signing or dependencies, then open it and press ⌘R.
xcodebuild build -project Moss.xcodeproj -scheme Moss -configuration Debug \
-destination 'generic/platform=iOS Simulator' CODE_SIGNING_ALLOWED=NO
xcodebuild test -project Moss.xcodeproj -scheme Moss \
-destination 'platform=iOS Simulator,name=iPhone 16'Backend checks (see Backend/deploy/README.md):
cd Backend
bun install --frozen-lockfile
bun run typecheck
bun run lint
bun run format:check
TEST_DATABASE_URL=postgresql://.../disposable_database bun test
bun run buildIntegration tests migrate and truncate the named test database and create/drop additional disposable fixture databases. Never use a production URL.
The site runs with bun run dev, bun run build and bun run preview from the
repository root; see Site/README.md for its checks.
Running on a device or shipping needs Apple Developer access:
- App IDs
app.getmoss.moss(Sign in with Apple, Push Notifications, App Groups, Associated Domains) andapp.getmoss.moss.widgets(App Groups), both in app groupgroup.app.moss. - App Store provisioning profiles named Moss App Store and Moss Widgets
App Store (the names in
project.yml). - An auto-renewable subscription
app.moss.supporter.monthly. The committedMoss/Resources/StoreKit/Moss.storekitserves simulator builds; App Store Connect is authoritative for TestFlight and production. - App Store Server Notifications V2 pointed at the API's
/api/iap/notifications. - Sign in with Apple and Google credentials in the API's protected
api.envon Herman (Backend/deploy/api.env.examplelists them). The native redirect ismoss://auth-callback.
Merging to main releases each changed area.
release-backend.yml repeats the backend checks, builds and attests the API
image and sends a signed request through Cloudflare Access to the receiver in
Backend/deploy/app.json (deployURL). On Herman, deploy-core:
- verifies provenance and backs up the database;
- requires a fresh off-host recovery proof;
- runs migrations;
- installs the image's Compose files, PowerSync configuration and inventory;
- starts the API and PowerSync, rolling back on failure.
See Backend/deploy/README.md and deploy-core's
docs/shared-backends.md.
| Setting | Kind | Purpose |
|---|---|---|
API_BASE_URL |
repository variable | Public API origin checked after a deploy |
API_CF_ACCESS_CLIENT_ID, API_CF_ACCESS_CLIENT_SECRET |
production secrets |
Access service token for the API deploy hostname |
API_DEPLOY_WEBHOOK_SECRET |
production secret |
HMAC key for API deploy requests |
release-site.yml repeats the site checks, publishes an attested image to
ghcr.io/kylescudder/moss-site and asks Herman to deploy that digest. See
Site/README.md.
| Setting | Kind | Purpose |
|---|---|---|
DEPLOY_HOST |
repository variable | Herman deploy hostname (deploy.growmoss.app), protected by Cloudflare Access |
SITE_BASE_URL |
repository variable | Public origin checked for the new revision |
CF_ACCESS_CLIENT_ID, CF_ACCESS_CLIENT_SECRET |
production secrets |
Access service token for the deploy hostname |
DEPLOY_WEBHOOK_SECRET |
production secret |
HMAC key for deploy requests |
ios-testflight.yml runs when the app, widgets, project.yml, the secrets
example or Scripts/ci/ change on main. It checks that the release API and
PowerSync endpoints are ready, archives with manual signing, checks the archived
configuration and uploads to TestFlight. Run it manually with a delivery UUID to
wait for Apple's processing of an earlier upload. CI stamps
CURRENT_PROJECT_VERSION from the run number; bump MARKETING_VERSION in
project.yml for version changes.
| Setting | Kind | Purpose |
|---|---|---|
API_BASE_URL, POWERSYNC_BASE_URL |
repository variables | Release origins written into the build |
POSTHOG_HOST |
repository variable | PostHog ingestion origin written into the build |
POSTHOG_PROJECT_TOKEN |
secret | PostHog project token (phc_…) written into the build |
IOS_SECRETS_XCCONFIG |
secret | Release Secrets.xcconfig (the values above replace its URLs and PostHog token) |
APP_STORE_CONNECT_API_KEY_ID, APP_STORE_CONNECT_API_KEY_ISSUER_ID, APP_STORE_CONNECT_API_KEY_P8 |
secrets | App Store Connect API key for upload |
APPLE_TEAM_ID |
secret | Development team written into project.yml |
IOS_DISTRIBUTION_CERTIFICATE_BASE64, IOS_DISTRIBUTION_CERTIFICATE_PASSWORD, IOS_KEYCHAIN_PASSWORD |
secrets | Distribution certificate and temporary keychain |
IOS_MOSS_PROFILE_BASE64, IOS_MOSS_WIDGETS_PROFILE_BASE64 |
secrets | The two App Store provisioning profiles |
Complimentary billing access follows Scripts/SHARED_IOS_CORE.md; see
docs/complimentary-access.md for the administrator grant and revoke procedure.
Moss keeps six sets of files byte-for-byte identical with the other iOS apps. CI fails if any of them drift:
| Check | Covers |
|---|---|
Scripts/check-shared-ios-core.sh |
App scaffolding, shared UI primitives, the billing and sync cores, setup.sh, iOS workflows (SHARED_IOS_CORE.md) |
Scripts/check-shared-auth.sh |
Better Auth backend and native auth (SHARED_AUTH.md) |
Scripts/check-shared-push-core.sh |
Push registration core (SHARED_PUSH_CORE.md) |
Scripts/check-shared-infra.sh |
Backend deployment and provisioning (SHARED_INFRA.md) |
Scripts/check-shared-site.sh |
Astro site layout, tooling, image and site workflows (SHARED_SITE.md) |
Scripts/check-shared-sharing-core.sh |
Sharing models, repository, member screen and tests, used by the apps that share data (SHARED_SHARING_CORE.md) |
Each account keeps a separate local database and upload queue. Signing out retains offline changes on this device; signing back in resumes them. Choose Sign out and remove local data to discard that account’s local changes explicitly. A fresh sign-in requires connectivity.
AGENTS.md describes the architecture in detail. In short:
AppServicesowns the long-lived services and repositories; views read it with@EnvironmentObject.- Repositories read local SQLite through
database.watchand write locally; PowerSync uploads throughAPIConnector. - Deletions are soft (
deleted_at) and UUIDs are lowercased everywhere. - New trips go through
AppServices.canCreateNewTrip(); the server's insert trigger is the authority for the two-trip free allowance.
The editable Liquid Glass app icon is Moss/Resources/Moss.icon (open it with
Xcode's Icon Composer). The same moss-ball mark is used by the in-app logo and
the site.
Choose a route colour in Settings › Appearance; the choice is saved on this device and applies to every trip map. Trip maps require Apple Maps searches to place pins. Walking, driving and cycling routes can be drawn in the trip map; transit keeps its endpoint pins and opens in Apple Maps because MapKit does not provide transit route geometry. Visit progress saves offline and syncs with plans; deploy backend migration 0009_plan-visits and the API before releasing the native feature.