Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Datakitpage/Datakit
/ functions
Functions
1,611 in github.com/Datakitpage/Datakit
⨍
Functions
1,611
◇
Types & classes
664
↳
Endpoints
2
↓ 161 callers
Method
get
(endpoint: string, options?: RequestOptions)
frontend/src/lib/api/apiClient.ts:140
↓ 159 callers
Method
get
* Gets a value from cache
backend/api/src/postgres-proxy/utils/cache.util.ts:59
↓ 153 callers
Function
escapeColumnName
(columnName: string)
frontend/src/lib/duckdb/inspector/utils/filtering.ts:52
↓ 140 callers
Method
set
* Sets a value in cache
backend/api/src/postgres-proxy/utils/cache.util.ts:92
↓ 120 callers
Method
has
* Checks if a key exists in cache (without updating access stats)
backend/api/src/postgres-proxy/utils/cache.util.ts:112
↓ 100 callers
Function
cn
(...inputs: ClassValue[])
frontend/src/lib/utils.ts:4
↓ 67 callers
Function
safeToNumber
(value: any, defaultValue: number = 0)
frontend/src/lib/duckdb/inspector/utils/bigint.ts:58
↓ 48 callers
Function
fetch
(request, env, ctx)
backend/feedback-api/src/index.ts:11
↓ 48 callers
Method
post
( endpoint: string, data?: any, options?: RequestOptions )
frontend/src/lib/api/apiClient.ts:144
↓ 43 callers
Method
delete
(endpoint: string, options?: RequestOptions)
frontend/src/lib/api/apiClient.ts:180
↓ 41 callers
Method
canActivate
(context: ExecutionContext)
backend/api/src/auth/guards/test/jwt-auth.guard.spec.ts:11
↓ 36 callers
Function
isOriginAllowed
( origin: string, allowedOrigins: string[], )
backend/api/src/utils/cors.utils.ts:21
↓ 33 callers
Function
processDuckDBResult
(data: any[])
frontend/src/lib/duckdb/inspector/utils/bigint.ts:27
↓ 32 callers
Method
executeQuery
(connectionId: string, query: QueryRequest)
frontend/src/lib/api/postgresService.ts:153
↓ 23 callers
Method
generateUniqueEmail
* Generate test data with unique identifiers
backend/integration_tests/utils/test-helpers.ts:200
↓ 22 callers
Method
create
(email: string, password: string, name?: string)
backend/api/src/users/users.service.ts:18
↓ 20 callers
Method
findOne
(id: string)
backend/api/src/users/users.service.ts:40
↓ 19 callers
Method
analyzeQuery
* Analyze a SQL query and determine the best execution target
frontend/src/lib/duckdb/utils/queryRouter.ts:52
↓ 19 callers
Method
validate
(payload: JwtPayload)
backend/api/src/auth/strategies/jwt.strategy.ts:39
↓ 18 callers
Method
createAuthenticatedUser
* Create a user and return auth tokens
backend/integration_tests/utils/test-helpers.ts:10
↓ 18 callers
Function
useAuth
()
frontend/src/hooks/auth/useAuth.ts:3
↓ 17 callers
Method
canActivate
(context: ExecutionContext)
backend/api/src/auth/guards/test/local-auth.guard.spec.ts:11
↓ 17 callers
Function
selectActiveFile
(state: AppState)
frontend/src/store/selectors/appSelectors.ts:27
↓ 16 callers
Method
calculateCredits
( modelId: string, inputTokens: number, outputTokens: number, )
backend/api/src/credits/credits.service.ts:40
↓ 16 callers
Method
checkCredits
( userId: string, estimatedCredits: number, )
backend/api/src/credits/credits.service.ts:51
↓ 16 callers
Function
downloadFile
(content: string, fileName: string, mimeType: string)
frontend/src/components/tabs/preview/inspector/utils/exportUtils.ts:9
↓ 16 callers
Method
login
(user: any, ipAddress?: string, userAgent?: string)
backend/api/src/auth/auth.service.ts:39
↓ 15 callers
Method
encryptPassword
* Encrypts a password using AES-256-CBC with optional key derivation
backend/api/src/postgres-proxy/utils/security.util.ts:26
↓ 14 callers
Method
decryptPassword
* Decrypts a password
backend/api/src/postgres-proxy/utils/security.util.ts:70
↓ 13 callers
Method
findByEmail
(email: string)
backend/api/src/users/users.service.ts:53
↓ 13 callers
Method
getRemainingCredits
(userId: string)
backend/api/src/credits/credits.service.ts:180
↓ 13 callers
Method
update
(id: string, updateData: Partial<User>)
backend/api/src/users/users.service.ts:60
↓ 12 callers
Method
chatCompletions
( @Request() req, @Body() body: AIRequest, @Res({ passthrough: false }) res: Response, )
backend/api/src/ai/ai.controller.ts:59
↓ 12 callers
Method
findOne
(id: string, userId: string)
backend/api/src/workspaces/workspaces.service.ts:66
↓ 12 callers
Method
getDownloadedModels
()
frontend/src/lib/ai/modelManager.ts:127
↓ 12 callers
Method
processAnthropicStream
( anthropicResponse: any, res: Response, context: StreamingContext, )
backend/api/src/ai/streaming.service.ts:43
↓ 11 callers
Function
createId
()
frontend/src/store/pythonStore.ts:136
↓ 11 callers
Function
rebuildTree
(nodeMap: Map<string, FolderNode>)
frontend/src/store/folderStore.ts:54
↓ 11 callers
Method
useCredits
(userId: string, amount: number)
backend/api/src/subscriptions/subscriptions.service.ts:86
↓ 11 callers
Method
validatePassword
(password: string)
backend/api/src/auth/validators/password.validator.ts:40
↓ 11 callers
Method
validateRefreshToken
(token: string)
backend/api/src/auth/refresh-token.service.ts:53
↓ 10 callers
Function
createMockStream
(chunks: string[])
backend/api/src/ai/test/streaming.service.spec.ts:134
↓ 10 callers
Function
executePaginatedQuery
( { sql, page, pageSize, applyPagination = true, countTotalRows = true, }: PaginatedQu
frontend/src/lib/duckdb/query.ts:22
↓ 10 callers
Method
executeQuery
( userId: string, connectionId: string, queryDto: ExecuteQueryDto, )
backend/api/src/postgres-proxy/postgres-proxy.service.ts:393
↓ 9 callers
Method
abort
* Abort reading the stream
frontend/src/lib/streamReader.ts:186
↓ 9 callers
Method
authenticatedGet
* Make an authenticated GET request
backend/integration_tests/utils/test-helpers.ts:78
↓ 9 callers
Method
clear
* Clears all cache entries
backend/api/src/postgres-proxy/utils/cache.util.ts:144
↓ 9 callers
Method
delete
* Deletes a specific key from cache
backend/api/src/postgres-proxy/utils/cache.util.ts:120
↓ 9 callers
Method
formatFileSize
* Format file size for display
frontend/src/lib/data/dataProcessingUtil.ts:163
↓ 9 callers
Method
generateRefreshToken
( userId: string, ipAddress?: string, userAgent?: string, )
backend/api/src/auth/refresh-token.service.ts:18
↓ 9 callers
Function
insertMarkdownFormat
(format: string)
frontend/src/components/tabs/notebooks/PythonCell.tsx:115
↓ 9 callers
Method
makeRequest
(endpoint: string, options: SafeRequestOptions = {})
frontend/src/lib/ai/providers/safeApiProvider.ts:32
↓ 8 callers
Method
expectUnauthorized
* Expect an unauthorized error response
backend/integration_tests/utils/test-helpers.ts:245
↓ 8 callers
Method
findByUserId
(userId: string)
backend/api/src/subscriptions/subscriptions.service.ts:55
↓ 8 callers
Method
generateCompletion
( userId: string, request: AIRequest, )
backend/api/src/ai/ai.service.ts:80
↓ 8 callers
Function
getNumericFilterClauseFallback
(columnName: string)
frontend/src/lib/duckdb/inspector/utils/filtering.ts:42
↓ 8 callers
Method
getStats
* Gets cache statistics
backend/api/src/postgres-proxy/utils/cache.util.ts:153
↓ 8 callers
Method
refreshAccessToken
( refreshToken: string, ipAddress?: string, userAgent?: string, )
backend/api/src/auth/auth.service.ts:114
↓ 8 callers
Method
signup
(signupDto: SignupDto, ipAddress?: string, userAgent?: string)
backend/api/src/auth/auth.service.ts:68
↓ 8 callers
Function
useNotifications
()
frontend/src/hooks/useNotifications.tsx:105
↓ 8 callers
Method
validateSQLSecurity
* Validates SQL query for security risks
backend/api/src/postgres-proxy/utils/security.util.ts:112
↓ 7 callers
Method
buildConnectionString
* Builds a safe PostgreSQL connection string
backend/api/src/postgres-proxy/utils/database.util.ts:230
↓ 7 callers
Method
checkChatCompletions
(@Request() req, @Body() body: AIRequest)
backend/api/src/ai/ai.controller.ts:27
↓ 7 callers
Method
checkPasswordStrength
* Check password strength without personal information validation
backend/api/src/auth/services/password.service.ts:15
↓ 7 callers
Method
createActiveSubscription
(planType: 'FREE' | 'STARTER' | 'PRO' | 'ENTERPRISE', userId: string)
backend/integration_tests/fixtures/subscription.fixtures.ts:88
↓ 7 callers
Method
createCreditUsageData
(overrides: Partial<CreateCreditUsageData> = {})
backend/integration_tests/fixtures/credit.fixtures.ts:15
↓ 7 callers
Method
createRefreshTokenData
(overrides: Partial<CreateRefreshTokenData> = {})
backend/integration_tests/fixtures/auth.fixtures.ts:30
↓ 7 callers
Function
createSystemPrompt
(context: AIContextData)
frontend/src/lib/ai/prompts/sqlPrompts.ts:257
↓ 7 callers
Method
estimateCredits
( modelId: string, inputTokens: number, outputTokens: number = 1000, // Default estimated output
backend/api/src/credits/credits.service.ts:172
↓ 7 callers
Method
generateUniquePassword
()
backend/integration_tests/utils/test-helpers.ts:210
↓ 7 callers
Method
getConnection
( userId: string, connectionId: string, )
backend/api/src/postgres-proxy/postgres-proxy.service.ts:340
↓ 7 callers
Method
getTableSchema
( userId: string, connectionId: string, schemaName: string, tableName: string, )
backend/api/src/postgres-proxy/postgres-proxy.service.ts:830
↓ 7 callers
Function
getTextFilterClause
(columnName: string, excludeEmpty: boolean = false)
frontend/src/lib/duckdb/inspector/utils/filtering.ts:75
↓ 7 callers
Function
hasApiKey
(provider: AIProvider | 'datakit')
frontend/src/components/tabs/ai/ModelSelector.tsx:132
↓ 7 callers
Method
rotateRefreshToken
( oldToken: string, ipAddress?: string, userAgent?: string, )
backend/api/src/auth/refresh-token.service.ts:103
↓ 7 callers
Method
testMethod
(arg1: string, arg2: string)
backend/api/src/postgres-proxy/utils/cache.util.spec.ts:348
↓ 7 callers
Function
toggleTable
(tableId: string)
frontend/src/components/tabs/query/SchemaBrowser.tsx:389
↓ 6 callers
Method
attachPostgreSQLDatabase
* Safely attaches a PostgreSQL database to DuckDB
backend/api/src/postgres-proxy/utils/database.util.ts:73
↓ 6 callers
Method
cleanDatabase
()
backend/integration_tests/setup/database-utils.ts:41
↓ 6 callers
Function
createDataAnalysisPrompt
( userPrompt: string, context: AIContextData, dataPreview?: any[] )
frontend/src/lib/ai/prompts/sqlPrompts.ts:411
↓ 6 callers
Function
createSQLPrompt
( userPrompt: string, context: AIContextData, options?: { includeExplanation?: boolean; maxRows?
frontend/src/lib/ai/prompts/sqlPrompts.ts:368
↓ 6 callers
Method
createWorkspaceData
(overrides: Partial<CreateWorkspaceData> = {})
backend/integration_tests/fixtures/workspace.fixtures.ts:19
↓ 6 callers
Method
findByWorkspaceId
(workspaceId: string)
backend/api/src/subscriptions/subscriptions.service.ts:114
↓ 6 callers
Method
getApiHeaders
()
frontend/src/lib/ai/providers/datakit.ts:48
↓ 6 callers
Method
getCreditsRemaining
(userId: string)
backend/api/src/subscriptions/subscriptions.service.ts:103
↓ 6 callers
Function
getNumericFilterClause
( columnName: string, config: NumericFilterConfig = { useRegexFilter: true, includeInfinite: false } )
frontend/src/lib/duckdb/inspector/utils/filtering.ts:15
↓ 6 callers
Function
getProviderColorClass
( provider: AIProvider, type: 'bg' | 'border' | 'text' )
frontend/src/components/tabs/ai/ApiKeyModal.tsx:159
↓ 6 callers
Method
getStrengthDescription
* Generate password strength score description
backend/api/src/auth/services/password.service.ts:118
↓ 6 callers
Function
handleCORSError
(error: Error)
frontend/src/lib/ai/providers/safeApiProvider.ts:123
↓ 6 callers
Method
initializeDatabase
()
backend/integration_tests/setup/database-utils.ts:12
↓ 6 callers
Method
logout
(refreshToken: string)
backend/api/src/auth/auth.service.ts:164
↓ 6 callers
Function
parseAllowedOrigins
( originsString: string | undefined, defaultOrigins: string[] = [], )
backend/api/src/utils/cors.utils.ts:96
↓ 6 callers
Function
parseDatasetId
(input: string)
frontend/src/hooks/remote/huggingface/api.ts:151
↓ 6 callers
Method
queueRequest
( model: string, body: any, apiCall: () => Promise<any>, )
backend/api/src/ai/queue/rate-limiter.service.ts:36
↓ 6 callers
Method
refresh
(@Request() req, @Response() res)
backend/api/src/auth/auth.controller.ts:135
↓ 6 callers
Method
request
( endpoint: string, options: RequestOptions = {} )
frontend/src/lib/api/apiClient.ts:104
↓ 6 callers
Method
stream
( endpoint: string, data?: any, options?: RequestOptions )
frontend/src/lib/api/apiClient.ts:185
↓ 6 callers
Method
validateConnectionConfig
* Validates a connection configuration
backend/api/src/postgres-proxy/utils/database.util.ts:254
↓ 6 callers
Method
writeSSEData
(res: Response, data: any)
backend/api/src/ai/streaming.service.ts:29
↓ 5 callers
Method
attachPostgresDatabase
( db: duckdb.Database, connection: PostgresConnection, decryptedPassword: string, connectionId
backend/api/src/postgres-proxy/postgres-proxy.service.ts:117
next →
1–100 of 1,611, ranked by callers