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
↓ 7 callers
Function
createCSSVars
(insets: { bottom: number; top: number })
src/hooks/use-safe-area-inset.ts:24
↓ 7 callers
Function
createMockReasoningPart
(state: 'streaming' | 'complete' = 'complete', duration?: number)
src/components/chat/reasoning-item.test.tsx:12
↓ 7 callers
Function
createRefreshableAuthClient
(initialSession: typeof sessionWithUser | null, initialPending: boolean)
src/components/auth-gate/use-auth-gate.test.ts:37
↓ 7 callers
Function
createSystemModel
()
src/chats/use-hydrate-chat-store.test.tsx:47
↓ 7 callers
Function
createTestModel
()
src/dal/chat-threads.test.ts:37
↓ 7 callers
Function
createTextPart
(text: string)
src/components/chat/assistant-message.test.tsx:16
↓ 7 callers
Function
encodeForUpload
(operation: CrudOperation)
src/db/encryption/upload-encoder.ts:19
↓ 7 callers
Function
fetch
(input, init)
src/ai/fetch.ts:51
↓ 7 callers
Function
formatTokenCount
(used: number, max?: number)
src/ai/tokenizers.ts:70
↓ 7 callers
Function
getErrorStatus
(error: unknown, fallbackStatus: number = 500)
backend/src/middleware/error-handling.ts:53
↓ 7 callers
Function
getHttpMcpServers
(db: AnyDrizzleDatabase)
src/dal/mcp-servers.ts:23
↓ 7 callers
Function
getOrCreateChatThread
( db: AnyDrizzleDatabase, id: string, modelId: string, )
src/dal/chat-threads.ts:76
↓ 7 callers
Method
getWeatherForecast
* Get weather forecast for a location
backend/src/pro/weather.ts:206
↓ 7 callers
Function
hasToolCalls
(messages: Message[])
src/ai/step-logic.ts:50
↓ 7 callers
Function
initPosthog
(httpClient?: HttpClient)
src/lib/posthog.tsx:54
↓ 7 callers
Function
isFinalStep
(currentStepCount: number, maxSteps: number)
src/ai/step-logic.ts:18
↓ 7 callers
Function
isSyncEnabled
()
src/db/powersync/database.ts:93
↓ 7 callers
Function
isTokenFresh
(expiresAt: number | undefined, now: number)
src/integrations/microsoft/tools.ts:168
↓ 7 callers
Function
makeOkResponse
(body = 'ok', extraHeaders: Record<string, string> = {})
backend/src/proxy/routes.test.ts:33
↓ 7 callers
Function
moveTo
(row: number, col = 1)
src/ai/eval/ui.ts:23
↓ 7 callers
Function
parseArgs
(args: unknown)
src/ai/middleware/tool-calls.test.ts:24
↓ 7 callers
Function
parseTrustedOrigins
(envValue?: string)
backend/src/auth/utils.tsx:21
↓ 7 callers
Function
readStreamChunks
(stream: ReadableStream<Uint8Array>)
backend/src/utils/streaming.test.ts:42
↓ 7 callers
Function
resolveRepoPath
(fromFile: string, url: string)
web/src/loaders/repo-docs-loader.ts:178
↓ 7 callers
Function
setAndroidBarColor
( style: 'dark' | 'light', deps: SetAndroidBarColorDeps = defaultDeps, )
src/lib/set-android-bar-color.ts:19
↓ 7 callers
Function
setup
(title: string | null = 'My Chat')
src/layout/sidebar/rename-chat-dialog.test.tsx:9
↓ 7 callers
Function
startOAuthFlowLoopback
( httpClient: HttpClient, provider: OAuthProvider, timeoutMs = oauthTimeoutMs, )
src/lib/oauth-loopback.ts:39
↓ 7 callers
Function
useCopyToClipboard
(resetMs = 2000)
src/hooks/use-copy-to-clipboard.ts:13
↓ 7 callers
Function
withTimeout
(promise: Promise<T>, ms: number, label: string)
src/lib/timeout.ts:9
↓ 6 callers
Function
buildScenarios
( prompts: PromptDef[], modeName: EvalScenario['modeName'], defaultCriteria: EvalCriteria, )
src/ai/eval/scenarios.ts:290
↓ 6 callers
Function
checkInbox
( params: CheckInboxParams, httpClient: HttpClient = http, auth: GoogleAuthDeps = defaultAuthDeps, )
src/integrations/google/tools.ts:284
↓ 6 callers
Function
clearConnecting
(key: string)
src/hooks/use-oauth-connect.ts:119
↓ 6 callers
Function
collectStream
(stream: ReadableStream<Uint8Array>)
backend/src/proxy/streaming.test.ts:12
↓ 6 callers
Function
convertUIMessageToDbChatMessage
( message: UIMessage, chatThreadId: string, parentId?: string | null, )
src/lib/utils.ts:35
↓ 6 callers
Function
countActiveDevices
(database: typeof DbType, userId: string)
backend/src/dal/devices.ts:76
↓ 6 callers
Function
createAutomation
( db: AnyDrizzleDatabase, data: Partial<Prompt> & Pick<Prompt, 'id' | 'prompt' | 'modelId'>, )
src/dal/prompts.ts:139
↓ 6 callers
Function
createCapturingHttpClient
( mockResponse: unknown = {}, )
src/api/encryption.test.ts:15
↓ 6 callers
Function
createIpTestApp
(database: typeof DbType, settings: IpRateLimitSettings)
backend/src/middleware/rate-limit.test.ts:35
↓ 6 callers
Function
createMcpServer
( db: AnyDrizzleDatabase, data: Partial<McpServer> & Pick<McpServer, 'id' | 'name'>, )
src/dal/mcp-servers.ts:46
↓ 6 callers
Function
createMockHttpClient
(apiKey = 'test-key')
src/lib/posthog.test.ts:41
↓ 6 callers
Function
createMockImageResponse
(contentType = 'image/png', size = 100)
backend/src/pro/link-preview.test.ts:520
↓ 6 callers
Function
createMockResponse
(body: string, options: ResponseInit = {})
backend/src/mcp-proxy/routes.test.ts:25
↓ 6 callers
Function
createReasoningGroupPart
( items: Array<{ type: 'reasoning' | 'tool'; content: ReasoningUIPart | ToolUIPart; id: string }>, )
src/components/chat/assistant-message.test.tsx:31
↓ 6 callers
Function
createSteps
(toolCallCount: number, otherCount = 0)
src/ai/step-logic.test.ts:69
↓ 6 callers
Function
createStubProfile
(overrides: Partial<ModelProfile> = {})
src/ai/prompt.test.ts:9
↓ 6 callers
Function
createTestThread
()
src/hooks/use-handle-integration-completion.test.ts:89
↓ 6 callers
Function
createTrigger
( db: AnyDrizzleDatabase, data: Partial<Trigger> & Pick<Trigger, 'id' | 'promptId' | 'isEnabled' | 'trigge
src/dal/triggers.ts:66
↓ 6 callers
Function
deleteMcpServer
(db: AnyDrizzleDatabase, id: string)
src/dal/mcp-servers.ts:36
↓ 6 callers
Function
denyDevice
(database: typeof DbType, deviceId: string, userId: string)
backend/src/dal/devices.ts:86
↓ 6 callers
Function
estimateTokensForMessages
(messages: ThunderboltUIMessage[])
src/ai/tokenizers.ts:29
↓ 6 callers
Method
fetchCredentials
* Fetch credentials (JWT token) from the backend. * Returns null if unable to get credentials (e.g., not authenticated or PowerSync not configured)
src/db/powersync/connector.ts:96
↓ 6 callers
Function
getDevice
(db: AnyDrizzleDatabase, deviceId: string)
src/dal/devices.ts:26
↓ 6 callers
Function
getDriveFileContent
( params: GetDriveFileContentParams, httpClient: HttpClient = http, auth: GoogleAuthDeps = defaultAuthDe
src/integrations/google/tools.ts:735
↓ 6 callers
Function
getSearchTool
(configs: ReturnType<typeof createConfigs>)
src/integrations/thunderbolt-pro/tools.test.ts:371
↓ 6 callers
Function
getTriggerPromptForThread
( db: AnyDrizzleDatabase, threadId: string, )
src/dal/prompts.ts:38
↓ 6 callers
Function
getWaitlistAutoApproveDomains
(settings: Settings)
backend/src/config/settings.ts:229
↓ 6 callers
Function
hasSetting
(db: AnyDrizzleDatabase, key: string)
src/dal/settings.ts:209
↓ 6 callers
Function
hashSecret
(secret: string)
backend/src/api/encryption.test.ts:118
↓ 6 callers
Function
insertCanary
( userId: string, canaryIv = 'iv-test', canaryCtext = 'ctext-test', canarySecretHash?: string,
backend/src/api/encryption.test.ts:127
↓ 6 callers
Function
isChatThreadDeleted
(db: AnyDrizzleDatabase, id: string)
src/dal/chat-threads.ts:17
↓ 6 callers
Function
isEncryptionEnabled
()
src/db/encryption/config.ts:9
↓ 6 callers
Function
isMobile
()
src/lib/platform.ts:59
↓ 6 callers
Function
isPostHogConfigured
()
backend/src/posthog/client.ts:59
↓ 6 callers
Function
isPosthogRequest
(url: string)
backend/src/test-utils/posthog.ts:10
↓ 6 callers
Function
logConfig
(container: string)
deploy/pulumi/src/services.ts:145
↓ 6 callers
Function
logoutViaSidebar
(page: Page, option: 'keep' | 'delete' = 'keep')
e2e/helpers.ts:40
↓ 6 callers
Function
makeSources
(name: string)
src/components/chat/markdown-utils.test.tsx:30
↓ 6 callers
Function
markDeviceTrusted
(database: typeof DbType, deviceId: string, userId: string)
backend/src/dal/devices.ts:60
↓ 6 callers
Function
openDB
()
src/crypto/key-storage.ts:21
↓ 6 callers
Function
parseFrontmatter
(raw: string)
web/src/loaders/repo-docs-loader.ts:93
↓ 6 callers
Function
renderFooter
()
src/ai/eval/ui.ts:129
↓ 6 callers
Function
renderStandalone
(ui: ReactElement)
src/components/chat/citation-badge.test.tsx:25
↓ 6 callers
Function
renderWithCitations
(content: string, citations: CitationMap)
src/components/chat/markdown-utils.test.tsx:270
↓ 6 callers
Function
sendMessages
(messages: Array<{ role: string; content: string }>)
backend/src/inference/routes.test.ts:402
↓ 6 callers
Function
unwrapCK
( wrappedBase64: string, ecdhPrivateKey: CryptoKey, mlkemSecretKey: Uint8Array, )
src/crypto/primitives.ts:197
↓ 6 callers
Function
useCurrentChatSession
()
src/chats/chat-store.ts:164
↓ 6 callers
Function
useSafeAreaInset
(deps: SafeAreaInsetDeps = defaultDeps)
src/hooks/use-safe-area-inset.ts:36
↓ 5 callers
Function
appendText
(text: string)
src/ai/middleware/tool-calls.ts:68
↓ 5 callers
Function
base64ToUint8Array
(base64: string)
src/crypto/primitives.ts:317
↓ 5 callers
Function
camelCased
(str: string)
src/lib/utils.ts:113
↓ 5 callers
Function
checkCalendar
( params: CheckCalendarParams, httpClient: HttpClient = http, auth: GoogleAuthDeps = defaultAuthDeps, )
src/integrations/google/tools.ts:565
↓ 5 callers
Function
clearInferenceClientCache
()
backend/src/inference/client.ts:201
↓ 5 callers
Function
clearLocalData
(options?: ClearLocalDataOptions)
src/lib/cleanup.ts:27
↓ 5 callers
Function
clearPostHogClient
()
backend/src/posthog/client.ts:67
↓ 5 callers
Function
createBetterAuthPlugin
(database: typeof DbType, ipRateLimit?: AnyElysia)
backend/src/auth/elysia-plugin.ts:32
↓ 5 callers
Function
createMockHttpClient
(responses: unknown[])
src/integrations/google/auth.test.ts:10
↓ 5 callers
Function
createMockHttpClient
(responses: unknown[])
src/integrations/microsoft/auth.test.ts:10
↓ 5 callers
Function
createMockTool
( state: ToolUIPart['state'], output?: unknown, toolCallId?: string, type = 'tool:search', )
src/components/chat/tool-item.stories.tsx:39
↓ 5 callers
Function
createPowerSyncRoutes
(auth: Auth, settings: Settings, database: typeof DbType)
backend/src/api/powersync.ts:136
↓ 5 callers
Function
createReasoningPart
(text: string)
src/components/chat/assistant-message.test.tsx:10
↓ 5 callers
Function
createTask
( db: AnyDrizzleDatabase, data: Pick<Task, 'id' | 'item' | 'order' | 'isComplete'>, )
src/dal/tasks.ts:92
↓ 5 callers
Function
createTestMessage
(overrides?: Partial<ThunderboltUIMessage>)
src/chats/use-hydrate-chat-store.test.tsx:122
↓ 5 callers
Function
createTestMessages
(threadId: string, messages: ThunderboltUIMessage[])
src/hooks/use-handle-integration-completion.test.ts:105
↓ 5 callers
Function
createWaitlistEntry
( database: typeof DbType, entry: { id: string; email: string; status: 'pending' | 'approved' }, )
backend/src/dal/waitlist.ts:19
↓ 5 callers
Function
deleteAllChatThreads
(db: AnyDrizzleDatabase)
src/dal/chat-threads.ts:145
↓ 5 callers
Function
deleteTask
(db: AnyDrizzleDatabase, id: string)
src/dal/tasks.ts:70
↓ 5 callers
Function
deleteTriggersForPrompts
(db: AnyDrizzleDatabase, promptIds: string[])
src/dal/triggers.ts:52
↓ 5 callers
Method
disconnect
()
src/content-view/use-sidebar-webview.test.ts:17
↓ 5 callers
Function
errorHtml
(message: string)
backend/src/auth/sso-desktop-callback.ts:27
↓ 5 callers
Function
exportPublicKey
(publicKey: CryptoKey)
src/crypto/primitives.ts:32
← previous
next →
301–400 of 1,802, ranked by callers