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
↓ 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
↓ 2 callers
Function
importSecretKey
* Import the JWT secret as a CryptoKey for HMAC operations
x402-proxy-template/src/jwt.ts:60
↓ 2 callers
Method
init
()
nlweb-template/public/fp-chat-interface.js:54
↓ 2 callers
Method
init
()
nlweb-template/public/fp-chat-interface-snippet.js:57
↓ 2 callers
Method
initializeResultsMap
* Initialize a map with location markers * @param {HTMLElement} mapDiv - The div element to render the map in * @param {Array} locations - Array o
nlweb-template/public/display_map.js:12
↓ 2 callers
Function
isFixedVoiceConfigMessage
( value: unknown, )
voice-agent-template/src/voice/config.ts:41
↓ 2 callers
Function
isPlaceholderAddress
(value: string)
email-sending-template/src/index.ts:3
↓ 2 callers
Function
joinChunks
( item: Awaited<ReturnType<AutoRAG["search"]>>["data"][0], )
nlweb-template/src/ask/index.ts:44
↓ 2 callers
Method
load
(code: WorkerLoaderWorkerCode)
workers-builds-notifications-template/worker-configuration.d.ts:3570
↓ 2 callers
Method
loadConversation
(id)
nlweb-template/public/fp-chat-interface.js:241
↓ 2 callers
Method
loadConversations
()
nlweb-template/public/fp-chat-interface.js:1614
↓ 2 callers
Function
loadData
()
mysql-hyperdrive-template/public/js/app.js:65
↓ 2 callers
Function
loadData
()
postgres-hyperdrive-template/public/js/app.js:65
↓ 2 callers
Method
loadLocalConversations
(selectedSite)
nlweb-template/public/conversation-manager.js:59
↓ 2 callers
Function
loadOrganizations
()
mysql-hyperdrive-template/public/js/app.js:147
↓ 2 callers
Function
loadOrganizations
()
postgres-hyperdrive-template/public/js/app.js:147
↓ 2 callers
Method
loadSites
()
nlweb-template/public/fp-chat-interface-snippet.js:2098
↓ 2 callers
Function
logBold
(color, message)
workers-for-platforms-template/scripts/setup.js:36
↓ 2 callers
Method
makeAsSpan
* Creates a span element with the given content * * @param {string} content - The content for the span * @returns {HTMLElement} - The span eleme
nlweb-template/public/json-renderer.js:330
↓ 2 callers
Function
normalizeConversationCleanupScheduleTime
( deadlineMs: number, )
voice-agent-template/src/voice/lifecycle.ts:42
↓ 2 callers
Function
normalizeRelativePath
(path: string)
internal-sites-template/src/assets.ts:157
↓ 2 callers
Method
observeExit
()
containers-template/src/index.ts:72
↓ 2 callers
Function
pickPhrase
( phrases: readonly string[], lastIndex: number, )
voice-agent-template/src/voice/ephemeralSpeech.ts:35
↓ 2 callers
Function
prepareTextForSpeech
(text: string)
voice-agent-template/src/voice/speechPreparation.ts:8
↓ 2 callers
Function
processSubscriptionResults
(rows)
saas-admin-template/src/lib/services/subscription.ts:20
↓ 2 callers
Method
prompt
(question)
workers-for-platforms-template/scripts/setup.js:100
↓ 2 callers
Function
provision
({ env = process.env, executeWrangler = runWrangler } = {})
internal-sites-template/scripts/setup.js:150
↓ 2 callers
Function
recordEvent
( store: KVNamespace, env: { EVENT_RETENTION_DAYS?: string }, event: AgentEvent, )
agent-commerce-analytics-template/src/lib/store.ts:98
↓ 2 callers
Function
recordEventBatch
( store: KVNamespace, env: { EVENT_RETENTION_DAYS?: string }, events: AgentEvent[], )
agent-commerce-analytics-template/src/lib/store.ts:118
↓ 2 callers
Function
releaseCall
( currentCallId: string | null, connectionId: string, )
voice-agent-template/src/voice/lifecycle.ts:21
↓ 2 callers
Function
renderEmptyState
(tbody, colSpan, message)
mysql-hyperdrive-template/public/js/components/tables.js:115
↓ 2 callers
Function
renderEmptyState
(tbody, colSpan, message)
postgres-hyperdrive-template/public/js/components/tables.js:115
↓ 2 callers
Method
renderItems
(items)
nlweb-template/public/fp-chat-interface.js:828
↓ 2 callers
Method
renderItems
(items)
nlweb-template/public/fp-chat-interface-snippet.js:862
↓ 2 callers
Function
renderOrganizationsTable
(organizations, onDelete)
mysql-hyperdrive-template/public/js/components/tables.js:12
↓ 2 callers
Function
renderOrganizationsTable
(organizations, onDelete)
postgres-hyperdrive-template/public/js/components/tables.js:12
↓ 2 callers
Function
renderResourceMd
(args: { resource: Resource; site: SiteConfig; })
agent-visibility-template/src/enrichment/surfaces.ts:125
↓ 2 callers
Function
renderUsersTable
(users, onEdit, onDelete)
mysql-hyperdrive-template/public/js/components/tables.js:57
↓ 2 callers
Function
renderUsersTable
(users, onEdit, onDelete)
postgres-hyperdrive-template/public/js/components/tables.js:57
↓ 2 callers
Function
resolveDocsTools
( source: DocsToolSource, options: ResolveDocsToolsOptions = {}, )
voice-agent-template/src/voice/docsTools.ts:197
↓ 2 callers
Function
runInChunks
( items: T[], size: number, fn: (item: T) => Promise<unknown>, )
agent-commerce-analytics-template/src/lib/store.ts:108
↓ 2 callers
Method
saveConversations
()
nlweb-template/public/conversation-manager.js:261
↓ 2 callers
Method
saveRememberedItems
()
nlweb-template/public/fp-chat-interface.js:2106
↓ 2 callers
Method
saveRememberedItems
()
nlweb-template/public/fp-chat-interface-snippet.js:1988
↓ 2 callers
Method
scrollToUserMessage
()
nlweb-template/public/fp-chat-interface-snippet.js:1534
↓ 2 callers
Function
selectDataSource
(c, dbLogic, mockLogic)
react-postgres-fullstack-template/api/lib/utils.js:8
↓ 2 callers
Method
setInactivityTimeout
(durationMs: number | bigint)
workers-builds-notifications-template/worker-configuration.d.ts:3423
↓ 2 callers
Method
setInnerContent
(content: string | ReadableStream | Response, options?: ContentOptions)
workers-builds-notifications-template/worker-configuration.d.ts:1569
↓ 2 callers
Method
showCenteredInput
()
nlweb-template/public/fp-chat-interface-snippet.js:1552
↓ 2 callers
Function
showDeleteConfirmation
(message, callback)
mysql-hyperdrive-template/public/js/app.js:115
↓ 2 callers
Function
showDeleteConfirmation
(message, callback)
postgres-hyperdrive-template/public/js/app.js:115
↓ 2 callers
Method
start
(options?: ContainerStartupOptions)
workers-builds-notifications-template/worker-configuration.d.ts:3418
↓ 2 callers
Method
stopServer
(templateName: string)
playwright-tests/utils/template-server.ts:261
↓ 2 callers
Function
stripCommonTopLevelFolder
* If every asset shares the same top-level folder, strip it. * This handles the common case where a folder upload wraps everything * in a single dir
internal-sites-template/src/assets.ts:166
↓ 2 callers
Function
summarize
({ query, answers, ai, }: { query: string; answers: ResultBatch["results"]; ai: Ai; })
nlweb-template/src/ask/summarize.ts:5
↓ 2 callers
Method
synthesize
( text: string, signal?: AbortSignal, onAttempt?: TtsAttemptObserver, )
voice-agent-template/src/voice/retryingTts.ts:20
↓ 2 callers
Function
toAccessIdentity
( identity: CloudflareAccessIdentity | undefined, )
internal-sites-template/src/access.ts:54
↓ 2 callers
Function
togglePrompt
(text: string)
ai-brand-visibility-template/app/routes/setup.tsx:119
↓ 2 callers
Function
trimContent
(input: string)
agent-visibility-template/src/enrichment/index.ts:17
↓ 2 callers
Method
updateConversationsList
(chatInterface, container = null)
nlweb-template/public/conversation-manager.js:350
↓ 2 callers
Function
updateOrganizationDropdowns
(organizations)
mysql-hyperdrive-template/public/js/components/tables.js:126
↓ 2 callers
Function
updateOrganizationDropdowns
(organizations)
postgres-hyperdrive-template/public/js/components/tables.js:126
↓ 2 callers
Method
updateTemplateHash
* Updates the hash for the given template and returns * whether the hash has changed
cli/src/npm.ts:138
↓ 2 callers
Function
upload
(config: UploadConfig)
cli/src/upload.ts:22
↓ 2 callers
Function
voiceGuardrailLifecycle
( outcome: VoiceGuardrailOutcome, direction: VoiceGuardrailDirection = "input", )
voice-agent-template/src/voice/metrics.ts:196
↓ 2 callers
Function
voiceToolsLifecycle
( outcome: VoiceToolsOutcome, requestedToolCount: number, resolvedToolCount: number, )
voice-agent-template/src/voice/metrics.ts:225
↓ 2 callers
Method
wait
(delay: number, maybeOptions?: SchedulerWaitOptions)
workers-builds-notifications-template/worker-configuration.d.ts:890
↓ 2 callers
Function
waitForDocsTools
( ready: Promise<unknown>, timeoutMs: number, signal: AbortSignal, )
voice-agent-template/src/voice/docsTools.ts:235
↓ 1 callers
Method
#cancelConversationCleanupSchedulesIfIdle
()
voice-agent-template/src/VoiceAgent.ts:1076
↓ 1 callers
Method
#clearOwnedConversationHistory
()
voice-agent-template/src/VoiceAgent.ts:991
↓ 1 callers
Method
#discardLatestUserMessage
(text: string)
voice-agent-template/src/VoiceAgent.ts:980
↓ 1 callers
Method
#ensureDocsToolServer
(server: DocsToolServer)
voice-agent-template/src/VoiceAgent.ts:1130
↓ 1 callers
Method
#fireEphemeralSpeech
(connection: Connection)
voice-agent-template/src/VoiceAgent.ts:808
↓ 1 callers
Method
#readyDocsTool
()
voice-agent-template/src/VoiceAgent.ts:1113
↓ 1 callers
Method
#reconcileConversationCleanupSchedule
( deadlineMs: number, )
voice-agent-template/src/VoiceAgent.ts:1032
↓ 1 callers
Method
#rejectConfiguration
(connection: Connection, issue: string)
voice-agent-template/src/VoiceAgent.ts:1098
↓ 1 callers
Function
BuildDeploymentsTable
( deployments: DeploymentWithSite[], siteUrl: (slug: string) => string, )
internal-sites-template/src/render.ts:61
↓ 1 callers
Function
BuildSitesTable
( sites: Site[], siteUrl: (slug: string) => string, )
internal-sites-template/src/render.ts:29
↓ 1 callers
Function
BuildTable
( name: string, dataRows: Record<string, string | number | boolean | null>[] | undefined, columns?: string[
internal-sites-template/src/render.ts:97
↓ 1 callers
Function
BuildTable
( name: string, dataRows: Record<string, string | number | boolean | null>[] | undefined, )
workers-for-platforms-template/src/render.ts:30
↓ 1 callers
Function
CreateDeployment
( db: D1Database, deployment: Deployment, )
internal-sites-template/src/db.ts:162
↓ 1 callers
Function
CreateProject
(db: D1QB, project: Project)
workers-for-platforms-template/src/db.ts:43
↓ 1 callers
Function
CreateSite
(db: D1Database, site: Site)
internal-sites-template/src/db.ts:77
← previous
next →
201–300 of 10,210, ranked by callers