Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/nimbusdotstorage/Nimbus
/ functions
Functions
579 in github.com/nimbusdotstorage/Nimbus
⨍
Functions
579
◇
Types & classes
99
↓ 144 callers
Function
cn
(...inputs: ClassValue[])
apps/web/src/lib/utils.ts:7
↓ 33 callers
Method
update
* Update a file or folder * @param id The ID of the file/folder to update * @param metadata The fields to update * @returns The updated file/fol
apps/server/src/providers/interface/provider.ts:35
↓ 32 callers
Function
sendError
(c: Context, options?: ErrorResponseOptions)
apps/server/src/routes/utils.ts:25
↓ 27 callers
Function
sendSuccess
(c: Context, options?: SuccessResponseOptions<T>)
apps/server/src/routes/utils.ts:33
↓ 25 callers
Function
createRateLimiter
(redisClient: ValkeyRedis, config: RateLimiterConfig)
packages/cache/src/rate-limiters.ts:11
↓ 25 callers
Function
securityMiddleware
(options: SecurityOptions = {})
apps/server/src/middleware/security.ts:43
↓ 19 callers
Function
handleUnauthorizedError
( requestFn: T, errorMessage: string )
apps/web/src/utils/client.ts:34
↓ 19 callers
Function
sendUnauthorized
(c: Context, message?: string)
apps/server/src/routes/utils.ts:21
↓ 17 callers
Method
delete
* Delete a file or folder * @param id The ID of the file/folder to delete * @param permanent If true, permanently delete instead of moving to tras
apps/server/src/providers/interface/provider.ts:43
↓ 16 callers
Function
useAccountProvider
()
apps/web/src/components/providers/account-provider.tsx:125
↓ 14 callers
Function
defaultTimestamp
(name: string)
packages/db/schema.ts:3
↓ 12 callers
Method
mapToFile
(boxItem: BoxItem)
apps/server/src/providers/box/box-provider.ts:369
↓ 9 callers
Method
mapToFile
(item: DriveItem)
apps/server/src/providers/microsoft/one-drive-provider.ts:415
↓ 8 callers
Function
getBaseFileClient
(clientPromise: Promise<DriveProviderClient>)
apps/web/src/hooks/useFileOperations.ts:357
↓ 8 callers
Method
mapToFile
(dropboxItem: DropboxMetadata, forceType?: "folder" | "file")
apps/server/src/providers/dropbox/dropbox-provider.ts:272
↓ 7 callers
Method
create
* Create a new file or folder * @param metadata Metadata for the new file/folder * @param content Optional file content as a Buffer or Readable st
apps/server/src/providers/interface/provider.ts:19
↓ 7 callers
Method
getTagById
(tagId: string, userId: string)
apps/server/src/routes/tags/tag-service.ts:39
↓ 7 callers
Method
mapToFile
(file: drive_v3.Schema$File)
apps/server/src/providers/google/google-drive-provider.ts:418
↓ 6 callers
Function
getBaseTagClient
(clientPromise: Promise<DriveProviderClient>)
apps/web/src/hooks/useTags.ts:326
↓ 6 callers
Function
handleSubmit
()
apps/web/src/components/dialogs/create-tag-dialog.tsx:84
↓ 6 callers
Function
sendForbidden
(c: Context, message?: string)
apps/server/src/routes/utils.ts:17
↓ 5 callers
Method
getById
(id: string, _fields?: string[])
apps/server/src/providers/s3/s3-provider.ts:137
↓ 5 callers
Function
handleAuthError
(error: unknown, defaultMessage: string)
apps/web/src/hooks/useAuth.ts:18
↓ 5 callers
Method
normalizeParentPath
(parentId?: string)
apps/server/src/providers/dropbox/dropbox-provider.ts:303
↓ 5 callers
Function
useUserInfoProvider
()
apps/web/src/components/providers/user-info-provider.tsx:47
↓ 4 callers
Function
addTagToSelected
(tagName: string)
apps/web/src/components/search/search-dialog.tsx:168
↓ 4 callers
Method
getById
(id: string, _fields?: string[])
apps/server/src/providers/box/box-provider.ts:118
↓ 4 callers
Function
getFileExtension
(filename: string)
packages/shared/src/file-utils.ts:43
↓ 4 callers
Method
getFileFields
()
apps/server/src/providers/google/google-drive-provider.ts:457
↓ 4 callers
Function
getMimeTypeFromExtension
(filename: string)
apps/server/src/providers/utils/mime-types.ts:31
↓ 4 callers
Method
joinPath
(parentPath: string, name: string)
apps/server/src/providers/dropbox/dropbox-provider.ts:311
↓ 4 callers
Function
useSidebar
()
apps/web/src/components/ui/sidebar.tsx:44
↓ 3 callers
Method
buildKey
(parentId: string, name: string)
apps/server/src/providers/s3/s3-provider.ts:495
↓ 3 callers
Method
copy
* Copy a file or folder * @param sourceId The ID of the file/folder to copy * @param targetParentId The ID of the destination folder * @param ne
apps/server/src/providers/interface/provider.ts:76
↓ 3 callers
Function
formatFileSize
(size: unknown)
packages/shared/src/file-utils.ts:21
↓ 3 callers
Method
getFileTags
(fileId: string, userId: string)
apps/server/src/routes/tags/tag-service.ts:235
↓ 3 callers
Function
getFiles
(globPattern: string, rootDir: string)
scripts/utils/glob-patterns.ts:7
↓ 3 callers
Method
getMimeTypeFromKey
(key: string)
apps/server/src/providers/s3/s3-provider.ts:520
↓ 3 callers
Function
getPayloadConfigFromPayload
(config: ChartConfig, payload: unknown, key: string)
apps/web/src/components/ui/chart.tsx:308
↓ 3 callers
Function
handleDownloadError
(error: unknown, fileId: string)
apps/web/src/components/dashboard/file-browser/file-actions.tsx:86
↓ 3 callers
Function
handleGoogleWorkspaceDownload
()
apps/web/src/components/dashboard/file-browser/file-actions.tsx:100
↓ 3 callers
Function
handleSearch
(searchQuery?: string)
apps/web/src/components/search/search-dialog.tsx:126
↓ 3 callers
Function
handleSuggestionClick
(suggestionQuery: string)
apps/web/src/components/search/search-dialog.tsx:159
↓ 3 callers
Method
normalizeParentId
(id: string | null | undefined)
apps/server/src/providers/box/box-provider.ts:364
↓ 3 callers
Function
providerToSlug
(provider: DriveProvider)
packages/shared/src/validators/provider.ts:59
↓ 3 callers
Function
sendMail
(ctx: EmailContext, { to, subject, text }: SendMailOptions)
packages/auth/src/utils/send-mail.ts:14
↓ 3 callers
Function
slugToProvider
(slug: DriveProviderSlug)
packages/shared/src/validators/provider.ts:55
↓ 3 callers
Function
updateError
(error: Error)
apps/web/src/components/providers/default-account-provider.tsx:84
↓ 3 callers
Function
useTags
(parentId?: string)
apps/web/src/hooks/useTags.ts:13
↓ 2 callers
Function
addDefaultVariants
(variants: Variants)
apps/web/src/components/ui/animated-group.tsx:97
↓ 2 callers
Function
addTagsToFile
( variables: { fileId: string; tagIds: string[]; onSuccess?: () => void }, clientPromise: Promise<DriveProvi
apps/web/src/hooks/useTags.ts:369
↓ 2 callers
Function
cleanChildEnvFiles
(dryRun = false)
scripts/delete-child-env-files.ts:10
↓ 2 callers
Function
createClient
(options?: ClientRequestOptions)
apps/web/src/utils/client.ts:6
↓ 2 callers
Method
createFile
(options: CreateFileOptions, fileStream?: Readable)
apps/server/src/routes/files/file-service.ts:83
↓ 2 callers
Function
createProtectedClient
(options?: ClientRequestOptions)
apps/web/src/utils/client.ts:14
↓ 2 callers
Function
createTag
(data: CreateTagSchema, clientPromise: Promise<DriveProviderClient>)
apps/web/src/hooks/useTags.ts:338
↓ 2 callers
Function
deriveKey
()
apps/server/src/utils/encryption.ts:7
↓ 2 callers
Function
fileSizeText
(isError: boolean, num: number | undefined)
apps/web/src/components/dashboard/sidebar/sidebar-footer.tsx:115
↓ 2 callers
Method
getById
* Get a file or folder by ID * @param id The ID of the file/folder to retrieve * @param fields Optional array of fields to include in the response
apps/server/src/providers/interface/provider.ts:27
↓ 2 callers
Method
getDriveInfo
* Get information about the drive * @returns Drive information including usage statistics
apps/server/src/providers/interface/provider.ts:95
↓ 2 callers
Method
getFieldsString
(fields?: string[])
apps/server/src/providers/google/google-drive-provider.ts:479
↓ 2 callers
Function
getModernFileIcon
(mimeType?: string, filename?: string)
apps/web/src/components/dashboard/file-browser/index.tsx:385
↓ 2 callers
Method
getNameFromPath
(path: string)
apps/server/src/providers/dropbox/dropbox-provider.ts:326
↓ 2 callers
Function
handleAddTag
(tagId: string)
apps/web/src/components/dashboard/file-browser/file-tags.tsx:26
↓ 2 callers
Function
handleDownloadSuccess
(fileId: string)
apps/web/src/components/dashboard/file-browser/file-actions.tsx:95
↓ 2 callers
Function
handleUploadError
(error: unknown)
apps/server/src/routes/utils.ts:45
↓ 2 callers
Function
navigateToProvider
()
apps/web/src/components/providers/default-account-provider.tsx:72
↓ 2 callers
Function
openCreateDialog
(parentId?: string)
apps/web/src/components/dashboard/sidebar/tag-menu.tsx:59
↓ 2 callers
Function
providerToIcon
(providerId: string)
apps/web/src/components/dashboard/header/source-selector.tsx:20
↓ 2 callers
Function
removeTagsFromFile
( variables: { fileId: string; tagIds: string[]; onSuccess?: () => void; }, clientPromise: Promise<Dr
apps/web/src/hooks/useTags.ts:384
↓ 2 callers
Function
replaceRecursive
(tags: Tag[])
apps/web/src/hooks/useTags.ts:76
↓ 2 callers
Function
useChart
()
apps/web/src/components/ui/chart.tsx:38
↓ 2 callers
Function
useDefaultAccountProvider
()
apps/web/src/components/providers/default-account-provider.tsx:95
↓ 2 callers
Function
useIsMounted
()
apps/web/src/hooks/useIsMounted.ts:3
↓ 2 callers
Function
useUploadFile
()
apps/web/src/hooks/useFileOperations.ts:172
↓ 1 callers
Method
addFileExtension
* Add appropriate file extension based on MIME type
apps/server/src/providers/google/google-drive-provider.ts:499
↓ 1 callers
Function
addRecursive
(tags: Tag[])
apps/web/src/hooks/useTags.ts:52
↓ 1 callers
Method
addTagsToFile
(fileId: string, tagIds: string[], userId: string)
apps/server/src/routes/tags/tag-service.ts:178
↓ 1 callers
Function
afterAccountCreation
(db: DB, account: Account)
packages/auth/src/auth.ts:270
↓ 1 callers
Method
buildTagHierarchy
(tags: Tag[])
apps/server/src/routes/tags/tag-service.ts:269
↓ 1 callers
Function
buildTagMap
(tags: Tag[])
apps/web/src/components/dashboard/file-browser/file-tags.tsx:73
↓ 1 callers
Function
checkAuth
()
apps/web/src/routes/developers.tsx:15
↓ 1 callers
Function
cleanChildEnv
()
scripts/delete-child-env-files.ts:27
↓ 1 callers
Function
cleanChildEnvDryRun
()
scripts/delete-child-env-files.ts:31
↓ 1 callers
Function
collectChildren
(children: Tag[])
apps/web/src/hooks/useTags.ts:169
↓ 1 callers
Method
copy
(sourceId: string, targetParentId: string, newName?: string)
apps/server/src/providers/s3/s3-provider.ts:358
↓ 1 callers
Function
createClient
(providerId: string | null, accountId: string | null)
apps/web/src/components/providers/account-provider.tsx:16
↓ 1 callers
Method
createTag
(userId: string, name: string, color: string, parentId?: string | null)
apps/server/src/routes/tags/tag-service.ts:64
↓ 1 callers
Function
decrypt
(encryptedText: string)
apps/server/src/utils/encryption.ts:39
↓ 1 callers
Method
delete
(id: string, _permanent = true)
apps/server/src/providers/s3/s3-provider.ts:209
↓ 1 callers
Method
deleteFile
(options: DeleteFileSchema)
apps/server/src/routes/files/file-service.ts:79
↓ 1 callers
Function
deleteTag
(id: string, clientPromise: Promise<DriveProviderClient>)
apps/web/src/hooks/useTags.ts:358
↓ 1 callers
Method
deleteTag
(tagId: string, userId: string)
apps/server/src/routes/tags/tag-service.ts:160
↓ 1 callers
Method
download
* Download a file * @param fileId The ID of the file to download * @param options Download options including export MIME type for Google Workspace
apps/server/src/providers/interface/provider.ts:67
↓ 1 callers
Method
downloadFile
(options: DownloadFileSchema)
apps/server/src/routes/files/file-service.ts:87
↓ 1 callers
Function
encrypt
(text: string)
apps/server/src/utils/encryption.ts:20
↓ 1 callers
Function
fileExists
(path: string)
scripts/copy-env-files.ts:17
↓ 1 callers
Function
findDescendants
(tagList: Tag[])
apps/web/src/hooks/useTags.ts:165
↓ 1 callers
Function
flattenRecursive
(tagList: Tag[])
apps/web/src/components/dashboard/file-browser/file-tags.tsx:55
↓ 1 callers
Function
flattenTags
(tags: Tag[])
apps/web/src/components/dashboard/file-browser/file-tags.tsx:53
next →
1–100 of 579, ranked by callers