Skip to main content

LibrePhotos Mobile

LibrePhotos Mobile is the official app. It stores a local copy of your library on the device, so you can browse your photos, albums, and people with no connection at all — the network is used only to catch the app up with the server and to back up new photos from your phone.

It runs on Android and iOS.

Not released yet

LibrePhotos Mobile has not been published anywhere yet: there is no build on the Google Play Store, the App Store, F-Droid, or TestFlight, and no .apk of it on the GitHub releases page. Until it is, the only way to use it is to run it from the source code, as described below. If you want an app you can install from a store today, see UhuruPhotos.

Trying the app​

The app lives in apps/mobile/ of the LibrePhotos repository. To run it you need a computer with Node.js 24 and a checkout of the repository:

git clone https://github.com/LibrePhotos/librephotos.git
cd librephotos
npm ci # installs the app and the shared API client
cd apps/mobile

Then pick one of two ways to get it onto your phone:

  • Expo Go (quickest). Install the free Expo Go app on your phone, run npx expo start --go on the computer, and scan the QR code it prints. The phone has to reach the computer over the network, and Expo Go loads the app from it, so keep expo start running while you use the app. This works on Android and on iPhone.
  • Development build (closer to a real install). On Android, with Android Studio and a phone connected over USB (or an emulator), run npx expo run:android. It builds the app and installs it on the device as LibrePhotos. Background backup and the share target behave best in a development build. On iOS a development build needs a Mac with Xcode and a paid Apple Developer account.

The developer guide and the app README cover the setup in more detail. Problems and feedback are welcome on the issue tracker with the mobile label.

First login​

When you first open the app you are asked for your server address before anything else — this is a self-hosted app, so it needs to know where your LibrePhotos lives.

  1. In the Server URL field, enter the same address you use to reach LibrePhotos in a browser, for example photos.example.com or 192.168.1.10:3000. The protocol is optional.
  2. Wait for the connection check to succeed.
  3. Sign in with your LibrePhotos username and password.

Not released yet (comes after 1.7.0) Change password in the app's settings asks for your current password first, then the new one, and signs the app in again with the new password; the app waits with everything else until it has, for at most a minute. Your other devices and browsers are signed out. If signing in again fails, the app says that the password changed and asks you to sign in. Signing out while the change is still running signs you out for good: the app does not sign itself in again afterwards.

Your login is stored securely on the device. After the first sign-in the app begins downloading a copy of your library in the background (see Offline mode).

Not released yet (comes after 1.7.0) Log out removes that copy from the phone, together with edits made offline that were not sent yet, the backup queue and the cached thumbnails. It works offline too: the app then says that the server could not be told, and the sign-in stays valid on the server until it expires. If the app is closed in the middle of a logout, it finishes the logout the next time it starts, and tells the server then; if the server cannot be reached, the login screen says so. If something on the phone could not be removed, the login screen says so: either the app tries again when it starts, or, when the phone could not even record the logout, it asks you to sign in and log out again. If the app cannot open its data on the phone (for example when the storage is full), it shows a message with Retry instead of loading forever. Signing in to another account or another server starts from an empty copy, with backup off until you turn it on for that account. When the server ends your session (after 7 days, or when the refresh token was revoked), the copy stays for your next sign-in, and so do the edits you made offline that were not sent yet: they are sent once you sign in to the same account again. A server that is restarting or out of reach no longer signs you out.

Offline mode​

After the first sync, the app keeps a local mirror of your library — photos, albums, people, and shared items — together with grid thumbnails. That means you can open the app in airplane mode and still:

  • browse the full timeline and scroll through every photo's thumbnail,
  • open albums, people, places, things, and tags,
  • favorite, hide, trash/restore, rate, caption, and add or remove photos from albums.

Changes you make offline are saved immediately and queued. The next time the app is online it sends them to the server automatically. A star rating is written to the photo's file or XMP sidecar when Write edits to files is on, the same as a favorite set on the web.

Not released yet (comes after 1.7.0) The app sends queued changes in the order you made them, so the last change you made to a photo is the one the server keeps. It keeps trying for as long as the phone is offline or the server is down or being updated, and waits as long as the server asks it to. A change the server refuses is dropped with a message, and the photo shows what the server holds again. A change the server fails on eight times in a row stays on the phone: Sync status then says how many changes couldn't be sent, with Retry and Discard. Retry tries them once more (the app also does that each time it starts), and Discard drops them and shows what the server holds. Until then, a later change to the same photo, album or person waits behind them; your other changes are still sent. A sync that runs while you edit no longer undoes the edit on the phone: photos, captions, albums and the names of people keep your change until the server has it. When the phone was offline, the app sends what waits at most about 15 seconds after the connection is back, as long as it stays open. Adding photos to an album sends only the photos, so a new title somebody gave the album on the web stays.

Star ratings New in 1.3.0

Until this fix, a star rating set in the app showed on the phone but never reached the server. Saving ratings needs a build of the app that includes the fix and a server newer than 1.2.1 (1.3.0 or later); an older server rejects the rating and the app shows an error. Ratings set before the fix exist only on that phone, so set them again once both are updated.

Full-resolution originals are fetched on demand when you open a photo, so viewing an original still needs a connection unless it is a photo already on your device.

Not released yet (comes after 1.7.0) The grid thumbnails stay within the cache size set in Settings, and when the cache is full the app removes the thumbnails you have not looked at for the longest time. Clear cache in Settings deletes the thumbnail files from the phone, not only the app's list of them, and waits for a thumbnail that is being saved at that moment. A thumbnail the app was killed in the middle of saving or removing is cleaned up the next time it syncs, so no grid tile stays blank, and an app update keeps the cache.

Backup setup​

The app can back up new photos and videos from your phone's camera roll to your LibrePhotos server.

  1. Open the Backup tab.
  2. Grant photo-library access when prompted. On iOS you can grant access to all photos or a limited selection — the app backs up whatever it is allowed to see.
  3. Choose which albums to back up (for example only your Camera roll).
  4. Set the conditions with Wi-Fi only and/or Charging only.

Backup needs two things an admin sets up on the server:

  • Uploads must be enabled. The Allow uploads switch in the admin area has to be on. That switch is the authoritative setting; the ALLOW_UPLOAD environment variable only supplies its initial default (see Environment variables).
  • Your account needs a Scan Directory that exists on the server. Uploaded files are saved in its uploads/web/ folder, or in the web/ folder inside the upload folder an admin set for you (see Upload folder). See How to Change Your Scan Directory.

If either is missing, the server rejects the upload.

The Backup tab shows progress and a per-item queue. Photos already on the server (matched by content, so duplicates are never re-uploaded) are skipped. A backed- up photo's badge flips from pending to synced once the server confirms it. Backup continues in the background within the limits your phone's operating system allows; keeping the app in the foreground is the fastest way to clear a large backlog.

New in 1.5.0 After an upload the server still has to make the photo's thumbnails before it shows up in your timeline. Until the app's next sync brings it in, the Backup tab counts it as processing on the server, its queue row says Processing on server, and its grid tile shows an hourglass instead of the upload arrow. The Backup tab only says everything is backed up once the server has finished.

Not released yet (comes after 1.7.0) When the app starts, when you open the Backup tab or tap Back up now, when the phone reports a change to the photo library while the app runs (at most once every ten minutes; a change within ten minutes of the last comparison is compared when they are up), and at least once a day, the backup scan compares each photo on the phone with the one it backed up. So it notices a photo you edited on the phone (the edit keeps the photo's date), also one whose original is only in iCloud, a photo you moved to another album (Android does not report a move to the app), and a photo deleted and another added in between two scans. In between, a scan only looks for new photos, at most once a minute while the phone keeps reporting changes. An edited photo is backed up again as a new photo on the server; the version backed up before stays there. A photo in an album you excluded from backup is not backed up again. On a large camera roll the comparison reads the library in small steps and carries on where it stopped if the app is closed, also through thousands of photos that share one date or have none.

Not released yet (comes after 1.7.0) When the modification date of a photo whose original is only in iCloud changes, the app downloads the original once to see whether the photo itself changed. On iOS a change to its metadata alone, such as marking it as a favorite, can cause that too. The download waits for Wi-Fi only and Charging only like an upload. If the photo is the same, it is not uploaded a second time.

Not released yet (comes after 1.7.0) A photo the app backed up and you then deleted on the server stays deleted: the app uploads it again only after you edit the photo itself on the phone, or share it to LibrePhotos. If you reinstalled the server or restored it from an old backup, log out in the app and log in again, then turn backup on and choose your albums again: the phone then checks all its photos against the server.

Not released yet (comes after 1.7.0) Right before each upload the app checks your album choices again, and asks the phone whether the photo is in an album you excluded. A photo that is, or that is in no selected album any more, leaves the queue without being uploaded, also when it was queued before you changed the choice; select its album again and it is queued again. If the phone does not say which album a photo is in, the photo waits while the others go on: the Backup tab shows how many wait, and the app asks again after 15 minutes at the earliest, with its next sync, or when you tap Back up now. Excluding an album does not stop a photo that is already being sent, and while the app may only see the photos you selected for it on iOS, it cannot see which albums a photo is in, so only exclusions it learned about before count.

Not released yet (comes after 1.7.0) Wi-Fi only holds for the whole upload: the app checks again right before a photo is sent and stops the upload when the phone leaves Wi-Fi (or the charger, with Charging only). The Backup tab says Waiting for Wi-Fi, the photo is sent again from the start, and an upload stopped this way does not count as a failed attempt. When the phone is back on Wi-Fi while the app is open, the waiting uploads start within a minute, without scanning the photo library again; before, they waited for the next time the app was opened. Two limits: the app notices the move off Wi-Fi a moment after it happens, so the end of a photo can still go over cellular; and on iOS an upload that carries on while the app is in the background cannot be stopped until the app runs again.

Not released yet (comes after 1.7.0) A photo the server rejected five times (for example because your account has no Scan Directory) is no longer sent again on every sync. It stays in the queue as failed until you tap Retry failed on the Backup tab.

Sync status and repair​

Open Sync status (from Settings) to see what the app is doing:

  • the last sync time and result,
  • how many items were added, updated, or removed,
  • a running log you can export to attach to a bug report.

Because the local copy is disposable, the app can always recover from a bad state by re-syncing from scratch. If counts ever drift from the server the app schedules this automatically, and you can trigger it yourself from the Sync status screen. A re-sync never loses server data — it just rebuilds the local mirror.

Not released yet (comes after 1.7.0) The automatic re-sync after a count mismatch also removes the photos, albums and people the server no longer has, so the mismatch is not reported again on every sync. A change you make while a sync runs is sent before the rest of that sync, so it doesn't wait for a long first backup. When the server refuses a change to an album or a person, the app reads the albums or people from the server again right away, so the phone shows what the server holds.

Memories reminder​

The app can remind you about your memories — photos from this day in previous years. Turn on Memories reminder in Settings and pick a time: on each day that has memories you get a local notification at that time saying from how many earlier years they are, and tapping it opens the memories. Days without memories get no notification.

The reminders are planned on the device two weeks ahead, from the photos the app has synced, so they work without any push service. They are planned again whenever you open the app, after each sync, and when you change the time or the app language. If the app is not opened or synced for two weeks, the reminders stop until it is.

Share target​

LibrePhotos Mobile registers as a share target. From another app — Photos, a browser, a messaging app — use the system Share sheet and pick LibrePhotos to send images into your library. On Android this works in a development build (not in Expo Go, which registers as its own app); on iOS the share extension is being finalized.

Not released yet (comes after 1.7.0) Shared photos upload even when backup is off: the Backup switch only covers the camera roll. They still wait for Wi-Fi or the charger when Wi-Fi only or Charging only is on. Sharing the same file again after it was uploaded checks it again: a changed file is uploaded, and an unchanged one shows as already on the server.