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
↓ 674 callers
Function
getDb
()
src/db/database.ts:127
↓ 210 callers
Function
getClock
()
src/testing-library.ts:136
↓ 200 callers
Function
cn
(...inputs: ClassValue[])
src/lib/utils.ts:18
↓ 112 callers
Function
createTestProvider
(options?: TestProviderOptions)
src/test-utils/test-provider.tsx:51
↓ 75 callers
Function
updateSettings
( db: AnyDrizzleDatabase, settings: Record<string, any>, // eslint-disable-line @typescript-eslint/no-expl
src/dal/settings.ts:263
↓ 72 callers
Function
createQueryTestWrapper
(options?: { defaultOptions?: { queries?: { retry?: boolean | number gcTime?: number s
src/test-utils/react-query.tsx:17
↓ 66 callers
Function
parseContentParts
(rawText: string)
src/ai/widget-parser.ts:126
↓ 62 callers
Function
insertDevice
( id: string, userId: string, options: { trusted?: boolean approvalPending?: boolean
backend/src/api/encryption.test.ts:73
↓ 60 callers
Function
hydrateStore
(state: { chatInstance: Chat<ThunderboltUIMessage> | null chatThread: ChatThread | null id: string mcp
src/test-utils/chat-store-mocks.ts:186
↓ 60 callers
Function
setupTestDatabase
()
src/dal/test-utils.ts:21
↓ 59 callers
Function
teardownTestDatabase
()
src/dal/test-utils.ts:41
↓ 56 callers
Function
renderComponent
(props = {}, locationState: unknown = null)
src/components/onboarding/onboarding-auth-step.test.tsx:63
↓ 54 callers
Function
getSettings
()
backend/src/config/settings.ts:174
↓ 52 callers
Method
exec
* Execute SQL statement
src/db/wa-sqlite-worker-client.ts:141
↓ 52 callers
Function
trackEvent
(eventName: EventType, properties?: Record<string, unknown>)
src/lib/posthog.tsx:207
↓ 50 callers
Function
createMockChatInstance
( messages: ThunderboltUIMessage[] = [], status: 'ready' | 'streaming' = 'ready', )
src/test-utils/chat-store-mocks.ts:64
↓ 48 callers
Function
createUserAndSession
(userId: string, token: string, email = `${userId}@test.com`)
backend/src/api/encryption.test.ts:54
↓ 46 callers
Function
resetTestDatabase
()
src/dal/test-utils.ts:59
↓ 45 callers
Method
close
* Close the database connection.
src/db/database.ts:92
↓ 45 callers
Function
signToken
(token: string)
backend/src/api/encryption.test.ts:19
↓ 42 callers
Function
cleanup
()
src/lib/oauth-callback.ts:15
↓ 42 callers
Function
getSettings
( db: AnyDrizzleDatabase, schema: T, options: { camelCase?: boolean } = {}, )
src/dal/settings.ts:135
↓ 41 callers
Function
createMockUseChat
(chatInstance: Chat<ThunderboltUIMessage>, error?: Error)
src/test-utils/chat-store-mocks.ts:91
↓ 41 callers
Function
renderComponent
()
src/components/onboarding/onboarding-name-step.test.tsx:44
↓ 41 callers
Function
resolveCountryCode
(countryInput: string)
backend/src/utils/country.ts:13
↓ 38 callers
Function
deserializeValue
( value: string | null | undefined, typeHint?: StringConstructor | BooleanConstructor | NumberConstructor,
src/lib/serialization.ts:82
↓ 38 callers
Function
timestamp
()
src/ai/eval/report.ts:22
↓ 37 callers
Function
generateCK
(extractable = false)
src/crypto/primitives.ts:79
↓ 35 callers
Function
isTauri
()
src/lib/platform.ts:28
↓ 35 callers
Function
reconcileDefaultsForTable
( db: AnyDrizzleDatabase, table: SQLiteTableWithColumns<any>, defaults: readonly T[], hashFn: (item: a
src/lib/reconcile-defaults.ts:26
↓ 34 callers
Function
createMockHttpClient
(responses: unknown[] = [])
src/integrations/google/tools.test.ts:42
↓ 34 callers
Function
signToken
(token: string)
backend/src/api/powersync.test.ts:20
↓ 32 callers
Function
useOnboardingState
()
src/hooks/use-onboarding-state.ts:196
↓ 31 callers
Function
createMockHtmlResponse
(html: string, options: ResponseInit = {})
backend/src/pro/link-preview.test.ts:25
↓ 29 callers
Function
useSettings
( schema: T, options: { camelCase?: boolean } = {}, )
src/hooks/use-settings.ts:161
↓ 28 callers
Function
decodeCitationSources
(sourcesStr: string)
src/lib/citation-utils.ts:28
↓ 27 callers
Function
createMessageMetadata
(modelId: string, sourceCollector?: SourceMetadata[])
src/ai/message-metadata.ts:24
↓ 27 callers
Function
insertEnvelope
(deviceId: string, userId: string, wrappedCk = 'wrapped-ck')
backend/src/api/encryption.test.ts:107
↓ 27 callers
Function
insertTrustedDevice
(deviceId: string, userId: string)
backend/src/api/powersync.test.ts:94
↓ 27 callers
Function
renderComponent
(onFormDirtyChange?: (isDirty: boolean) => void)
src/components/onboarding/onboarding-location-step.test.tsx:40
↓ 27 callers
Function
renderComponent
(props = {})
src/components/onboarding/onboarding-action-buttons.test.tsx:27
↓ 27 callers
Function
transformDriveQuery
(query: string)
src/integrations/google/utils.ts:209
↓ 26 callers
Function
clearSettingsCache
()
backend/src/config/settings.ts:184
↓ 26 callers
Function
isInsertConflictError
(error: unknown)
src/lib/sqlite-errors.ts:19
↓ 26 callers
Function
serializeValue
(value: any)
src/lib/serialization.ts:55
↓ 25 callers
Function
clearNullableColumns
(table: T)
src/lib/utils.ts:327
↓ 25 callers
Function
createClient
(config: HttpClientConfig = {})
src/lib/http.ts:90
↓ 25 callers
Function
uploadHeaders
(bearer: string, deviceId = 'test-device-id')
backend/src/api/powersync.test.ts:87
↓ 25 callers
Function
useChatScrollHandler
({ useAutoScroll = useAutoScroll_default, useChat = useChat_default, useCurrentChatSession = useCurrentC
src/chats/use-chat-scroll-handler.ts:25
↓ 24 callers
Function
buildSourceCitationPlaceholders
( text: string, sources: SourceMetadata[], startKey = 0, )
src/components/chat/text-part.tsx:64
↓ 24 callers
Function
hashValues
(values: (string | number | null | undefined)[])
src/lib/utils.ts:219
↓ 24 callers
Function
renderModal
( props: Partial<{ open: boolean; onOpenChange: (open: boolean) => void }> = {}, httpClient?: HttpClie
src/components/sign-in-modal.test.tsx:96
↓ 24 callers
Function
resolve
({ status, request: { headers } })
backend/src/auth/elysia-plugin.ts:16
↓ 24 callers
Function
useDatabase
()
src/contexts/database-context.tsx:20
↓ 23 callers
Function
getAuthToken
()
src/lib/auth-token.ts:28
↓ 23 callers
Function
hashSetting
(setting: Setting)
src/defaults/settings.ts:14
↓ 23 callers
Function
insertApprovedWaitlist
(email: string)
backend/src/auth/otp-security.test.ts:58
↓ 23 callers
Function
isSettingModified
(setting: Setting | undefined)
src/defaults/utils.ts:35
↓ 23 callers
Function
useAutoScroll
({ dependencies = [], smooth = true, isStreaming = false, rootMargin = '0px', }: UseAutoScrollOptions
src/hooks/use-auto-scroll.tsx:46
↓ 22 callers
Function
getModel
(db: AnyDrizzleDatabase, id: string)
src/dal/models.ts:73
↓ 22 callers
Method
searchLocations
* Search for locations by name
backend/src/pro/weather.ts:115
↓ 21 callers
Function
createAuth
(database: typeof DbType)
backend/src/auth/auth.ts:105
↓ 21 callers
Function
createMockToolPart
( toolName: string, state: ToolUIPart['state'] = 'output-available', duration?: number, )
src/components/chat/reasoning-group.test.tsx:32
↓ 21 callers
Function
createToolPart
(state: ToolUIPart['state'], toolName = 'search')
src/components/chat/assistant-message.test.tsx:22
↓ 21 callers
Function
makeLinkPreview
(url: string)
src/components/chat/text-part.test.ts:231
↓ 21 callers
Function
mountMessageParts
( groupedParts: GroupedUIPart[], isStreaming: boolean, messageId: string, reasoningTime: Record<string
src/components/chat/assistant-message.tsx:41
↓ 21 callers
Function
nowIso
()
src/lib/utils.ts:170
↓ 21 callers
Function
renderModal
(props: Partial<{ open: boolean; onOpenChange: (open: boolean) => void }> = {})
src/components/logout-modal.test.tsx:64
↓ 21 callers
Function
waitForModal
()
src/components/sign-in-modal.test.tsx:109
↓ 20 callers
Function
createHandleError
(code: HandleErrorCode, message: string, originalError?: unknown)
src/lib/error-utils.ts:34
↓ 20 callers
Function
createTestDb
()
backend/src/test-utils/db.ts:73
↓ 20 callers
Function
getDeviceById
(database: typeof DbType, deviceId: string)
backend/src/dal/devices.ts:10
↓ 20 callers
Function
requestWithIp
(ip: string)
backend/src/middleware/rate-limit.test.ts:39
↓ 20 callers
Function
setAuthToken
(token: string)
src/lib/auth-token.ts:31
↓ 20 callers
Function
validateSafeUrl
(url: string)
backend/src/utils/url-validation.ts:47
↓ 19 callers
Function
createMockAuthClient
(options: MockAuthClientOptions = {})
src/test-utils/auth-client.ts:29
↓ 19 callers
Function
createMockChatThread
(overrides?: Partial<ChatThread>)
src/test-utils/chat-store-mocks.ts:43
↓ 19 callers
Function
createMockTool
( state: ToolUIPart['state'], output?: unknown, toolCallId?: string, type = 'tool:search', )
src/components/chat/tool-group.stories.tsx:39
↓ 19 callers
Function
createSetting
(db: AnyDrizzleDatabase, key: string, value: string | null)
src/dal/settings.ts:223
↓ 19 callers
Function
formatNumber
(num: number)
src/lib/utils.ts:195
↓ 19 callers
Function
getChatThread
(db: AnyDrizzleDatabase, id: string)
src/dal/chat-threads.ts:41
↓ 19 callers
Function
reducer
(state: SyncSetupState, action: SyncSetupAction)
src/hooks/use-sync-setup.ts:65
↓ 19 callers
Function
splitPartType
(type: string)
src/lib/utils.ts:207
↓ 18 callers
Function
getIncompleteTasks
(db: AnyDrizzleDatabase, searchQuery?: string)
src/dal/tasks.ts:25
↓ 18 callers
Function
hashPrompt
(prompt: Prompt)
src/defaults/automations.ts:13
↓ 18 callers
Function
renderComponent
(email?: string, otp?: string)
src/components/magic-link-verify.test.tsx:53
↓ 18 callers
Function
renderWithReactivity
( ui: ReactElement, options: RenderWithReactivityOptions = {}, )
src/test-utils/powersync-reactivity-test.tsx:59
↓ 18 callers
Function
resetStore
()
src/test-utils/chat-store-mocks.ts:240
↓ 18 callers
Function
set
(field: FormField)
web/src/components/marketing/sections/contact-page.tsx:58
↓ 18 callers
Function
useAuthGate
(require: AuthRequirement)
src/components/auth-gate/use-auth-gate.ts:24
↓ 18 callers
Function
useIsMobile
()
src/hooks/use-mobile.ts:18
↓ 18 callers
Function
waitForElement
(getElement: () => HTMLElement | null, timeoutMs = 2000)
src/test-utils/powersync-reactivity-test.tsx:14
↓ 17 callers
Function
convertTemperature
(temp: number, sourceUnit: 'c' | 'f', targetUnit: 'c' | 'f')
src/widgets/weather-forecast/lib.ts:211
↓ 17 callers
Function
extractFaviconUrl
(toolName: string, output: unknown)
src/components/chat/tool-icon.tsx:28
↓ 17 callers
Function
hashModel
(model: Model)
src/defaults/models.ts:12
↓ 17 callers
Function
hashModelProfile
(profile: ModelProfile)
src/defaults/model-profiles/index.ts:20
↓ 17 callers
Function
renderComponent
()
src/components/onboarding/onboarding-celebration-step.test.tsx:26
↓ 17 callers
Function
revokeRequest
( deviceId: string, token: string, opts?: { callerDeviceId?: string; canarySecret?: string; omitDe
backend/src/api/account.test.ts:114
↓ 17 callers
Function
useExternalLinkDialog
()
src/hooks/use-external-link-dialog.ts:67
↓ 17 callers
Function
waitForStateChange
()
src/components/magic-link-verify.test.tsx:101
next →
1–100 of 1,802, ranked by callers