Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Cawlumm/lyftr
/ functions
Functions
570 in github.com/Cawlumm/lyftr
⨍
Functions
570
◇
Types & classes
128
↓ 90 callers
Function
newContext
(userID int64, method, path string, body any)
backend/controllers/testhelper_test.go:191
↓ 88 callers
Function
setupTestDB
(t *testing.T)
backend/controllers/testhelper_test.go:23
↓ 87 callers
Function
createTestUser
(t *testing.T)
backend/controllers/testhelper_test.go:165
↓ 54 callers
Method
Scan
(dest ...any)
backend/stores/exercise.go:25
↓ 54 callers
Method
get
get reads a single row by id (no user scope — used after a user-scoped write).
backend/stores/weight.go:62
↓ 51 callers
Function
store
()
web/src/stores/workoutSession.test.ts:4
↓ 48 callers
Function
decodeResponse
(t *testing.T, w *httptest.ResponseRecorder)
backend/controllers/testhelper_test.go:210
↓ 42 callers
Function
displayWeight
(lbs: number, unit: string)
web/src/stores/settings.ts:94
↓ 35 callers
Function
unwrap
(res: { data: { data: T } })
web/src/services/api.ts:107
↓ 31 callers
Function
setParam
(c *gin.Context, key, val string)
backend/controllers/testhelper_test.go:206
↓ 23 callers
Function
insertWeightLog
(t *testing.T, uid int64, weight float64, loggedAt time.Time)
backend/controllers/weight_test.go:12
↓ 21 callers
Function
setPhase
(p: typeof phase)
web/src/pages/GymModeWorkout.tsx:83
↓ 20 callers
Function
todayStr
()
web/src/utils/dateUtils.ts:12
↓ 20 callers
Function
weightShort
(unit: string)
web/src/stores/settings.ts:79
↓ 18 callers
Function
insertFoodLog
─── helpers ──────────────────────────────────────────────────────────────────
backend/controllers/food_test.go:17
↓ 16 callers
Function
createTestExercise
(t *testing.T)
backend/controllers/testhelper_test.go:178
↓ 16 callers
Function
displayToLbs
(val: number, unit: string)
web/src/stores/settings.ts:85
↓ 16 callers
Function
shoot
(name: string, url: string, viewport: typeof MOBILE | typeof DESKTOP, setup?: (p: any) => Promise<void>)
web/scripts/screenshots.ts:61
↓ 16 callers
Function
shot
(page, name)
web/scripts/screenshots.mjs:17
↓ 15 callers
Function
normalizeServerUrl
(raw: string)
web/src/stores/server.ts:10
↓ 12 callers
Function
getEnv
(key, fallback string)
backend/config/config.go:66
↓ 12 callers
Function
weightError
(value: number, unit: string)
web/src/stores/settings.ts:110
↓ 11 callers
Function
apiErrorMessage
(err: any, fallback: string)
web/src/services/api.ts:28
↓ 11 callers
Function
isPositiveNumber
(s: string)
web/src/utils/numberUtils.ts:11
↓ 10 callers
Method
Get
Get returns one user-owned food log, or sql.ErrNoRows.
backend/stores/food.go:47
↓ 10 callers
Function
displayVolume
(lbs: number, unit: string)
web/src/stores/settings.ts:99
↓ 10 callers
Function
saveLocal
(session: types.ActiveSession | null)
web/src/stores/workoutSession.ts:7
↓ 10 callers
Function
seedWorkoutWithSet
seedWorkoutWithSet creates a workout → workout_exercise → set for a given user/exercise.
backend/controllers/exercises_test.go:12
↓ 9 callers
Function
dayToIsoNoon
(yyyyMmDd: string)
web/src/utils/dateUtils.ts:27
↓ 9 callers
Function
isoToDayInput
(iso: string)
web/src/utils/dateUtils.ts:38
↓ 9 callers
Function
muscleColor
(m: string)
web/src/utils/exerciseUtils.ts:32
↓ 9 callers
Function
otherUser
(t *testing.T)
backend/controllers/food_test.go:45
↓ 8 callers
Function
formatVersion
(raw: string)
web/src/utils/version.ts:7
↓ 8 callers
Function
lbsToDisplay
(lbs: number, unit: string)
web/src/stores/settings.ts:82
↓ 8 callers
Function
round1
(n: number)
web/src/stores/settings.ts:90
↓ 8 callers
Function
updateSet
(exIdx: number, setIdx: number, field: string, value: any)
web/src/pages/AddWorkout.tsx:70
↓ 7 callers
Method
LogWeight
(c *gin.Context)
backend/controllers/weight.go:54
↓ 7 callers
Function
offProductToResult
(p offProduct)
backend/controllers/food.go:258
↓ 7 callers
Function
seedGymSession
(page: any, name: string, exerciseName: string, sets: any[], extraExercises?: any[])
web/e2e/workouts.spec.ts:199
↓ 7 callers
Function
selectResult
(result: types.FoodSearchResult)
web/src/pages/LogFood.tsx:170
↓ 7 callers
Function
useNumericText
(value: string)
web/src/hooks/useNumericText.ts:15
↓ 7 callers
Function
useServerInfo
()
web/src/hooks/useServerInfo.ts:11
↓ 6 callers
Method
Delete
(uid, id int64)
backend/stores/food.go:85
↓ 6 callers
Method
ListWeightLogs
(c *gin.Context)
backend/controllers/weight.go:15
↓ 6 callers
Method
LogFood
(c *gin.Context)
backend/controllers/food.go:61
↓ 6 callers
Function
cleanupSeed
( request: APIRequestContext, token: string, listUrl: string, deleteBase: string, match: (item: any)
web/e2e/seedHelpers.ts:13
↓ 6 callers
Function
insertSavedFood
(t *testing.T, uid int64, name string)
backend/controllers/food_test.go:32
↓ 6 callers
Function
maxWeight
(unit: string)
web/src/stores/settings.ts:107
↓ 6 callers
Function
resolveWeightLbs
(displayValue: string, originalLbs: number, unit: string)
web/src/stores/settings.ts:125
↓ 6 callers
Function
setActiveSetIdx
(i: number)
web/src/pages/GymModeWorkout.tsx:85
↓ 6 callers
Function
useEscapeKey
(active: boolean, onEscape: () => void)
web/src/hooks/useEscapeKey.ts:7
↓ 6 callers
Function
withOFFMock
(t *testing.T, handler http.HandlerFunc)
backend/controllers/food_test.go:66
↓ 5 callers
Method
CreateWorkout
(c *gin.Context)
backend/controllers/workouts.go:49
↓ 5 callers
Method
GetExercisePRs
(c *gin.Context)
backend/controllers/exercises.go:48
↓ 5 callers
Function
inTx
inTx runs fn inside a transaction, committing on success and rolling back on error. Use it for any store operation that issues two or more statements
backend/stores/stores.go:37
↓ 5 callers
Function
isValidWeight
(value: number, unit: string)
web/src/stores/settings.ts:118
↓ 5 callers
Function
muscleColorBordered
(m: string)
web/src/utils/exerciseUtils.ts:37
↓ 5 callers
Function
pause
(msg)
web/scripts/post-launch.mjs:4
↓ 5 callers
Function
selectResult
(result: types.FoodSearchResult)
web/src/components/FoodLogModal.tsx:149
↓ 5 callers
Function
useBodyScrollLock
(active: boolean)
web/src/hooks/useBodyScrollLock.ts:14
↓ 4 callers
Method
Create
(uid int64, req models.LogFoodRequest)
backend/stores/food.go:53
↓ 4 callers
Method
CreateProgram
(c *gin.Context)
backend/controllers/programs.go:48
↓ 4 callers
Function
IsLocked
IsLocked reports whether err is a transient SQLite lock (SQLITE_BUSY / SQLITE_LOCKED), the kind of failure that is worth retrying rather than surfacin
backend/utils/dberr.go:26
↓ 4 callers
Method
List
(uid int64, f WeightFilter)
backend/stores/weight.go:31
↓ 4 callers
Method
ListWorkouts
(c *gin.Context)
backend/controllers/workouts.go:15
↓ 4 callers
Method
LookupBarcode
(c *gin.Context)
backend/controllers/food.go:397
↓ 4 callers
Method
SearchFood
(c *gin.Context)
backend/controllers/food.go:317
↓ 4 callers
Method
Update
(uid, id int64, req models.LogFoodRequest)
backend/stores/food.go:67
↓ 4 callers
Function
apiUrl
(origin = '')
web/src/services/api.ts:8
↓ 4 callers
Function
corsConfig
corsConfig builds the CORS policy. Auth is Bearer-token based (no cookies), so credentials mode is off — which also lets the wildcard origin be valid.
backend/routes/routes.go:102
↓ 4 callers
Function
login
(page)
web/scripts/screenshots.mjs:23
↓ 4 callers
Function
muscleToBodySlugs
(m: string)
web/src/utils/exerciseUtils.ts:82
↓ 4 callers
Function
pad
(n: number)
web/src/utils/dateUtils.ts:14
↓ 4 callers
Function
shootGymMode
( name: string, phase: 'overview' | 'exercise-info' | 'exercise', viewport: typeof MOBILE | typeof
web/scripts/screenshots.ts:75
↓ 4 callers
Function
useCountdown
(endsAt: number | null, onComplete?: () => void)
web/src/hooks/useCountdown.ts:7
↓ 4 callers
Function
useTheme
()
web/src/hooks/useTheme.ts:5
↓ 3 callers
Method
GetDailyStats
(c *gin.Context)
backend/controllers/food.go:170
↓ 3 callers
Method
GetFoodHistory
(c *gin.Context)
backend/controllers/food.go:188
↓ 3 callers
Method
GetFoodLog
(c *gin.Context)
backend/controllers/food.go:42
↓ 3 callers
Method
GetWeightStats
(c *gin.Context)
backend/controllers/weight.go:139
↓ 3 callers
Function
IsUniqueViolation
IsUniqueViolation reports whether err is a UNIQUE/PRIMARY KEY constraint violation, so callers can distinguish a genuine duplicate from any other writ
backend/utils/dberr.go:38
↓ 3 callers
Method
ListPrograms
(c *gin.Context)
backend/controllers/programs.go:14
↓ 3 callers
Method
UpdateFoodLog
(c *gin.Context)
backend/controllers/food.go:103
↓ 3 callers
Method
UpdateWeightLog
(c *gin.Context)
backend/controllers/weight.go:92
↓ 3 callers
Function
addSet
(exIdx: number)
web/src/pages/AddWorkout.tsx:54
↓ 3 callers
Function
clampStep
(base: number, delta: number, opts: { min?: number; max?: number } = {})
web/src/utils/number.ts:4
↓ 3 callers
Function
clientPrefs
()
web/src/stores/settings.ts:11
↓ 3 callers
Function
handleMinimize
()
web/src/pages/GymModeWorkout.tsx:107
↓ 3 callers
Function
inTxDo
inTxDo is inTx for operations that don't return a value.
backend/stores/stores.go:55
↓ 3 callers
Method
loadExercises
loadExercises scans + closes the parent cursor BEFORE loading each exercise's sets (#36), and surfaces scan errors.
backend/stores/program.go:180
↓ 3 callers
Method
loadExercises
loadExercises loads a workout's exercises (JOIN exercises for display) then their sets. Scans + closes the parent cursor fully BEFORE the per-exercise
backend/stores/workout.go:189
↓ 3 callers
Function
nextIncompleteSet
(sets: { completed?: boolean }[], afterIdx: number)
web/src/utils/workoutSets.ts:11
↓ 3 callers
Function
onSetActiveIdx
(i: number)
web/src/pages/GymModeWorkout.tsx:84
↓ 3 callers
Function
openLog
(meal: types.FoodLog['meal'])
web/src/pages/Food.tsx:130
↓ 3 callers
Function
parseOrigins
(raw string)
backend/routes/routes.go:118
↓ 3 callers
Function
range
(a: number[])
web/src/pages/GymModeWorkout.tsx:328
↓ 3 callers
Function
removeExercise
(index: number)
web/src/pages/AddWorkout.tsx:52
↓ 3 callers
Function
removeSet
(exIdx: number, setIdx: number)
web/src/pages/AddWorkout.tsx:62
↓ 3 callers
Function
scanProgram
(row interface{ Scan(...any) error }, p *models.Program)
backend/stores/program.go:23
↓ 3 callers
Function
scanWorkout
(row interface{ Scan(...any) error }, w *models.Workout)
backend/stores/workout.go:24
next →
1–100 of 570, ranked by callers