Monorepo for the Lunarr client apps (the mobile and TV frontends for the Lunarr media server).
Available on Google Play for mobile, tablets, and TV, and on the App Store for iOS and tvOS.
| App | Path | Description |
|---|---|---|
| Mobile | apps/mobile |
Expo SDK 57 phone/tablet app (iOS, Android, web) |
| TV | apps/tv |
Expo SDK 57 TV app (Apple TV, Android TV) |
| API | packages/api |
Shared API client (generated from the Lunarr backend OpenAPI spec) |
| Core | packages/core |
Shared app-agnostic logic + query hooks (media/playback/profile, queryKeys, hooks) |
pnpm workspace monorepo. All deps install from the repo root into a single virtual store
(node_modules/.pnpm); the apps and packages/* are symlinked together. Expo/Metro auto-detects
the workspace (SDK 52+), so no manual metro.config.js wiring is needed. The TV app resolves
react-native to react-native-tvos via its own dependency; autoInstallPeers is disabled in
pnpm-workspace.yaml so the TV build does not pull in react-native-reanimated /
react-native-gesture-handler / react-native-worklets (optional peers of expo-router) that the
TV app does not use, while the mobile app still gets them as explicit dependencies.
packages/api and packages/core are shared TypeScript source — no build step. Both apps declare
them as workspace:* dependencies, so they resolve through each app's node_modules symlink.
packages/core has dev-dependencies (react/react-native/@lunarr/api/@tanstack/react-query/expo-router)
only so its own pnpm typecheck resolves types — at bundle time everything resolves to each app's
single node_modules.
# Install all workspace dependencies (from the repo root)
pnpm install
# Run the mobile app (via root helpers)
pnpm mobile:start
pnpm mobile:ios
pnpm mobile:android
# Run the TV app
pnpm tv:start
pnpm tv:ios
pnpm tv:androidOr from inside each app:
cd apps/mobile && pnpm start
cd apps/tv && pnpm startSee the root AGENTS.md for repo conventions, typecheck, and formatting commands.
Typical per-app workflow (or use pnpm --filter <pkg> <script> from the root):
pnpm typecheck # tsc --noEmit
pnpm format:check # prettier check
pnpm format # prettier write
pnpm gen:api # regenerate the shared API client (delegates to packages/api)
pnpm gen:openapi # regenerate packages/api/openapi.json from the lunarr-go servergen:openapi reaches the backend at ../../../lunarr-go (relative to packages/api), and both
app-level gen:* scripts delegate to packages/api — the API client has a single source of truth.
