Mobile
The LibrePhotos mobile app lives in apps/mobile/. It is an Expo (React Native, New Architecture) app for Android and iOS with an offline-first data model: a local SQLite mirror of the library, kept current by delta sync against the backend, plus camera-roll backup. The app README is the full developer guide, and the design documents are in plans/mobile-v2/.
The database on the phone is the shared package packages/local-db, which the desktop app uses too; apps/mobile/src/db/ only opens it (the expo-sqlite executor), migrates it and provides useReactiveQuery. On-device database describes the package, the executor contract, migrations and live queries.
🔨 Setup
You need Node.js 24, which is what CI uses.
The app is an npm workspace together with the shared API client in packages/api-client, so install once from the repository root. The root package-lock.json is the only lockfile:
npm ciat the repository rootcd apps/mobilenpx expo start --goand scan the QR code with Expo Go, or build a development build withnpx expo run:android/npx expo run:ios
The native android/ and ios/ folders are not committed. expo prebuild generates them from app.json.
✨ Code Standards
Every pull request that touches apps/mobile/, packages/ or the root package.json / package-lock.json runs typecheck, lint and the Jest suites in CI. Run the same checks locally before pushing:
npm run check --workspace apps/mobile
The shared API client and the on-device database have their own checks:
npm run test --workspace packages/api-client
npm run typecheck --workspace packages/local-db
npm run lint --workspace packages/local-db
npm run test --workspace packages/local-db
npm run db:check --workspace packages/local-db
npm run test --workspace packages/decode-uri-component
packages/decode-uri-component is a CommonJS port of decode-uri-component 0.5.1 that the root package.json gives to query-string 7, which expo-router uses to parse deep link queries, in place of the vulnerable 0.2.2. It goes away with Expo SDK 58, whose expo-router no longer uses query-string; its README lists what to delete.
🌐 Translations
English strings live in apps/mobile/src/i18n/locales/en.ts. Other languages fall back to English until translations are added.