Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/thunderbird/thunderbolt
/ functions
Functions
1,802 in github.com/thunderbird/thunderbolt
⨍
Functions
1,802
◇
Types & classes
58
↓ 4 callers
Function
search
(params: SearchParams, httpClient: HttpClient)
src/integrations/thunderbolt-pro/api.ts:25
↓ 4 callers
Function
sendEmail
({ to, from = emailFrom, subject, react }: SendEmailParams)
backend/src/lib/resend.ts:49
↓ 4 callers
Function
setDatabase
(instance: Database)
src/db/database.ts:119
↓ 4 callers
Function
shouldSkipEmail
()
backend/src/lib/resend.ts:26
↓ 4 callers
Function
stopSyncStatusListener
()
src/db/powersync/sync-tracker.ts:120
↓ 4 callers
Function
submitEmail
(result: { current: ReturnType<typeof useSignInFormState> })
src/components/sign-in/use-sign-in-form-state.test.ts:32
↓ 4 callers
Method
terminate
* Terminate the worker
src/db/wa-sqlite-worker-client.ts:159
↓ 4 callers
Function
toGmailBase64
(str: string)
src/integrations/google/utils.test.ts:16
↓ 4 callers
Function
truncate
(text: string, maxLen: number)
src/ai/eval/ui.ts:256
↓ 4 callers
Function
truncateText
(text: string, maxLength = 4000)
src/lib/utils.ts:308
↓ 4 callers
Function
upsertDevice
( database: typeof DbType, device: { id: string; userId: string; name: string; lastSeen: Date; createdAt:
backend/src/dal/devices.ts:26
↓ 4 callers
Function
useFormField
()
src/components/ui/form.tsx:45
↓ 4 callers
Function
validateOtpChallenge
(database: typeof DbType, email: string, challengeToken: string)
backend/src/dal/otp-challenge.ts:42
↓ 3 callers
Function
aiFetchStreamingResponse
({ init, saveMessages, modelId, modeSystemPrompt, modeName, mcpClients, httpClient, }: AiFetchSt
src/ai/fetch.ts:167
↓ 3 callers
Function
applySchema
(db: AnyDrizzleDatabase)
src/db/apply-schema.ts:69
↓ 3 callers
Function
approveDevice
( httpClient: HttpClient, pendingDeviceId: string, pendingEcdhPublicKeyBase64: string, pendingMlkemPub
src/services/encryption.ts:161
↓ 3 callers
Function
approveWaitlistEntry
(database: typeof DbType, id: string)
backend/src/dal/waitlist.ts:25
↓ 3 callers
Function
buildAuthUrl
( httpClient: HttpClient, provider: OAuthProvider, state: string, codeChallenge: string, redirectUri
src/lib/auth.ts:99
↓ 3 callers
Function
buildFetchOptions
(platform: string)
src/contexts/auth-context.tsx:32
↓ 3 callers
Function
buildProxyResponse
(response: Response, upstreamCtl: AbortController)
backend/src/proxy/routes.ts:224
↓ 3 callers
Function
cleanupSessionStorage
()
src/test-utils/oauth.ts:62
↓ 3 callers
Function
connectServer
(server: { id: string; name: string; url: string; enabled: boolean })
src/lib/mcp-provider.tsx:65
↓ 3 callers
Method
connectToSync
* Connect to PowerSync Cloud for syncing. * Call this when user enables sync.
src/db/powersync/database.ts:238
↓ 3 callers
Function
createApp
(settings = ssoSettings)
backend/src/auth/sso-desktop-callback.test.ts:16
↓ 3 callers
Function
createAppDir
()
src/lib/fs.ts:55
↓ 3 callers
Function
createExpectedInitialState
( selectedProvider: 'google' | 'microsoft' | null, )
src/hooks/use-connect-integration-widget-state.test.ts:15
↓ 3 callers
Function
createGoogleAuthRoutes
(auth: Auth, fetchFn: typeof fetch = globalThis.fetch)
backend/src/auth/google.ts:18
↓ 3 callers
Function
createHTTPError
(status: number)
src/hooks/use-approval-polling.test.ts:12
↓ 3 callers
Function
createInferenceRoutes
(auth: Auth, rateLimit?: AnyElysia)
backend/src/inference/routes.ts:51
↓ 3 callers
Function
createLimiter
(database: typeof DbType, tier: RateLimitTier)
backend/src/middleware/rate-limit.ts:39
↓ 3 callers
Function
createMicrosoftAuthRoutes
(auth: Auth, fetchFn: typeof fetch = globalThis.fetch)
backend/src/auth/microsoft.ts:20
↓ 3 callers
Function
createMockOAuthResponse
(status = 200, body: any = {})
backend/src/auth/routes.test.ts:21
↓ 3 callers
Function
createMockUseContextTracking
( isOverflowing: boolean = false, isContextKnown: boolean = true, usedTokens: number | null = 1000
src/components/chat/chat-prompt-input.test.tsx:23
↓ 3 callers
Function
createProToolsRoutes
(auth: Auth, fetchFn: typeof fetch = globalThis.fetch, rateLimit?: AnyElysia)
backend/src/pro/routes.ts:34
↓ 3 callers
Function
createSafeFetch
(fetchFn: typeof fetch)
backend/src/utils/url-validation.ts:120
↓ 3 callers
Function
createTestAuth
(database: typeof db)
backend/src/auth/auth.test.ts:56
↓ 3 callers
Function
createTestExaPlugin
(mockExaClient: any)
backend/src/pro/exa.test.ts:9
↓ 3 callers
Function
decodeHtmlEntities
(text: string)
backend/src/pro/link-preview.ts:15
↓ 3 callers
Function
decodeRawMessage
(raw: string)
src/integrations/google/utils.test.ts:9
↓ 3 callers
Function
decodeUrlParam
(encoded: string)
backend/src/pro/link-preview.ts:38
↓ 3 callers
Function
deleteChatMessageAndDescendants
(db: AnyDrizzleDatabase, messageId: string)
src/dal/chat-messages.ts:175
↓ 3 callers
Function
deleteModelProfileForModel
(db: AnyDrizzleDatabase, modelId: string)
src/dal/model-profiles.ts:56
↓ 3 callers
Function
deleteOtpChallengesForEmail
(database: typeof DbType, email: string)
backend/src/dal/otp-challenge.ts:58
↓ 3 callers
Function
disconnectServer
(serverId: string)
src/lib/mcp-provider.tsx:98
↓ 3 callers
Function
dispatchRevokedDeviceEvent
()
src/hooks/use-credential-events.test.ts:24
↓ 3 callers
Function
draftEmail
( params: DraftEmailParams, httpClient: HttpClient = http, auth: GoogleAuthDeps = defaultAuthDeps, )
src/integrations/google/tools.ts:515
↓ 3 callers
Function
extractCanarySecret
(httpClient: HttpClient)
src/services/encryption.ts:142
↓ 3 callers
Function
extractResponseHeaders
( headers: Headers, denylist: (string | RegExp)[] = defaultResponseDenylist, )
backend/src/utils/request.ts:155
↓ 3 callers
Function
extractTextFromParts
(parts: UIMessage['parts'], separator = '\n\n')
src/lib/message-utils.ts:13
↓ 3 callers
Function
fetchAvailableModels
(provider: string, apiKey?: string, url?: string)
src/settings/models/index.tsx:384
↓ 3 callers
Function
fetchCanary
(httpClient: HttpClient)
src/api/encryption.ts:76
↓ 3 callers
Function
fetchCountryUnits
(targetCountry: string)
src/hooks/use-country-units.ts:58
↓ 3 callers
Function
fetchMyEnvelope
(httpClient: HttpClient)
src/api/encryption.ts:68
↓ 3 callers
Function
formatDuration
(ms: number)
src/lib/utils.ts:242
↓ 3 callers
Function
getAllDevices
(db: AnyDrizzleDatabase)
src/dal/devices.ts:34
↓ 3 callers
Function
getCK
()
src/crypto/key-storage.ts:191
↓ 3 callers
Function
getConnectingKey
(key: string)
src/hooks/use-oauth-connect.ts:19
↓ 3 callers
Function
getDeviceDisplayName
()
src/lib/platform.ts:243
↓ 3 callers
Function
getDownloadUrl
()
src/lib/download-links.ts:22
↓ 3 callers
Function
getFetchTool
(configs: ReturnType<typeof createConfigs>)
src/integrations/thunderbolt-pro/tools.test.ts:372
↓ 3 callers
Function
getMessage
(db: AnyDrizzleDatabase, messageId: string)
src/dal/chat-messages.ts:16
↓ 3 callers
Function
getPowerSyncInstance
()
src/db/powersync/database.ts:61
↓ 3 callers
Function
getUserById
(database: typeof DbType, id: string)
backend/src/dal/users.ts:10
↓ 3 callers
Function
getWeatherForecast
( params: WeatherParams, httpClient: HttpClient, )
src/integrations/thunderbolt-pro/api.ts:136
↓ 3 callers
Function
hashCanarySecret
(secret: string)
backend/src/lib/canary.ts:10
↓ 3 callers
Method
initialize
* Initialize PGlite and run migrations once * This MUST be called before any tests run
backend/src/test-utils/db.ts:22
↓ 3 callers
Function
initiateUrl
(port: number | string)
backend/src/auth/sso-desktop-callback.test.ts:126
↓ 3 callers
Function
isAutoApprovedDomain
(email: string)
backend/src/waitlist/utils.tsx:14
↓ 3 callers
Function
isFocusable
(el: Element | null)
src/hooks/use-viewport-lock.ts:52
↓ 3 callers
Function
isGroupedItems
( items: SearchableMenuItem<T>[] | SearchableMenuGroup<T>[], )
src/components/ui/searchable-menu/types.ts:63
↓ 3 callers
Function
makeModel
(overrides: Partial<Model> & { id: string; name: string })
src/components/ui/model-selector/model-selector.test.ts:10
↓ 3 callers
Function
makeStream
(chunks: Uint8Array[])
backend/src/proxy/streaming.test.ts:4
↓ 3 callers
Function
needsSyncSetupWizard
()
src/db/encryption/config.ts:15
↓ 3 callers
Function
onSubmit
(values: LocationFormData)
src/components/onboarding/onboarding-location-step.tsx:116
↓ 3 callers
Function
parseEmailAddress
(emailStr: string)
src/integrations/google/utils.ts:18
↓ 3 callers
Function
processCallback
(callbackData: OAuthCallbackData)
src/hooks/use-oauth-connect.ts:263
↓ 3 callers
Function
rate
(p: number, t: number)
src/ai/eval/report.ts:53
↓ 3 callers
Function
reimportAsNonExtractable
(ck: CryptoKey)
src/crypto/primitives.ts:88
↓ 3 callers
Function
renderHeader
(style: CommentStyle)
scripts/license-headers.ts:65
↓ 3 callers
Function
request
(method: string, url: string, options: RequestOptions = {})
src/lib/http.ts:91
↓ 3 callers
Function
requestPositionUpdate
()
src/content-view/use-sidebar-webview.ts:70
↓ 3 callers
Function
resetAutomationToDefault
( db: AnyDrizzleDatabase, id: string, defaultAutomation: Prompt, )
src/dal/prompts.ts:81
↓ 3 callers
Function
resetDatabase
()
src/db/database.ts:161
↓ 3 callers
Function
resetSettingToDefault
( db: AnyDrizzleDatabase, key: string, defaultSetting: Setting, )
src/dal/settings.ts:325
↓ 3 callers
Function
resolveUrl
(url: string, prefixUrl?: string)
src/lib/http.ts:75
↓ 3 callers
Function
respondToFetchEnvelope
(response: unknown)
src/services/encryption.test.ts:131
↓ 3 callers
Function
revokeDevice
(database: typeof DbType, deviceId: string, userId: string)
backend/src/dal/devices.ts:46
↓ 3 callers
Function
rewrapCK
( wrappedCKBase64: string, ecdhPrivateKey: CryptoKey, mlkemSecretKey: Uint8Array, targetEcdhPublicKey:
src/crypto/primitives.ts:178
↓ 3 callers
Function
searchEmails
( params: SearchEmailsParams, httpClient: HttpClient = http, auth: GoogleAuthDeps = defaultAuthDeps, )
src/integrations/google/tools.ts:370
↓ 3 callers
Method
sendRequest
* Send a request to the worker and wait for response
src/db/wa-sqlite-worker-client.ts:99
↓ 3 callers
Function
settle
(action: { type: 'SUCCESS' } | { type: 'ERROR'; message: string })
web/src/components/marketing/sections/contact-page.tsx:78
↓ 3 callers
Function
shouldUseViewportPositioning
(messagesLength: number)
src/chats/use-chat-scroll-handler.ts:14
↓ 3 callers
Function
showSuccess
()
src/components/sync-setup/sync-setup-modal.tsx:56
↓ 3 callers
Function
sign
(token: string, s = secret)
backend/src/auth/bearer-token.test.ts:11
↓ 3 callers
Function
signToken
(token: string)
backend/src/api/account.test.ts:18
↓ 3 callers
Function
storeCK
(ck: CryptoKey)
src/crypto/key-storage.ts:188
↓ 3 callers
Function
syncNativeInterfaceStyle
(resolvedTheme: 'dark' | 'light')
src/lib/theme-provider.tsx:11
↓ 3 callers
Function
termCols
()
src/ai/eval/ui.ts:33
↓ 3 callers
Function
termRows
()
src/ai/eval/ui.ts:32
↓ 3 callers
Function
toBase64Url
(str: string)
src/integrations/google/tools.test.ts:36
← previous
next →
501–600 of 1,802, ranked by callers