Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/cloudflare/templates
/ functions
Functions
9,650 in github.com/cloudflare/templates
⨍
Functions
9,650
◇
Types & classes
17,671
↓ 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
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
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:12464
↓ 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
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
Function
writeJson
(filePath: string, object: unknown)
cli/src/util.ts:173
↓ 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:13135
↓ 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
authorizeVoiceAgentRequest
( request: Request, env: VoiceAgentAuthEnv, )
voice-agent-template/src/auth.ts:56
↓ 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
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
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
commentOnPR
({ prId, githubToken, body, noDuplicates, }: CommentOnPRConfig)
cli/src/util.ts:235
↓ 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:384
↓ 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
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
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
↓ 2 callers
Method
formatObject
* 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 callers
Function
getAuthHeaders
(apiToken)
workers-for-platforms-template/scripts/setup-quick.js:85
↓ 2 callers
Function
getBuildStatus
(event: CloudflareEvent)
workers-builds-notifications-template/src/helpers.ts:15
↓ 2 callers
Function
getCatalogWithLiveInventory
()
commerce-llms-txt-template/src/lib/catalog.ts:155
↓ 2 callers
Method
getConversations
()
nlweb-template/public/conversation-manager.js:470
↓ 2 callers
Function
getDispatchNamespaceFromConfig
()
workers-for-platforms-template/scripts/setup-quick.js:92
↓ 2 callers
Method
getIdentity
()
workers-builds-notifications-template/worker-configuration.d.ts:498
↓ 2 callers
Function
getMerchantConfig
Resolve merchant config from env vars with sensible defaults.
commerce-llms-txt-template/src/llms-txt-worker/index.ts:53
↓ 2 callers
Function
getProductPrice
(slug: string)
agent-commerce-analytics-template/src/lib/store.ts:468
↓ 2 callers
Function
getRawResources
Raw resources the site owner has configured (defaults to the samples).
agent-visibility-template/src/lib/store.ts:43
↓ 2 callers
Method
getReader
* 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 callers
Function
getVarFromWranglerToml
(varName)
workers-for-platforms-template/scripts/setup-quick.js:33
↓ 2 callers
Function
guardVoiceOutput
( text: string, state: OutputGuardrailState, signal: AbortSignal, check: (text: string, signal: AbortSigna
voice-agent-template/src/voice/outputGuardrail.ts:49
↓ 2 callers
Function
handleDefault
(rag: AutoRAG, params: Params, env: Env)
nlweb-template/src/ask/index.ts:52
↓ 2 callers
Method
handleSearch
()
nlweb-template/public/nlweb-dropdown-chat.js:342
↓ 2 callers
Function
handler
(w http.ResponseWriter, r *http.Request)
containers-template/container_src/main.go:14
↓ 2 callers
Function
hashFile
(filePath: string)
cli/src/npm.ts:164
↓ 2 callers
Method
htmlUnescape
* Unescapes HTML entities in a string, safely converting entities like & to & * without executing any HTML/scripts. * * @param {string} str
nlweb-template/public/json-renderer.js:493
← previous
next →
101–200 of 9,650, ranked by callers