Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/AntiHub-Project/AntiHub
/ functions
Functions
671 in github.com/AntiHub-Project/AntiHub
⨍
Functions
671
◇
Types & classes
82
↓ 326 callers
Function
cn
(...inputs: ClassValue[])
lib/utils.ts:4
↓ 12 callers
Function
cx
(...parts: Array<string | false | null | undefined>)
components/LogoLoop.tsx:48
↓ 9 callers
Function
random
(base: number | [number, number])
components/Hyperspeed.tsx:410
↓ 8 callers
Function
fetchWithAuth
( url: string, options: RequestInit = {} )
lib/api.ts:220
↓ 8 callers
Function
saveAuthCredentials
* 保存登录凭证到 localStorage
lib/api.ts:127
↓ 8 callers
Function
useContextValue
()
components/ai-elements/context.tsx:32
↓ 7 callers
Function
supportsImageSize
(modelName: string)
app/dashboard/playground/page.tsx:109
↓ 6 callers
Function
handleResponse
* 处理 API 响应
lib/api.ts:89
↓ 6 callers
Function
nsin
(val: number)
components/Hyperspeed.tsx:98
↓ 6 callers
Function
useOpenInContext
()
components/ai-elements/open-in-chat.tsx:188
↓ 6 callers
Function
useSidebar
()
components/ui/sidebar.tsx:47
↓ 5 callers
Function
getCurrentUser
()
lib/api.ts:452
↓ 5 callers
Function
refreshToken
* 刷新 Token * 尝试从多个来源获取 refresh_token
lib/api.ts:164
↓ 5 callers
Function
useMessageBranch
()
components/ai-elements/message.tsx:124
↓ 4 callers
Function
animate
(timestamp: number)
components/LogoLoop.tsx:158
↓ 4 callers
Function
clearAuthCredentials
* 清除所有认证凭证
lib/api.ts:142
↓ 4 callers
Function
cn
(...classes: (string | undefined | null | boolean)[])
components/RotatingText.tsx:11
↓ 4 callers
Function
getX
(p: number)
components/Hyperspeed.tsx:259
↓ 4 callers
Function
getY
(p: number)
components/Hyperspeed.tsx:263
↓ 4 callers
Function
makeRequest
(authToken: string)
lib/api.ts:1118
↓ 4 callers
Function
updateMousePosition
(mouseX: number, mouseY: number)
components/ui/tooltip-card.tsx:75
↓ 4 callers
Function
useCarousel
()
components/ui/carousel.tsx:35
↓ 4 callers
Function
useConfirmation
()
components/ai-elements/confirmation.tsx:51
↓ 4 callers
Function
usePromptInputAttachments
()
components/ai-elements/prompt-input.tsx:251
↓ 3 callers
Method
createPlane
(side: number, width: number, isRoad: boolean)
components/Hyperspeed.tsx:751
↓ 3 callers
Function
formatQuota
(quota: string)
app/dashboard/analytics/page.tsx:216
↓ 3 callers
Function
getModelDisplayName
(model: string)
app/dashboard/analytics/page.tsx:184
↓ 3 callers
Function
getPayloadConfigFromPayload
( config: ChartConfig, payload: unknown, key: string )
components/ui/chart.tsx:312
↓ 3 callers
Function
getQuotaConsumption
(params?: { limit?: number; start_date?: string; end_date?: string; })
lib/api.ts:965
↓ 3 callers
Function
handleAntigravityPageChange
(page: number)
app/dashboard/analytics/page.tsx:155
↓ 3 callers
Function
handlePageChange
(page: number)
app/dashboard/analytics/page.tsx:151
↓ 3 callers
Function
isAuthenticated
()
lib/api.ts:483
↓ 3 callers
Function
loadAPIKeys
()
app/dashboard/settings/page.tsx:42
↓ 3 callers
Function
loadAccounts
()
app/dashboard/accounts/page.tsx:113
↓ 3 callers
Function
onChange
()
hooks/use-mobile.ts:10
↓ 3 callers
Method
setSize
(width: number, height: number, updateStyles: boolean)
components/Hyperspeed.tsx:1201
↓ 3 callers
Function
showConfirmDialog
(config: { title: string; description: string; confirmText?: string; cancelText?: string;
app/dashboard/accounts/page.tsx:218
↓ 3 callers
Function
toCssLength
(value?: number | string)
components/LogoLoop.tsx:45
↓ 3 callers
Function
useCarouselApi
()
components/ai-elements/inline-citation.tsx:94
↓ 3 callers
Function
useIsMobile
()
hooks/use-mobile.ts:5
↓ 3 callers
Function
useWebPreview
()
components/ai-elements/web-preview.tsx:30
↓ 2 callers
Function
calculatePosition
(mouseX: number, mouseY: number)
components/ui/tooltip-card.tsx:31
↓ 2 callers
Method
dispose
()
components/Hyperspeed.tsx:1175
↓ 2 callers
Function
getAPIKeys
()
lib/api.ts:785
↓ 2 callers
Function
getHandleCoordsByPosition
( node: InternalNode<Node>, handlePosition: Position )
components/ai-elements/edge.tsx:42
↓ 2 callers
Function
getKiroAccountBalance
(accountId: number)
lib/api.ts:1594
↓ 2 callers
Function
getKiroAccounts
()
lib/api.ts:1544
↓ 2 callers
Function
getModelDisplayName
(model: string)
app/dashboard/accounts/page.tsx:543
↓ 2 callers
Function
getModelProvider
(modelName: string)
app/dashboard/playground/page.tsx:150
↓ 2 callers
Function
getSharedPoolQuotas
()
lib/api.ts:984
↓ 2 callers
Function
getSharedPoolStats
()
lib/api.ts:1003
↓ 2 callers
Function
getStoredToken
()
lib/api.ts:500
↓ 2 callers
Function
getTokenExpiresAt
()
lib/api.ts:556
↓ 2 callers
Function
getTrustLevelText
(level: number)
app/dashboard/profile/page.tsx:80
↓ 2 callers
Function
handleBranchChange
(newBranch: number)
components/ai-elements/message.tsx:150
↓ 2 callers
Function
handleCopyKey
(key: string)
app/dashboard/settings/page.tsx:177
↓ 2 callers
Function
handleUpdatePreference
(newPreference: number)
app/dashboard/settings/page.tsx:79
↓ 2 callers
Function
lerp
(current: number, target: number, speed = 0.1, limit = 0.001)
components/Hyperspeed.tsx:424
↓ 2 callers
Function
loadUserInfo
()
app/dashboard/profile/page.tsx:34
↓ 2 callers
Function
pickRandom
(arr: T | T[])
components/Hyperspeed.tsx:417
↓ 2 callers
Function
processQueue
(error: Error | null, token: string | null = null)
lib/api.ts:73
↓ 2 callers
Function
resetState
()
components/add-account-drawer.tsx:345
↓ 2 callers
Method
stop
()
components/ai-elements/prompt-input.tsx:1047
↓ 2 callers
Function
useChainOfThought
()
components/ai-elements/chain-of-thought.tsx:29
↓ 2 callers
Function
useChart
()
components/ui/chart.tsx:27
↓ 2 callers
Function
useOptionalPromptInputController
()
components/ai-elements/prompt-input.tsx:120
↓ 2 callers
Function
usePlan
()
components/ai-elements/plan.tsx:30
↓ 1 callers
Function
animateLoading
()
components/ui/stateful-button.tsx:14
↓ 1 callers
Function
animateSuccess
()
components/ui/stateful-button.tsx:28
↓ 1 callers
Function
checkBetaStatus
()
components/add-account-drawer.tsx:52
↓ 1 callers
Function
checkBetaStatus
()
app/dashboard/settings/page.tsx:70
↓ 1 callers
Function
checkEmailExists
(email: string)
lib/api.ts:309
↓ 1 callers
Function
convertBlobUrlToDataUrl
(url: string)
components/ai-elements/prompt-input.tsx:678
↓ 1 callers
Function
deleteAPIKey
(keyId: number)
lib/api.ts:820
↓ 1 callers
Function
deleteAccount
(cookieId: string)
lib/api.ts:680
↓ 1 callers
Function
deleteKiroAccount
(accountId: number)
lib/api.ts:1646
↓ 1 callers
Function
formatCountdown
(seconds: number)
components/add-account-drawer.tsx:303
↓ 1 callers
Function
formatQuota
(quota: number)
components/shared-pool-models.tsx:99
↓ 1 callers
Function
formatResetTime
(time: string | null)
components/shared-pool-models.tsx:116
↓ 1 callers
Function
generateAPIKey
( name: string = 'My API Key', configType: 'antigravity' | 'kiro' = 'antigravity' )
lib/api.ts:804
↓ 1 callers
Function
generateImage
( request: ImageGenerationRequest, onError?: (error: Error) => void, onHeartbeat?: () => void )
lib/api.ts:1106
↓ 1 callers
Function
getAccountQuotas
(cookieId: string)
lib/api.ts:844
↓ 1 callers
Function
getAccounts
()
lib/api.ts:658
↓ 1 callers
Function
getAllModels
()
app/dashboard/playground/page.tsx:167
↓ 1 callers
Function
getAntihookUrl
()
components/add-account-drawer.tsx:370
↓ 1 callers
Function
getAuthHeaders
* 获取认证 header
lib/api.ts:116
↓ 1 callers
Function
getCookie
* 从 cookie 中获取值
lib/api.ts:508
↓ 1 callers
Function
getCookiePreference
()
lib/api.ts:883
↓ 1 callers
Function
getEdgeParams
( source: InternalNode<Node>, target: InternalNode<Node> )
components/ai-elements/edge.tsx:86
↓ 1 callers
Function
getInitials
(username: string)
app/dashboard/profile/page.tsx:99
↓ 1 callers
Function
getKiroAccountConsumption
( accountId: number, params?: { limit?: number; offset?: number; start_date?: string; end_
lib/api.ts:1605
↓ 1 callers
Function
getKiroConsumptionStats
(params?: { start_date?: string; end_date?: string; })
lib/api.ts:1629
↓ 1 callers
Function
getKiroOAuthAuthorizeUrl
( provider: 'Google' | 'Github', isShared: number = 0 )
lib/api.ts:1528
↓ 1 callers
Function
getModelDisplayName
(model: string)
components/shared-pool-models.tsx:78
↓ 1 callers
Function
getModelIcon
(modelName: string)
components/shared-pool-models.tsx:103
↓ 1 callers
Function
getModelIcon
(modelName: string)
app/dashboard/accounts/page.tsx:576
↓ 1 callers
Function
getModelIcon
(modelName: string)
app/dashboard/analytics/page.tsx:221
↓ 1 callers
Function
getOAuthAuthorizeUrl
(isShared: number = 0)
lib/api.ts:745
↓ 1 callers
Function
getStatusBadge
(status: ExtendedToolState)
components/ai-elements/tool.tsx:41
↓ 1 callers
Function
getStoredUser
()
lib/api.ts:491
next →
1–100 of 671, ranked by callers