Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/thunderbird/thunderbolt
/ functions
Functions
1,802 in github.com/thunderbird/thunderbolt
⨍
Functions
1,802
◇
Types & classes
58
↓ 16 callers
Function
buildWithBody
(body: string)
src/integrations/google/utils.test.ts:76
↓ 16 callers
Function
createMockContainer
(scrollTop = 0, scrollHeight = 1000, clientHeight = 500)
src/hooks/use-auto-scroll.test.tsx:16
↓ 16 callers
Function
createMockTarget
()
src/hooks/use-auto-scroll.test.tsx:33
↓ 16 callers
Function
createPrompt
({ modelName, profile, modeName, preferredName, location, localization, integrationStatus, mod
src/ai/prompt.ts:32
↓ 16 callers
Function
generateMlKemKeyPair
()
src/crypto/primitives.ts:59
↓ 16 callers
Function
getHostname
(url: string)
src/widgets/link-preview/utils.ts:6
↓ 16 callers
Function
getOrCreateOtpChallenge
( database: typeof DbType, data: { id: string; email: string; challengeToken: string; expiresAt: Date }, )
backend/src/dal/otp-challenge.ts:18
↓ 16 callers
Function
renderWithProvider
(ui: ReactElement)
src/components/chat/source-list.test.tsx:13
↓ 16 callers
Function
renderWithProvider
(ui: ReactElement)
src/components/chat/source-card.test.tsx:13
↓ 16 callers
Function
setupRefs
( result: { current: ReturnType<typeof useAutoScroll> }, container: HTMLDivElement, target: HTMLDi
src/hooks/use-auto-scroll.test.tsx:36
↓ 16 callers
Function
trackSyncEvent
(eventName: SyncEventType, extraProps?: Record<string, unknown>)
src/db/powersync/sync-tracker.ts:65
↓ 16 callers
Function
updateReducer
(state: UpdateState, action: UpdateAction)
src/hooks/use-desktop-update.ts:36
↓ 16 callers
Function
useHttpClient
()
src/contexts/http-client-context.tsx:20
↓ 16 callers
Function
useLocalStorage
( key: string, defaultValue: string, options?: { debounceMs?: number; disabled?: boolean }, )
src/hooks/use-local-storage.ts:18
↓ 16 callers
Function
write
(text: string)
src/ai/eval/ui.ts:7
↓ 15 callers
Function
createAuthenticatedClient
( prefixUrl: string, getToken: () => string | null, config: Pick<HttpClientConfig, 'fetch' | 'credential
src/lib/http.ts:152
↓ 15 callers
Function
createMockUseAutoScroll
()
src/chats/use-chat-scroll-handler.test.ts:26
↓ 15 callers
Function
createMockUseChat
(status: string, messages: any[] = [])
src/chats/use-chat-scroll-handler.test.ts:21
↓ 15 callers
Function
createMockUseCurrentChatSession
()
src/chats/use-chat-scroll-handler.test.ts:10
↓ 15 callers
Function
createTestMessage
(overrides?: Partial<ThunderboltUIMessage>)
src/components/chat/chat-messages.test.tsx:35
↓ 15 callers
Function
createToolGroupPart
(tools: ToolUIPart[])
src/components/chat/assistant-message.test.tsx:39
↓ 15 callers
Function
estimateTokensForText
(text: string)
src/ai/tokenizers.ts:15
↓ 15 callers
Function
getChatMessages
(db: AnyDrizzleDatabase, threadId: string)
src/dal/chat-messages.ts:27
↓ 15 callers
Function
getCorsOriginsList
(settings: Pick<Settings, 'corsOrigins'>)
backend/src/config/settings.ts:189
↓ 15 callers
Function
getProxiedFaviconUrl
(faviconUrl: string, proxyBase: string)
src/lib/url-utils.ts:22
↓ 15 callers
Function
inferTypeFromSchema
( schemaValue: any, )
src/lib/serialization.ts:20
↓ 15 callers
Function
insertExistingUser
(email: string)
backend/src/auth/otp-security.test.ts:46
↓ 15 callers
Function
isRateLimitError
(error?: Error | null)
src/lib/error-utils.ts:16
↓ 15 callers
Function
isSafeUrl
(url: string)
src/lib/url-utils.ts:9
↓ 15 callers
Function
setOpen
(newOpen: boolean)
src/components/ui/searchable-menu/searchable-menu.tsx:138
↓ 15 callers
Function
signInWithChallenge
(email: string, otp: string, challengeToken: string)
backend/src/auth/otp-security.test.ts:85
↓ 15 callers
Function
useSidebarWebview
( config: SidebarWebviewConfig | null, containerRef: RefObject<HTMLElement | null>, hidden = false, )
src/content-view/use-sidebar-webview.ts:23
↓ 15 callers
Function
wrapCK
(ck: CryptoKey, ecdhPublicKey: CryptoKey, mlkemPublicKey: Uint8Array)
src/crypto/primitives.ts:142
↓ 14 callers
Function
createTestWrapper
()
src/components/chat/chat-messages.test.tsx:24
↓ 14 callers
Function
deduplicateLinkPreviews
(parts: ContentPart[])
src/components/chat/text-part.tsx:42
↓ 14 callers
Function
deleteModel
(db: AnyDrizzleDatabase, id: string)
src/dal/models.ts:154
↓ 14 callers
Function
determineNavigationTarget
( oauthReturnContext: ReturnContext | null, oauth: OAuthCallbackData, )
src/hooks/use-deep-link-listener.ts:37
↓ 14 callers
Function
exec
(command: string, silent = false)
scripts/create-release.ts:43
↓ 14 callers
Function
generateKeyPair
()
src/crypto/primitives.ts:28
↓ 14 callers
Function
getAllTriggersForPrompt
(db: AnyDrizzleDatabase, promptId: string)
src/dal/triggers.ts:16
↓ 14 callers
Function
getModelProfile
(db: AnyDrizzleDatabase, modelId: string)
src/dal/model-profiles.ts:15
↓ 14 callers
Function
searchDrive
( params: SearchDriveParams, httpClient: HttpClient = http, auth: GoogleAuthDeps = defaultAuthDeps, )
src/integrations/google/tools.ts:640
↓ 14 callers
Function
updateChatThread
( db: AnyDrizzleDatabase, id: string, data: Partial<Pick<ChatThread, 'contextSize' | 'modeId' | 'title'
src/dal/chat-threads.ts:65
↓ 14 callers
Function
useIntegrationStatus
()
src/hooks/use-integration-status.ts:18
↓ 14 callers
Function
useLocationSearch
({ autoOpen }: UseLocationSearchOptions = {})
src/hooks/use-location-search.ts:58
↓ 13 callers
Function
createMockHttpClient
(mockResponse: unknown = [], prefixUrl = 'http://test-api.local')
src/test-utils/http-client.ts:12
↓ 13 callers
Function
createMockModel
(overrides?: Partial<Model>)
src/test-utils/chat-store-mocks.ts:28
↓ 13 callers
Function
createModel
( db: AnyDrizzleDatabase, data: Partial<Model> & Pick<Model, 'id' | 'provider' | 'name' | 'model'>, )
src/dal/models.ts:170
↓ 13 callers
Function
createStubProfile
(overrides: Partial<ModelProfile> = {})
src/defaults/model-profiles.test.ts:9
↓ 13 callers
Function
createTestApp
( database: typeof DbType, settings: RateLimitSettings, middleware: (db: typeof DbType, s: RateLimitSett
backend/src/middleware/rate-limit.test.ts:23
↓ 13 callers
Function
createTestHttpClient
(...handlers: RouteHandler[])
src/services/encryption.test.ts:71
↓ 13 callers
Function
extractClientIp
( headers: Headers, fallback = 'unknown', trustedProxy: '' | 'cloudflare' | 'akamai' = '', )
backend/src/utils/request.ts:55
↓ 13 callers
Function
getCurrentSession
()
src/test-utils/chat-store-mocks.ts:253
↓ 13 callers
Function
getWeatherMetadata
(code: number, dateString: string)
src/widgets/weather-forecast/lib.ts:44
↓ 13 callers
Function
isOriginAllowed
(origin: string, settings: Pick<Settings, 'corsOrigins'>)
backend/src/config/settings.ts:197
↓ 13 callers
Function
isPrivateAddress
(rawHostname: string)
backend/src/utils/url-validation.ts:25
↓ 13 callers
Function
mockFetch
(response: Partial<Response> = {})
src/lib/http.test.ts:10
↓ 13 callers
Function
mockTokenAbsent
()
src/components/auth-gate/use-auth-gate.test.ts:33
↓ 13 callers
Function
normalizeEmail
(email: string)
backend/src/lib/email.ts:10
↓ 13 callers
Function
renderModal
(props: Partial<{ open: boolean }> = {})
src/components/revoked-device-modal.test.tsx:39
↓ 13 callers
Function
useCountryUnits
(country?: string)
src/hooks/use-country-units.ts:37
↓ 12 callers
Function
callbackUrl
(port: number | string, cookies?: string)
backend/src/auth/sso-desktop-callback.test.ts:19
↓ 12 callers
Function
createApp
(deps?: AppDeps)
backend/src/index.ts:34
↓ 12 callers
Function
createMockResponse
(body: string, options: ResponseInit = {})
backend/src/pro/proxy.test.ts:31
↓ 12 callers
Function
createSpyHttpClient
( fetchImpl?: (req: Request) => Promise<Response>, defaultResponse: unknown = { success: true }, )
src/test-utils/http-client-spy.ts:13
↓ 12 callers
Function
createTestSettings
(overrides: Partial<Settings> = {})
backend/src/test-utils/settings.ts:12
↓ 12 callers
Function
createUserSessionAndDevice
(userId: string, token: string, callerDeviceId: string)
backend/src/api/account.test.ts:65
↓ 12 callers
Function
dispatchCredentialsInvalid
( reason: 'account_deleted' | 'device_revoked' | 'device_id_taken' | 'device_id_required' | 'session_expir
src/hooks/use-powersync-credentials-invalid-listener.test.tsx:101
↓ 12 callers
Function
getNudgeMessagesFromProfile
(profile: ModelProfile | null, modeName?: string)
src/ai/step-logic.ts:149
↓ 12 callers
Method
initialize
* Initialize the database connection. * This method is idempotent - it will only initialize once. * @param type - The database type to use ('wa-
src/db/database.ts:19
↓ 12 callers
Function
insertCanaryWithSecret
(userId: string)
backend/src/api/encryption.test.ts:143
↓ 12 callers
Function
parseVerifyLinkCallback
(url: URL)
src/hooks/use-deep-link-listener.ts:83
↓ 12 callers
Function
renderComponent
()
src/components/onboarding/onboarding-privacy-step.test.tsx:46
↓ 12 callers
Function
sendOtpWithChallenge
(email: string)
backend/src/auth/otp-security.test.ts:77
↓ 12 callers
Function
trackError
(error: HandleError, context?: Record<string, unknown>)
src/lib/posthog.tsx:221
↓ 12 callers
Function
useApprovalPolling
({ enabled, checkApproval, onApproved, onRevoked, onDenied, intervalMs = 3000, }: UseApprovalPolli
src/hooks/use-approval-polling.ts:23
↓ 12 callers
Function
useOAuthConnect
(options: UseOAuthConnectOptions = {})
src/hooks/use-oauth-connect.ts:92
↓ 12 callers
Function
usePowerSyncCredentialsInvalidListener
()
src/hooks/use-powersync-credentials-invalid-listener.ts:51
↓ 12 callers
Function
useSidebar
()
src/components/ui/sidebar.tsx:62
↓ 11 callers
Function
cleanup
()
src/hooks/use-oauth-connect.ts:280
↓ 11 callers
Function
clearAuthToken
()
src/lib/auth-token.ts:36
↓ 11 callers
Function
createMockChatInstanceWithValidation
( messages: ThunderboltUIMessage[] = [], )
src/test-utils/chat-store-mocks.ts:114
↓ 11 callers
Function
createMockHttpClient
(response: unknown)
src/integrations/thunderbolt-pro/tools.test.ts:17
↓ 11 callers
Function
createParser
( schema: T, )
src/lib/create-parser.ts:18
↓ 11 callers
Function
deleteSetting
(db: AnyDrizzleDatabase, key: string)
src/dal/settings.ts:318
↓ 11 callers
Function
encodeRecoveryKey
(ck: CryptoKey)
src/crypto/recovery-key.ts:14
↓ 11 callers
Function
generateCodeChallenge
(verifier: string)
src/lib/pkce.ts:23
↓ 11 callers
Function
generateFullKeyPair
()
src/services/encryption.test.ts:150
↓ 11 callers
Function
getAllEnabledTriggers
(db: AnyDrizzleDatabase)
src/dal/triggers.ts:27
↓ 11 callers
Function
getAllModels
(db: AnyDrizzleDatabase)
src/dal/models.ts:17
↓ 11 callers
Function
getHeader
(message: any, name: string)
src/integrations/google/utils.ts:34
↓ 11 callers
Function
getOAuthWidgetKey
( messageId: string, key: 'provider' | 'completed' | 'eventDispatched' | 'connecting', )
src/widgets/connect-integration/constants.ts:6
↓ 11 callers
Function
getOtpErrorMessage
(error: OtpError, context: OtpErrorContext)
src/lib/otp-error-messages.ts:27
↓ 11 callers
Function
getPowerSyncDatabaseConfig
( platform: ReturnType<typeof getPlatform> = getPlatform(), browser: ReturnType<typeof getWebBrowser> = ge
src/db/powersync/database.ts:36
↓ 11 callers
Function
handleCredentialsInvalidIfNeeded
(status: number, body: ErrorBody)
src/db/powersync/connector.ts:58
↓ 11 callers
Function
isOAuthRedirectUriAllowed
(uri: string, settings: Pick<Settings, 'corsOrigins'>)
backend/src/config/settings.ts:202
↓ 11 callers
Function
isSsoMode
()
src/lib/auth-mode.ts:5
↓ 11 callers
Function
parseOAuthCallback
(url: URL)
src/hooks/use-deep-link-listener.ts:61
↓ 11 callers
Function
postWaitlistJoin
(email: string, appInstance = app)
backend/src/auth/otp-security.test.ts:67
↓ 11 callers
Function
rewriteLinks
( body: string, sourceRelPath: string, urlPrefix: string, githubBaseUrl: string, knownDocPaths: Set<strin
web/src/loaders/repo-docs-loader.ts:150
← previous
next →
101–200 of 1,802, ranked by callers