MCPcopy Create free account

hub / github.com/cloudflare/templates / functions

Functions10,210 in github.com/cloudflare/templates

↓ 1 callersMethodforward
* Forward this email message to a verified destination address of the account. * @param rcptTo Verified destination address. * @param header
workers-builds-notifications-template/worker-configuration.d.ts:12856
↓ 1 callersMethodgenerateDevVars
()
workers-for-platforms-template/scripts/setup.js:543
↓ 1 callersFunctiongenerateInsights
( agents: AgentProfile[], products: ProductAnalytics[], security: SecurityMetrics, demand: DemandSignals,
agent-commerce-analytics-template/src/lib/store.ts:1039
↓ 1 callersFunctiongenerateJWT
( secret: string, expiresInSeconds: number = 3600 )
x402-proxy-template/src/jwt.ts:77
↓ 1 callersFunctiongenerateLlmsTxt
( products: EnrichedProduct[], full: boolean, config: MerchantConfig, )
commerce-llms-txt-template/src/llms-txt-worker/index.ts:170
↓ 1 callersFunctiongenerateNpmLockfiles
({ templateDirectory, }: NpmLockfilesConfig)
cli/src/npm.ts:17
↓ 1 callersFunctiongeneratePlaceholderReadme
(template: Template)
cli/src/lint.ts:252
↓ 1 callersFunctiongenerateSpeculationRules
* Generates speculation rules JSON for prefetching routes. * * Uses the Speculation Rules API to enable browser-native prefetching of routes. * Thi
microfrontend-template/index.ts:802
↓ 1 callersMethodgenerateStars
* Generates a star rating display * * @param {number} rating - The rating value (0-5) * @returns {string} - Star characters representing the rat
nlweb-template/public/recipe-renderer.js:188
↓ 1 callersMethodgetAITools
(filter: { serverId: string; state: "ready" })
voice-agent-template/src/voice/docsTools.ts:21
↓ 1 callersFunctiongetAccountId
(env = process.env)
internal-sites-template/scripts/setup.js:45
↓ 1 callersMethodgetAll
()
saas-admin-template/src/lib/services/customer_subscription.ts:90
↓ 1 callersMethodgetAll
()
saas-admin-template/src/lib/services/subscription.ts:63
↓ 1 callersMethodgetAvailablePort
()
playwright-tests/utils/template-server.ts:313
↓ 1 callersMethodgetBook
(bookId)
react-router-postgres-ssr-template/api/books-service.js:34
↓ 1 callersMethodgetById
(id: number)
saas-admin-template/src/lib/services/customer.ts:61
↓ 1 callersMethodgetById
(id)
saas-admin-template/src/lib/services/subscription.ts:52
↓ 1 callersFunctiongetCommitUrl
(event: CloudflareEvent)
workers-builds-notifications-template/src/helpers.ts:67
↓ 1 callersFunctiongetConfig
()
workers-for-platforms-template/scripts/setup-quick.js:59
↓ 1 callersFunctiongetCustomHostnameStatus
( env: Env, hostname: string, )
workers-for-platforms-template/src/cloudflare-api.ts:83
↓ 1 callersFunctiongetDispatchNamespaceFromConfig
()
internal-sites-template/scripts/setup.js:36
↓ 1 callersFunctiongetEnabledModels
(env: Env, domain: string)
ai-brand-visibility-template/workers/api.ts:426
↓ 1 callersFunctiongetEnrichedCatalog
( env: Env, ctx?: Pick<ExecutionContext, "waitUntil">, )
commerce-llms-txt-template/src/llms-txt-worker/index.ts:73
↓ 1 callersFunctiongetFiles
(prId: string, githubToken: string)
cli/src/depsInfo.ts:77
↓ 1 callersFunctiongetFriendlyError
(errors: string[])
workers-for-platforms-template/src/index.ts:316
↓ 1 callersFunctiongetIndex
(env: Env, domain: string)
ai-brand-visibility-template/workers/api.ts:417
↓ 1 callersMethodgetItemName
* Gets the name of an item * * @param {Object} item - The item data * @returns {string} - The item name
nlweb-template/public/json-renderer.js:216
↓ 1 callersFunctiongetLatestPackageVersion
(packageName: string)
cli/src/depsInfo.ts:106
↓ 1 callersFunctiongetLatestPackageVersion
(packageName: string)
cli/src/util.ts:372
↓ 1 callersMethodgetLiveUrl
(templateName: string)
playwright-tests/utils/template-server.ts:235
↓ 1 callersFunctiongetLoadContext
({ context }: GetLoadContextArgs)
remix-starter-template/load-context.ts:20
↓ 1 callersFunctiongetLoadContext
({ context }: GetLoadContextArgs)
to-do-list-kv-template/load-context.ts:19
↓ 1 callersFunctiongetNlWebResponse
( request: Request, env: Env, ctx: ExecutionContext, )
nlweb-template/src/index.ts:6
↓ 1 callersFunctiongetOrCreateUser
(env: Env, email: string)
openauth-template/src/index.ts:83
↓ 1 callersFunctiongetPRByBranch
({ githubToken, head, base, state, }: GetPRByBranchConfig)
cli/src/util.ts:344
↓ 1 callersFunctiongetPackageJSON
(url: string)
cli/src/depsInfo.ts:93
↓ 1 callersFunctiongetPackages
()
cli/src/depsUpdate.ts:270
↓ 1 callersFunctiongetPreloadScriptResponse
* Generates a preload script that fetches specified routes after DOM loads. * * This script is served at `${mount}/__mf-preload.js` and is injected
microfrontend-template/index.ts:735
↓ 1 callersFunctiongetPrompts
(env: Env, domain: string)
ai-brand-visibility-template/workers/api.ts:406
↓ 1 callersFunctiongetRawPath
* Get the request path without parsing the URL so normalization changes can be * detected before making an authorization decision.
x402-proxy-template/src/index.ts:32
↓ 1 callersMethodgetRelatedBooks
(bookId)
react-router-postgres-ssr-template/api/books-service.js:89
↓ 1 callersFunctiongetRequiredField
(formData: FormData, field: string)
internal-sites-template/src/assets.ts:106
↓ 1 callersFunctiongetResources
(env: Env)
agent-visibility-template/src/lib/store.ts:54
↓ 1 callersFunctiongetSSLMessage
(status: string, method: string)
workers-for-platforms-template/src/index.ts:342
↓ 1 callersMethodgetServerLogs
(name: string)
playwright-tests/utils/template-server.ts:373
↓ 1 callersFunctiongetSites
(env: Env)
ai-brand-visibility-template/workers/api.ts:402
↓ 1 callersMethodgetStreamingResponse
(query)
nlweb-template/public/fp-chat-interface.js:440
↓ 1 callersMethodgetStreamingResponse
(query)
nlweb-template/public/fp-chat-interface-snippet.js:434
↓ 1 callersMethodgetTemplate
(name: string)
playwright-tests/utils/template-server.ts:369
↓ 1 callersFunctiongetTemplates
(templateDirectory: string)
cli/src/util.ts:107
↓ 1 callersFunctiongetTestIgnorePatterns
()
playwright.config.ts:6
↓ 1 callersMethodgetTimeInfo
* Extracts and formats time information from schema * * @param {Object} schema - The recipe schema * @returns {string} - Formatted time informat
nlweb-template/public/recipe-renderer.js:162
↓ 1 callersFunctiongetVar
(name)
workers-for-platforms-template/scripts/setup-quick.js:651
↓ 1 callersMethodgetWebSockets
(tag?: string)
workers-builds-notifications-template/worker-configuration.d.ts:550
↓ 1 callersFunctiongitIgnored
(filePath: string)
cli/src/util.ts:137
↓ 1 callersFunctiongroupByGenre
(books)
react-router-postgres-ssr-template/app/lib/utils.js:1
↓ 1 callersFunctiongroupByGenre
(books)
react-postgres-fullstack-template/src/lib/utils.js:1
↓ 1 callersFunctionhandleApiRequest
( request: Request, env: Env, ctx: ExecutionContext, )
mysql-hyperdrive-template/src/index.ts:26
↓ 1 callersFunctionhandleApiRequest
( request: Request, env: Env, ctx: ExecutionContext, )
postgres-hyperdrive-template/src/index.ts:25
↓ 1 callersFunctionhandleApprove
(approved: boolean)
workflows-starter-template/src/components/WorkflowDiagram.tsx:49
↓ 1 callersFunctionhandleAsk
( request: Request, env: Env, ragId: string, ctx: ExecutionContext, )
nlweb-template/src/ask/index.ts:8
↓ 1 callersFunctionhandleBookSelect
(bookId)
react-router-postgres-ssr-template/app/components/BooksList.jsx:9
↓ 1 callersFunctionhandleBookSelect
(bookId)
react-postgres-fullstack-template/src/components/BooksList.jsx:49
↓ 1 callersFunctionhandleChatRequest
* Handles chat API requests
llm-chat-app-template/src/index.ts:55
↓ 1 callersFunctionhandleCloudflareResponse
(response: Response)
cli/src/util.ts:209
↓ 1 callersFunctionhandleEmail
( message: ForwardableEmailMessage, env: Env, )
email-routing-template/src/index.ts:57
↓ 1 callersFunctionhandleMountedApp
* Handles a request for a mounted microfrontend. * * This is the core request processing function that: * 1. Strips the mount prefix from the reque
microfrontend-template/index.ts:832
↓ 1 callersFunctionhandleRelatedBookClick
(bookId)
react-router-postgres-ssr-template/app/components/BookDetail.jsx:24
↓ 1 callersFunctionhandleRelatedBookClick
(bookId)
react-postgres-fullstack-template/src/components/BookDetail.jsx:24
↓ 1 callersFunctionhandleRequest
(request: Request, env: Env)
email-sending-template/src/index.ts:116
↓ 1 callersFunctionhandleSelectGenre
(genre)
react-postgres-fullstack-template/src/App.jsx:103
↓ 1 callersFunctionhandleSetup
( env: Env, domain: string, brandName: string, competitors: string, c: any, )
ai-brand-visibility-template/workers/api.ts:434
↓ 1 callersFunctionhandleStreaming
( rag: AutoRAG, params: Params, env: Env, ctx: ExecutionContext, )
nlweb-template/src/ask/index.ts:109
↓ 1 callersFunctionhasAbortedSignal
(options: unknown)
voice-agent-template/src/voice/voiceAIBinding.ts:17
↓ 1 callersFunctionhasAssetPrefix
* Checks if a path starts with any of the supported asset prefixes. * Used to determine if a URL should be rewritten. * * @param path - Path to che
microfrontend-template/index.ts:147
↓ 1 callersFunctionhasBotManagementException
( request: Request, config: ProtectedRouteConfig )
x402-proxy-template/src/bot-management/index.ts:23
↓ 1 callersFunctionhasItems
(value: unknown)
voice-agent-template/src/voice/voiceAIBinding.ts:13
↓ 1 callersFunctionhasNonCanonicalPath
* Reject paths whose resource identity changes when parsed as a URL. Forwarding * such a path could make the authorization check and origin resolve i
x402-proxy-template/src/index.ts:48
↓ 1 callersFunctionhasVoiceTextOutput
(text: string)
voice-agent-template/src/voice/metrics.ts:336
↓ 1 callersFunctionhashAsset
* SHA-256 hash salted with the script name and asset path. * Truncated to 32 hex chars (16 bytes) per the CF API spec. * The salt ensures asset isol
internal-sites-template/src/resource.ts:225
↓ 1 callersFunctionhashContent
(base64Content: string)
workers-for-platforms-template/src/resource.ts:84
↓ 1 callersMethodhideCenteredInput
()
nlweb-template/public/fp-chat-interface-snippet.js:1732
↓ 1 callersFunctionhighlightSyntax
(line: string)
workflows-starter-template/src/components/CodeDisplay.tsx:38
↓ 1 callersFunctionhtmlAssets
(html: string)
email-routing-template/test/index.test.ts:37
↓ 1 callersFunctionhtmlAssets
(html: string)
email-sending-template/test/index.test.ts:27
↓ 1 callersMethodinit
()
nlweb-template/public/nlweb-dropdown-chat.js:32
↓ 1 callersFunctioninitTables
(session: D1DatabaseSession)
d1-starter-sessions-api-template/src/index.ts:143
↓ 1 callersFunctioninitializeApp
()
mysql-hyperdrive-template/public/js/app.js:38
↓ 1 callersFunctioninitializeApp
()
postgres-hyperdrive-template/public/js/app.js:38
↓ 1 callersMethodinitializeChatInterface
(ModernChatInterface)
nlweb-template/public/nlweb-dropdown-chat.js:170
↓ 1 callersFunctioninitializeTables
()
mysql-hyperdrive-template/public/js/services/api.js:27
↓ 1 callersFunctioninitializeTables
()
postgres-hyperdrive-template/public/js/services/api.js:27
↓ 1 callersFunctionisAbortError
(error: unknown)
voice-agent-template/src/voice/voiceAIBinding.ts:22
↓ 1 callersFunctionisAbortError
(error: unknown)
voice-agent-template/src/voice/retryingTts.ts:8
↓ 1 callersFunctionisAbortError
(error: unknown)
voice-agent-template/src/voice/outputGuardrail.ts:22
↓ 1 callersFunctionisAbortException
(error: unknown)
voice-agent-template/src/voice/docsTools.ts:85
↓ 1 callersFunctionisAuthorized
Constant-time-ish bearer check for the mutating routes.
agent-visibility-template/src/worker/index.ts:67
↓ 1 callersFunctionisChromiumBrowser
* Detects if the browser is Chromium-based (Chrome, Edge, etc.) from User-Agent. * * Chromium-based browsers support the Speculation Rules API, whil
microfrontend-template/index.ts:763
↓ 1 callersFunctionisCurrentVoiceApproval
( expectedEpoch: number, currentEpoch: number, connectionActive: boolean, )
voice-agent-template/src/voice/metrics.ts:340
↓ 1 callersFunctionisDashTemplate
(packageJsonPath: string)
cli/src/util.ts:146
← previousnext →501–600 of 10,210, ranked by callers