Stay aligned with the life you're building.
A calm, private personal operating system for turning the life you want
into the choices you make today.
Explore the interactive Orbit website →
Orbit is an iPhone-first personal operating system that connects long-term goals to the tasks, habits, milestones, and reflections that shape each day. The mobile application is local-first: creating a task, completing a habit, or writing a reflection commits to SQLite before the interface reports success. Cloud sync and AI are optional enhancements.
| Today | Life Graph | Adaptive planning |
|---|---|---|
| A focused daily plan that works offline. | Every task and habit can explain which goal it advances. | Evidence-backed suggestions remain proposals until you approve them. |
Orbit is under active development. The repository currently targets Expo SDK 58, React Native 0.88, iOS 16.4+, Go, PostgreSQL, and an incremental revision-based sync protocol. The primary design and test device is an iPhone 15 Pro Max. Android is intentionally out of scope.
apps/mobile/ Expo Router iOS application
services/api/ Go REST API and sync service
infrastructure/terraform/ Deployment configuration
docs/architecture/ System, sync, data, security, and AI design
docs/decisions/ Architecture decision records
docker-compose.yml Local PostgreSQL + API stack
See architecture overview and synchronization protocol.
- Node.js 22.13 or newer
- pnpm 11
- Xcode 26.4 or newer for local iOS builds
- Docker Desktop for PostgreSQL and API containers
- Go 1.24 or newer when running the backend outside Docker
Windows can run linting, TypeScript tests, backend tests, and Expo web tooling, but an iOS simulator or signed device build requires macOS/Xcode or EAS Build.
cp .env.example .env.local
pnpm install
docker compose up --build
pnpm iosThe mobile app remains useful without the API. Set EXPO_PUBLIC_API_URL only when testing sync. Store OPENAI_API_KEY in .env.local for the API service; it must never be added to EXPO_PUBLIC_* variables or bundled into the mobile app.
- Install Xcode, Node.js 22+, pnpm 11, and the Expo Go app on the iPhone.
- Clone this repository and run
pnpm installfrom its root. - Run
pnpm dev:mobile, then scan the QR code with the iPhone Camera app while both devices are on the same network. - If local networking blocks the connection, run
pnpm --filter @orbit/mobile start --tunnel.
Expo Go is the fastest daily loop. Before TestFlight or App Store submission, create a signed development build with EAS and verify notifications, Keychain, background behavior, accessibility, and release configuration on the physical phone.
The iPhone app does not need the API for local use. To exercise account-backed sync and server recommendations:
docker compose up --build
curl http://localhost:8080/health/readyThe Compose stack starts PostgreSQL, applies versioned migrations, and then starts the Go API. Development uses the explicit ORBIT_DEV_USER_ID; production refuses that bypass and requires a configured OIDC issuer and audience.
pnpm lint
pnpm typecheck
pnpm test
pnpm api:test
docker compose configVerified in the current Windows environment: TypeScript checking, ESLint, Jest domain tests, Go vet/tests, and an Expo production iOS bundle. Native compilation, Maestro, notifications, Keychain behavior, and physical-device accessibility still require the planned Mac/iPhone pass.
Development and App Store builds are defined in apps/mobile/eas.json.
pnpm --filter @orbit/mobile exec eas build --platform ios --profile development
pnpm --filter @orbit/mobile exec eas build --platform ios --profile productionProduction submission still requires an Apple Developer account, final bundle identifier ownership, privacy disclosures, screenshots, app icon approval, and EAS project linkage. No deployment is claimed until a signed build and App Store Connect upload are verified.
- Guest mode requires no account.
- Core records live locally in SQLite.
- Cloud synchronization is opt-in.
- Reflection content is excluded from AI requests unless the user explicitly enables it for that request.
- AI output is a proposal; applying it always requires user approval.
- Access and refresh tokens belong in iOS Keychain through Expo SecureStore, never SQLite.
- OIDC provider metadata and production hosting credentials are deployment-time configuration.
- Background sync timing is ultimately controlled by iOS.
- Local SQLite is not described as encrypted; highly sensitive tokens are stored separately in Keychain.
- The initial sync conflict policy merges independent fields and surfaces same-field conflicts; rich-text collaborative merging is not attempted.
- Bilingual English / Simplified Chinese onboarding and application UI
- Offline task creation, completion, editing, rescheduling, and deletion
- Goals with deterministic milestone progress and an explorable Life Graph
- Habit creation and non-punitive daily completion
- Private daily reflections
- Local iOS planning reminders
- Durable mutation outbox, SecureStore device identity, incremental push/pull, and conflict capture
- OIDC-protected Go API, PostgreSQL schema, deterministic recommendations, and approval-gated AI proposals
- CI, Maestro journey, EAS profiles, Docker Compose, OpenAPI, and Google Cloud Terraform
- Run the documented Mac + iPhone device pass and fix any native-only issues.
- Choose and configure the production OIDC provider.
- Link an EAS project and Apple Developer account.
- Complete privacy nutrition labels, screenshots, and App Store metadata.
- Produce a signed internal build, complete accessibility QA, then promote to TestFlight.
