Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/pollinations/pollinations
/ functions
Functions
5,304 in github.com/pollinations/pollinations
⨍
Functions
5,304
◇
Types & classes
961
↳
Endpoints
20
↓ 6 callers
Function
_t
(e)
apps/operation/quest-dashboard/assets/bundle.js:2
↓ 6 callers
Function
addUtcMonths
(date: Date, months: number)
packages/ui/src/compositions/PeriodPicker.tsx:43
↓ 6 callers
Function
aggregate
(rows)
apps/operation/finance/lib/aggregate.mjs:13
↓ 6 callers
Function
arrayBufferToBase64
Convert ArrayBuffer to base64
packages/sdk/src/extras.ts:63
↓ 6 callers
Function
budgetHint
( status: number, bodyText: string, )
packages/polli-cli/src/lib/errors.ts:4
↓ 6 callers
Function
calcChange
(current, previous)
apps/operation/kpi/src/App.jsx:314
↓ 6 callers
Function
calculateBillingAdjustments
( svc: ModelDefinition<string>, output: unknown, )
shared/registry/registry.ts:228
↓ 6 callers
Function
callSeedream5API
( prompt: string, safeParams: ImageParams, )
gen.pollinations.ai/src/image/models/seedreamReplicateModel.ts:359
↓ 6 callers
Function
callTrellis2
( params: Model3dParams, )
gen.pollinations.ai/src/model3d/models/trellis2Model.ts:23
↓ 6 callers
Function
categoryIndex
(category)
apps/operation/finance/lib/categories.mjs:21
↓ 6 callers
Function
claimReward
( db: AuthDb, { rewardId, userId, }: { rewardId: string; userId: s
shared/billing/rewards.ts:114
↓ 6 callers
Function
closestByRatio
( width: number, height: number, table: readonly T[], )
gen.pollinations.ai/src/image/utils/aspectRatio.ts:27
↓ 6 callers
Function
colLetter
(zeroIdx)
apps/operation/finance/bin/rebuild-sheet.mjs:31
↓ 6 callers
Function
communityEndpointPrices
( source: Partial<CommunityEndpointPrices>, )
shared/community-endpoints.ts:57
↓ 6 callers
Function
createAuth
(env: Cloudflare.Env, ctx?: ExecutionContext)
enter.pollinations.ai/src/auth.ts:25
↓ 6 callers
Function
createGeminiToolsTransform
(toolNames: GeminiToolName[])
gen.pollinations.ai/src/text/transforms/createGeminiToolsTransform.ts:19
↓ 6 callers
Function
createReasoningEffortTransform
( capability: ReasoningCapability, )
gen.pollinations.ai/src/text/transforms/createReasoningEffortTransform.ts:27
↓ 6 callers
Function
derTLV
(tag: number, content: Uint8Array)
shared/github/app-auth.ts:81
↓ 6 callers
Function
disableAutoTopUp
(db: D1Database, userId: string)
enter.pollinations.ai/src/utils/stripe-billing.ts:1296
↓ 6 callers
Function
fetchModelCatalog
({ apiKey, baseUrl = DEFAULT_BASE_URL, signal, }: FetchModelCatalogOptions = {})
packages/sdk/src/models.ts:161
↓ 6 callers
Function
filterVisible
( ids: TModelName[], )
shared/registry/registry.ts:367
↓ 6 callers
Method
findContainerIndex
(e,t)
apps/operation/quest-dashboard/assets/bundle.js:29
↓ 6 callers
Function
findInvoice
( state: MockStripeState, id: string, )
enter.pollinations.ai/test/mocks/stripe.ts:706
↓ 6 callers
Function
fm
(e,t,n)
apps/operation/quest-dashboard/assets/bundle.js:16
↓ 6 callers
Function
formatPricePer1M
(price: number)
enter.pollinations.ai/frontend/src/components/models/formatters.ts:5
↓ 6 callers
Function
formatType
(schema: Schema | undefined)
gen.pollinations.ai/scripts/generate-apidocs.ts:114
↓ 6 callers
Function
formatUsdCentsCompact
(amountCents: number)
shared/pollen-packs.ts:95
↓ 6 callers
Method
freeze
()
apps/operation/quest-dashboard/assets/bundle.js:14
↓ 6 callers
Function
getAuthorizeInitialPermissions
({ models, budget, expiry, permissions, }: AuthorizeDefaultsInput)
shared/auth/authorize-config.ts:64
↓ 6 callers
Function
getModelPricesFromCatalog
( models: ApiModelInfo[], modelStats?: ModelStats, )
enter.pollinations.ai/frontend/src/components/models/model-catalog.ts:458
↓ 6 callers
Function
getRealClientIp
(c: Context)
shared/client-ip.ts:14
↓ 6 callers
Function
getTextModelsInfo
()
shared/registry/model-info.ts:148
↓ 6 callers
Function
getVisibleModelEntriesForEventType
( c: Context<Env>, eventType: GenerationModelEntry["eventType"], )
gen.pollinations.ai/src/routes/proxy.ts:248
↓ 6 callers
Method
get_issue_full
(self, issue_number: int, comments_count: int = 5)
apps/polly/src/services/github_graphql.py:128
↓ 6 callers
Method
get_issue_node_id
(self, issue_number: int, for_projects: bool = False)
apps/polly/src/services/github_graphql.py:428
↓ 6 callers
Method
get_token
(self)
apps/polly/src/services/github_auth.py:37
↓ 6 callers
Function
imageMessage
(urls: string[])
gen.pollinations.ai/test/text/transforms/imageUrlToBase64Transform.test.ts:11
↓ 6 callers
Function
isActivePath
(path)
apps/gsoc/src/components/Navbar.jsx:40
↓ 6 callers
Function
isUploaded
(url: string)
apps/ai-dungeon-master/src/components/GalleryModal.tsx:45
↓ 6 callers
Function
je
()
apps/operation/quest-dashboard/assets/bundle.js:2
↓ 6 callers
Function
kn
(e)
apps/operation/quest-dashboard/assets/bundle.js:29
↓ 6 callers
Function
logGptImageError
( prompt: string, safeParams: ImageParams, userInfo = {}, error: Error, contentSafetyResul
gen.pollinations.ai/src/image/utils/gptImageLogger.ts:28
↓ 6 callers
Function
mockReplicateFetch
* Mock the Replicate predictions endpoint (Prefer: wait returns a terminal * status inline, so no polling). Captures each call's model slug + input.
gen.pollinations.ai/test/image/wanVideoModel.test.ts:45
↓ 6 callers
Function
mr
(e,t)
apps/operation/quest-dashboard/assets/bundle.js:29
↓ 6 callers
Function
normalizeCommunityEndpointBaseUrl
(value: string)
shared/community-endpoints.ts:139
↓ 6 callers
Function
normalizeCommunityEndpointBearerToken
(value: string)
shared/community-endpoints.ts:112
↓ 6 callers
Function
normalizeDisplayBalance
(value: number)
enter.pollinations.ai/frontend/src/components/pollen/pollen-balance.tsx:41
↓ 6 callers
Function
params
(overrides: Partial<Model3dParams> = {})
gen.pollinations.ai/test/model3d/rodinModel.test.ts:23
↓ 6 callers
Function
parseUsageHeaders
( headers: Headers | Record<string, string>, )
shared/registry/usage-headers.ts:259
↓ 6 callers
Function
parse_json_response
Parse JSON from AI response, stripping markdown fences.
social/scripts/common.py:124
↓ 6 callers
Function
periodFromDate
( granularity: PeriodGranularity, date = new Date(), )
packages/ui/src/lib/period.ts:65
↓ 6 callers
Function
readError
(response: Response)
enter.pollinations.ai/frontend/src/components/community-endpoints/types.ts:194
↓ 6 callers
Function
read_news_file
Read a JSON file from the news branch (local overlay first, GitHub API fallback). The workflow overlays social/news/ from the news branch onto th
social/scripts/common.py:655
↓ 6 callers
Function
removeUnset
(obj: T)
shared/util.ts:20
↓ 6 callers
Function
requireCommunityEndpointManageAccess
( db: Db, userId: string, apiKey?: { permissions?: Record<string, string[]>; metad
enter.pollinations.ai/src/routes/community-endpoints.ts:244
↓ 6 callers
Function
requireGenerationAccess
( vars: GenerationAccessVariables, env: CloudflareBindings, )
gen.pollinations.ai/src/utils/generation-access.ts:60
↓ 6 callers
Function
resolveModelName
(model: string)
shared/registry/registry.ts:318
↓ 6 callers
Function
rewardIconKind
( balanceBucket: string | null | undefined, )
enter.pollinations.ai/frontend/src/components/quests/quest-overview.tsx:162
↓ 6 callers
Function
runInferenceportSync
( opts: RunOptions, )
gen.pollinations.ai/src/model3d/models/inferenceportClient.ts:70
↓ 6 callers
Method
sendNotificationEmail
(to: string | string[], title: string, message: string, serviceName?: string)
apps/micro/src/wrapper.ts:27
↓ 6 callers
Function
sendStripeEventToTinybird
( env: CloudflareBindings, data: StripeEventData, )
enter.pollinations.ai/src/routes/stripe-webhooks.ts:259
↓ 6 callers
Function
setReplicateEnv
()
gen.pollinations.ai/test/image/wanVideoModel.test.ts:91
↓ 6 callers
Function
slug
* Matches github-slugger: strips chars that aren't letters/numbers/spaces/dashes/underscores * (so emoji and VS-16 are removed), then converts whites
gen.pollinations.ai/scripts/generate-apidocs.ts:91
↓ 6 callers
Function
sr
(e,t)
apps/operation/quest-dashboard/assets/bundle.js:29
↓ 6 callers
Function
syncModel3dEnvironment
(env: CloudflareBindings)
gen.pollinations.ai/src/model3d/env.ts:8
↓ 6 callers
Function
tokenError
(c: Context<Env>, error: string, description?: string)
enter.pollinations.ai/src/routes/oauth.ts:53
↓ 6 callers
Function
tr
(e,t)
apps/operation/quest-dashboard/assets/bundle.js:29
↓ 6 callers
Function
transcribeWithAssemblyAi
(opts: { file: File; language?: string; prompt?: string; responseFormat?: string; temperat
gen.pollinations.ai/src/routes/assemblyai-transcription.ts:52
↓ 6 callers
Method
updateTabbableNodes
()
apps/operation/quest-dashboard/assets/bundle.js:29
↓ 6 callers
Function
withSeed
( input: Record<string, unknown>, safeParams: ImageParams, )
gen.pollinations.ai/src/image/models/wanVideoModel.ts:94
↓ 5 callers
Function
Br
(e,t)
apps/operation/quest-dashboard/assets/bundle.js:2
↓ 5 callers
Function
Bt
(...e)
apps/operation/quest-dashboard/assets/bundle.js:2
↓ 5 callers
Function
Cr
(e,t)
apps/operation/quest-dashboard/assets/bundle.js:2
↓ 5 callers
Function
Gt
(e)
apps/operation/quest-dashboard/assets/bundle.js:22
↓ 5 callers
Function
Header
({ headerSlot })
apps/react/src/showcase/sections.tsx:105
↓ 5 callers
Function
L
()
apps/operation/quest-dashboard/assets/bundle.js:2
↓ 5 callers
Function
Qr
apps/operation/quest-dashboard/assets/bundle.js:29
↓ 5 callers
Function
Vn
(e)
apps/operation/quest-dashboard/assets/bundle.js:2
↓ 5 callers
Function
Vr
(e,t)
apps/operation/quest-dashboard/assets/bundle.js:2
↓ 5 callers
Function
Wn
(e)
apps/operation/quest-dashboard/assets/bundle.js:2
↓ 5 callers
Function
Wr
apps/operation/quest-dashboard/assets/bundle.js:8
↓ 5 callers
Function
Wt
(e)
apps/operation/quest-dashboard/assets/bundle.js:2
↓ 5 callers
Function
_color_cycle
(n: int)
apps/polly/src/services/chart_renderer.py:240
↓ 5 callers
Function
_get_collection
()
apps/polly/src/services/doc_embeddings.py:51
↓ 5 callers
Function
_labels
Pull data['labels'], or generate sequential placeholders.
apps/polly/src/services/chart_renderer.py:232
↓ 5 callers
Function
_weekly_image_context
Load weekly image identity from weekly.md (everything after '## Weekly Image Identity').
social/scripts/generate_weekly.py:51
↓ 5 callers
Method
after
(content: string | ReadableStream | Response, options?: ContentOptions)
enter.pollinations.ai/worker-runtime.d.ts:1516
↓ 5 callers
Function
arrayBufferToBase64
(buffer)
packages/mcp/src/utils/coreUtils.js:233
↓ 5 callers
Function
arrayBufferToBase64
(buffer: ArrayBuffer)
gen.pollinations.ai/src/util.ts:23
↓ 5 callers
Function
bodyOf
(call: unknown[])
packages/sdk/src/client.test.ts:95
↓ 5 callers
Function
br
(e,t,n)
apps/operation/quest-dashboard/assets/bundle.js:2
↓ 5 callers
Function
bufferToUint8Array
(buffer: Buffer)
gen.pollinations.ai/src/image/utils/imageDownload.ts:4
↓ 5 callers
Function
callSeedreamProAPI
( prompt: string, safeParams: ImageParams, )
gen.pollinations.ai/src/image/models/seedreamReplicateModel.ts:351
↓ 5 callers
Function
callWithFakeTimers
( prompt: string, p: Model3dParams, )
gen.pollinations.ai/test/model3d/rodinModel.test.ts:69
↓ 5 callers
Function
closestRatioLogSpace
( width: number, height: number, ratios: readonly T[], )
gen.pollinations.ai/src/image/utils/aspectRatio.ts:45
↓ 5 callers
Function
colLetter
(zeroIdx)
apps/operation/finance/lib/layout.mjs:28
↓ 5 callers
Function
commitSelection
(next: string[])
enter.pollinations.ai/frontend/src/components/keys/account-permissions-input.tsx:119
↓ 5 callers
Function
consumeAndWait
(result: Awaited<ReturnType<typeof dispatch>>)
gen.pollinations.ai/test/media-cache.test.ts:91
↓ 5 callers
Function
createErrorResponse
* Creates a standardized error response
shared/error.ts:255
↓ 5 callers
Function
createHonoMockHandler
(handler: Hono)
shared/test/mocks/fetch.ts:20
← previous
next →
401–500 of 5,304, ranked by callers