Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/pollinations/pollinations
/ functions
Functions
5,304 in github.com/pollinations/pollinations
⨍
Functions
5,304
◇
Types & classes
961
↳
Endpoints
20
↓ 1 callers
Function
get_week_dates
Return (week_start, week_end, publish_date) as YYYY-MM-DD strings. Coverage stays Sun→Sat, but weekly artifacts are keyed by the Sunday publish da
social/scripts/generate_weekly.py:61
↓ 1 callers
Function
get_weekly_date
Get the Sunday publish date from env vars or current UTC date. If WEEK_START_DATE is provided, weekly artifacts live under start + 7 days. Ot
social/scripts/publish_weekly.py:44
↓ 1 callers
Function
githubAppCredentialsFromEnv
(env: { GITHUB_APP_ID?: string; GITHUB_APP_PRIVATE_KEY?: string; })
shared/github/app-auth.ts:240
↓ 1 callers
Function
gm
(e)
apps/operation/quest-dashboard/assets/bundle.js:18
↓ 1 callers
Function
groupByTag
Group operations by tag, then re-key the map to follow TAG_ORDER.
gen.pollinations.ai/scripts/generate-apidocs.ts:1011
↓ 1 callers
Function
groupPriceBadges
(prices: ModelPriceLine[])
enter.pollinations.ai/frontend/src/components/models/price-badge.tsx:33
↓ 1 callers
Function
groupScribeUtterances
( words: | { text: string; start: number; end: number;
gen.pollinations.ai/src/routes/audio.ts:445
↓ 1 callers
Function
groupVendorsByCategory
(vendors)
apps/operation/finance/lib/layout.mjs:57
↓ 1 callers
Function
guessFileExtension
(fieldName: string, mediaType: string)
gen.pollinations.ai/scripts/generate-apidocs.ts:502
↓ 1 callers
Function
guideHtml
(c: Context<Env>, guide: Guide)
gen.pollinations.ai/src/routes/docs.ts:930
↓ 1 callers
Function
guidesIndexHtml
(c: Context<Env>)
gen.pollinations.ai/src/routes/docs.ts:917
↓ 1 callers
Function
gx
(e,t={})
apps/operation/quest-dashboard/assets/bundle.js:2
↓ 1 callers
Function
h0
(e)
apps/operation/quest-dashboard/assets/bundle.js:29
↓ 1 callers
Function
handle3dPrompt
( c: Model3dContext, prompt: string, )
gen.pollinations.ai/src/model3d/handler.ts:37
↓ 1 callers
Function
handleAuthRedirect
()
apps/catgpt/script.js:473
↓ 1 callers
Function
handleCallback
(res, query)
apps/oauth-client-demo/server.js:103
↓ 1 callers
Function
handleClientReady
* Handle client ready event
apps/discord-bot-family/src-functional/bot-loop.ts:195
↓ 1 callers
Function
handleCombat
()
apps/ai-dungeon-master/src/App.tsx:864
↓ 1 callers
Function
handleCorsPreflightRequest
()
apps/websim/worker.js:152
↓ 1 callers
Function
handleCustomSubmit
()
apps/ai-dungeon-master/src/components/ChoicesSection.tsx:32
↓ 1 callers
Function
handleDelete
()
enter.pollinations.ai/frontend/src/components/community-endpoints/community-endpoints.tsx:77
↓ 1 callers
Function
handleDeleteVersion
(versionId: string)
apps/reimagine/src/screens/TransformationDetailScreen.tsx:198
↓ 1 callers
Method
handleError
* Handle API errors consistently
apps/reimagine/src/services/CivitaiService.ts:86
↓ 1 callers
Function
handleExpandClick
(index)
apps/gsoc/src/pages/Mentors.jsx:56
↓ 1 callers
Function
handleFaqClick
(question)
apps/gsoc/src/pages/socBot.jsx:549
↓ 1 callers
Function
handleFatalError
(error: any)
apps/discord-bot-family/src-functional/errors.ts:70
↓ 1 callers
Function
handleFetchModels
()
enter.pollinations.ai/frontend/src/components/community-endpoints/community-endpoint-dialog.tsx:103
↓ 1 callers
Function
handleGenerate
(res, session)
apps/oauth-client-demo/server.js:170
↓ 1 callers
Function
handleGenerateApi
(request)
apps/websim/worker.js:100
↓ 1 callers
Function
handleHashChange
()
enter.pollinations.ai/frontend/src/components/news-faq/faq.tsx:84
↓ 1 callers
Function
handleHome
(res, session)
apps/oauth-client-demo/server.js:206
↓ 1 callers
Function
handleImagePrompt
( c: ImageContext, prompt: string, )
gen.pollinations.ai/src/image/handler.ts:422
↓ 1 callers
Function
handleImageUpload
(file, notify)
apps/catgpt/ai.js:149
↓ 1 callers
Function
handleImageUpload
(file)
apps/map-to-isometric/src/App.jsx:23
↓ 1 callers
Function
handleListRegisteredServers
( c: ImageContext, )
gen.pollinations.ai/src/image/handler.ts:525
↓ 1 callers
Function
handleLogin
(res)
apps/oauth-client-demo/server.js:79
↓ 1 callers
Function
handleMessage
(msg: Message, client: Client)
apps/opposite-prompt-bot/bot.ts:90
↓ 1 callers
Function
handleMessage
(msg: Message, client: Client)
apps/catgpt-bot/bot.ts:108
↓ 1 callers
Function
handleMessageError
* Handle message processing errors without crashing the bot
apps/discord-bot-family/src-functional/bot-loop.ts:147
↓ 1 callers
Function
handleModeChange
(newMode)
apps/chat/src/components/ChatInput.jsx:111
↓ 1 callers
Function
handleNext
()
apps/operation/kpi/src/components/WeekSelector.jsx:11
↓ 1 callers
Function
handlePrev
()
apps/operation/kpi/src/components/WeekSelector.jsx:7
↓ 1 callers
Function
handleRequest
(request, env)
apps/websim/worker.js:51
↓ 1 callers
Function
handleScroll
()
pollinations.ai/src/hooks/useFooterVisibility.ts:7
↓ 1 callers
Function
handleSend
()
apps/chat/src/components/ChatInput.jsx:125
↓ 1 callers
Function
handleSimpleTextLocal
( c: TextContext, prompt: string, model: string, body: Record<string, unknown> = {}, )
gen.pollinations.ai/src/text/handler.ts:386
↓ 1 callers
Function
handleTest
()
enter.pollinations.ai/frontend/src/components/community-endpoints/community-endpoint-dialog.tsx:133
↓ 1 callers
Function
handleTextContentLocal
( c: TextContext, body: Record<string, unknown>, )
gen.pollinations.ai/src/text/handler.ts:374
↓ 1 callers
Function
handleToggleFavorite
(versionId: string)
apps/reimagine/src/screens/TransformationDetailScreen.tsx:77
↓ 1 callers
Function
handleVersionSelect
(versionId: string)
apps/reimagine/src/screens/TransformationDetailScreen.tsx:72
↓ 1 callers
Function
handle_dm_message
Handle DM messages - only subscription commands are allowed. Supported commands: - subscribe #123 or subscribe to 123 - unsubscribe
apps/polly/src/bot.py:902
↓ 1 callers
Function
handle_inline_polly_mention
Handle casual "polly" mention - inline, focused, human-like reply. Key differences from @polly: - Has channel history for CONTEXT (like
apps/polly/src/bot.py:1042
↓ 1 callers
Method
handle_issue_comment
Handle issue_comment event - someone commented on an issue/PR.
apps/polly/src/services/webhook_server.py:117
↓ 1 callers
Method
handle_issue_event
Handle issues event - issue opened/edited with @mention.
apps/polly/src/services/webhook_server.py:152
↓ 1 callers
Method
handle_pr_event
Handle pull_request event - PR opened/edited with @mention.
apps/polly/src/services/webhook_server.py:183
↓ 1 callers
Method
handle_pr_review
Handle PR review submission with @mention.
apps/polly/src/services/webhook_server.py:251
↓ 1 callers
Method
handle_pr_review_comment
Handle PR review comment (inline code comment).
apps/polly/src/services/webhook_server.py:216
↓ 1 callers
Function
handle_thread_message
Handle a message in an existing thread.
apps/polly/src/bot.py:1171
↓ 1 callers
Function
hasApiKeyBudget
( balance: number | null | undefined, )
shared/billing/track-helpers.ts:303
↓ 1 callers
Function
hasJsonContentType
(contentType: string)
gen.pollinations.ai/src/middleware/model.ts:38
↓ 1 callers
Function
hasMergedPr
(token: string, user: QuestUser)
enter.pollinations.ai/src/services/quests/groups/github-contributions.ts:251
↓ 1 callers
Function
hasObservedUsagePath
( usage: CommunityEndpointUsage | undefined, path: string, )
enter.pollinations.ai/frontend/src/components/community-endpoints/types.ts:119
↓ 1 callers
Function
hasPositivePriceInput
( form: EndpointFormState, field: PriceField, )
enter.pollinations.ai/frontend/src/components/community-endpoints/price-table.tsx:332
↓ 1 callers
Function
hasQuestLabel
(labels: { name: string }[])
enter.pollinations.ai/src/services/quests/groups/github-contributions.ts:164
↓ 1 callers
Function
hasTrustedProxyHeaders
(c: Context)
shared/public-origin.ts:21
↓ 1 callers
Function
hasValidVisibleFormPrices
( form: EndpointFormState, visiblePriceKeys: Set<PriceFieldKey>, )
enter.pollinations.ai/frontend/src/components/community-endpoints/price-table.tsx:340
↓ 1 callers
Function
hashKey
(key)
gen.pollinations.ai/scripts/seed-local-key.mjs:55
↓ 1 callers
Function
healthIntent
(status)
apps/model-monitor/src/App.jsx:118
↓ 1 callers
Function
hexToRgb
(hex)
apps/chat/src/components/ChartRenderer.jsx:37
↓ 1 callers
Function
hide
()
packages/ui/src/primitives/ScrollArea.tsx:70
↓ 1 callers
Function
hm
(e,t)
apps/operation/quest-dashboard/assets/bundle.js:18
↓ 1 callers
Function
humanizePricingKey
Humanize a camelCase pricing key, e.g. "promptTextTokens" -> "prompt text tokens".
packages/sdk/src/models.ts:48
↓ 1 callers
Function
hx
(e)
apps/operation/quest-dashboard/assets/bundle.js:2
↓ 1 callers
Function
i3
(e,t,n,r)
apps/operation/quest-dashboard/assets/bundle.js:29
↓ 1 callers
Method
imageGenerate
* Generate image(s) via the OpenAI-compatible POST endpoint. * Supports multi-image requests (`n > 1`) and both `url` / `b64_json` * respons
packages/sdk/src/client.ts:537
↓ 1 callers
Method
imageModels
* Get available image models * * @example * ```ts * const models = await pollinations.imageModels(); * console.log(models.map
packages/sdk/src/client.ts:1245
↓ 1 callers
Method
imageUrl
* Generate an image URL from a text prompt. * Hits the API first to authenticate, then returns a keyless URL that can be shared. * * @e
packages/sdk/src/client.ts:387
↓ 1 callers
Function
imageUrlToBase64Transform
( messages, options, )
gen.pollinations.ai/src/text/transforms/imageUrlToBase64Transform.ts:321
↓ 1 callers
Function
imageUrlToInlineData
(url: string)
gen.pollinations.ai/src/embeddings/input.ts:73
↓ 1 callers
Function
importSigningKey
(privateKey: string)
shared/github/app-auth.ts:121
↓ 1 callers
Function
indexPoolsByVendor
* Build a lookup: canonical vendor name → pool entry. * Used by the compute-section renderer to decide whether a vendor gets the * 3-row (balance/cr
apps/operation/finance/lib/layout.mjs:80
↓ 1 callers
Function
init_github_app
(app_id: str, private_key: str, installation_id: str)
apps/polly/src/services/github_auth.py:74
↓ 1 callers
Function
init_notifier
Initialize the notifier with the bot instance.
apps/polly/src/services/subscriptions.py:479
↓ 1 callers
Function
initializeModels
()
apps/chat/src/utils/api.js:181
↓ 1 callers
Method
initializeProvider
()
apps/micro/src/services/emailService.ts:13
↓ 1 callers
Function
initializeServices
()
apps/reimagine/App.tsx:14
↓ 1 callers
Function
initials
(name: string)
packages/ui/src/modules/auth/UserAvatar.tsx:15
↓ 1 callers
Function
injectApiKey
(apiKey)
apps/openclaw/src/script.js:52
↓ 1 callers
Function
injectDocsSocialHead
(html: string, c: Context<Env>)
gen.pollinations.ai/src/routes/seo.ts:117
↓ 1 callers
Function
injectSamples
(schema: OpenApiSchema)
gen.pollinations.ai/src/routes/docs.ts:737
↓ 1 callers
Method
input
* Creates a media transformer from an input stream. * @param media - The input media bytes * @returns A MediaTransformer instance for applyi
enter.pollinations.ai/worker-runtime.d.ts:10202
↓ 1 callers
Function
inputToGeminiParts
( input: string | ContentPart | ContentPart[], )
gen.pollinations.ai/src/embeddings/input.ts:84
↓ 1 callers
Function
ip
(e,t)
apps/operation/quest-dashboard/assets/bundle.js:2
↓ 1 callers
Function
isAllowedRedirectUrl
(url: URL)
shared/auth/redirect-uri.ts:53
↓ 1 callers
Function
isApiDocsPath
(path: string)
enter.pollinations.ai/src/index.ts:19
↓ 1 callers
Function
isAppKey
(apiKey: ApiKey)
enter.pollinations.ai/frontend/src/components/keys/edit-api-key-dialog.tsx:51
↓ 1 callers
Function
isAudioTranscriptionModel
( model: ModelCatalogItem | undefined, )
apps/playground/src/Playground.tsx:137
↓ 1 callers
Function
isAutoTopUpConfigured
( db: DrizzleD1Database, userId: string, )
gen.pollinations.ai/src/middleware/track.ts:338
↓ 1 callers
Function
isBillingPortalConfigurationCurrent
( configuration: Stripe.BillingPortal.Configuration, paymentMethodConfiguration: string | undefined, )
enter.pollinations.ai/src/utils/stripe-billing.ts:293
↓ 1 callers
Function
isBlockedHostname
(hostname: string)
shared/community-endpoints.ts:204
← previous
next →
2,701–2,800 of 5,304, ranked by callers