MCPcopy Create free account

hub / github.com/blockmatic/basilic / functions

Functions1,050 in github.com/blockmatic/basilic

↓ 298 callersFunctioncn
(...inputs: ClassValue[])
packages/ui/src/lib/utils.ts:4
↓ 68 callersFunctiongetDb
()
apps/api/src/db/index.ts:17
↓ 43 callersFunctionhashToken
(token: string)
apps/api/src/lib/jwt.ts:26
↓ 27 callersFunctionuseReactApiConfig
()
packages/react/src/context.tsx:29
↓ 24 callersFunctiongetOrCreateSession
( app: TestApp, email: string, options?: { clearBefore?: boolean }, )
apps/api/test/utils/auth-helper.ts:10
↓ 23 callersMethodupdate
( id: number | Interceptor, fn: Interceptor, )
packages/core/src/gen/client/utils.gen.ts:278
↓ 22 callersMethodclear
()
apps/api/test/utils/fake-email.ts:66
↓ 21 callersMethodextractToken
Extract token from email. Prefer URL params (?token=, ?verificationId=) then regex fallbacks.
apps/api/test/utils/fake-email.ts:113
↓ 17 callersFunctiongetOAuthAllowedCallbackUrls
(opts: { urls?: string[] singleUrl?: string })
apps/api/src/lib/oauth-shared.ts:32
↓ 17 callersFunctionisAllowedUrl
(url: string)
apps/api/src/lib/url.ts:8
↓ 14 callersFunctioncreateClient
(options: CoreClientOptions)
packages/core/src/client.ts:192
↓ 14 callersFunctiondecrypt
(ciphertext: string)
apps/api/src/lib/crypto.ts:75
↓ 14 callersFunctionencrypt
(plaintext: string)
apps/api/src/lib/crypto.ts:45
↓ 14 callersFunctionencryptAccountTokens
(account: T)
apps/api/src/db/account.ts:18
↓ 13 callersFunctioninitErrorReporting
(options: InitErrorReportingOptions)
packages/error/src/nextjs/sentry.ts:26
↓ 12 callersFunctioncleanupGroupDatabase
()
apps/api/test/utils/db-setup.ts:108
↓ 12 callersMethodlast
()
apps/api/test/utils/fake-email.ts:58
↓ 12 callersFunctionsetupGroupDatabase
()
apps/api/test/utils/db-setup.ts:58
↓ 11 callersFunctionbuildTestApp
()
apps/api/test/utils/fastify.ts:8
↓ 11 callersFunctionsetAuthCookiesOnResponse
( response: { cookies: { set: (name: string, value: string, opts?: object) => void } }, { token, refreshTo
apps/web/lib/auth/auth-server.ts:26
↓ 10 callersMethodcreate
Creates a notification of the specified type.
packages/notif/src/index.ts:264
↓ 10 callersFunctiongetEmailInlineStyles
(mode: 'light' | 'dark' = 'light')
packages/email/components/theme.tsx:240
↓ 10 callersFunctiongetEmailThemeClasses
()
packages/email/components/theme.tsx:219
↓ 9 callersMethodall
()
apps/api/test/utils/fake-email.ts:62
↓ 9 callersFunctionextractTokens
(response: unknown)
apps/web/lib/auth/callback-utils.ts:3
↓ 9 callersFunctiongenerateToken
()
apps/api/src/lib/jwt.ts:30
↓ 9 callersFunctionmakeMethodFn
(method: Uppercase<HttpMethod>)
packages/core/src/gen/client/client.gen.ts:256
↓ 9 callersFunctionmakeSseFn
(method: Uppercase<HttpMethod>)
packages/core/src/gen/client/client.gen.ts:260
↓ 9 callersFunctionparseAuthCookie
(value: string | undefined)
apps/web/lib/auth/parse-auth-cookie.ts:3
↓ 9 callersFunctionresolveOAuthCallbackUrl
(opts: { allowedUrls: string[] requestedRedirectUri?: string })
apps/api/src/lib/oauth-shared.ts:18
↓ 8 callersFunctionappendCodeToCallbackUrl
(callbackUrl: string, code: string)
apps/api/src/lib/url.ts:50
↓ 8 callersFunctioncreateSessionAndIssueTokens
({ fastify, db, userId, wallet, }: { fastify: FastifyInstance db: DbForSession userId: string
apps/api/src/lib/session.ts:15
↓ 8 callersFunctiongetApiKeyToken
(app: TestApp, email: string)
apps/api/test/utils/auth-helper.ts:93
↓ 8 callersFunctiongetClientConfig
(client: unknown)
packages/core/src/client.ts:23
↓ 8 callersFunctionparseApiKey
(token: string)
apps/api/src/lib/api-keys.ts:14
↓ 8 callersFunctionskipIfInsufficientCredits
( res: { statusCode: number; body: string }, name: string, )
apps/api/test/utils/ai-remote.ts:13
↓ 8 callersFunctionskipIfProviderUnavailable
( res: ResponseLike, name: string, opts?: { expectStream?: boolean }, )
apps/api/test/utils/ai-remote.ts:38
↓ 7 callersFunctionbuildSiwsMessage
({ domain, address, nonce, uri = 'https://localhost', }: { domain: string address: string nonce:
apps/api/src/routes/auth/web3/solana/verify.test.ts:7
↓ 7 callersFunctioncreateAccessTokenPayload
({ userId, sessionId, wallet, }: { userId: string sessionId: string wallet?: { chain: string; addr
apps/api/src/lib/jwt.ts:43
↓ 7 callersFunctioncreateRefreshTokenPayload
({ userId, sessionId, jti, }: { userId: string sessionId: string jti: string })
apps/api/src/lib/jwt.ts:62
↓ 7 callersFunctiongenerateJti
()
apps/api/src/lib/jwt.ts:39
↓ 7 callersFunctiongetAuthErrorMessage
(errorCode: string | undefined)
apps/web/lib/auth/auth-error-messages.ts:76
↓ 7 callersFunctiongetMagicLinkTokenRaw
(app: TestApp, email = 'test@test.ai')
apps/api/test/utils/auth-helper.ts:44
↓ 6 callersFunctioncreateAuthenticatedUser
( app: TestApp, overrides?: { email?: string }, )
apps/api/test/utils/auth-helper.ts:108
↓ 6 callersFunctionlogSecurityEvent
( request: FastifyRequest, event: string, details?: Record<string, unknown>, )
apps/api/src/lib/security.ts:6
↓ 6 callersFunctionuseColorScheme
()
apps/mobile/src/hooks/use-color-scheme.web.ts:7
↓ 6 callersFunctionuseTheme
()
apps/mobile/src/hooks/use-theme.ts:9
↓ 6 callersFunctionuseUser
( options?: Partial<Omit<UseQueryOptions<GetUserResponse, Error>, 'queryFn'>>, )
packages/react/src/hooks/use-user.ts:26
↓ 5 callersFunctioncheckToolExists
(toolName, checkCommand)
scripts/setup-database.mjs:70
↓ 5 callersMethodextractMagicLink
(email?: Email)
apps/api/test/utils/fake-email.ts:70
↓ 5 callersFunctionrender
(component: ReactNode)
packages/email/render.ts:60
↓ 4 callersFunctionemit
(kind: Exclude<LogLevel, 'silent'>, data?: unknown, msg?: string)
packages/utils/src/logger/client.ts:32
↓ 4 callersFunctionfindOrCreateUserByEmail
( db: Db, input: { email: string; name: string; emailVerified: boolean }, )
apps/api/src/lib/oauth-user.ts:13
↓ 4 callersFunctiongenerateApiKey
()
apps/api/src/lib/api-keys.ts:6
↓ 4 callersFunctiongetChainMetadata
(chainId: number | string)
packages/utils/src/web3/index.ts:206
↓ 4 callersFunctiongetOAuthRedirectTarget
(response: unknown, fallback = '/')
apps/web/lib/auth/callback-utils.ts:9
↓ 4 callersFunctiongetPlatform
()
scripts/setup-database.mjs:98
↓ 4 callersFunctiongetTestDatabase
()
apps/api/test/utils/db.ts:65
↓ 4 callersFunctiongetTrustedClientIp
(request: FastifyRequest)
apps/api/src/lib/request.ts:7
↓ 4 callersFunctiongetWebAuthnOriginFromRequest
(originHeader: string | undefined)
apps/api/src/lib/passkey.ts:7
↓ 4 callersFunctionhasRedirectConfig
(opts: { urls?: string[] singleUrl?: string clientId?: string clientSecret?: string })
apps/api/src/routes/auth/oauth/providers.ts:7
↓ 4 callersFunctionisApiKeyMode
( options: CoreClientOptions, )
packages/core/src/client.ts:42
↓ 4 callersFunctionisJwtMode
(options: CoreClientOptions)
packages/core/src/client.ts:48
↓ 4 callersFunctionisUsernameTaken
(client: Db | Tx, username: string)
apps/api/src/lib/username.ts:19
↓ 4 callersFunctionloadConfig
()
packages/cli/src/config.ts:23
↓ 4 callersFunctionmerge
(data?: unknown)
packages/utils/src/logger/client.ts:48
↓ 4 callersFunctionparseCallbackUrls
(val: string | undefined)
apps/api/src/lib/env.ts:5
↓ 4 callersFunctionrecordFailedAttempt
()
apps/api/src/routes/auth/magiclink/verify.ts:44
↓ 4 callersFunctionserializePrimitiveParam
({ allowReserved, name, value, }: SerializePrimitiveParam)
packages/core/src/gen/core/pathSerializer.gen.ts:112
↓ 4 callersFunctionshutdown
(signal: string)
apps/api/server.ts:93
↓ 4 callersFunctiontoActionKey
(operationId)
packages/core/scripts/generate-wrapper.mjs:19
↓ 4 callersFunctiontoActionKey
(operationId)
packages/cli/scripts/generate-cli.mjs:23
↓ 4 callersFunctiontoDistPath
(srcPath)
scripts/prepare-publish.mjs:12
↓ 4 callersFunctionupdateAuthTokens
({ token, refreshToken, }: { token: string refreshToken: string })
apps/web/lib/auth/auth-client.ts:26
↓ 4 callersFunctionuseCarousel
()
packages/ui/src/components/carousel.tsx:32
↓ 4 callersFunctionuseFormField
()
packages/ui/src/components/form.tsx:40
↓ 4 callersFunctionuseSidebar
()
packages/ui/src/components/sidebar.tsx:46
↓ 4 callersFunctionvalidateAndConsumeOAuthState
({ db, stateHash, request, reply, preConsumeCheck, }: { db: Db stateHash: string request: Fast
apps/api/src/lib/oauth-exchange-state.ts:12
↓ 3 callersFunctioncheckAuthenticated
(page: import('@playwright/test').Page)
apps/web/e2e/magic-link-auth.spec.ts:9
↓ 3 callersFunctioncheckToolExists
(toolName, checkCommand)
scripts/setup-osv-scanner.mjs:35
↓ 3 callersFunctioncheckToolExists
(toolName, checkCommand)
scripts/setup-gitleaks.mjs:35
↓ 3 callersFunctioncleanup
()
apps/api/scripts/run-e2e-local.mjs:114
↓ 3 callersFunctioncleanup
()
apps/web/scripts/run-e2e-local.mjs:119
↓ 3 callersFunctioncreateCaptureError
(reporting: ReportingAdapter, defaultLogger: Logger)
packages/error/src/core/capture-impl.ts:28
↓ 3 callersFunctioncreateConfig
( override: Config<Omit<ClientOptions, keyof T> & T> = {}, )
packages/core/src/gen/client/utils.gen.ts:329
↓ 3 callersFunctioncreateEmailInput
({ type, handler, validatedData, user, teamContext, options, }: CreateEmailInputInput<T>)
packages/notif/src/index.ts:34
↓ 3 callersFunctioncreateMockClient
()
packages/react/src/hooks/use-verify-web3-auth.test.tsx:8
↓ 3 callersFunctioncreateWrapper
(client: ReturnType<typeof createMockClient>, baseUrl = 'https://api.test')
packages/react/src/hooks/use-verify-web3-auth.test.tsx:18
↓ 3 callersFunctiondecodeJwtToken
({ token }: { token: string })
apps/web/lib/auth/jwt-utils.ts:6
↓ 3 callersFunctiondecryptAccountTokens
(account: Account)
apps/api/src/db/account.ts:42
↓ 3 callersFunctionencryptPasskeyTokens
(payload: { accessToken: string; refreshToken: string })
apps/api/src/db/passkey-callback.ts:4
↓ 3 callersFunctionensureSorted
* Lazily rebuilds sorted key/value arrays if needed. * Uses stored comparator so binary search and sort stay consistent. * dirty is set on set/d
packages/utils/src/data/index.ts:50
↓ 3 callersFunctiongenerateFunnyUsername
(client: Db | Tx)
apps/api/src/lib/username.ts:39
↓ 3 callersMethodgetInterceptorIndex
(id: number | Interceptor)
packages/core/src/gen/client/utils.gen.ts:271
↓ 3 callersFunctiongetPayloadConfigFromPayload
(config: ChartConfig, payload: unknown, key: string)
packages/ui/src/components/chart.tsx:284
↓ 3 callersFunctiongetServerAuthToken
()
apps/web/lib/auth/auth-server.ts:48
↓ 3 callersFunctiongetSessionToken
( app: TestApp, email: string, options?: { clearBefore?: boolean }, )
apps/api/test/utils/auth-helper.ts:55
↓ 3 callersFunctionisUniqueViolation
(err: unknown)
apps/api/src/lib/db-errors.ts:9
↓ 3 callersFunctionisValidChain
(chain: string)
apps/api/src/routes/auth/web3/nonce.ts:16
↓ 3 callersFunctionkillAll
(signal = 'SIGTERM')
apps/web/scripts/run-e2e-local.mjs:109
next →1–100 of 1,050, ranked by callers