Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/Oak-and-Sprout/sprout-track
/ functions
Functions
1,881 in github.com/Oak-and-Sprout/sprout-track
⨍
Functions
1,881
◇
Types & classes
512
↓ 2,741 callers
Function
t
( key: string, lang: string, replacements?: Record<string, string | number> )
src/lib/notifications/i18n.ts:55
↓ 1,173 callers
Function
cn
(...inputs: ClassValue[])
src/lib/utils.ts:4
↓ 365 callers
Function
formatForResponse
(date: Date | string | null)
app/api/utils/timezone.ts:157
↓ 298 callers
Function
t
(key: string, translations: Record<string, string>)
app/api/timeline/export/route.ts:22
↓ 194 callers
Function
useLocalization
()
src/context/localization.tsx:248
↓ 126 callers
Function
withAuthContext
( handler: (req: NextRequest, authContext: AuthResult) => Promise<NextResponse<ApiResponse<T>>> )
app/api/utils/auth.ts:660
↓ 116 callers
Function
assert
(condition, msg)
scripts/test-webhook-api.js:74
↓ 76 callers
Function
useTheme
()
src/context/theme.tsx:122
↓ 72 callers
Function
toUTC
(dateInput: string | Date)
app/api/utils/timezone.ts:107
↓ 62 callers
Function
checkWritePermission
( authContext: AuthResult )
app/api/utils/writeProtection.ts:31
↓ 57 callers
Function
useTimezone
()
app/context/timezone.tsx:550
↓ 49 callers
Function
getActivityTime
(activity: ActivityType)
src/components/Timeline/utils.tsx:132
↓ 48 callers
Function
request
(method, path, body)
scripts/test-webhook-api.js:47
↓ 42 callers
Function
log
(icon, msg)
scripts/test-webhook-api.js:43
↓ 41 callers
Function
test
(name, fn)
scripts/test-webhook-api.js:63
↓ 32 callers
Function
log
(msg)
st-guardian/index.js:94
↓ 31 callers
Function
formatTime
(date: string, settings: Settings | null, includeDate: boolean = true, t?: (key: string) => string)
src/components/Timeline/utils.tsx:152
↓ 29 callers
Function
formatDateShort
( date: Date, dateFormat: DateFormatSetting, timezone?: string )
src/utils/dateFormat.ts:62
↓ 29 callers
Function
formatDateTime
( dateString: string | null, dateFormat: DateFormatSetting = 'MM/DD/YYYY', timeFormat: TimeFormatSetting
src/components/familymanager/utils.ts:22
↓ 29 callers
Function
toUTCString
(date: Date | null | undefined)
app/context/timezone.tsx:500
↓ 28 callers
Function
handleExpirationError
( response: Response, showToast: (props: { variant?: 'info' | 'success' | 'warning' | 'error'; mes
src/lib/expiration-error-handler.ts:32
↓ 28 callers
Function
randomInt
(min, max)
scripts/generate-demo-data.js:72
↓ 26 callers
Function
randomChoice
(array)
scripts/generate-test-data.js:148
↓ 25 callers
Function
hookError
(code: string, message: string, status: number, headers?: Record<string, string>)
app/api/hooks/v1/response.ts:21
↓ 23 callers
Function
notifyActivityCreated
( babyId: string, activityType: string, actingUser?: ActingUser, activityData?: any )
src/lib/notifications/activityHook.ts:202
↓ 21 callers
Function
useToast
()
src/components/ui/toast/toast-provider.tsx:90
↓ 20 callers
Function
authFetch
(url: string, options: RequestInit = {})
src/components/familymanager/utils.ts:5
↓ 20 callers
Function
formatDateDisplay
( date: Date, dateFormat: DateFormatSetting, timezone?: string )
src/utils/dateFormat.ts:31
↓ 20 callers
Function
timeToSlot
(hours: number)
src/components/Timeline/TimelineV2/timeline-heatmap.utils.ts:74
↓ 20 callers
Function
withSysAdminAuth
( handler: (req: NextRequest) => Promise<NextResponse<ApiResponse<T>>> )
app/api/utils/auth.ts:600
↓ 19 callers
Function
hookSuccess
(data: any, meta?: Partial<Meta>, headers?: Record<string, string>)
app/api/hooks/v1/response.ts:9
↓ 19 callers
Function
recordFailedAttempt
(ip: string)
app/api/utils/ip-lockout.ts:52
↓ 18 callers
Function
useUnit
()
src/hooks/useUnit.ts:7
↓ 17 callers
Function
isNotificationsEnabled
()
src/lib/notifications/config.ts:67
↓ 16 callers
Function
sendJson
(res, statusCode, data)
st-guardian/index.js:139
↓ 15 callers
Function
decrypt
(encryptedData: string)
app/api/utils/encryption.ts:63
↓ 15 callers
Function
isEncrypted
(data: string)
app/api/utils/encryption.ts:100
↓ 14 callers
Function
formatDateLong
( date: Date, dateFormat: DateFormatSetting, timezone?: string )
src/utils/dateFormat.ts:103
↓ 13 callers
Function
getAuthHeaders
()
src/components/SetupWizard/index.tsx:82
↓ 13 callers
Function
getAuthenticatedUser
(req: NextRequest)
app/api/utils/auth.ts:155
↓ 13 callers
Function
logApiCall
(entry: ApiLogEntry)
app/api/utils/api-logger.ts:18
↓ 12 callers
Function
calculateElapsed
()
src/components/features/nursery-mode/FeedTile.tsx:105
↓ 12 callers
Function
formatTimeDisplay
( date: Date, timeFormat: TimeFormatSetting, timezone?: string )
src/utils/dateFormat.ts:13
↓ 12 callers
Function
getPreference
(babyId: string, eventType: NotificationEventType)
src/components/modals/NotificationSplashModal/index.tsx:219
↓ 12 callers
Function
getPreference
( subscriptionId: string, babyId: string, eventType: NotificationEventType )
src/components/forms/SettingsForm/NotificationSettings.tsx:333
↓ 12 callers
Function
handler
(req: NextRequest)
app/api/setup/start/route.ts:13
↓ 12 callers
Function
interp
(key: string)
app/api/babies/[babyId]/report/[yearMonth]/route.ts:234
↓ 12 callers
Function
randomInt
(min, max)
scripts/generate-test-data.js:152
↓ 12 callers
Function
shouldFetch
(type: string)
app/api/timeline/route.ts:146
↓ 12 callers
Function
shouldFetch
(type: string)
app/api/timeline/export/route.ts:348
↓ 11 callers
Function
fetchActivitiesForDate
(babyId: string, date: Date, isAnimated: boolean)
src/components/Timeline/index.tsx:40
↓ 11 callers
Function
randomChoice
(array)
scripts/generate-demo-data.js:68
↓ 11 callers
Function
toDateKey
(date: Date)
src/components/Timeline/TimelineV2/useActivityCache.ts:17
↓ 11 callers
Function
updateUnlockTimer
()
app/(app)/[slug]/client-layout.tsx:288
↓ 11 callers
Function
useBaby
()
app/context/baby.tsx:350
↓ 10 callers
Function
convertFromCdcToDisplayUnit
(value: number, type: GrowthMeasurementType, displayUnit: string)
src/components/Reports/GrowthChart.tsx:140
↓ 10 callers
Function
convertVolume
(amount: number, fromUnit: string, toUnit: string)
src/utils/unit-conversion.ts:12
↓ 10 callers
Function
sendEmail
(props: SendEmailProps)
src/lib/email/index.ts:8
↓ 9 callers
Function
addDate
(d: Date)
app/api/babies/[babyId]/report/[yearMonth]/route.ts:165
↓ 9 callers
Function
capitalize
(sentence: string)
src/components/Timeline/utils.tsx:1106
↓ 9 callers
Function
countCaretaker
(caretakerId: string | null)
app/api/babies/[babyId]/report/[yearMonth]/route.ts:581
↓ 9 callers
Function
formatDate
(date)
scripts/manage-family-subscriptions.js:28
↓ 9 callers
Function
generateTimeInDay
(baseDate, hour, minuteVariation = 30, maxTime = null)
scripts/generate-test-data.js:208
↓ 9 callers
Function
minutesAgo
(date: Date)
app/api/hooks/v1/babies/[babyId]/status/route.ts:7
↓ 9 callers
Function
randomInt
(min, max)
scripts/generate-health-data.js:24
↓ 9 callers
Function
updateState
(updates: Partial<CalendarState>)
src/components/Calendar/index.tsx:52
↓ 8 callers
Function
buildCurl
(method: 'GET' | 'POST', path: string, body?: object)
src/components/forms/SettingsForm/ApiGuide.tsx:87
↓ 8 callers
Function
formatTextContent
(text: string)
src/components/modals/changelog/index.tsx:61
↓ 8 callers
Function
getAuthHeaders
()
src/components/forms/FamilyForm/index.tsx:173
↓ 8 callers
Function
handlePreferenceUpdate
( babyId: string, eventType: NotificationEventType, updates: { enabled?: boolean; timerIntervalMin
src/components/modals/NotificationSplashModal/index.tsx:163
↓ 8 callers
Function
handlePreferenceUpdate
( subscriptionId: string, babyId: string, eventType: NotificationEventType, updates: { e
src/components/forms/SettingsForm/NotificationSettings.tsx:281
↓ 8 callers
Function
handleUnitChange
(type: keyof Omit<FormData, 'date' | 'notes'>, unit: string)
src/components/forms/MeasurementForm/index.tsx:269
↓ 8 callers
Function
resetTimerNotificationState
( babyId: string, activityType: string )
src/lib/notifications/activityHook.ts:346
↓ 8 callers
Function
useDeployment
()
app/context/deployment.tsx:213
↓ 8 callers
Function
useFamily
()
src/context/family.tsx:342
↓ 7 callers
Function
convert
(v: number)
app/api/babies/[babyId]/report/[yearMonth]/route.ts:350
↓ 7 callers
Function
formatDuration
(seconds: number)
src/components/features/nursery-mode/FeedTile.tsx:23
↓ 7 callers
Function
formatMinutes
(minutes: number)
src/components/Timeline/TimelineV2/TimelineV2DailyStats.tsx:90
↓ 7 callers
Function
formatTextContent
(text: string)
src/components/modals/privacy-policy/index.tsx:56
↓ 7 callers
Function
formatTextContent
(text: string)
src/components/modals/terms-of-use/index.tsx:56
↓ 7 callers
Function
isDuringSleep
(time, sleepIntervals)
scripts/generate-demo-data.js:130
↓ 7 callers
Function
isSameDay
(date1, date2)
scripts/generate-test-data.js:161
↓ 7 callers
Function
randomChoice
(array)
scripts/generate-inventory-data.js:17
↓ 7 callers
Function
randomInt
(min, max)
scripts/generate-inventory-data.js:21
↓ 7 callers
Function
resetFailedAttempts
(ip: string)
app/api/utils/ip-lockout.ts:87
↓ 6 callers
Function
calculateDurationMinutes
(startTime: string, endTime: string)
src/components/ActivityTileGroup/index.tsx:86
↓ 6 callers
Function
checkRateLimit
( keyId: string, method: 'GET' | 'POST' )
app/api/hooks/v1/rate-limiter.ts:20
↓ 6 callers
Function
fetchData
()
src/components/forms/SettingsForm/index.tsx:130
↓ 6 callers
Function
fetchFamilyPeople
()
src/components/account-manager/FamilyPeopleTab.tsx:68
↓ 6 callers
Function
formatDateForInput
(dateStr: string)
src/components/modals/SleepModal.tsx:56
↓ 6 callers
Function
formatDateTimeDisplay
( date: Date, dateFormat: DateFormatSetting, timeFormat: TimeFormatSetting, timezone?: string )
src/utils/dateFormat.ts:135
↓ 6 callers
Function
formatDuration
(seconds)
documentation/Implementation/nursery-mode-mockup.jsx:31
↓ 6 callers
Function
formatDuration
(seconds: number)
src/components/features/nursery-mode/PumpTile.tsx:24
↓ 6 callers
Function
formatMinutes
(minutes: number)
src/components/BabyQuickInfo/StatsTab.tsx:108
↓ 6 callers
Function
formatMinutes
(minutes: number)
src/components/forms/BabyQuickStats/index.tsx:136
↓ 6 callers
Function
formatRelativeTime
(dateString: string)
src/components/BabyQuickInfo/NotificationsTab.tsx:53
↓ 6 callers
Function
fromCdcUnit
(value: number, type: 'weight' | 'length' | 'head_circumference')
app/api/babies/[babyId]/report/[yearMonth]/route.ts:205
↓ 6 callers
Function
getAuthHeaders
()
src/components/features/nursery-mode/FeedTile.tsx:122
↓ 6 callers
Function
getFamilySpecificKey
(baseKey: string, familyId?: string)
app/context/baby.tsx:160
↓ 6 callers
Function
getHours
(d: Date)
src/components/Timeline/TimelineV2/timeline-heatmap.utils.ts:79
next →
1–100 of 1,881, ranked by callers