Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Sagyam/linite
/ functions
Functions
462 in github.com/Sagyam/linite
⨍
Functions
462
◇
Types & classes
252
↓ 190 callers
Function
renderWithProviders
( ui: ReactElement, options: CustomRenderOptions = {} )
src/test/component-utils.tsx:232
↓ 122 callers
Function
cn
(...inputs: ClassValue[])
src/lib/utils.ts:4
↓ 81 callers
Method
set
(key: string, data: T)
src/services/external-apis/types.ts:69
↓ 64 callers
Method
get
(key: string)
src/services/external-apis/types.ts:57
↓ 57 callers
Function
errorResponse
(message: string, status: number = 400)
src/lib/api-utils.ts:61
↓ 48 callers
Function
successResponse
(data: T, status: number = 200)
src/lib/api-utils.ts:65
↓ 38 callers
Method
get
* GET request
src/lib/api-client.ts:44
↓ 37 callers
Function
createMockAppWithRelations
( overrides?: Partial<AppWithRelations> )
src/test/component-utils.tsx:122
↓ 29 callers
Function
useDialogs
()
src/hooks/use-dialogs.ts:35
↓ 29 callers
Function
useFilters
(options: UseFiltersOptions = {})
src/hooks/use-filters.ts:30
↓ 28 callers
Function
createCRUDHandlers
( config: CRUDConfig<TUpdateInput, TRecord> )
src/lib/crud-factory.ts:103
↓ 28 callers
Function
setupSelectionStore
(options: { apps?: string[]; categories?: Map<string, string>; distro?: string; sourcePreference?: str
src/test/component-utils.tsx:383
↓ 26 callers
Method
findMany
* Find all records with optional filtering and pagination
src/repositories/base.repository.ts:39
↓ 25 callers
Function
createMockRequest
(options: { url?: string; method?: string; headers?: Record<string, string>; body?: unknown;
src/lib/api-middleware.test.ts:47
↓ 24 callers
Function
createMockResponse
(data: T, status = 200, ok = true)
src/test/component-utils.tsx:272
↓ 24 callers
Function
useDebounce
(value: T, delay: number = 500)
src/hooks/use-debounce.ts:5
↓ 23 callers
Method
findFirst
* Find a single record by condition
src/repositories/base.repository.ts:59
↓ 22 callers
Function
createCrudHooks
(config: CrudConfig)
src/hooks/use-crud.ts:23
↓ 21 callers
Function
createContext
(id: string)
src/lib/crud-factory.test.ts:66
↓ 20 callers
Function
createApiHandler
( config: ApiMiddlewareConfig<BodySchema, QuerySchema>, handler: ApiHandler<Context> )
src/lib/api-middleware.ts:48
↓ 20 callers
Function
generateUninstallCommands
( request: GenerateUninstallCommandRequest )
src/services/uninstall-command-generator.ts:47
↓ 19 callers
Method
delete
* Delete a record by ID
src/repositories/base.repository.ts:136
↓ 18 callers
Function
uploadImageFromUrl
( imageUrl: string, slug: string, prefix: string = 'app-icons', skipIfExists: boolean = false )
src/lib/blob.ts:336
↓ 17 callers
Function
createSuccessResponse
(data: unknown = { success: true })
src/lib/api-middleware.test.ts:64
↓ 17 callers
Function
mockGlobalFetch
()
src/test/component-utils.tsx:263
↓ 17 callers
Function
useApps
(params: AppsQueryParams = {}, initialData?: InitialData)
src/hooks/use-apps.ts:29
↓ 17 callers
Function
useClipboard
(options: UseClipboardOptions = {})
src/hooks/use-clipboard.ts:12
↓ 16 callers
Function
createAuthValidatedApiHandler
( bodySchema: ZodSchema<BodySchema>, handler: ValidatedApiHandler<BodySchema, Context> )
src/lib/api-middleware.ts:166
↓ 16 callers
Function
useCommand
()
src/hooks/use-command.ts:40
↓ 15 callers
Function
createWrapper
()
src/hooks/use-command.test.ts:25
↓ 15 callers
Function
createWrapper
()
src/hooks/use-apps.test.ts:26
↓ 15 callers
Function
requireUser
(request: NextRequest)
src/lib/api-utils.ts:30
↓ 15 callers
Function
waitForAsync
()
src/test/component-utils.tsx:449
↓ 14 callers
Method
clear
()
src/services/external-apis/types.ts:78
↓ 14 callers
Function
createAuthApiHandler
( handler: ApiHandler<Context> )
src/lib/api-middleware.ts:131
↓ 14 callers
Function
generateInstallCommands
( request: GenerateCommandRequest )
src/services/command-generator.ts:42
↓ 14 callers
Method
update
* Update a record by ID
src/repositories/base.repository.ts:118
↓ 14 callers
Function
useMultiClipboard
(options: UseClipboardOptions = {})
src/hooks/use-clipboard.ts:38
↓ 13 callers
Function
createPublicApiHandler
( handler: ApiHandler<Context> )
src/lib/api-middleware.ts:117
↓ 13 callers
Function
createWrapper
()
src/hooks/use-crud.test.ts:20
↓ 13 callers
Function
optionalString
(maxLength: number, fieldName: string)
src/lib/validation/common.ts:30
↓ 13 callers
Function
parsePackageMetadata
(metadata: unknown)
src/lib/package-metadata.ts:34
↓ 13 callers
Function
searchFlathub
(query: string)
src/services/external-apis/flathub.ts:19
↓ 12 callers
Function
getUnique
(base: string)
src/services/external-apis/snapcraft.test.ts:8
↓ 12 callers
Function
searchRepology
(projectName: string)
src/services/external-apis/repology.ts:67
↓ 12 callers
Function
useInstallationKeyboardNavigation
( installations: InstallationWithRelations[], options?: UseInstallationKeyboardNavigationOptions )
src/hooks/use-installation-keyboard-navigation.ts:16
↓ 11 callers
Method
bulkDeleteInstallations
* Bulk delete installation records (with user ownership check for all)
src/services/installation-history.service.ts:227
↓ 11 callers
Function
createMockPackageWithRelations
( overrides?: Partial<PackageWithRelations> )
src/test/component-utils.tsx:137
↓ 11 callers
Method
findBySlug
* Find app by slug
src/repositories/apps.repository.ts:83
↓ 11 callers
Function
searchSnapcraft
(query: string)
src/services/external-apis/snapcraft.ts:96
↓ 10 callers
Function
createWrapper
()
src/hooks/use-distros.test.ts:10
↓ 10 callers
Function
searchAUR
(query: string)
src/services/external-apis/aur.ts:38
↓ 10 callers
Function
useDistros
()
src/hooks/use-distros.ts:37
↓ 9 callers
Method
findWithFilters
* Find apps with filters
src/repositories/apps.repository.ts:27
↓ 9 callers
Function
getUnique
(base: string)
src/services/external-apis/repology.test.ts:8
↓ 9 callers
Method
getUserInstallations
* Get all installations for a user with optional filtering
src/services/installation-history.service.ts:16
↓ 9 callers
Function
requireCollectionOwnership
(collectionId: string, userId: string)
src/lib/api-utils.ts:45
↓ 9 callers
Function
uploadImage
( file: File, pathname?: string )
src/lib/blob.ts:50
↓ 8 callers
Function
createMockFile
( type: string, size: number = 1024, name: string = 'test.png' )
src/lib/blob.test.ts:101
↓ 8 callers
Method
findAllOrdered
* Find all sources ordered by priority
src/repositories/sources.repository.ts:19
↓ 8 callers
Method
findBySlugWithSources
* Find distro by slug with sources
src/repositories/distros.repository.ts:79
↓ 7 callers
Method
count
* Count records matching condition
src/repositories/base.repository.ts:92
↓ 7 callers
Function
createMockCategory
(overrides?: Partial<Category>)
src/test/component-utils.tsx:43
↓ 7 callers
Method
findById
* Find by ID
src/repositories/base.repository.ts:74
↓ 7 callers
Method
getInstallationById
* Get installation by ID (with user ownership check)
src/services/installation-history.service.ts:90
↓ 7 callers
Function
requireAuth
(request: NextRequest)
src/lib/api-utils.ts:7
↓ 7 callers
Function
toast
({ ...props }: Toast)
src/hooks/use-toast.ts:134
↓ 7 callers
Method
updateInstallation
* Update an installation record (with user ownership check)
src/services/installation-history.service.ts:171
↓ 6 callers
Function
checkBlobExists
(pathname: string)
src/lib/blob.ts:312
↓ 6 callers
Function
createUpdateSchema
(createSchema: z.ZodObject<T>)
src/lib/validation/common.ts:44
↓ 6 callers
Function
createValidatedApiHandler
( bodySchema: ZodSchema<BodySchema>, handler: ValidatedApiHandler<BodySchema, Context>, config?: Omit<Ap
src/lib/api-middleware.ts:145
↓ 6 callers
Method
findAllWithSourcesNormalized
* Find all distros with their sources (normalized) * Applies default values and normalizes the data structure
src/repositories/distros.repository.ts:30
↓ 6 callers
Method
findPaginated
* Find with pagination metadata
src/repositories/base.repository.ts:158
↓ 6 callers
Method
getUserDevices
* Get unique devices for a user
src/services/installation-history.service.ts:267
↓ 6 callers
Function
optionalUrl
(fieldName: string)
src/lib/validation/common.ts:37
↓ 5 callers
Function
deleteImage
(url: string)
src/lib/blob.ts:133
↓ 5 callers
Method
deleteInstallation
* Delete an installation record (with user ownership check)
src/services/installation-history.service.ts:204
↓ 5 callers
Function
dispatch
(action: Action)
src/hooks/use-toast.ts:125
↓ 5 callers
Method
exists
* Check if a record exists
src/repositories/base.repository.ts:150
↓ 5 callers
Function
getRowIdForSelection
(row: TData)
src/components/admin/advanced-data-table.tsx:73
↓ 4 callers
Function
calculateConfidence
( appName: string, appSlug: string, packageName: string, packageSummary?: string )
scripts/package-discovery/discover-packages.ts:102
↓ 4 callers
Method
cleanup
* Remove expired entries
src/services/external-apis/types.ts:85
↓ 4 callers
Function
createErrorResponse
(message: string, status: number = 400)
src/lib/api-middleware.test.ts:67
↓ 4 callers
Method
createInstallation
* Create a new installation record
src/services/installation-history.service.ts:148
↓ 4 callers
Function
getContainerClient
* Get Azure Blob Container Client
src/lib/blob.ts:27
↓ 4 callers
Method
hasApps
* Check if category has apps
src/repositories/categories.repository.ts:46
↓ 4 callers
Method
hasPackages
* Check if a source has packages
src/repositories/sources.repository.ts:46
↓ 4 callers
Function
normalizeForComparison
(str: string | null | undefined)
scripts/package-discovery/discover-packages.ts:108
↓ 4 callers
Function
useFormField
()
src/components/ui/form.tsx:42
↓ 3 callers
Function
calculateRetryDelay
* Calculate retry delay with exponential backoff and jitter * @param attemptNumber - The current retry attempt (0-indexed) * @returns Delay in milli
src/lib/blob.ts:197
↓ 3 callers
Function
createCollection
(data: CreateCollectionData)
src/services/collection.service.ts:75
↓ 3 callers
Function
createFlexibleApiClient
(config: ExtendedApiConfig)
src/services/external-apis/api-client-factory.ts:37
↓ 3 callers
Function
downloadScript
(content: string, filename: string, )
src/lib/script-generator.ts:231
↓ 3 callers
Method
findByIdWithApps
* Find category with apps
src/repositories/categories.repository.ts:37
↓ 3 callers
Method
findByIdWithPackages
* Find source with packages
src/repositories/sources.repository.ts:37
↓ 3 callers
Method
findPopular
* Find popular distros
src/repositories/distros.repository.ts:121
↓ 3 callers
Function
getCheckboxProps
()
src/components/apps/app-card.tsx:61
↓ 3 callers
Function
getCollectionById
( collectionId: string, userId?: string )
src/services/collection.service.ts:164
↓ 3 callers
Method
isSlugAvailable
* Check if slug is available
src/repositories/apps.repository.ts:114
↓ 3 callers
Function
listCollections
( options: ListCollectionsOptions )
src/services/collection.service.ts:299
next →
1–100 of 462, ranked by callers