MCPcopy Create free account

hub / github.com/better-auth/better-hub / functions

Functions1,887 in github.com/better-auth/better-hub

↓ 689 callersFunctioncn
(...inputs: ClassValue[])
apps/web/src/lib/utils.ts:4
↓ 98 callersFunctiongetOctokit
()
apps/web/src/lib/github.ts:2523
↓ 64 callersFunctionformatNumber
(num: number)
apps/web/src/lib/utils.ts:26
↓ 56 callersFunctionasString
(value: unknown)
apps/web/src/lib/github.ts:5974
↓ 56 callersFunctiongetErrorMessage
(error: unknown)
apps/web/src/lib/utils.ts:8
↓ 50 callersMethoddelete
* Delete a previously uploaded image by key.
apps/web/src/lib/image-upload.ts:26
↓ 39 callersFunctionreadLocalFirstGitData
({ authCtx, cacheKey, cacheType, fallback, jobType, jobPayload, fetchRemote, }: LocalFirstGitReadOption
apps/web/src/lib/github.ts:2456
↓ 38 callersFunctionhsl
(v: string | undefined)
apps/web/src/components/theme-store/theme-preview.tsx:6
↓ 38 callersFunctionuseMutationEvents
()
apps/web/src/components/shared/mutation-event-provider.tsx:43
↓ 36 callersFunctionheaders
()
apps/web/next.config.ts:61
↓ 32 callersFunctionextractSnippetFromPatch
( patch: string | undefined, startLine: number, endLine: number, )
apps/web/src/lib/extract-snippet.ts:11
↓ 32 callersFunctionnormalizeRepoKey
(owner: string, repo: string)
apps/web/src/lib/github.ts:266
↓ 29 callersFunctiongetNextIndex
()
apps/web/src/components/command-menu.tsx:1675
↓ 29 callersFunctionupsertCacheWithShared
( userId: string, cacheKey: string, cacheType: string, data: T, etag: string | null = null, )
apps/web/src/lib/github.ts:1733
↓ 26 callersFunctionasRecord
(value: unknown)
apps/web/src/lib/github.ts:5968
↓ 26 callersFunctionconvertToShikiTheme
(input: ShikiThemeInput, mode: "light" | "dark" = "dark")
apps/web/src/lib/themes/themes.tsx:3
↓ 25 callersFunctionbodyLines
(snippet: string)
apps/web/src/lib/extract-snippet.test.ts:8
↓ 24 callersFunctioninvalidateRepoCache
(owner: string, repo: string)
apps/web/src/lib/repo-data-cache-vc.ts:26
↓ 23 callersFunctiondeleteGithubCacheByPrefix
(userId: string, prefix: string)
apps/web/src/lib/github-sync-store.ts:92
↓ 23 callersFunctiongetLanguageColor
(language: string | null | undefined)
apps/web/src/lib/github-utils.ts:48
↓ 20 callersFunctionrenderMarkdownToHtml
( content: string, repoContext?: RepoContext, issueRefContext?: { owner: string; repo: string }, )
apps/web/src/components/shared/markdown-renderer.tsx:455
↓ 18 callersFunctiongetRepo
(owner: string, repo: string)
apps/web/src/lib/github.ts:2755
↓ 18 callersFunctionupsertGithubCacheEntry
( userId: string, cacheKey: string, _cacheType: string, data: T, etag: string | null = null, )
apps/web/src/lib/github-sync-store.ts:41
↓ 17 callersFunctionrevalidateAfterPRMutation
( owner: string, repo: string, pullNumber: number, action: keyof typeof PR_ACTION_SCOPES, )
apps/web/src/app/(app)/repos/[owner]/[repo]/pulls/pr-actions.ts:37
↓ 16 callersFunctionrepoKey
(owner: string, repo: string, suffix: string)
apps/web/src/lib/repo-data-cache.ts:13
↓ 14 callersFunctiongetAuthenticatedUser
()
apps/web/src/lib/github.ts:2528
↓ 14 callersFunctionrethrowKnownGitHubErrors
* Rethrows known GitHub API errors (rate limit, OAuth restriction) as typed errors. * Should be called in catch blocks for Octokit REST calls.
apps/web/src/lib/github.ts:250
↓ 14 callersFunctiontruncate
(text: string, max: number)
apps/web/src/lib/og/og-utils.tsx:150
↓ 13 callersFunctiongetGitHubToken
()
apps/web/src/lib/github.ts:2518
↓ 12 callersFunctioncalculateDuration
( startedAt: string | null | undefined, completedAt: string | null | undefined, )
apps/web/src/lib/utils.ts:70
↓ 12 callersFunctiongetPromptRequest
(id: string)
apps/web/src/lib/prompt-request-store.ts:89
↓ 12 callersFunctionogImages
(url: string)
apps/web/src/lib/og/og-utils.tsx:165
↓ 11 callersFunctionsearchIssues
(query: string, perPage = 20)
apps/web/src/lib/github.ts:2612
↓ 11 callersFunctionuseColorTheme
()
apps/web/src/components/theme/theme-provider.tsx:51
↓ 10 callersFunctionkeyPart
(value: string)
apps/web/src/lib/github.ts:270
↓ 10 callersFunctionpluralize
(count: number, singular: string, plural = `${singular}s`)
apps/web/src/components/users/activity-timeline/helpers.ts:33
↓ 10 callersFunctionuseClickOutside
(ref: RefObject<HTMLElement | null>, callback: () => void)
apps/web/src/hooks/use-click-outside.ts:3
↓ 10 callersFunctionuseMutationSubscription
( types: MutationEventType[], handler: (event: MutationEvent) => void, )
apps/web/src/hooks/use-mutation-subscription.ts:7
↓ 9 callersFunctionextractRepoPermissions
(repoData: { permissions?: Partial<RepoPermissions>; })
apps/web/src/lib/github.ts:31
↓ 9 callersFunctionisRepoEvent
(event: MutationEvent, owner: string, repo: string)
apps/web/src/lib/mutation-events.ts:213
↓ 9 callersFunctionnormalizeRef
(ref?: string)
apps/web/src/lib/github.ts:257
↓ 9 callersFunctionuseGlobalChat
()
apps/web/src/components/shared/global-chat-provider.tsx:122
↓ 8 callersFunctionextractYamlValue
(yaml: string, key: string)
apps/web/src/app/(app)/repos/[owner]/[repo]/issues/actions.ts:188
↓ 8 callersFunctionformatDurationFromSeconds
(totalSeconds: number)
apps/web/src/components/actions/run-comparison-diff.tsx:20
↓ 8 callersFunctiongetPinnedRepos
()
apps/web/src/lib/pinned-repos.ts:17
↓ 8 callersFunctiongetRepoBranches
(owner: string, repo: string)
apps/web/src/lib/github.ts:2836
↓ 8 callersFunctiongetTheme
(id: string)
apps/web/src/lib/themes/index.ts:68
↓ 8 callersFunctiontoAppUrl
(htmlUrl: string)
apps/web/src/lib/github-utils.ts:162
↓ 8 callersFunctiontoInternalUrl
(htmlUrl: string)
apps/web/src/lib/github-utils.ts:107
↓ 7 callersFunctiondeleteSharedCacheByPrefix
(prefix: string)
apps/web/src/lib/github-sync-store.ts:105
↓ 7 callersFunctiongetDiffPreferences
()
apps/web/src/lib/diff-preferences.ts:22
↓ 7 callersFunctiongetUser
(username: string)
apps/web/src/lib/github.ts:6474
↓ 7 callersFunctioninvalidateIssueCache
(owner: string, repo: string, issueNumber: number)
apps/web/src/lib/github.ts:5219
↓ 7 callersFunctionparseDiffPatch
(patch: string)
apps/web/src/lib/github-utils.ts:492
↓ 7 callersFunctionreadFeatureStatus
( settings: Record<string, unknown> | null, key: string, )
apps/web/src/lib/github.ts:5994
↓ 6 callersFunctionbuildRepoNavCountsCacheKey
(owner: string, repo: string)
apps/web/src/lib/github.ts:431
↓ 6 callersFunctioncheckUsageLimit
( userId: string, isCustomApiKey = false, )
apps/web/src/lib/billing/usage-limit.ts:32
↓ 6 callersFunctionencodeFilePath
(path: string)
apps/web/src/lib/github-utils.ts:591
↓ 6 callersFunctionensureMonth
(monthKey: string)
apps/web/src/components/users/activity-timeline/aggregators.ts:222
↓ 6 callersFunctionformatBytes
(bytes: number)
apps/web/src/lib/github-utils.ts:582
↓ 6 callersFunctiongetGithubCacheEntry
( userId: string, cacheKey: string, )
apps/web/src/lib/github-sync-store.ts:33
↓ 6 callersFunctiongetLanguageFromFilename
(filename: string)
apps/web/src/lib/github-utils.ts:421
↓ 6 callersFunctiongetRepoTags
(owner: string, repo: string)
apps/web/src/lib/github.ts:2851
↓ 6 callersFunctionghConditionalGet
Conditional GET against the GitHub API — returns {notModified:true} on 304 without throwing.
apps/web/src/lib/github.ts:1709
↓ 6 callersFunctionhandleImageUpload
(file: File)
apps/web/src/components/issue/create-issue-dialog.tsx:406
↓ 6 callersFunctionlogScale
Logarithmic scaling: maps a value to 0–max using log curve. * `ref` is the reference value that maps to ~70% of max.
apps/web/src/lib/user-profile-score.ts:29
↓ 6 callersFunctionlogTokenUsage
(params: { userId: string; provider: string; modelId: string; taskType: string; usage: LanguageModelUsage
apps/web/src/lib/billing/token-usage.ts:83
↓ 6 callersFunctionmapReactionGroups
( groups: GraphQLReactionGroup[] | undefined, )
apps/web/src/lib/github.ts:3382
↓ 6 callersFunctionmonthFromDate
(value: string)
apps/web/src/components/users/activity-timeline/aggregators.ts:19
↓ 6 callersFunctionogFonts
()
apps/web/src/lib/og/og-utils.tsx:55
↓ 6 callersFunctionparsePositiveInt
(value: string | undefined)
apps/web/src/lib/github-utils.ts:245
↓ 6 callersFunctionsetDiffPreferences
(prefs: Partial<DiffPreferences>)
apps/web/src/lib/diff-preferences.ts:34
↓ 6 callersFunctiontoUrl
(iconName: string)
apps/web/src/components/shared/file-icon.tsx:153
↓ 6 callersFunctionupsertSharedCacheEntry
( cacheKey: string, data: T, etag: string | null = null, )
apps/web/src/lib/github-sync-store.ts:74
↓ 5 callersFunctionfetchFileContent
( octokit: Octokit, owner: string, repo: string, path: string, )
apps/web/src/lib/extension-scanner.ts:42
↓ 5 callersFunctionfmtN
(n: number)
apps/web/src/components/pr/pr-author-dossier.tsx:59
↓ 5 callersFunctiongetBillingErrorCode
(result: { creditExhausted?: boolean; spendingLimitReached?: boolean; })
apps/web/src/lib/billing/config.ts:11
↓ 5 callersFunctiongetIssue
(owner: string, repo: string, issueNumber: number)
apps/web/src/lib/github.ts:3750
↓ 5 callersFunctionjoinSource
(source: string[] | string)
apps/web/src/components/repo/notebook-viewer.tsx:31
↓ 5 callersFunctionmkMsg
(role: "user" | "assistant", text: string)
apps/web/src/components/shared/ai-chat.tsx:1181
↓ 5 callersFunctionogImageUrl
(params: Record<string, string | number>)
apps/web/src/lib/og/og-utils.tsx:157
↓ 5 callersFunctionparseRefAndPath
( pathSegments: string[], branchNames: string[], )
apps/web/src/lib/github-utils.ts:70
↓ 5 callersFunctionrenderDropdown
(items: MentionUser[], loading: boolean)
apps/web/src/components/shared/mention-suggestion.tsx:148
↓ 5 callersFunctionuseIsMobile
()
apps/web/src/hooks/use-is-mobile.ts:5
↓ 4 callersFunctionapplyTheme
(themeId: string, mode: "dark" | "light")
apps/web/src/lib/themes/index.ts:103
↓ 4 callersFunctionasNumber
(value: unknown)
apps/web/src/lib/github.ts:5978
↓ 4 callersFunctionbranchKey
(b: BranchInfo, repoOwner: string)
apps/web/src/app/(app)/repos/[owner]/[repo]/pulls/new/page.tsx:53
↓ 4 callersFunctionextractParticipants
( users: ({ login: string; avatar_url: string } | null | undefined)[], )
apps/web/src/lib/github-utils.ts:56
↓ 4 callersFunctionfetchCheckStatusForRef
( octokit: Awaited<ReturnType<typeof getOctokit>>, owner: string, repo: string, ref: string, )
apps/web/src/lib/github.ts:5589
↓ 4 callersFunctionformatDate
(date: string | Date)
apps/web/src/components/settings/tabs/billing-tab.tsx:45
↓ 4 callersFunctionformatDurationDelta
(deltaSeconds: number)
apps/web/src/lib/utils.ts:98
↓ 4 callersFunctionformatDurationFromSeconds
(totalSeconds: number)
apps/web/src/components/actions/run-comparison-timeline.tsx:10
↓ 4 callersFunctionformatSecurityError
(feature: string, error: unknown)
apps/web/src/lib/github.ts:6017
↓ 4 callersFunctiongetCreditBalance
( userId: string, tx?: Prisma.TransactionClient, )
apps/web/src/lib/billing/credit.ts:66
↓ 4 callersFunctiongetCrossReferences
( owner: string, repo: string, issueNumber: number, )
apps/web/src/lib/github.ts:3806
↓ 4 callersFunctiongetCurrentPeriodUsage
(userId: string, periodStart: Date)
apps/web/src/lib/billing/spending-limit.ts:43
↓ 4 callersFunctiongetFileContent
(owner: string, repo: string, path: string, ref?: string)
apps/web/src/lib/github.ts:2944
↓ 4 callersFunctiongetHighlighter
()
apps/web/src/lib/shiki.ts:29
↓ 4 callersFunctiongetInternalModel
(userId: string)
apps/web/src/lib/billing/ai-models.server.ts:7
↓ 4 callersFunctiongetPullRequestBundle
( owner: string, repo: string, pullNumber: number, )
apps/web/src/lib/github.ts:3733
next →1–100 of 1,887, ranked by callers