MCPcopy Create free account

hub / github.com/cloudflare/templates / functions

Functions10,210 in github.com/cloudflare/templates

↓ 3 callersFunctionbuildContextElements
* Builds context elements (branch, commit, author) from event metadata.
workers-builds-notifications-template/src/slack.ts:71
↓ 3 callersFunctionbuildSectionBlock
* Builds a section block with optional button accessory.
workers-builds-notifications-template/src/slack.ts:38
↓ 3 callersFunctioncheckPrompt
( ai: GuardrailAI, prompt: string, callerSignal?: AbortSignal, )
voice-agent-template/src/voice/checkPrompt.ts:90
↓ 3 callersFunctionclean
(d: string)
ai-brand-visibility-template/app/routes/setup.tsx:46
↓ 3 callersFunctionemptyState
(message: string)
internal-sites-template/src/render.ts:22
↓ 3 callersMethodescapeHtml
* Escapes HTML special characters in a string * * @param {string} str - The string to escape * @returns {string} - The escaped string
nlweb-template/public/json-renderer.js:454
↓ 3 callersMethodgetAll
()
saas-admin-template/src/lib/services/customer.ts:83
↓ 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 callersMethodgetTcpPort
(port: number)
workers-builds-notifications-template/worker-configuration.d.ts:3422
↓ 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 callersFunctionlog
(event: string, details: Record<string, unknown> = {})
grpc-container-template/src/index.ts:19
↓ 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:12862
↓ 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 callersMethodtransform
* Apply transform next, returning a transform handle. * You can then apply more transformations, draw, or retrieve the output. * @param tran
workers-builds-notifications-template/worker-configuration.d.ts:13449
↓ 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 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:13605
↓ 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 callersFunctionallowedSenders
(value: string)
email-routing-template/src/index.ts:1
↓ 2 callersFunctionauthorizeVoiceAgentRequest
( request: Request, env: VoiceAgentAuthEnv, )
voice-agent-template/src/auth.ts:56
↓ 2 callersMethodblockConcurrencyWhile
(callback: () => Promise<T>)
workers-builds-notifications-template/worker-configuration.d.ts:548
↓ 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 callersFunctionbridgeSockets
(left: Socket, right: Socket)
grpc-container-template/src/index.ts:23
↓ 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 callersFunctioncanConnect
(host, port)
grpc-container-template/scripts/smoke-test.mjs:14
↓ 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 callersFunctioncollectTemplateFiles
( templatePath: string, onlySeedRepoFiles?: boolean, )
cli/src/util.ts:111
↓ 2 callersFunctioncommentOnPR
({ prId, githubToken, body, noDuplicates, }: CommentOnPRConfig)
cli/src/util.ts:236
↓ 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:385
↓ 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 callersFunctiondelay
(milliseconds)
grpc-container-template/scripts/smoke-test.mjs:10
↓ 2 callersFunctiondeployLiveDemos
({ templateDirectory, concurrency = DEFAULT_CONCURRENCY, }: DeployLiveDemosConfig)
cli/src/deployLiveDemos.ts:56
↓ 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 callersMethoddestroy
(error?: any)
workers-builds-notifications-template/worker-configuration.d.ts:3420
↓ 2 callersFunctionelapsed
()
grpc-container-template/container/client.js:31
↓ 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
← previousnext →101–200 of 10,210, ranked by callers