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
↓ 11 callers
Function
setupConsoleSpy
()
src/test-utils/console-spies.ts:34
↓ 11 callers
Function
useConnectIntegrationWidgetState
( initialProvider: OAuthProviderOrEmpty, )
src/hooks/use-connect-integration-widget-state.ts:69
↓ 11 callers
Function
useDraftInput
(chatThreadId: string, { persist = true }: { persist?: boolean } = {})
src/hooks/use-draft-input.ts:15
↓ 11 callers
Function
useHandleIntegrationCompletion
({ saveMessages }: UseHandleIntegrationCompletionParams)
src/hooks/use-handle-integration-completion.ts:133
↓ 11 callers
Function
useHaptics
()
src/hooks/use-haptics.tsx:97
↓ 11 callers
Function
useHydrateChatStore
({ id, isNew }: UseHydrateChatStoreParams)
src/chats/use-hydrate-chat-store.ts:33
↓ 10 callers
Function
buildStepOverrides
({ steps, messages, systemPrompt, profile, maxSteps, nudgeThreshold, activeNudges, }: { steps:
src/ai/step-logic.ts:97
↓ 10 callers
Function
createCanary
(ck: CryptoKey)
src/crypto/canary.ts:29
↓ 10 callers
Function
createMockSaveMessages
()
src/hooks/use-handle-integration-completion.test.ts:84
↓ 10 callers
Function
createMockToolPart
( toolName: string, state: ToolUIPart['state'] = 'output-available', duration?: number, )
src/components/chat/reasoning-item.test.tsx:26
↓ 10 callers
Function
createMockUseIsMobile
(isMobile: boolean = false)
src/components/chat/chat-prompt-input.test.tsx:39
↓ 10 callers
Function
createSSEStreamFromCompletion
( completion: CompletionStream, model: string, )
backend/src/utils/streaming.ts:15
↓ 10 callers
Function
createStubProfile
(overrides: Partial<ModelProfile> = {})
src/ai/step-logic.test.ts:19
↓ 10 callers
Function
createTextStream
(tokens: string[])
src/ai/middleware/tool-calls.test.ts:10
↓ 10 callers
Function
encrypt
(plaintext: string, ck: CryptoKey)
src/crypto/primitives.ts:279
↓ 10 callers
Function
extractDescription
(body: string)
web/src/loaders/repo-docs-loader.ts:113
↓ 10 callers
Function
getAllChatThreads
(db: AnyDrizzleDatabase)
src/dal/chat-threads.ts:29
↓ 10 callers
Function
getPowerSyncOptions
(path: string, config: PowerSyncDatabaseConfig = getPowerSyncDatabaseConfig())
src/db/powersync/database.ts:132
↓ 10 callers
Method
init
* Initialize the database
src/db/wa-sqlite-worker-client.ts:134
↓ 10 callers
Function
jsonResponse
(body: unknown, status = 200)
src/test-utils/http-client-spy.ts:9
↓ 10 callers
Function
makeKnown
(...paths: string[])
web/src/loaders/repo-docs-loader.test.ts:219
↓ 10 callers
Function
makeSource
(overrides: Partial<SourceMetadata> = {})
src/widgets/link-preview/widget.test.tsx:37
↓ 10 callers
Function
sanitizeErrorForTracking
(error: unknown)
src/db/powersync/sync-tracker.ts:17
↓ 10 callers
Function
seedUser
(userId: string, token: string, trustedDeviceId?: string)
backend/src/api/powersync.test.ts:1950
↓ 10 callers
Function
setupStore
()
src/components/chat/chat-prompt-input.test.tsx:50
↓ 10 callers
Function
shouldRetry
( totalText: string, hadToolCalls: boolean, attemptNumber: number, maxAttempts: number, )
src/ai/step-logic.ts:66
↓ 10 callers
Method
toBeNullOrUndefined
()
src/matchers.d.ts:10
↓ 10 callers
Function
useUnitsOptions
()
src/hooks/use-units-options.ts:14
↓ 9 callers
Function
computeSlug
(relPath: string, prefix: string)
web/src/loaders/repo-docs-loader.ts:138
↓ 9 callers
Function
computeWallClockTime
(intervals: Array<{ start: number; end: number }>)
src/lib/utils.ts:255
↓ 9 callers
Function
createAuthMacro
(auth: Auth)
backend/src/auth/elysia-plugin.ts:13
↓ 9 callers
Function
createChatThread
( db: AnyDrizzleDatabase, data: Pick<ChatThread, 'contextSize' | 'id' | 'title' | 'triggeredBy' | 'wasTrig
src/dal/chat-threads.ts:54
↓ 9 callers
Function
createConfigs
(httpClient: HttpClient, sourceCollector?: SourceMetadata[])
src/integrations/thunderbolt-pro/tools.ts:44
↓ 9 callers
Function
createError
(code: HandleError['code'], message: string)
src/components/app-error-screen.stories.tsx:32
↓ 9 callers
Function
createMockTool
(state: ToolUIPart['state'])
src/components/chat/tool-group.test.ts:9
↓ 9 callers
Function
createTestChallenge
(db: typeof DbType, email: string)
backend/src/test-utils/otp-challenge.ts:10
↓ 9 callers
Function
createTestThread
(modelId: string, title: string = 'Test Thread')
src/chats/use-hydrate-chat-store.test.tsx:99
↓ 9 callers
Function
createToolPart
(toolName: string)
src/lib/assistant-message.test.ts:9
↓ 9 callers
Function
generateCodeVerifier
()
src/lib/pkce.ts:9
↓ 9 callers
Function
getAllPrompts
(db: AnyDrizzleDatabase, searchQuery?: string)
src/dal/prompts.ts:20
↓ 9 callers
Function
getAvailableModels
(db: AnyDrizzleDatabase)
src/dal/models.ts:31
↓ 9 callers
Function
insertCanaryWithSecret
(userId: string)
backend/src/api/account.test.ts:101
↓ 9 callers
Function
isNewAuthUser
(user: unknown)
src/components/sign-in/use-sign-in-form-state.ts:104
↓ 9 callers
Function
loginViaOidc
(page: Page)
e2e/helpers.ts:18
↓ 9 callers
Function
loginViaSaml
(page: Page)
e2e/helpers.ts:28
↓ 9 callers
Function
makeChallenge
(email: string, overrides?: { challengeToken?: string; expiresAt?: Date })
backend/src/dal/otp-challenge.test.ts:15
↓ 9 callers
Function
makeSource
(index: number, title = `Source ${index}`)
src/components/chat/text-part.test.ts:12
↓ 9 callers
Function
post
(origin: string, data: unknown)
src/lib/auth.test.ts:34
↓ 9 callers
Function
processTextContent
(children: ReactNode)
src/components/chat/markdown-utils.tsx:73
↓ 9 callers
Function
renderWithProviders
(ui: ReactElement)
src/widgets/link-preview/widget.test.tsx:24
↓ 9 callers
Function
setupConsoleSpy
()
backend/src/test-utils/console-spies.ts:34
↓ 9 callers
Function
sortByOrder
(items: T[], order: string[], getKey: (item: T) => string)
src/lib/sort-by-order.ts:14
↓ 9 callers
Function
triggerChange
(tables: string[])
src/test-utils/powersync-mock.tsx:131
↓ 9 callers
Function
triggerSelection
()
src/lib/haptics.ts:14
↓ 9 callers
Function
updateModel
(db: AnyDrizzleDatabase, id: string, updates: Partial<Model>)
src/dal/models.ts:134
↓ 9 callers
Function
updateTask
(db: AnyDrizzleDatabase, id: string, updates: Partial<Task>)
src/dal/tasks.ts:59
↓ 9 callers
Function
useChatAutomation
({ useChat = useChat_default }: UseChatAutomationProps = {})
src/chats/use-chat-automation.tsx:13
↓ 9 callers
Function
useDeepLinkListener
(handler?: DeepLinkHandler, dependencies?: DeepLinkDependencies)
src/hooks/use-deep-link-listener.ts:112
↓ 9 callers
Function
useToolItemState
({ tool, index }: UseToolItemStateParams)
src/components/chat/tool-item.tsx:22
↓ 9 callers
Function
verifySignedBearerToken
(bearerValue: string, secret: string)
backend/src/auth/bearer-token.ts:11
↓ 8 callers
Function
authHeaders
()
src/api/encryption.ts:24
↓ 8 callers
Function
capStream
( source: ReadableStream<Uint8Array>, opts: { maxBytes: number idleTimeoutMs: number onAbort:
backend/src/proxy/streaming.ts:8
↓ 8 callers
Method
close
Close the PGlite instance to release WASM resources and allow clean process exit
backend/src/test-utils/db.ts:33
↓ 8 callers
Function
createAuthIpRateLimit
(database: typeof DbType, settings: IpRateLimitSettings)
backend/src/middleware/rate-limit.ts:139
↓ 8 callers
Function
createMockCompletion
(chunks: any[])
backend/src/utils/streaming.test.ts:31
↓ 8 callers
Function
createMockReasoningPart
( state: 'streaming' | 'complete' = 'complete', duration?: number, text: string = 'Let me think about th
src/components/chat/reasoning-group.test.tsx:14
↓ 8 callers
Function
createMockStream
(chunks: any[] = [])
backend/src/inference/routes.test.ts:34
↓ 8 callers
Function
createMockTool
( state: ToolUIPart['state'], output?: unknown, toolCallId?: string, type = 'tool-test_tool', )
src/components/chat/tool-item.test.ts:20
↓ 8 callers
Function
createMockUseAutoScroll
( isAtBottom: boolean = true, scrollSucceeds: boolean = true, )
src/chats/use-chat-scroll-handler.test.tsx:17
↓ 8 callers
Function
createTestApp
(corsOrigins: string[])
backend/src/config/cors.test.ts:15
↓ 8 callers
Function
createWeatherData
(codes: number[], isDayTime: boolean = true)
src/widgets/weather-forecast/stories.tsx:88
↓ 8 callers
Function
decodeRecoveryKey
(mnemonic: string)
src/crypto/recovery-key.ts:25
↓ 8 callers
Function
decrypt
(data: EncryptedData, ck: CryptoKey)
src/crypto/primitives.ts:294
↓ 8 callers
Function
deleteChatThread
(db: AnyDrizzleDatabase, id: string)
src/dal/chat-threads.ts:125
↓ 8 callers
Function
deleteTriggersForPrompt
(db: AnyDrizzleDatabase, promptId: string)
src/dal/triggers.ts:40
↓ 8 callers
Function
deriveSiteName
(url: string)
src/lib/source-utils.ts:27
↓ 8 callers
Function
extractBody
(payload: any, mimeType: string)
src/integrations/google/utils.ts:45
↓ 8 callers
Function
extractDriveFileId
(input: string)
src/integrations/google/tools.ts:715
↓ 8 callers
Function
extractTextFromMessages
(messages: Message[])
src/ai/step-logic.ts:31
↓ 8 callers
Function
getAllMcpServers
(db: AnyDrizzleDatabase)
src/dal/mcp-servers.ts:15
↓ 8 callers
Function
getDeviceId
()
src/lib/auth-token.ts:18
↓ 8 callers
Function
getPlatform
()
src/lib/platform.ts:39
↓ 8 callers
Function
getSafeErrorMessage
(status: number)
backend/src/middleware/error-handling.ts:32
↓ 8 callers
Function
invalidateCKCache
()
src/db/encryption/codec.ts:46
↓ 8 callers
Function
isDesktop
()
src/lib/platform.ts:50
↓ 8 callers
Function
pinnedUrl
(url: string)
backend/src/pro/proxy.test.ts:19
↓ 8 callers
Function
renderWithProviders
(ui: ReactElement)
src/widgets/citation/widget.test.tsx:22
↓ 8 callers
Function
sanitizeUrl
(url: string)
src/lib/posthog.tsx:31
↓ 8 callers
Function
saveMessagesWithContextUpdate
( db: AnyDrizzleDatabase, threadId: string, messages: ThunderboltUIMessage[], )
src/dal/chat-messages.ts:57
↓ 8 callers
Function
setSyncEnabled
(enabled: boolean)
src/db/powersync/database.ts:103
↓ 8 callers
Function
shouldShowPreventiveNudge
(steps: Step[], threshold = 6)
src/ai/step-logic.ts:24
↓ 8 callers
Function
startSsoFlowLoopback
(baseUrl: string, timeoutMs = ssoTimeoutMs)
src/lib/sso-loopback.ts:24
↓ 8 callers
Function
toolCallSteps
(n: number)
src/ai/step-logic.test.ts:353
↓ 8 callers
Function
useAuth
()
src/contexts/auth-context.tsx:123
↓ 8 callers
Function
useToolGroupState
({ tools, isStreaming, isLastPartInMessage, hasTextInMessage, }: UseToolGroupStateParams)
src/components/chat/tool-group.tsx:24
↓ 8 callers
Function
waitForOAuthCallback
( popup: Window | null, eventTarget: EventTarget = window, )
src/lib/oauth-callback.ts:10
↓ 7 callers
Function
buildAuthUrl
( httpClient: HttpClient, state: string, codeChallenge: string, redirectUri?: string, )
src/integrations/google/auth.ts:49
↓ 7 callers
Function
buildAuthUrl
( httpClient: HttpClient, state: string, codeChallenge: string, redirectUri?: string, )
src/integrations/microsoft/auth.ts:41
↓ 7 callers
Function
categorizeModels
( models: Model[], chatThread: ModelSelectorProps['chatThread'], )
src/components/ui/model-selector/model-selector.tsx:38
↓ 7 callers
Function
checkApprovalAndUnwrap
(httpClient: HttpClient)
src/services/encryption.ts:228
← previous
next →
201–300 of 1,802, ranked by callers