Exercise Library
Lyftr comes with an 800+ exercise library in English and Spanish. There is no API key and nothing to import. Your server keeps its own copy and keeps it up to date.
How it stays up to date
Section titled “How it stays up to date”- On startup, and then every 24 hours, the server downloads the whole catalog from open-exercise-db, in every language it offers. It reads a published static copy first (a few hundred KB, checked against a checksum, and refused if older than 48 hours or older than what it already has) and asks the live API only if no copy is usable. Nothing is imported twice: if the copy hasn’t changed since the last sync, the sync just records that it ran. A restart within 24 hours of a successful sync skips the startup download and keeps the 24-hour schedule.
- If that fails, the server tries again by itself: after 1 minute, then 5, then every 30.
- Searching uses the catalog when it can. If it can’t be reached, you get your local copy, so logging a workout never waits on the network.
- The server needs outbound HTTPS to the catalog (
cawlumm.github.iofor the copy and the hosted API for search and images). To use a catalog you host yourself, setOEDB_BASE_URLin your.env; the hosted copy is then not used.OEDB_CATALOG_URLSnames other copies, oroffto always ask the API.
Settings → Exercise Library
Section titled “Settings → Exercise Library”This page shows how many exercises your server holds, when it last synced, and whether the last
sync failed (with the time of the next try). The status response also names where the last
sync read from (catalog_source: api or snapshot:<url>) and when that copy was generated. Refresh cached syncs now.
Empty list on a fresh install?
Section titled “Empty list on a fresh install?”If the picker says The exercise library is still loading, the server hasn’t been able to reach the catalog yet. It keeps trying. Press Refresh cached to try now, or check the logs:
docker compose logs backend | grep -i exercisesSee Troubleshooting if your network blocks the catalog.
When an exercise is removed
Section titled “When an exercise is removed”If the catalog stops listing an exercise, it disappears from the picker, but your workouts and programs keep it exactly as logged. If the catalog lists it again, it comes back. Nothing you logged is ever deleted.
If the catalog suddenly shrinks
Section titled “If the catalog suddenly shrinks”If the catalog lists less than half of what your server holds, Lyftr assumes the answer is broken, removes nothing, and Refresh cached says so. If the removal is real, confirm it once as the server operator:
TOKEN=$(curl -s -X POST https://your-server/api/v1/auth/login \ -H 'Content-Type: application/json' \ -d '{"email":"you@example.com","password":"..."}' | jq -r .data.token)
curl -X POST "https://your-server/api/v1/admin/sync-exercises?confirm_removals=true" \ -H "Authorization: Bearer $TOKEN"