MCPcopy Create free account

hub / github.com/cloudflare/templates / functions

Functions9,650 in github.com/cloudflare/templates

↓ 3 callersFunctiongetAuthHeaders
(env: Env)
workers-for-platforms-template/src/cloudflare-api.ts:4
↓ 3 callersMethodgetBooks
(options = {})
react-router-postgres-ssr-template/api/books-service.js:205
↓ 3 callersFunctiongetDashboardUrl
(event: CloudflareEvent)
workers-builds-notifications-template/src/helpers.ts:85
↓ 3 callersMethodgetStateMessage
* Get the current state as a message object
workflows-starter-template/worker/durable-object.ts:136
↓ 3 callersMethodhideCenteredInput
()
nlweb-template/public/fp-chat-interface.js:1850
↓ 3 callersFunctionisApiConfigured
(env: Env)
workers-for-platforms-template/src/cloudflare-api.ts:18
↓ 3 callersFunctionloadUsers
(orgFilter = "")
mysql-hyperdrive-template/public/js/app.js:155
↓ 3 callersFunctionloadUsers
(orgFilter = "")
postgres-hyperdrive-template/public/js/app.js:155
↓ 3 callersFunctionnormalizeSlug
(value: string)
internal-sites-template/src/assets.ts:95
↓ 3 callersMethodonCloseOrError
(connection: Connection)
multiplayer-globe-template/src/server/index.ts:61
↓ 3 callersMethodpopulateSiteDropdown
()
nlweb-template/public/fp-chat-interface-snippet.js:1937
↓ 3 callersFunctionprocessCustomerResults
(rows: any[])
saas-admin-template/src/lib/services/customer.ts:25
↓ 3 callersFunctionprocessCustomerSubscriptionResults
(rows)
saas-admin-template/src/lib/services/customer_subscription.ts:33
↓ 3 callersMethodregisterAll
* Registers all type renderers with a JSON renderer * * @param {JsonRenderer} jsonRenderer - The JSON renderer to register with
nlweb-template/public/type-renderers.js:162
↓ 3 callersFunctionrenderShell
( body: string, options: { title?: string; eyebrow?: string; heading?: string; siteDomain?: string;
internal-sites-template/src/ui.ts:16
↓ 3 callersMethodreply
* Reply to the sender of this email message with a new EmailMessage object. * @param message The reply message. * @returns A promise that re
workers-builds-notifications-template/worker-configuration.d.ts:12464
↓ 3 callersMethodsanitizeUrl
* Sanitizes a URL to prevent javascript: protocol and other potentially dangerous URLs * * @param {string} url - The URL to sanitize * @returns
nlweb-template/public/json-renderer.js:471
↓ 3 callersMethodscrollToBottom
()
nlweb-template/public/fp-chat-interface.js:1661
↓ 3 callersMethodsearch
(query)
nlweb-template/public/nlweb-dropdown-chat.js:489
↓ 3 callersMethodsendMessage
(messageText = null)
nlweb-template/public/fp-chat-interface-snippet.js:283
↓ 3 callersFunctionsetLoading
(loading)
postgres-hyperdrive-template/public/js/components/ui.js:73
↓ 3 callersMethodshowDropdown
()
nlweb-template/public/nlweb-dropdown-chat.js:454
↓ 3 callersFunctionstringToArrayBuffer
* Convert string to Uint8Array
x402-proxy-template/src/jwt.ts:44
↓ 3 callersMethodupdateConversationsList
()
nlweb-template/public/nlweb-dropdown-chat.js:369
↓ 3 callersMethodupdateConversationsList
* Updates the list of conversations displayed in the UI. * * @param {HTMLElement|null} container - The container element where the conversations l
nlweb-template/public/fp-chat-interface-snippet.js:1521
↓ 3 callersMethodupdateRememberedItems
()
nlweb-template/public/nlweb-dropdown-chat.js:505
↓ 3 callersMethodupdateRememberedItemsList
()
nlweb-template/public/fp-chat-interface.js:2125
↓ 3 callersMethodupdateRememberedItemsList
()
nlweb-template/public/fp-chat-interface-snippet.js:2007
↓ 3 callersFunctionwriteJson
(filePath: string, object: unknown)
cli/src/util.ts:173
↓ 3 callersMethodwriteStream
* Writes a JSON object to the SSE stream. * @param data The JSON data to send.
nlweb-template/src/ask/stream-wrapper.ts:16
↓ 2 callersMethod#beginEphemeralSpeech
( connection: Connection, metricContext: VoiceMetricContext, phase: VoiceEphemeralPhase, delayMs: numb
voice-agent-template/src/VoiceAgent.ts:785
↓ 2 callersMethod#beginVoiceFlow
( connection: Connection, inputSource: VoiceInputSource, transcriptLength: number, )
voice-agent-template/src/VoiceAgent.ts:757
↓ 2 callersMethod#buildTts
()
voice-agent-template/src/VoiceAgent.ts:742
↓ 2 callersMethod#finishEphemeralSpeechMetric
( state: VoiceEphemeralSpeechState, outcome: VoiceEphemeralOutcome, flowStopped: boolean, )
voice-agent-template/src/VoiceAgent.ts:895
↓ 2 callersMethod#queueRetentionScheduleOperation
( operation: () => Promise<void>, )
voice-agent-template/src/VoiceAgent.ts:1088
↓ 2 callersMethod#resetDocsToolServer
( server: DocsToolServer, expectedConnection?: Promise<void>, )
voice-agent-template/src/VoiceAgent.ts:1161
↓ 2 callersMethod#validatePrompt
( transcript: string, connection: Connection, metricContext: VoiceMetricContext, signal?: AbortSignal,
voice-agent-template/src/VoiceAgent.ts:911
↓ 2 callersFunctionBaseURI
(env: Env)
internal-sites-template/src/resource.ts:15
↓ 2 callersFunctionBaseURI
(env: Env)
workers-for-platforms-template/src/resource.ts:6
↓ 2 callersFunctionPutStaticSiteInDispatchNamespace
( env: Env, scriptName: string, assets: UploadedAsset[], )
internal-sites-template/src/resource.ts:112
↓ 2 callersMethodack
()
workers-builds-notifications-template/worker-configuration.d.ts:1997
↓ 2 callersMethodaddMessageToUI
(content, type, animate = true)
nlweb-template/public/fp-chat-interface-snippet.js:353
↓ 2 callersMethodaddress
()
workers-builds-notifications-template/worker-configuration.d.ts:13135
↓ 2 callersFunctionagentDisplayName
(e: AgentEvent)
agent-commerce-analytics-template/src/lib/store.ts:476
↓ 2 callersFunctionagentKey
(e: AgentEvent)
agent-commerce-analytics-template/src/lib/store.ts:472
↓ 2 callersFunctionauthorizeVoiceAgentRequest
( request: Request, env: VoiceAgentAuthEnv, )
voice-agent-template/src/auth.ts:56
↓ 2 callersFunctionblockedResult
(categories: readonly string[])
voice-agent-template/src/voice/checkPrompt.ts:63
↓ 2 callersMethodbody
()
workers-builds-notifications-template/worker-configuration.d.ts:2070
↓ 2 callersFunctionbuildVoiceGreeting
()
voice-agent-template/src/voice/trustedAgent.ts:23
↓ 2 callersFunctionbuildVoiceSystemPrompt
( additionalRules: readonly string[] = [], )
voice-agent-template/src/voice/trustedAgent.ts:27
↓ 2 callersFunctioncacheTtl
(env: Env, resources: Resource[])
agent-visibility-template/src/lib/store.ts:38
↓ 2 callersFunctionclaimCall
( currentCallId: string | null, connectionId: string, )
voice-agent-template/src/voice/lifecycle.ts:8
↓ 2 callersFunctioncleanResponse
(text: string | undefined)
ai-brand-visibility-template/app/routes/results.tsx:528
↓ 2 callersFunctioncommentOnPR
({ prId, githubToken, body, noDuplicates, }: CommentOnPRConfig)
cli/src/util.ts:235
↓ 2 callersFunctioncontentTypeForPath
(path: string)
internal-sites-template/src/assets.ts:223
↓ 2 callersFunctionconversationCleanupDeadline
(timestamp: number)
voice-agent-template/src/voice/lifecycle.ts:29
↓ 2 callersFunctionconvertToMarkdownTable
(arr: Array<Record<string, unknown>>)
cli/src/util.ts:384
↓ 2 callersMethodcreateJsonItemHtml
* Creates an HTML element for a JSON item * * @param {Object} item - The item data * @returns {HTMLElement} - The HTML element
nlweb-template/public/json-renderer.js:58
↓ 2 callersFunctiondecontextualize
({ query, prev = [], ai, }: { query: string; prev?: string[]; ai: Ai; })
nlweb-template/src/ask/decontextualize.ts:5
↓ 2 callersFunctiondeployPath
(env: Env)
internal-sites-template/src/index.ts:566
↓ 2 callersFunctionderiveTitle
(text: string, slug: string)
agent-visibility-template/src/enrichment/index.ts:163
↓ 2 callersFunctionemptyTrustBreakdown
()
agent-commerce-analytics-template/src/lib/store.ts:1202
↓ 2 callersMethodendStreaming
()
nlweb-template/public/fp-chat-interface.js:1133
↓ 2 callersMethodendStreaming
()
nlweb-template/public/fp-chat-interface-snippet.js:1167
↓ 2 callersFunctionenrichAll
( ai: Ai, model: string, raws: RawResource[], )
agent-visibility-template/src/enrichment/index.ts:134
↓ 2 callersFunctionenrichResource
( ai: Ai, model: string, raw: RawResource, )
agent-visibility-template/src/enrichment/index.ts:86
↓ 2 callersFunctionescapeHtml
(text: string)
workers-for-platforms-template/src/render.ts:21
↓ 2 callersMethodescapeHtml
(text)
nlweb-template/public/fp-chat-interface.js:2042
↓ 2 callersMethodescapeHtml
(text)
nlweb-template/public/fp-chat-interface-snippet.js:1924
↓ 2 callersFunctionescapeRegexLiteral
* Escapes special regex characters in a string so it can be used as a literal * in a regular expression.
microfrontend-template/index.ts:171
↓ 2 callersFunctionexecuteWrangler
(args, env)
internal-sites-template/scripts/test-setup.js:57
↓ 2 callersFunctionextractBuildError
(logs: string[])
workers-builds-notifications-template/src/helpers.ts:141
↓ 2 callersFunctionfetch
(request: Request, env: Env)
workflows-starter-template/worker/index.ts:15
↓ 2 callersFunctionfetchOrganizations
()
mysql-hyperdrive-template/public/js/services/api.js:33
↓ 2 callersFunctionfetchOrganizations
()
postgres-hyperdrive-template/public/js/services/api.js:33
↓ 2 callersFunctionfetchShopifyCatalog
( storeDomain: string, storePassword?: string, )
commerce-llms-txt-template/src/lib/shopify.ts:158
↓ 2 callersFunctionfetchUsers
(orgFilter = "")
mysql-hyperdrive-template/public/js/services/api.js:51
↓ 2 callersFunctionfetchUsers
(orgFilter = "")
postgres-hyperdrive-template/public/js/services/api.js:51
↓ 2 callersFunctionfinish
(result: DocsToolsWaitResult)
voice-agent-template/src/voice/docsTools.ts:244
↓ 2 callersFunctionfirstSentences
(text: string, n: number)
agent-visibility-template/src/enrichment/index.ts:172
↓ 2 callersFunctionformatDate
(dateString)
mysql-hyperdrive-template/public/js/utils/formatters.js:8
↓ 2 callersFunctionformatDate
(dateString)
postgres-hyperdrive-template/public/js/utils/formatters.js:8
↓ 2 callersMethodformatObject
* Formats an object as HTML * * @param {Object} obj - The object to format * @param {number} indent - The indentation level * @returns {string
nlweb-template/public/json-renderer.js:365
↓ 2 callersFunctiongetAuthHeaders
(apiToken)
workers-for-platforms-template/scripts/setup-quick.js:85
↓ 2 callersFunctiongetBuildStatus
(event: CloudflareEvent)
workers-builds-notifications-template/src/helpers.ts:15
↓ 2 callersFunctiongetCatalogWithLiveInventory
()
commerce-llms-txt-template/src/lib/catalog.ts:155
↓ 2 callersMethodgetConversations
()
nlweb-template/public/conversation-manager.js:470
↓ 2 callersFunctiongetDispatchNamespaceFromConfig
()
workers-for-platforms-template/scripts/setup-quick.js:92
↓ 2 callersMethodgetIdentity
()
workers-builds-notifications-template/worker-configuration.d.ts:498
↓ 2 callersFunctiongetMerchantConfig
Resolve merchant config from env vars with sensible defaults.
commerce-llms-txt-template/src/llms-txt-worker/index.ts:53
↓ 2 callersFunctiongetProductPrice
(slug: string)
agent-commerce-analytics-template/src/lib/store.ts:468
↓ 2 callersFunctiongetRawResources
Raw resources the site owner has configured (defaults to the samples).
agent-visibility-template/src/lib/store.ts:43
↓ 2 callersMethodgetReader
* The **`getReader()`** method of the ReadableStream interface creates a reader and locks the stream to it. While the stream is locked, no other reade
workers-builds-notifications-template/worker-configuration.d.ts:2249
↓ 2 callersFunctiongetVarFromWranglerToml
(varName)
workers-for-platforms-template/scripts/setup-quick.js:33
↓ 2 callersFunctionguardVoiceOutput
( text: string, state: OutputGuardrailState, signal: AbortSignal, check: (text: string, signal: AbortSigna
voice-agent-template/src/voice/outputGuardrail.ts:49
↓ 2 callersFunctionhandleDefault
(rag: AutoRAG, params: Params, env: Env)
nlweb-template/src/ask/index.ts:52
↓ 2 callersMethodhandleSearch
()
nlweb-template/public/nlweb-dropdown-chat.js:342
↓ 2 callersFunctionhandler
(w http.ResponseWriter, r *http.Request)
containers-template/container_src/main.go:14
↓ 2 callersFunctionhashFile
(filePath: string)
cli/src/npm.ts:164
↓ 2 callersMethodhtmlUnescape
* Unescapes HTML entities in a string, safely converting entities like &amp; to & * without executing any HTML/scripts. * * @param {string} str
nlweb-template/public/json-renderer.js:493
← previousnext →101–200 of 9,650, ranked by callers