Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/cloudflare/templates
/ functions
Functions
10,210 in github.com/cloudflare/templates
⨍
Functions
10,210
◇
Types & classes
18,658
↓ 3 callers
Function
buildContextElements
* Builds context elements (branch, commit, author) from event metadata.
workers-builds-notifications-template/src/slack.ts:71
↓ 3 callers
Function
buildSectionBlock
* Builds a section block with optional button accessory.
workers-builds-notifications-template/src/slack.ts:38
↓ 3 callers
Function
checkPrompt
( ai: GuardrailAI, prompt: string, callerSignal?: AbortSignal, )
voice-agent-template/src/voice/checkPrompt.ts:90
↓ 3 callers
Function
clean
(d: string)
ai-brand-visibility-template/app/routes/setup.tsx:46
↓ 3 callers
Function
emptyState
(message: string)
internal-sites-template/src/render.ts:22
↓ 3 callers
Method
escapeHtml
* 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 callers
Method
getAll
()
saas-admin-template/src/lib/services/customer.ts:83
↓ 3 callers
Function
getAuthHeaders
(env: Env)
workers-for-platforms-template/src/cloudflare-api.ts:4
↓ 3 callers
Method
getBooks
(options = {})
react-router-postgres-ssr-template/api/books-service.js:205
↓ 3 callers
Function
getDashboardUrl
(event: CloudflareEvent)
workers-builds-notifications-template/src/helpers.ts:85
↓ 3 callers
Method
getStateMessage
* Get the current state as a message object
workflows-starter-template/worker/durable-object.ts:136
↓ 3 callers
Method
getTcpPort
(port: number)
workers-builds-notifications-template/worker-configuration.d.ts:3422
↓ 3 callers
Method
hideCenteredInput
()
nlweb-template/public/fp-chat-interface.js:1850
↓ 3 callers
Function
isApiConfigured
(env: Env)
workers-for-platforms-template/src/cloudflare-api.ts:18
↓ 3 callers
Function
loadUsers
(orgFilter = "")
mysql-hyperdrive-template/public/js/app.js:155
↓ 3 callers
Function
loadUsers
(orgFilter = "")
postgres-hyperdrive-template/public/js/app.js:155
↓ 3 callers
Function
log
(event: string, details: Record<string, unknown> = {})
grpc-container-template/src/index.ts:19
↓ 3 callers
Function
normalizeSlug
(value: string)
internal-sites-template/src/assets.ts:95
↓ 3 callers
Method
onCloseOrError
(connection: Connection)
multiplayer-globe-template/src/server/index.ts:61
↓ 3 callers
Method
populateSiteDropdown
()
nlweb-template/public/fp-chat-interface-snippet.js:1937
↓ 3 callers
Function
processCustomerResults
(rows: any[])
saas-admin-template/src/lib/services/customer.ts:25
↓ 3 callers
Function
processCustomerSubscriptionResults
(rows)
saas-admin-template/src/lib/services/customer_subscription.ts:33
↓ 3 callers
Method
registerAll
* 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 callers
Function
renderShell
( body: string, options: { title?: string; eyebrow?: string; heading?: string; siteDomain?: string;
internal-sites-template/src/ui.ts:16
↓ 3 callers
Method
reply
* 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 callers
Method
sanitizeUrl
* 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 callers
Method
scrollToBottom
()
nlweb-template/public/fp-chat-interface.js:1661
↓ 3 callers
Method
search
(query)
nlweb-template/public/nlweb-dropdown-chat.js:489
↓ 3 callers
Method
sendMessage
(messageText = null)
nlweb-template/public/fp-chat-interface-snippet.js:283
↓ 3 callers
Function
setLoading
(loading)
postgres-hyperdrive-template/public/js/components/ui.js:73
↓ 3 callers
Method
showDropdown
()
nlweb-template/public/nlweb-dropdown-chat.js:454
↓ 3 callers
Function
stringToArrayBuffer
* Convert string to Uint8Array
x402-proxy-template/src/jwt.ts:44
↓ 3 callers
Method
transform
* 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 callers
Method
updateConversationsList
()
nlweb-template/public/nlweb-dropdown-chat.js:369
↓ 3 callers
Method
updateConversationsList
* 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 callers
Method
updateRememberedItems
()
nlweb-template/public/nlweb-dropdown-chat.js:505
↓ 3 callers
Method
updateRememberedItemsList
()
nlweb-template/public/fp-chat-interface.js:2125
↓ 3 callers
Method
updateRememberedItemsList
()
nlweb-template/public/fp-chat-interface-snippet.js:2007
↓ 3 callers
Method
writeStream
* Writes a JSON object to the SSE stream. * @param data The JSON data to send.
nlweb-template/src/ask/stream-wrapper.ts:16
↓ 2 callers
Method
#beginEphemeralSpeech
( connection: Connection, metricContext: VoiceMetricContext, phase: VoiceEphemeralPhase, delayMs: numb
voice-agent-template/src/VoiceAgent.ts:785
↓ 2 callers
Method
#beginVoiceFlow
( connection: Connection, inputSource: VoiceInputSource, transcriptLength: number, )
voice-agent-template/src/VoiceAgent.ts:757
↓ 2 callers
Method
#buildTts
()
voice-agent-template/src/VoiceAgent.ts:742
↓ 2 callers
Method
#finishEphemeralSpeechMetric
( state: VoiceEphemeralSpeechState, outcome: VoiceEphemeralOutcome, flowStopped: boolean, )
voice-agent-template/src/VoiceAgent.ts:895
↓ 2 callers
Method
#queueRetentionScheduleOperation
( operation: () => Promise<void>, )
voice-agent-template/src/VoiceAgent.ts:1088
↓ 2 callers
Method
#resetDocsToolServer
( server: DocsToolServer, expectedConnection?: Promise<void>, )
voice-agent-template/src/VoiceAgent.ts:1161
↓ 2 callers
Method
#validatePrompt
( transcript: string, connection: Connection, metricContext: VoiceMetricContext, signal?: AbortSignal,
voice-agent-template/src/VoiceAgent.ts:911
↓ 2 callers
Function
BaseURI
(env: Env)
internal-sites-template/src/resource.ts:15
↓ 2 callers
Function
BaseURI
(env: Env)
workers-for-platforms-template/src/resource.ts:6
↓ 2 callers
Function
PutStaticSiteInDispatchNamespace
( env: Env, scriptName: string, assets: UploadedAsset[], )
internal-sites-template/src/resource.ts:112
↓ 2 callers
Method
ack
()
workers-builds-notifications-template/worker-configuration.d.ts:1997
↓ 2 callers
Method
addMessageToUI
(content, type, animate = true)
nlweb-template/public/fp-chat-interface-snippet.js:353
↓ 2 callers
Method
address
()
workers-builds-notifications-template/worker-configuration.d.ts:13605
↓ 2 callers
Function
agentDisplayName
(e: AgentEvent)
agent-commerce-analytics-template/src/lib/store.ts:476
↓ 2 callers
Function
agentKey
(e: AgentEvent)
agent-commerce-analytics-template/src/lib/store.ts:472
↓ 2 callers
Function
allowedSenders
(value: string)
email-routing-template/src/index.ts:1
↓ 2 callers
Function
authorizeVoiceAgentRequest
( request: Request, env: VoiceAgentAuthEnv, )
voice-agent-template/src/auth.ts:56
↓ 2 callers
Method
blockConcurrencyWhile
(callback: () => Promise<T>)
workers-builds-notifications-template/worker-configuration.d.ts:548
↓ 2 callers
Function
blockedResult
(categories: readonly string[])
voice-agent-template/src/voice/checkPrompt.ts:63
↓ 2 callers
Method
body
()
workers-builds-notifications-template/worker-configuration.d.ts:2070
↓ 2 callers
Function
bridgeSockets
(left: Socket, right: Socket)
grpc-container-template/src/index.ts:23
↓ 2 callers
Function
buildVoiceGreeting
()
voice-agent-template/src/voice/trustedAgent.ts:23
↓ 2 callers
Function
buildVoiceSystemPrompt
( additionalRules: readonly string[] = [], )
voice-agent-template/src/voice/trustedAgent.ts:27
↓ 2 callers
Function
cacheTtl
(env: Env, resources: Resource[])
agent-visibility-template/src/lib/store.ts:38
↓ 2 callers
Function
canConnect
(host, port)
grpc-container-template/scripts/smoke-test.mjs:14
↓ 2 callers
Function
claimCall
( currentCallId: string | null, connectionId: string, )
voice-agent-template/src/voice/lifecycle.ts:8
↓ 2 callers
Function
cleanResponse
(text: string | undefined)
ai-brand-visibility-template/app/routes/results.tsx:528
↓ 2 callers
Function
collectTemplateFiles
( templatePath: string, onlySeedRepoFiles?: boolean, )
cli/src/util.ts:111
↓ 2 callers
Function
commentOnPR
({ prId, githubToken, body, noDuplicates, }: CommentOnPRConfig)
cli/src/util.ts:236
↓ 2 callers
Function
contentTypeForPath
(path: string)
internal-sites-template/src/assets.ts:223
↓ 2 callers
Function
conversationCleanupDeadline
(timestamp: number)
voice-agent-template/src/voice/lifecycle.ts:29
↓ 2 callers
Function
convertToMarkdownTable
(arr: Array<Record<string, unknown>>)
cli/src/util.ts:385
↓ 2 callers
Method
createJsonItemHtml
* 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 callers
Function
decontextualize
({ query, prev = [], ai, }: { query: string; prev?: string[]; ai: Ai; })
nlweb-template/src/ask/decontextualize.ts:5
↓ 2 callers
Function
delay
(milliseconds)
grpc-container-template/scripts/smoke-test.mjs:10
↓ 2 callers
Function
deployLiveDemos
({ templateDirectory, concurrency = DEFAULT_CONCURRENCY, }: DeployLiveDemosConfig)
cli/src/deployLiveDemos.ts:56
↓ 2 callers
Function
deployPath
(env: Env)
internal-sites-template/src/index.ts:566
↓ 2 callers
Function
deriveTitle
(text: string, slug: string)
agent-visibility-template/src/enrichment/index.ts:163
↓ 2 callers
Method
destroy
(error?: any)
workers-builds-notifications-template/worker-configuration.d.ts:3420
↓ 2 callers
Function
elapsed
()
grpc-container-template/container/client.js:31
↓ 2 callers
Function
emptyTrustBreakdown
()
agent-commerce-analytics-template/src/lib/store.ts:1202
↓ 2 callers
Method
endStreaming
()
nlweb-template/public/fp-chat-interface.js:1133
↓ 2 callers
Method
endStreaming
()
nlweb-template/public/fp-chat-interface-snippet.js:1167
↓ 2 callers
Function
enrichAll
( ai: Ai, model: string, raws: RawResource[], )
agent-visibility-template/src/enrichment/index.ts:134
↓ 2 callers
Function
enrichResource
( ai: Ai, model: string, raw: RawResource, )
agent-visibility-template/src/enrichment/index.ts:86
↓ 2 callers
Function
escapeHtml
(text: string)
workers-for-platforms-template/src/render.ts:21
↓ 2 callers
Method
escapeHtml
(text)
nlweb-template/public/fp-chat-interface.js:2042
↓ 2 callers
Method
escapeHtml
(text)
nlweb-template/public/fp-chat-interface-snippet.js:1924
↓ 2 callers
Function
escapeRegexLiteral
* 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 callers
Function
executeWrangler
(args, env)
internal-sites-template/scripts/test-setup.js:57
↓ 2 callers
Function
extractBuildError
(logs: string[])
workers-builds-notifications-template/src/helpers.ts:141
↓ 2 callers
Function
fetch
(request: Request, env: Env)
workflows-starter-template/worker/index.ts:15
↓ 2 callers
Function
fetchOrganizations
()
mysql-hyperdrive-template/public/js/services/api.js:33
↓ 2 callers
Function
fetchOrganizations
()
postgres-hyperdrive-template/public/js/services/api.js:33
↓ 2 callers
Function
fetchShopifyCatalog
( storeDomain: string, storePassword?: string, )
commerce-llms-txt-template/src/lib/shopify.ts:158
↓ 2 callers
Function
fetchUsers
(orgFilter = "")
mysql-hyperdrive-template/public/js/services/api.js:51
↓ 2 callers
Function
fetchUsers
(orgFilter = "")
postgres-hyperdrive-template/public/js/services/api.js:51
↓ 2 callers
Function
finish
(result: DocsToolsWaitResult)
voice-agent-template/src/voice/docsTools.ts:244
↓ 2 callers
Function
firstSentences
(text: string, n: number)
agent-visibility-template/src/enrichment/index.ts:172
↓ 2 callers
Function
formatDate
(dateString)
mysql-hyperdrive-template/public/js/utils/formatters.js:8
↓ 2 callers
Function
formatDate
(dateString)
postgres-hyperdrive-template/public/js/utils/formatters.js:8
← previous
next →
101–200 of 10,210, ranked by callers