MCPcopy Create free account

hub / github.com/cloudflare/templates / functions

Functions10,210 in github.com/cloudflare/templates

↓ 1 callersMethodcreateDebugString
()
nlweb-template/public/fp-chat-interface.js:1914
↓ 1 callersMethodcreateDebugString
()
nlweb-template/public/fp-chat-interface-snippet.js:1796
↓ 1 callersMethodcreateEnsembleItemCard
(item)
nlweb-template/public/fp-chat-interface.js:919
↓ 1 callersMethodcreateEnsembleItemCard
(item)
nlweb-template/public/fp-chat-interface-snippet.js:953
↓ 1 callersFunctioncreateEnv
(socket: Socket)
grpc-container-template/test/index.spec.ts:41
↓ 1 callersFunctioncreateEnv
(overrides: Partial<TestEnv> = {})
email-routing-template/test/index.test.ts:27
↓ 1 callersFunctioncreateEnv
()
containers-template/test/index.spec.ts:4
↓ 1 callersFunctioncreateEnv
(overrides: Partial<TestEnv> = {})
email-sending-template/test/index.test.ts:12
↓ 1 callersFunctioncreateEnv
()
x402-proxy-template/test/index.test.ts:12
↓ 1 callersFunctioncreateEphemeralPhraseRotation
()
voice-agent-template/src/voice/ephemeralSpeech.ts:31
↓ 1 callersMethodcreateMap
* Create the Google Map with markers * @param {HTMLElement} mapDiv - The map container element * @param {Array} locations - Array of location obje
nlweb-template/public/display_map.js:107
↓ 1 callersFunctioncreateMessage
(from = "trusted@partner.example")
email-routing-template/test/index.test.ts:11
↓ 1 callersFunctioncreateMockEvent
( overrides: Partial<CloudflareEvent> = {}, )
workers-builds-notifications-template/test/index.spec.ts:43
↓ 1 callersMethodcreateNewChat
(existingInputElementId = null, site = null)
nlweb-template/public/fp-chat-interface-snippet.js:211
↓ 1 callersFunctioncreateNoAccessContext
* Create an ExecutionContext without ctx.access. * This simulates a request that was NOT authenticated by Access.
internal-sites-template/test/index.spec.ts:40
↓ 1 callersFunctioncreatePR
({ githubToken, ...params }: CreatePRConfig)
cli/src/util.ts:313
↓ 1 callersFunctioncreatePermanentToken
(config)
workers-for-platforms-template/scripts/setup-quick.js:154
↓ 1 callersFunctioncreateProtectedRoute
(config: ProtectedRouteConfig)
x402-proxy-template/src/auth.ts:78
↓ 1 callersFunctioncreateQueueMessage
( event: CloudflareEvent, )
workers-builds-notifications-template/test/index.spec.ts:82
↓ 1 callersFunctioncreateSocket
(chunks: Uint8Array[] = [], keepOpen = false)
grpc-container-template/test/index.spec.ts:4
↓ 1 callersFunctioncreateSubscription
(baseUrl, apiToken, subscription)
saas-admin-template/src/lib/api.ts:122
↓ 1 callersFunctioncreateTask
(taskData: any)
chanfana-openapi-template/tests/integration/tasks.test.ts:5
↓ 1 callersMethodcreateTitleRow
* Creates a title row for an item * * @param {Object} item - The item data * @param {HTMLElement} contentDiv - The content div
nlweb-template/public/json-renderer.js:177
↓ 1 callersFunctioncreateVoiceAIBinding
( binding: Ai, metricContext: VoiceMetricContext, llmModel: string, )
voice-agent-template/src/voice/voiceAIBinding.ts:42
↓ 1 callersFunctioncreateVoiceMetricContext
( connectionId: string, inputSource: VoiceInputSource, )
voice-agent-template/src/voice/metrics.ts:181
↓ 1 callersFunctioncreateVoiceTextStreamFinalizer
( context: VoiceMetricContext, llmModel: string, toolCount: number, )
voice-agent-template/src/voice/metrics.ts:348
↓ 1 callersFunctioncsvE
(s: string)
ai-brand-visibility-template/workers/api.ts:395
↓ 1 callersFunctiondbLogic
(c)
react-postgres-fullstack-template/api/routes/books.js:17
↓ 1 callersFunctiondecodeLlamaGuardBody
(body: string)
voice-agent-template/src/voice/checkPrompt.ts:51
↓ 1 callersFunctiondecontextualizeStreaming
({ query, prev = [], ai, stream, }: { query: string; prev?: string[]; ai: Ai; stream?: StreamingWrappe
nlweb-template/src/ask/decontextualize.ts:45
↓ 1 callersMethoddelete
* Deletes a todo item * @param id - The unique identifier of the todo item to delete * @returns Promise that resolves when the deletion is complet
to-do-list-kv-template/app/to-do-manager.ts:83
↓ 1 callersMethoddeleteConversation
(conversationId)
nlweb-template/public/fp-chat-interface.js:1632
↓ 1 callersMethoddeleteConversation
(conversationId)
nlweb-template/public/nlweb-dropdown-chat.js:440
↓ 1 callersMethoddeleteConversation
(conversationId, chatInterface)
nlweb-template/public/conversation-manager.js:332
↓ 1 callersFunctiondeleteOrganization
(id)
mysql-hyperdrive-template/public/js/app.js:134
↓ 1 callersFunctiondeleteOrganization
(id)
postgres-hyperdrive-template/public/js/app.js:134
↓ 1 callersMethoddeleteRememberedItem
(item)
nlweb-template/public/fp-chat-interface.js:2100
↓ 1 callersMethoddeleteRememberedItem
(item)
nlweb-template/public/fp-chat-interface-snippet.js:1982
↓ 1 callersFunctiondeleteUser
(id)
mysql-hyperdrive-template/public/js/app.js:122
↓ 1 callersFunctiondeleteUser
(id)
postgres-hyperdrive-template/public/js/app.js:122
↓ 1 callersFunctiondeploySnippetToNamespace
( opts: { namespaceName: string; scriptName: string; code: string; bindings?: Array< | { type: "pl
worker-publisher-template/src/index.ts:4
↓ 1 callersFunctiondeploySnippetToNamespace
(opts: { namespaceName: string; scriptName: string; code: string; // ES module Worker code bindings?: Arra
worker-publisher-template/scripts/deploy-wfp.ts:13
↓ 1 callersFunctiondeployedDirs
(calls: Call[])
cli/test/deployLiveDemos.test.ts:53
↓ 1 callersFunctiondeploymentRequest
(slug: string, name = "Test Site")
internal-sites-template/test/index.spec.ts:51
↓ 1 callersFunctiondepsInfo
({ prId, githubToken }: DepsInfoConfig)
cli/src/depsInfo.ts:35
↓ 1 callersFunctiondepsUpdate
({ githubToken, githubActor, }: DepsUpdateConfig)
cli/src/depsUpdate.ts:22
↓ 1 callersFunctionderiveTrustSignals
(input: { signatureInputHeader: string | null; signatureHeader: string | null; webBotAuthValid?: boolean;
agent-commerce-analytics-template/src/lib/store.ts:1241
↓ 1 callersFunctiondescribeAction
(e: AgentEvent)
agent-commerce-analytics-template/src/lib/store.ts:859
↓ 1 callersMethoddetectZoneForDomain
()
workers-for-platforms-template/scripts/setup.js:299
↓ 1 callersFunctiondetectZoneId
(config)
workers-for-platforms-template/scripts/setup-quick.js:279
↓ 1 callersFunctiondirectoryDocument
(keys: AgentKey[])
agent-visibility-template/src/lib/web-bot-auth.ts:190
↓ 1 callersMethoddiscoverTemplates
()
playwright-tests/utils/template-server.ts:87
↓ 1 callersFunctiondispatchToSite
Dispatch a request to a deployed site Worker by slug.
internal-sites-template/src/index.ts:390
↓ 1 callersMethoddisplayFinalReport
()
workers-for-platforms-template/scripts/setup.js:662
↓ 1 callersFunctionemptySummary
( period: string, merchantName: string, )
agent-commerce-analytics-template/src/lib/store.ts:1143
↓ 1 callersFunctionenrichCatalog
( products: RawProduct[], ai: AiTextGeneration, vertical = "general retail", model: string = DEFAULT_AI_MO
commerce-llms-txt-template/src/enrichment/index.ts:105
↓ 1 callersFunctionenrichProduct
( product: RawProduct, ai: AiTextGeneration, vertical: string, model: string = DEFAULT_AI_MODEL, )
commerce-llms-txt-template/src/enrichment/index.ts:49
↓ 1 callersFunctionensureDb
(db: D1Database)
internal-sites-template/src/index.ts:53
↓ 1 callersFunctionensureDispatchNamespace
(namespaceName, executeWrangler = runWrangler)
internal-sites-template/scripts/setup.js:75
↓ 1 callersFunctionensureDispatchNamespace
(namespaceName)
workers-for-platforms-template/scripts/setup-quick.js:121
↓ 1 callersMethodensureDispatchNamespace
()
workers-for-platforms-template/scripts/setup.js:394
↓ 1 callersMethodensureDispatchToken
()
workers-for-platforms-template/scripts/setup.js:451
↓ 1 callersFunctionequalBytes
(left: Uint8Array, right: Uint8Array)
voice-agent-template/src/auth.ts:36
↓ 1 callersFunctionerrorMessage
(error: unknown)
internal-sites-template/src/index.ts:570
↓ 1 callersFunctionesc
(s: string)
ai-brand-visibility-template/app/routes/results.tsx:228
↓ 1 callersFunctioneventKey
(timestamp: string)
agent-commerce-analytics-template/src/lib/store.ts:81
↓ 1 callersFunctionexecuteCloudflareDocsAttempt
( execute: ToolExecutor, input: unknown, options: ToolExecutionOptions<unknown>, )
voice-agent-template/src/voice/docsTools.ts:94
↓ 1 callersFunctionexecuteDocsTool
( docsRuntime: DocsToolRuntime, signal?: AbortSignal, )
voice-agent-template/test/docsTools.test.ts:39
↓ 1 callersFunctionexecuteJob
(env: Env, job: QueueJob)
ai-brand-visibility-template/workers/queue.ts:42
↓ 1 callersFunctionextractAIText
(r: any)
ai-brand-visibility-template/workers/api.ts:693
↓ 1 callersFunctionextractAuthorName
(author: string | undefined)
workers-builds-notifications-template/src/helpers.ts:54
↓ 1 callersMethodextractImage
* Extracts an image URL from a schema object * * @param {Object} schema_object - The schema object * @returns {string|null} - The image URL or n
nlweb-template/public/json-renderer.js:256
↓ 1 callersMethodextractImageInternal
* Extracts an image URL from various image formats * * @param {*} image - The image data * @returns {string|null} - The image URL or null
nlweb-template/public/json-renderer.js:307
↓ 1 callersMethodextractImageUrl
(schema_object)
nlweb-template/public/fp-chat-interface.js:1085
↓ 1 callersMethodextractImageUrl
(schema_object)
nlweb-template/public/fp-chat-interface-snippet.js:1119
↓ 1 callersMethodextractImageUrlFromField
(imageField)
nlweb-template/public/fp-chat-interface.js:1106
↓ 1 callersMethodextractImageUrlFromField
(imageField)
nlweb-template/public/fp-chat-interface-snippet.js:1140
↓ 1 callersFunctionextractProductSlug
(path: string)
agent-commerce-analytics-template/src/lib/store.ts:459
↓ 1 callersFunctionextractSpecs
* Extract specs from a Shopify product description. * * Shopify doesn't have a native "specs" field, so we parse the description * for spec-like pa
commerce-llms-txt-template/src/lib/shopify.ts:67
↓ 1 callersFunctionextractText
Extract text from any AI response format
ai-brand-visibility-template/workers/queue.ts:134
↓ 1 callersFunctionfallbackEnrichment
(product: RawProduct)
commerce-llms-txt-template/src/enrichment/index.ts:135
↓ 1 callersFunctionfallbackEnrichment
(raw: RawResource, model: string)
agent-visibility-template/src/enrichment/index.ts:147
↓ 1 callersFunctionfetch
(request: Request)
microfrontend-template/e2e/worker-a.ts:2
↓ 1 callersFunctionfetch
(request, env)
voice-agent-template/src/index.ts:8
↓ 1 callersFunctionfetch
* Main request handler for the Worker
llm-chat-app-template/src/index.ts:24
↓ 1 callersFunctionfetchBookDetail
()
react-postgres-fullstack-template/src/App.jsx:59
↓ 1 callersFunctionfetchBooks
()
react-postgres-fullstack-template/src/components/BooksList.jsx:10
↓ 1 callersFunctionfetchBuildLogs
( event: CloudflareEvent, env: Env, )
workers-builds-notifications-template/src/api.ts:83
↓ 1 callersFunctionfetchBuildUrls
( event: CloudflareEvent, env: Env, )
workers-builds-notifications-template/src/api.ts:27
↓ 1 callersFunctionfindPermGroup
(name)
workers-for-platforms-template/scripts/setup-quick.js:192
↓ 1 callersFunctionfindProtectedRouteConfig
* Helper to find the protected route config for a given path * Includes both built-in protected routes and configured patterns
x402-proxy-template/src/index.ts:140
↓ 1 callersFunctionfirstSentence
(text: string)
agent-visibility-template/src/enrichment/surfaces.ts:235
↓ 1 callersFunctionfixedMessage
(overrides: Record<string, unknown> = {})
voice-agent-template/test/fixedConfig.test.ts:12
↓ 1 callersFunctionflushAssistantText
()
llm-chat-app-template/public/chat.js:102
↓ 1 callersFunctionformatBytes
(bytes: number)
internal-sites-template/src/render.ts:16
↓ 1 callersMethodformatDebugData
(data)
nlweb-template/public/fp-chat-interface.js:1978
↓ 1 callersMethodformatDebugData
(data)
nlweb-template/public/fp-chat-interface-snippet.js:1860
↓ 1 callersMethodformatDuration
* Formats an ISO 8601 duration string to human-readable format * * @param {string} duration - ISO 8601 duration string (e.g., PT1H30M) * @return
nlweb-template/public/recipe-renderer.js:208
↓ 1 callersFunctionformatMinutesAgo
(m: number)
agent-commerce-analytics-template/src/react-app/App.tsx:643
↓ 1 callersMethodformatValue
* Formats a value as HTML * * @param {*} value - The value to format * @param {number} indent - The indentation level * @returns {string} - HT
nlweb-template/public/json-renderer.js:389
← previousnext →401–500 of 10,210, ranked by callers