Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/better-auth/better-hub
/ functions
Functions
1,887 in github.com/better-auth/better-hub
⨍
Functions
1,887
◇
Types & classes
448
↓ 4 callers
Function
getRepoCommits
( owner: string, repo: string, sha?: string, page = 1, perPage = 30, since?: string, until?: string, )
apps/web/src/lib/github.ts:7156
↓ 4 callers
Function
getRepoPullRequestsWithStats
( owner: string, repo: string, state: "open" | "closed" | "all" = "open", opts?: { includeCounts?: boole
apps/web/src/lib/github.ts:5428
↓ 4 callers
Function
getRepoTree
( owner: string, repo: string, treeSha: string, recursive?: boolean, )
apps/web/src/lib/github.ts:2814
↓ 4 callers
Function
getSpendingLimit
(userId: string)
apps/web/src/lib/billing/spending-limit.ts:11
↓ 4 callers
Function
getTrendingRepos
( language?: string, since: "daily" | "weekly" | "monthly" = "weekly", perPage = 10, )
apps/web/src/lib/github.ts:2737
↓ 4 callers
Function
getWorkflowRun
(owner: string, repo: string, runId: number)
apps/web/src/lib/github.ts:6372
↓ 4 callers
Function
highlightCodeClient
( code: string, lang: string, themeId: string, )
apps/web/src/lib/shiki-client.ts:172
↓ 4 callers
Function
highlightDiffLines
( patch: string, filename: string, )
apps/web/src/lib/shiki.ts:325
↓ 4 callers
Function
insertMarkdown
(prefix: string, suffix: string = prefix)
apps/web/src/components/discussion/create-discussion-dialog.tsx:215
↓ 4 callers
Function
insertMarkdown
(prefix: string, suffix: string = prefix)
apps/web/src/components/issue/create-issue-dialog.tsx:539
↓ 4 callers
Function
insertMarkdown
(prefix: string, suffix: string = prefix)
apps/web/src/app/(app)/repos/[owner]/[repo]/pulls/new/page.tsx:512
↓ 4 callers
Function
isAbsoluteUrl
(url: string)
apps/web/src/components/shared/markdown-renderer.tsx:76
↓ 4 callers
Function
isShareableCacheType
(jobType: string)
apps/web/src/lib/github.ts:128
↓ 4 callers
Function
lines
(snippet: string)
apps/web/src/lib/extract-snippet.test.ts:4
↓ 4 callers
Function
linkifyFileRefs
Process text nodes to linkify file:line references in plain text
apps/web/src/components/shared/ai-chat.tsx:226
↓ 4 callers
Function
mapGQLAuthor
(author: { login: string; avatarUrl: string; __typename?: string } | null)
apps/web/src/lib/github.ts:4436
↓ 4 callers
Function
markNotificationDone
(threadId: string)
apps/web/src/app/(app)/repos/actions.ts:89
↓ 4 callers
Function
maskApiKey
(key: string | null)
apps/web/src/app/api/user-settings/route.ts:6
↓ 4 callers
Function
normalizeStepName
(name: string)
apps/web/src/components/actions/run-comparison-diff.tsx:36
↓ 4 callers
Function
pad2
(n: number)
apps/web/src/components/actions/run-detail.tsx:141
↓ 4 callers
Function
parseGitHubUrl
(htmlUrl: string)
apps/web/src/lib/github-utils.ts:252
↓ 4 callers
Function
retryStatsRequest
* GitHub stats endpoints return 202 while computing data in the background. * Retry with exponential backoff until we get a 200 with actual data.
apps/web/src/lib/github.ts:6558
↓ 4 callers
Function
setThemeCookies
(themeId: string, mode: "dark" | "light")
apps/web/src/components/theme/theme-provider.tsx:62
↓ 4 callers
Function
setWordWrap
(wordWrap: boolean)
apps/web/src/lib/diff-preferences.ts:50
↓ 4 callers
Function
toConversation
(row: { id: string; userId: string; chatType: string; contextKey: string; title: string | null; activeSt
apps/web/src/lib/chat-store.ts:23
↓ 4 callers
Function
touchCacheWithShared
(userId: string, cacheKey: string, cacheType: string)
apps/web/src/lib/github.ts:1746
↓ 4 callers
Function
useGlobalChatOptional
()
apps/web/src/components/shared/global-chat-provider.tsx:130
↓ 4 callers
Function
useMutation
()
apps/web/src/hooks/use-mutation.ts:16
↓ 4 callers
Function
useNavVisibility
()
apps/web/src/components/shared/nav-visibility-provider.tsx:26
↓ 4 callers
Function
withSafeTools
(tools: T)
apps/web/src/app/api/ai/ghost/route.ts:53
↓ 3 callers
Function
assertAuthorOrMaintainer
(promptUserId: string, owner: string, repo: string)
apps/web/src/app/(app)/repos/[owner]/[repo]/prompts/actions.ts:22
↓ 3 callers
Function
buildFileContentCacheKey
(owner: string, repo: string, path: string, ref?: string)
apps/web/src/lib/github.ts:316
↓ 3 callers
Function
buildImageProxyUrl
* Resolve relative URLs in the rendered HTML to point to raw.githubusercontent.com * for images and to our internal routes for links.
apps/web/src/components/shared/markdown-renderer.tsx:84
↓ 3 callers
Function
buildInlineContextBlock
(inlineContexts?: InlineContext[])
apps/web/src/app/api/ai/ghost/route.ts:1751
↓ 3 callers
Function
checkStatusRedisKey
(owner: string, repo: string)
apps/web/src/lib/github.ts:5690
↓ 3 callers
Function
cleanup
()
apps/web/src/lib/resumable-stream.ts:160
↓ 3 callers
Function
copyToClipboard
(text: string, field: string)
apps/web/src/components/pr/prs-list.tsx:205
↓ 3 callers
Function
debugLog
(...messages: unknown[])
apps/web/src/lib/resumable-stream.ts:21
↓ 3 callers
Function
enqueueGitDataSync
( authCtx: GitHubAuthContext, jobType: GitDataSyncJobType, cacheKey: string, payload: GitDataSyncJobPayloa
apps/web/src/lib/github.ts:2440
↓ 3 callers
Function
ensureBuiltInThemeLoaded
* Ensure a built-in Shiki theme is loaded.
apps/web/src/lib/shiki.ts:73
↓ 3 callers
Function
fetchContent
( contentOwner: string, contentRepo: string, filePath: string, ref: string, )
apps/web/src/app/api/merge-conflicts/route.ts:62
↓ 3 callers
Function
fetchLatestCommit
(owner: string, repo: string)
apps/web/src/app/(app)/repos/[owner]/[repo]/commits/actions.ts:43
↓ 3 callers
Function
fetchRepoReleasesFromGitHub
(octokit: Octokit, owner: string, repo: string)
apps/web/src/lib/github.ts:571
↓ 3 callers
Function
fetchUserEventsFromGitHub
(octokit: Octokit, username: string, perPage: number)
apps/web/src/lib/github.ts:666
↓ 3 callers
Function
findSameNameUploadTarget
( octokit: Awaited<ReturnType<typeof getOctokit>>, viewerLogin: string, repo: string, )
apps/web/src/app/(app)/repos/[owner]/[repo]/issues/actions.ts:336
↓ 3 callers
Function
findUserForkUploadTarget
( octokit: Awaited<ReturnType<typeof getOctokit>>, viewerLogin: string, upstreamOwner: string, upstreamRep
apps/web/src/app/(app)/repos/[owner]/[repo]/issues/actions.ts:284
↓ 3 callers
Function
flashCheck
(btn: HTMLButtonElement)
apps/web/src/components/shared/markdown-copy-handler.tsx:12
↓ 3 callers
Function
flattenTree
(nodes: HeadingNode[])
apps/web/src/components/repo/document-outline.tsx:84
↓ 3 callers
Function
flushCommits
()
apps/web/src/components/pr/pr-conversation.tsx:148
↓ 3 callers
Function
formatBytes
(bytes: number)
apps/web/src/components/repo/insights-view.tsx:72
↓ 3 callers
Function
formatDate
(dateStr: string)
apps/web/src/components/people/person-detail.tsx:35
↓ 3 callers
Function
formatLogTimestamp
(timestamp: string | null)
apps/web/src/components/actions/run-detail.tsx:122
↓ 3 callers
Function
formatNum
(n: number)
apps/web/src/app/api/og/route.tsx:18
↓ 3 callers
Function
formatNumber
(num: number)
apps/web/src/components/shared/user-tooltip.tsx:34
↓ 3 callers
Function
formatUsd
(amount: number)
apps/web/src/components/settings/tabs/billing-tab.tsx:41
↓ 3 callers
Function
formatWeekLabel
(timestamp: number)
apps/web/src/components/people/person-detail.tsx:56
↓ 3 callers
Function
getClient
()
apps/web/src/lib/mixedbread.ts:7
↓ 3 callers
Function
getCommit
(owner: string, repo: string, ref: string)
apps/web/src/lib/github.ts:7184
↓ 3 callers
Function
getCommitActivity
( owner: string, repo: string, )
apps/web/src/lib/github.ts:6621
↓ 3 callers
Function
getCustomThemeBySlug
( slug: string, userId?: string, )
apps/web/src/lib/theme-store.ts:234
↓ 3 callers
Function
getInitials
(name: string)
apps/web/src/lib/commit-utils.ts:42
↓ 3 callers
Function
getIssueComments
(owner: string, repo: string, issueNumber: number)
apps/web/src/lib/github.ts:3763
↓ 3 callers
Function
getLineNum
(line: DiffLine | null)
apps/web/src/components/pr/pr-diff-viewer.tsx:3661
↓ 3 callers
Function
getNotifications
(perPage = 20)
apps/web/src/lib/github.ts:2599
↓ 3 callers
Function
getOGUser
(username: string)
apps/web/src/lib/og/og-data.ts:153
↓ 3 callers
Function
getPullRequestFiles
(owner: string, repo: string, pullNumber: number)
apps/web/src/lib/github.ts:2998
↓ 3 callers
Function
getRecentViews
()
apps/web/src/lib/recent-views.ts:15
↓ 3 callers
Function
getRepoPullRequests
( owner: string, repo: string, state: "open" | "closed" | "all" = "open", )
apps/web/src/lib/github.ts:5236
↓ 3 callers
Function
getRepoReleases
(owner: string, repo: string)
apps/web/src/lib/github.ts:2866
↓ 3 callers
Function
getSessionUserId
()
apps/web/src/app/api/ai/chat-history/route.ts:11
↓ 3 callers
Function
getStripeClient
()
apps/web/src/lib/billing/stripe.ts:12
↓ 3 callers
Function
getSyntaxTokens
(line: DiffLine | null)
apps/web/src/components/pr/pr-diff-viewer.tsx:3653
↓ 3 callers
Function
getThemePair
* Get the user's theme pair, ensuring both are loaded. * Cached for 1s to deduplicate concurrent calls within the same render.
apps/web/src/lib/shiki.ts:152
↓ 3 callers
Function
getUserEvents
(username: string, perPage = 30)
apps/web/src/lib/github.ts:2625
↓ 3 callers
Function
getUserPublicOrgs
(username: string)
apps/web/src/lib/github.ts:6521
↓ 3 callers
Function
getUserRepos
(sort: RepoSort = "updated", perPage = 30)
apps/web/src/lib/github.ts:2533
↓ 3 callers
Function
getUserSettings
(userId: string)
apps/web/src/lib/user-settings-store.ts:57
↓ 3 callers
Function
handleImageUpload
(file: File)
apps/web/src/components/discussion/create-discussion-dialog.tsx:118
↓ 3 callers
Function
handleSend
(text?: string)
apps/web/src/components/shared/ai-chat.tsx:1133
↓ 3 callers
Function
hashContent
(text: string)
apps/web/src/lib/embedding-store.ts:40
↓ 3 callers
Function
highlightCode
(code: string, lang: string)
apps/web/src/lib/shiki.ts:233
↓ 3 callers
Function
insertLinePrefix
(prefix: string)
apps/web/src/components/discussion/create-discussion-dialog.tsx:235
↓ 3 callers
Function
insertLinePrefix
(prefix: string)
apps/web/src/components/issue/create-issue-dialog.tsx:561
↓ 3 callers
Function
insertLinePrefix
(prefix: string)
apps/web/src/app/(app)/repos/[owner]/[repo]/pulls/new/page.tsx:532
↓ 3 callers
Function
invalidateBilling
()
apps/web/src/components/settings/tabs/billing-tab.tsx:119
↓ 3 callers
Function
invalidateRepoPullRequestsCache
(owner: string, repo: string)
apps/web/src/lib/github.ts:5142
↓ 3 callers
Function
listPromptRequestReactions
( promptRequestId: string, )
apps/web/src/lib/prompt-request-store.ts:332
↓ 3 callers
Function
matchRepoFromPathname
(pathname: string)
apps/web/src/components/command-menu.tsx:116
↓ 3 callers
Function
parseCoAuthors
(message: string)
apps/web/src/lib/commit-utils.ts:13
↓ 3 callers
Function
parseMapping
(dataJson: string | null)
apps/web/src/components/theme-store/icon-theme-provider.tsx:30
↓ 3 callers
Function
readmeKey
(owner: string, repo: string)
apps/web/src/lib/readme-cache.ts:3
↓ 3 callers
Function
redisKey
(userId: string, cacheKey: string)
apps/web/src/lib/github-sync-store.ts:25
↓ 3 callers
Function
reportUsageToStripe
( usageLogId: string, userId: string, costUsd: number, createdAt?: Date, )
apps/web/src/lib/billing/stripe.ts:19
↓ 3 callers
Function
reset
()
apps/web/src/components/repo/create-repo-dialog.tsx:65
↓ 3 callers
Function
revalidateRepoPaths
(owner: string, repo: string)
apps/web/src/app/(app)/repos/[owner]/[repo]/actions.ts:82
↓ 3 callers
Function
safeRedirect
(url: string | undefined, fallback = "/dashboard")
apps/web/src/lib/utils.ts:89
↓ 3 callers
Function
scanCustomThemeRepo
( octokit: Octokit, owner: string, repo: string, )
apps/web/src/lib/extension-scanner.ts:209
↓ 3 callers
Function
scoreColor
(total: number)
apps/web/src/components/users/user-profile-score-ring.tsx:9
↓ 3 callers
Function
sharedRedisKey
(cacheKey: string)
apps/web/src/lib/github-sync-store.ts:63
↓ 3 callers
Function
starRepo
(owner: string, repo: string)
apps/web/src/app/(app)/repos/actions.ts:8
← previous
next →
101–200 of 1,887, ranked by callers