MCPcopy Create free account

hub / github.com/codes30/pixovid / functions

Functions292 in github.com/codes30/pixovid

↓ 40 callersFunctioncn
(...inputs: ClassValue[])
apps/frontend/src/lib/utils.ts:4
↓ 24 callersFunctionuploadBuffer
( buffer: Buffer, contentType: string, prefix = "uploads", extension?: string, )
apps/backend/src/lib/storage.ts:56
↓ 20 callersFunctiongetPublicUrl
(key: string)
apps/backend/src/lib/storage.ts:76
↓ 16 callersFunctionget
(path: string)
apps/frontend/src/lib/api.ts:263
↓ 15 callersFunctiondownloadObject
(key: string)
apps/backend/src/lib/storage.ts:82
↓ 14 callersFunctionextFromMime
(mime: string)
apps/backend/src/lib/uploads.ts:54
↓ 11 callersFunctionround
(n: number)
apps/backend/src/lib/templateRender.ts:474
↓ 10 callersFunctionownedTemplate
Ensure the template exists and the requester may act on it (owner or superadmin).
apps/backend/src/routes/adminTemplates.ts:117
↓ 9 callersFunctionpostJson
(path: string, body: unknown)
apps/frontend/src/lib/api.ts:269
↓ 9 callersFunctionserializeTemplate
( template: Template & { blocks?: TemplateBlock[]; audioClips?: TemplateAudioClip[] }, )
apps/backend/src/lib/templateSerialize.ts:29
↓ 8 callersFunctionreport
(update: BlockProgressUpdate)
apps/backend/src/lib/templateRender.ts:600
↓ 7 callersFunctionactionCost
(action: GenerationAction)
apps/backend/src/lib/credits.ts:18
↓ 7 callersFunctionmodelsForDuration
(all: VideoModel[], duration: number | null)
apps/frontend/src/lib/api.ts:25
↓ 7 callersFunctionpost
(path: string, form: FormData)
apps/frontend/src/lib/api.ts:266
↓ 7 callersFunctionsniffImageMime
Sniff an image mime type from the leading bytes (defaults to png).
apps/backend/src/lib/templateRender.ts:115
↓ 6 callersFunctionauthHeaders
()
apps/backend/src/lib/openrouter.ts:5
↓ 6 callersFunctiongetBalance
(userId: string)
apps/backend/src/lib/credits.ts:110
↓ 6 callersFunctionload
()
apps/frontend/src/lib/useActionCosts.ts:14
↓ 5 callersFunction_env
(name: str, default: str)
infra/facefusion/server.py:26
↓ 5 callersFunctionclampCrop
Clamp a crop window to [0, duration] with a minimum length.
apps/backend/src/routes/adminTemplates.ts:68
↓ 5 callersFunctionserializeBlock
(block: TemplateBlock)
apps/backend/src/lib/templateSerialize.ts:17
↓ 5 callersFunctionserializeRender
(render: TemplateRender & { blocks?: TemplateRenderBlock[] })
apps/backend/src/lib/templateSerialize.ts:45
↓ 5 callersFunctiontemplateScope
* Scope a single-template lookup by id. A superadmin can address any template; * a regular admin is restricted to templates they created.
apps/backend/src/routes/adminTemplates.ts:110
↓ 4 callersFunctionbeginCrop
( e: React.PointerEvent, kind: "video" | "audio", item: { id: string; startSec: number; endSec: nu
apps/frontend/src/components/timeline/Timeline.tsx:477
↓ 4 callersFunctionbeginDrag
(state: DragState)
apps/frontend/src/components/timeline/Timeline.tsx:453
↓ 4 callersFunctiondel
(path: string)
apps/frontend/src/lib/api.ts:280
↓ 4 callersFunctionext
(mime: string)
apps/backend/src/lib/templateRender.ts:123
↓ 4 callersFunctionfetchAvatars
()
apps/frontend/src/lib/api.ts:311
↓ 4 callersFunctionformatTime
(sec: number)
apps/frontend/src/components/timeline/Timeline.tsx:16
↓ 4 callersFunctionmodelsHandler
Shared handler: list models for a given media type from OpenRouter.
apps/backend/src/routes/models.ts:8
↓ 4 callersFunctionprobeMediaDuration
(media: Buffer)
apps/backend/src/lib/ffmpeg.ts:267
↓ 4 callersFunctionrefreshCredits
()
apps/frontend/src/lib/useMe.ts:9
↓ 4 callersFunctionrefundCredits
( userId: string, amount: number, ref: { referenceType: string; referenceId: string; description?: strin
apps/backend/src/lib/credits.ts:201
↓ 4 callersFunctionrunFfmpeg
Run ffmpeg with the given args, rejecting on a non-zero exit code.
apps/backend/src/lib/ffmpeg.ts:7
↓ 4 callersFunctionspendCredits
( userId: string, amount: number, ref: LedgerRef = {}, )
apps/backend/src/lib/credits.ts:126
↓ 4 callersFunctionsupportsAudioLipsync
(modelId: string)
apps/backend/src/lib/openrouter.ts:37
↓ 4 callersFunctiontoDataUrl
(file: Express.Multer.File)
apps/backend/src/lib/uploads.ts:65
↓ 4 callersFunctiontoDataUrl
(buffer: Buffer, mime: string)
apps/backend/src/lib/templateRender.ts:127
↓ 4 callersFunctionuploadIfPresent
(file?: Express.Multer.File, prefix = "templates")
apps/backend/src/routes/adminTemplates.ts:89
↓ 3 callersFunctionaddCredits
( userId: string, amount: number, type: CreditTxnType, ref: LedgerRef = {}, )
apps/backend/src/lib/credits.ts:166
↓ 3 callersFunctionauthHeaders
()
apps/backend/scripts/generate-showcase.ts:217
↓ 3 callersFunctionavatarName
(i: number)
apps/frontend/src/components/timeline/BlockInspector.tsx:140
↓ 3 callersFunctiongenerateImage
(params: GenerateImageParams)
apps/backend/src/lib/openrouter.ts:149
↓ 3 callersFunctiongenerateThumbnail
(video: Buffer, atSeconds = 1)
apps/backend/src/lib/ffmpeg.ts:317
↓ 3 callersFunctionisSuperAdminEmail
(email?: string)
apps/backend/src/middleware/requireAdmin.ts:7
↓ 3 callersFunctionpatch
(path: string, form: FormData)
apps/frontend/src/lib/api.ts:277
↓ 3 callersFunctionpersist
Persist the current form to the server. Returns the updated block, or null on error.
apps/frontend/src/components/timeline/BlockInspector.tsx:143
↓ 3 callersFunctionrenderBlockClip
( block: RenderBlock, face: Buffer | null, opts: { useSwapCache?: boolean; lipsyncAudioUrl?: str
apps/backend/src/lib/templateRender.ts:317
↓ 3 callersFunctionrunAndStoreRender
(params: { renderId: string; blocks: TemplateBlock[]; orderedAvatars: Avatar[]; audioClips?: TemplateA
apps/backend/src/lib/runRender.ts:16
↓ 3 callersFunctionserializeFaceSwap
Serialize a FaceSwap row, attaching public URLs for stored objects.
apps/backend/src/routes/faceswaps.ts:11
↓ 3 callersFunctionserializeImage
Serialize an Image row, attaching public URLs for stored objects.
apps/backend/src/routes/images.ts:20
↓ 3 callersFunctionserializeVideo
Serialize a Video row, attaching public URLs for stored objects.
apps/backend/src/routes/videos.ts:27
↓ 3 callersFunctionuseActionCosts
()
apps/frontend/src/lib/useActionCosts.ts:30
↓ 2 callersFunction_extension
(upload: UploadFile, default: str = "jpg")
infra/facefusion/server.py:59
↓ 2 callersFunctionapplyFaceSwap
( face: Buffer, frame: Buffer, frameMime: string, opts: { swapModel?: string | null; context?: string
apps/backend/src/lib/templateRender.ts:241
↓ 2 callersFunctionasDataUrl
(buffer: Buffer, mime: string)
apps/backend/src/lib/openrouter.ts:196
↓ 2 callersFunctionassertOwnedAvatars
Validate that the given avatar ids exist and belong to the user. Throws on mismatch.
apps/backend/src/routes/adminTemplates.ts:79
↓ 2 callersFunctionbuildBlockLipsyncAudio
( audioClips: RenderAudioClip[], block: { startSec: number; endSec: number }, )
apps/backend/src/lib/templateRender.ts:425
↓ 2 callersFunctioncaptureFrame
(slot: "start" | "end")
apps/frontend/src/components/timeline/Timeline.tsx:552
↓ 2 callersFunctiondetectImageContentType
Guess an image content type from the leading bytes of the buffer.
apps/backend/src/lib/openrouter.ts:138
↓ 2 callersFunctiondurationsForModel
(model: VideoModel | undefined)
apps/frontend/src/lib/api.ts:31
↓ 2 callersFunctionfaceSwap
( source: FaceSwapInput, target: FaceSwapInput, )
apps/backend/src/lib/facefusion.ts:23
↓ 2 callersFunctionfetchAdminTemplate
(id: string)
apps/frontend/src/lib/api.ts:328
↓ 2 callersFunctionfetchCreditPacks
()
apps/frontend/src/lib/api.ts:358
↓ 2 callersFunctionfetchModels
()
apps/frontend/src/lib/api.ts:284
↓ 2 callersFunctionfindPack
(packId: string)
apps/backend/src/lib/credits.ts:87
↓ 2 callersFunctionfirstFreeVideoTrack
First video track with room for [start,end), else a new track on top.
apps/frontend/src/pages/AdminTemplateCreatePage.tsx:162
↓ 2 callersFunctionformatTime
(sec: number)
apps/frontend/src/pages/GenerationPage.tsx:58
↓ 2 callersFunctionfriendlyError
(raw?: string | null)
apps/frontend/src/lib/utils.ts:12
↓ 2 callersFunctionfulfillPayment
* Grant a paid order's credits exactly once. Flips CREATED→PAID atomically; if * it was already PAID (e.g. the webhook beat us) we just return the ba
apps/backend/src/routes/credits.ts:128
↓ 2 callersFunctiongenerateVideo
(params: GenerateVideoParams)
apps/backend/src/lib/openrouter.ts:282
↓ 2 callersFunctionhandleBlockSaved
(updated: TemplateBlock)
apps/frontend/src/pages/AdminTemplateCreatePage.tsx:338
↓ 2 callersFunctionhandleGrabFrame
(slot: "start" | "end")
apps/frontend/src/components/timeline/BlockInspector.tsx:240
↓ 2 callersFunctionisCropped
Whether a block only uses part of its generated clip (cropped/trimmed).
apps/frontend/src/components/timeline/Timeline.tsx:29
↓ 2 callersFunctionisRazorpayConfigured
()
apps/backend/src/lib/razorpay.ts:14
↓ 2 callersFunctionlaneTop
(track: number)
apps/frontend/src/components/timeline/Timeline.tsx:215
↓ 2 callersFunctionload
(src: string)
apps/backend/scripts/test-flux-swap.ts:22
↓ 2 callersFunctionpackTotalCredits
(pack: CreditPack)
apps/backend/src/lib/credits.ts:91
↓ 2 callersFunctionpauseAllAudio
()
apps/frontend/src/components/timeline/Timeline.tsx:252
↓ 2 callersFunctionprepareFrame
( key: string | null | undefined, swap: boolean, swappedKey: string | null | undefined, )
apps/backend/src/lib/templateRender.ts:338
↓ 2 callersFunctionrequireKeys
Throws a clear error if Razorpay keys aren't set.
apps/backend/src/lib/razorpay.ts:19
↓ 2 callersFunctionresolveBlockFace
Download the avatar face buffer for a block's slot (or null if none/unassigned).
apps/backend/src/routes/adminTemplates.ts:95
↓ 2 callersFunctionresolveIsAdmin
(userId: string, email?: string)
apps/backend/src/middleware/requireAdmin.ts:16
↓ 2 callersFunctionrunFfprobe
Run ffprobe with the given args, resolving with its stdout (rejects on error).
apps/backend/src/lib/ffmpeg.ts:241
↓ 2 callersFunctionserializeAudioClip
(clip: TemplateAudioClip)
apps/backend/src/lib/templateSerialize.ts:10
↓ 2 callersFunctionserializeAvatar
(avatar: Avatar)
apps/backend/src/routes/avatars.ts:15
↓ 2 callersFunctionsniffMime
(buffer: Buffer)
apps/backend/scripts/test-flux-swap.ts:16
↓ 2 callersFunctionstopRaf
()
apps/frontend/src/components/timeline/Timeline.tsx:248
↓ 2 callersFunctionswapFaceWithImageModel
(params: SwapFaceParams)
apps/backend/src/lib/openrouter.ts:214
↓ 2 callersFunctionswapSide
(frameKey: string)
apps/backend/src/routes/adminTemplates.ts:650
↓ 2 callersFunctiontabClass
(active: boolean)
apps/frontend/src/pages/TemplatesPage.tsx:51
↓ 2 callersFunctiontimingSafeEqual
Constant-time string comparison that tolerates length mismatches.
apps/backend/src/lib/razorpay.ts:88
↓ 2 callersFunctiontoBlob
(input: FaceSwapInput)
apps/backend/src/lib/facefusion.ts:27
↓ 2 callersFunctiontopBlockAt
Topmost block (highest track, then latest start) covering time `t`.
apps/frontend/src/components/timeline/Timeline.tsx:40
↓ 2 callersFunctionuseMe
()
apps/frontend/src/lib/useMe.ts:14
↓ 2 callersFunctionwriteBlock
(blockId: string, data: Record<string, unknown>)
apps/backend/src/lib/runRender.ts:43
↓ 1 callersFunction_env_flag
(name: str, default: bool)
infra/facefusion/server.py:31
↓ 1 callersFunctionaspectToDims
Map an aspect ratio to output dimensions for the stitched video.
apps/backend/src/lib/templateRender.ts:131
↓ 1 callersFunctionaudioLaneTop
(track: number)
apps/frontend/src/components/timeline/Timeline.tsx:216
↓ 1 callersFunctionavatarFace
(slot: number)
apps/backend/src/lib/templateRender.ts:586
next →1–100 of 292, ranked by callers