MCPcopy Create free account

hub / github.com/snapotter-hq/SnapOtter / functions

Functions2,049 in github.com/snapotter-hq/SnapOtter

↓ 3,158 callersFunctiontest
(name, path, settings, checks = {})
tests/e2e-docker/full-tool-audit.mjs:38
↓ 1,644 callersFunctioncreateMultipartPayload
( fields: Array<{ name: string; filename?: string; contentType?: string; content: Buffer | s
tests/integration/test-server.ts:227
↓ 613 callersMethodsend
(body?: Document | XMLHttpRequestBodyInit | null)
apps/demo/src/mock-api.ts:294
↓ 581 callersFunctionuploadTestImage
(page: Page)
tests/e2e/helpers.ts:112
↓ 375 callersFunctionact
(fn: (s: ReturnType<typeof state>) => T)
tests/unit/web/editor-store.test.ts:25
↓ 308 callersFunctionstate
()
tests/unit/web/editor-store.test.ts:21
↓ 304 callersFunctionopenSettings
(page: Page)
tests/e2e/helpers.ts:171
↓ 194 callersFunctionget
(name)
scripts/generate-license.mjs:34
↓ 160 callersFunctionrunPythonWithProgress
( scriptName: string, args: string[], options: { onProgress?: ProgressCallback; timeout?: number
packages/ai/src/bridge.ts:549
↓ 160 callersFunctionwaitForProcessing
(page: Page, timeoutMs = 30_000)
tests/e2e/helpers.ts:128
↓ 139 callersFunctioncn
(...inputs: ClassValue[])
apps/web/src/lib/utils.ts:4
↓ 137 callersFunctionuseTranslation
()
apps/web/src/contexts/i18n-context.tsx:152
↓ 116 callersFunctioncreateMockProcess
()
tests/unit/ai/bridge.test.ts:17
↓ 113 callersFunctionvalidateImageBuffer
( buffer: Buffer, filename?: string, )
apps/api/src/lib/file-validation.ts:200
↓ 107 callersMethodclose
()
tests/unit/web/features-store.test.ts:25
↓ 97 callersFunctionbuildTestApp
()
tests/integration/test-server.ts:64
↓ 96 callersFunctionsetAnalyticsConsent
(enabled: boolean)
apps/web/src/lib/analytics.ts:100
↓ 93 callersFunctionloginAsAdmin
(app: ReturnType<typeof Fastify>)
tests/integration/test-server.ts:205
↓ 88 callersFunctionpostTool
( toolId: string, settings: Record<string, unknown>, buffer?: Buffer, filename?: string, ct?: string
tests/integration/color-adjustments.test.ts:46
↓ 84 callersFunctionremoveBackground
( inputBuffer: Buffer, outputDir: string, options: RemoveBackgroundOptions = {}, onProgress?: Progress
packages/ai/src/background-removal.ts:18
↓ 75 callersFunctionprocessImage
( input: Buffer, operations: Operation[], outputFormat?: OutputFormat, )
packages/image-engine/src/engine.ts:90
↓ 74 callersFunctiondecodeToSharpCompat
( buffer: Buffer, format: string, ext?: string, )
apps/api/src/lib/format-decoders.ts:62
↓ 73 callersFunctionpostTool
( settings: Record<string, unknown>, buffer?: Buffer, filename?: string, ct?: string, )
tests/integration/sharpening.test.ts:45
↓ 72 callersFunctionneedsCliDecode
(format: string)
apps/api/src/lib/format-decoders.ts:47
↓ 71 callersFunctionformatHeaders
(init?: HeadersInit)
apps/web/src/lib/api.ts:57
↓ 68 callersFunctionupscale
( inputBuffer: Buffer, outputDir: string, options: UpscaleOptions = {}, onProgress?: ProgressCallback,
packages/ai/src/upscaling.ts:28
↓ 66 callersFunctionmakeRect
( overrides: Partial<{ id: string; layerId: string; x: number; y: number }> = {}, )
tests/unit/web/editor-store.test.ts:29
↓ 64 callersFunctionmakeFile
(name: string, type = "image/png", size = 1024)
tests/unit/web/dropzone.test.tsx:12
↓ 63 callersFunctioncallToolWithFile
( toolId: string, filename: string, mime: string, buffer: Buffer, settings: Record<string, unknown>,
tests/integration/format-matrix-exotic.test.ts:91
↓ 62 callersFunctiondetectFormat
(buffer: Buffer)
packages/image-engine/src/formats/detect.ts:76
↓ 62 callersFunctionnoiseRemoval
( inputBuffer: Buffer, outputDir: string, options: NoiseRemovalOptions = {}, onProgress?: ProgressCall
packages/ai/src/noise-removal.ts:23
↓ 62 callersFunctionsnap
(page: Page, name: string)
tests/e2e-editor/editor-full-gui-test.spec.ts:7
↓ 60 callersFunctiondecodeHeic
(buffer: Buffer)
apps/api/src/lib/heic-converter.ts:53
↓ 60 callersFunctionformat
(template: string, values: Record<string, string | number>)
apps/web/src/lib/format.ts:1
↓ 60 callersFunctioninitAnalytics
()
apps/api/src/lib/analytics.ts:15
↓ 59 callersFunctionautoOrient
(buffer: Buffer)
apps/api/src/lib/auto-orient.ts:15
↓ 58 callersFunctionhasEffectivePermission
(user: AuthUser, permission: Permission)
apps/api/src/permissions.ts:59
↓ 58 callersFunctionrestorePhoto
( inputBuffer: Buffer, outputDir: string, options: RestorePhotoOptions = {}, onProgress?: ProgressCall
packages/ai/src/restoration.ts:27
↓ 57 callersFunctionpost
(url: string, payload: { body: Buffer; contentType: string })
tests/integration/beautify.test.ts:34
↓ 57 callersFunctionpostTool
( settings: Record<string, unknown>, buffer?: Buffer, filename?: string, ct?: string, )
tests/integration/image-enhancement.test.ts:49
↓ 57 callersFunctionsanitizeFilename
(raw: string)
tests/unit/api/utilities.test.ts:1238
↓ 57 callersFunctionupdateSingleFileProgress
(progress: Omit<SingleFileProgress, "type">)
apps/api/src/routes/progress.ts:188
↓ 57 callersFunctionvalidateFetchUrl
(url: string)
apps/api/src/lib/ssrf.ts:83
↓ 56 callersFunctionmakeFile
(name: string, size = 1024, type = "image/png")
tests/unit/web/stores.test.ts:56
↓ 55 callersFunctionlogin
(page: Page, username = "admin", password = "admin")
tests/e2e/helpers.ts:10
↓ 55 callersFunctionpostTool
Helper to POST a multipart payload to a tool endpoint.
tests/integration/adversarial-extended.test.ts:44
↓ 54 callersFunctiondetectFaceLandmarks
( inputBuffer: Buffer, onProgress?: ProgressCallback, )
packages/ai/src/face-landmarks.ts:30
↓ 54 callersFunctionpostTool
( settings: Record<string, unknown>, buffer?: Buffer, filename?: string, ct?: string, )
tests/integration/optimize-for-web.test.ts:48
↓ 54 callersFunctionremoveRedEye
( inputBuffer: Buffer, outputDir: string, options: RedEyeRemovalOptions = {}, onProgress?: ProgressCal
packages/ai/src/red-eye-removal.ts:22
↓ 53 callersFunctioncreateWorkspace
(jobId: string)
apps/api/src/lib/workspace.ts:61
↓ 53 callersFunctiongetMeta
(img: sharp.Sharp)
tests/unit/image-engine/operations.test.ts:44
↓ 52 callersFunctionpostTool
Helper to POST a multipart payload to a tool endpoint.
tests/integration/adversarial-comprehensive.test.ts:80
↓ 52 callersFunctionseamCarve
( inputBuffer: Buffer, outputDir: string, options: SeamCarveOptions = {}, )
packages/ai/src/seam-carving.ts:56
↓ 48 callersFunctionextractText
( inputBuffer: Buffer, outputDir: string, options: OcrOptions = {}, onProgress?: ProgressCallback, )
packages/ai/src/ocr.ts:21
↓ 48 callersFunctionsanitizeFilename
(raw: string)
apps/api/src/lib/filename.ts:25
↓ 47 callersFunctionbuildTagArgs
(settings: EditMetadataSettings)
apps/api/src/lib/exiftool.ts:237
↓ 47 callersFunctionpostTool
Helper to POST a multipart payload to a tool endpoint.
tests/integration/adversarial-matrix.test.ts:50
↓ 46 callersFunctioncolorize
( inputBuffer: Buffer, outputDir: string, options: ColorizeOptions = {}, onProgress?: ProgressCallback
packages/ai/src/colorization.ts:18
↓ 46 callersFunctioncreateMockProcess
()
tests/unit/ai/bridge-extended.test.ts:17
↓ 46 callersFunctionparseStdoutJson
(stdout: string)
packages/ai/src/bridge.ts:582
↓ 45 callersFunctionenhanceFaces
( inputBuffer: Buffer, outputDir: string, options: EnhanceFacesOptions = {}, onProgress?: ProgressCall
packages/ai/src/face-enhancement.ts:20
↓ 45 callersFunctionisInputFocused
* Checks whether the currently focused element is a text input * (input, textarea, select, or contentEditable) so tool‑shortcut * single‑letter keys
apps/web/src/hooks/use-editor-shortcuts.ts:14
↓ 44 callersFunctionformatZodErrors
(issues: ZodIssue[])
apps/api/src/lib/errors.ts:3
↓ 44 callersFunctionpostTool
( settings: Record<string, unknown>, buffer?: Buffer, filename?: string, ct?: string, )
tests/integration/edit-metadata.test.ts:48
↓ 43 callersFunctionhashPassword
(password: string)
apps/api/src/plugins/auth.ts:29
↓ 43 callersFunctioninitDispatcher
(timeoutMs = 30_000)
packages/ai/src/bridge.ts:400
↓ 43 callersFunctionloadEnv
()
apps/api/src/lib/env.ts:153
↓ 43 callersFunctionpostTool
Helper to POST a multipart payload to a tool endpoint.
tests/integration/adversarial-coverage-gaps.test.ts:55
↓ 43 callersFunctionsanitizeSvg
(buffer: Buffer)
apps/api/src/lib/svg-sanitize.ts:18
↓ 41 callersFunctionaddToolStep
Search for a tool by name in the palette and click it.
tests/e2e/gui-pipeline.spec.ts:47
↓ 41 callersFunctionblurFaces
( inputBuffer: Buffer, outputDir: string, options: BlurFacesOptions = {}, onProgress?: ProgressCallbac
packages/ai/src/face-detection.ts:34
↓ 41 callersFunctionparsePageRange
(input: string, totalPages: number)
apps/api/src/routes/tools/pdf-to-image.ts:28
↓ 41 callersFunctionsanitizeValue
(v: unknown)
packages/image-engine/src/utils/metadata.ts:34
↓ 40 callersFunctioncallAiTool
* Post a file to an AI tool and return the response. * Handles the 501 FEATURE_NOT_INSTALLED case gracefully.
tests/e2e-docker/ai-tools.spec.ts:87
↓ 40 callersFunctionpostTool
( settings: Record<string, unknown>, buffer?: Buffer, filename?: string, ct?: string, )
tests/integration/replace-color.test.ts:53
↓ 39 callersFunctionmakePayload
(settings: Record<string, unknown>, buffer?: Buffer, filename?: string)
tests/integration/gif-tools.test.ts:32
↓ 38 callersFunctioninpaint
( inputBuffer: Buffer, maskBuffer: Buffer, outputDir: string, onProgress?: ProgressCallback, )
packages/ai/src/inpainting.ts:6
↓ 38 callersFunctionselectTool
(page: Page, toolName: string)
tests/e2e-editor/helpers.ts:33
↓ 37 callersFunctionbuildMultipart
* Build a raw multipart/form-data body. Playwright's `multipart` option * does not support arrays for the same field name, so multi-file uploads * m
tests/e2e-docker/batch-processing.spec.ts:34
↓ 37 callersFunctionpost
(payload: Record<string, unknown>, token?: string)
tests/integration/html-to-image.test.ts:61
↓ 36 callersFunctiondetectFaces
( inputBuffer: Buffer, options: DetectFacesOptions = {}, onProgress?: ProgressCallback, )
packages/ai/src/face-detection.ts:64
↓ 36 callersMethodreset
()
tests/unit/web/features-store.test.ts:28
↓ 35 callersFunctionimportFresh
()
tests/unit/ai/seam-carving.test.ts:64
↓ 34 callersFunctionpostTool
Helper to POST a multipart payload to a tool endpoint.
tests/integration/adversarial-security.test.ts:49
↓ 34 callersFunctionshutdownDispatcher
()
packages/ai/src/bridge.ts:386
↓ 34 callersFunctionuseToolProcessor
(toolId: string)
apps/web/src/hooks/use-tool-processor.ts:39
↓ 34 callersFunctionzipEntryNames
Extract sorted filenames from a ZIP buffer.
tests/integration/bulk-rename.test.ts:23
↓ 33 callersFunctionauditLog
( logger: FastifyBaseLogger, event: AuditEvent, details: Record<string, unknown> = {}, )
apps/api/src/lib/audit.ts:38
↓ 33 callersFunctiongetPermissions
(role: Role | string)
apps/api/src/permissions.ts:36
↓ 32 callersFunctioncreateSubjectWithAlpha
(width: number, height: number)
tests/unit/api/bg-effects.test.ts:47
↓ 32 callersFunctioncreateToolRoute
(app: FastifyInstance, config: ToolRouteConfig<T>)
apps/api/src/routes/tool-factory.ts:105
↓ 32 callersFunctionsanitize
Run sanitizeSvg on a string and return the result as a string.
tests/unit/security-svg-sanitize.test.ts:16
↓ 32 callersFunctionstripInternalPaths
(message: string)
apps/api/src/lib/errors.ts:13
↓ 32 callersFunctiontakeThemedScreenshots
(page: import("@playwright/test").Page, baseName: string)
tests/e2e/gui-visual-mobile.spec.ts:22
↓ 32 callersFunctiontakeThemedScreenshots
(page: import("@playwright/test").Page, baseName: string)
tests/e2e/gui-visual-tablet.spec.ts:21
↓ 32 callersFunctionverifyPassword
(password: string, stored: string)
apps/api/src/plugins/auth.ts:35
↓ 31 callersFunctiongotoAutomate
(page: import("@playwright/test").Page)
tests/e2e/gui-pipeline.spec.ts:18
↓ 31 callersFunctionneedsServerPreview
(file: File)
apps/web/src/lib/image-preview.ts:63
↓ 30 callersFunctionregisterToolProcessFn
(config: AnyToolRouteConfig)
apps/api/src/routes/tool-factory.ts:86
↓ 30 callersFunctionupdateJobProgress
(progress: JobProgress)
apps/api/src/routes/progress.ts:167
next →1–100 of 2,049, ranked by callers