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
↓ 115 callers
Method
json
()
workers-builds-notifications-template/worker-configuration.d.ts:2075
↓ 106 callers
Method
error
* The **`console.error()`** static method outputs a message to the console at the "error" log level. The message is only displayed to the user if the
workers-builds-notifications-template/worker-configuration.d.ts:144
↓ 96 callers
Method
get
( scriptName: string, args?: Record<string, unknown>, options?: { limits?: { cpuMs?: number; memory?:
internal-sites-template/src/env.ts:38
↓ 52 callers
Method
replace
(content: string | ReadableStream | Response, options?: ContentOptions)
workers-builds-notifications-template/worker-configuration.d.ts:1592
↓ 48 callers
Method
log
* The **`console.log()`** static method outputs a message to the console. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/con
workers-builds-notifications-template/worker-configuration.d.ts:174
↓ 45 callers
Method
set
* Set a new stored value
workers-builds-notifications-template/worker-configuration.d.ts:12657
↓ 36 callers
Method
toString
()
workers-builds-notifications-template/worker-configuration.d.ts:516
↓ 34 callers
Method
text
()
workers-builds-notifications-template/worker-configuration.d.ts:2074
↓ 32 callers
Method
delete
(keys: string | string[])
workers-builds-notifications-template/worker-configuration.d.ts:2040
↓ 31 callers
Function
fetch
(request, env)
d1-template/src/index.ts:4
↓ 29 callers
Method
remove
()
workers-builds-notifications-template/worker-configuration.d.ts:1593
↓ 26 callers
Method
warn
* The **`console.warn()`** static method outputs a warning message to the console at the "warning" log level. The message is only displayed to the use
workers-builds-notifications-template/worker-configuration.d.ts:212
↓ 24 callers
Method
fetch
(request: Request)
internal-sites-template/src/env.ts:49
↓ 17 callers
Function
fetch
( request: Request, env: { CLOUDFLARE_API_TOKEN: string; CLOUDFLARE_ACCOUNT_ID: string; DISPATCHE
worker-publisher-template/src/index.ts:290
↓ 17 callers
Method
run
( model: typeof MODEL, inputs: { messages: { role: "user"; content: string }[]; max_tokens: number;
voice-agent-template/src/voice/checkPrompt.ts:30
↓ 16 callers
Function
cn
(...inputs: ClassValue[])
saas-admin-template/src/lib/utils.ts:4
↓ 13 callers
Method
append
(content: string | ReadableStream | Response, options?: ContentOptions)
workers-builds-notifications-template/worker-configuration.d.ts:1565
↓ 13 callers
Method
put
(key: string, value: ReadableStream | ArrayBuffer | ArrayBufferView | string | null | Blob, options?: R2PutOpt
workers-builds-notifications-template/worker-configuration.d.ts:2034
↓ 12 callers
Function
log
(color, message)
workers-for-platforms-template/scripts/setup.js:32
↓ 10 callers
Method
getAttribute
(name: string)
workers-builds-notifications-template/worker-configuration.d.ts:1558
↓ 10 callers
Function
setLoading
(loading)
mysql-hyperdrive-template/public/js/components/ui.js:73
↓ 10 callers
Method
waitUntil
(promise: Promise<any>)
workers-builds-notifications-template/worker-configuration.d.ts:434
↓ 9 callers
Method
close
()
workers-builds-notifications-template/worker-configuration.d.ts:3314
↓ 9 callers
Function
escapeHtml
(value: string)
internal-sites-template/src/html.ts:9
↓ 9 callers
Function
fetchWithRetries
(...args)
cli/src/util.ts:409
↓ 9 callers
Method
get
(key: string, options: R2GetOptions & { onlyIf: R2Conditional | Headers; })
workers-builds-notifications-template/worker-configuration.d.ts:2030
↓ 9 callers
Method
render
* Renders JSON as HTML for display * * @param {Object|string} json - The JSON to render * @returns {string} - HTML representation of the JSON
nlweb-template/public/json-renderer.js:36
↓ 9 callers
Method
saveConversations
()
nlweb-template/public/fp-chat-interface.js:1650
↓ 9 callers
Method
toggle
* Toggles the completed status of a todo item * @param id - The unique identifier of the todo item to toggle * @returns Promise containing the upd
to-do-list-kv-template/app/to-do-manager.ts:65
↓ 9 callers
Function
validateApiTokenResponse
(request, apiToken)
saas-admin-template/src/lib/api.ts:10
↓ 9 callers
Method
values
(options?: ReadableStreamValuesOptions)
workers-builds-notifications-template/worker-configuration.d.ts:2277
↓ 8 callers
Method
#notify
(connection: Connection, data: Record<string, unknown>)
voice-agent-template/src/VoiceAgent.ts:1201
↓ 8 callers
Method
create
* Create a new repository with an initial access token. * @param name Repository name (alphanumeric, dots, hyphens, underscores). * @param o
workers-builds-notifications-template/worker-configuration.d.ts:10629
↓ 8 callers
Method
createNewChat
(existingInputElementId = null, site = null)
nlweb-template/public/fp-chat-interface.js:170
↓ 8 callers
Function
logVoiceMetric
( context: VoiceMetricContext, metric: VoiceMetric, )
voice-agent-template/src/voice/metrics.ts:371
↓ 8 callers
Method
send
(message: Body, options?: QueueSendOptions)
workers-builds-notifications-template/worker-configuration.d.ts:1938
↓ 7 callers
Method
abort
(reason?: any)
workers-builds-notifications-template/worker-configuration.d.ts:440
↓ 7 callers
Method
end
(end: DocumentEnd)
workers-builds-notifications-template/worker-configuration.d.ts:1546
↓ 7 callers
Function
normalizePath
* Normalizes a path string to a consistent format: * - Ensures it starts with "/" * - Removes trailing "/" (except for root "/") * * Examples: *
microfrontend-template/index.ts:161
↓ 6 callers
Function
elapsedMsSince
(startedAt: number)
voice-agent-template/src/voice/metrics.ts:177
↓ 6 callers
Function
fetch
( request: Request, env: Env, ctx: ExecutionContext, )
postgres-hyperdrive-template/src/index.ts:9
↓ 6 callers
Function
getAllTemplates
(templateDirectory: string)
cli/src/util.ts:44
↓ 6 callers
Function
isTestingMode
(request: Request, env: Env)
internal-sites-template/src/access.ts:39
↓ 6 callers
Function
log
(color, msg)
workers-for-platforms-template/scripts/setup-quick.js:29
↓ 6 callers
Function
readJson
(filePath: string)
cli/src/util.ts:169
↓ 6 callers
Method
update
* Update hosted image metadata * @param options Properties to update * @returns Updated image metadata * @throws {@link ImagesError} if
workers-builds-notifications-template/worker-configuration.d.ts:12910
↓ 5 callers
Method
#invalidateApproval
(connectionId: string)
voice-agent-template/src/VoiceAgent.ts:751
↓ 5 callers
Method
#teardownEphemeralSpeech
(connection: Connection, flowStopped: boolean)
voice-agent-template/src/VoiceAgent.ts:882
↓ 5 callers
Method
exec
(cmd: string[], options?: ContainerExecOptions)
workers-builds-notifications-template/worker-configuration.d.ts:3428
↓ 5 callers
Function
fetch
( request: Request, env: Env, ctx: ExecutionContext, )
mysql-hyperdrive-template/src/index.ts:9
↓ 5 callers
Method
findConversation
(id)
nlweb-template/public/conversation-manager.js:475
↓ 5 callers
Function
formatCloudflareError
( message: string, data: CloudflareApiResponse<T>, )
internal-sites-template/src/resource.ts:414
↓ 5 callers
Function
formatCurrency
(amount: number)
agent-commerce-analytics-template/src/react-app/App.tsx:628
↓ 5 callers
Method
getAuthHeaders
()
workers-for-platforms-template/scripts/setup.js:249
↓ 5 callers
Function
log
(color, message)
internal-sites-template/scripts/setup.js:23
↓ 5 callers
Function
nextConversationCleanupDeadline
( oldestTimestamp: number | null, now = Date.now(), )
voice-agent-template/src/voice/lifecycle.ts:33
↓ 5 callers
Method
sendMessage
(messageText = null)
nlweb-template/public/fp-chat-interface.js:306
↓ 5 callers
Method
setAttribute
(name: string, value: string)
workers-builds-notifications-template/worker-configuration.d.ts:1560
↓ 4 callers
Method
#abortApprovedSpeech
(connectionId: string)
voice-agent-template/src/VoiceAgent.ts:771
↓ 4 callers
Method
#abortInputGuardrail
(connectionId: string)
voice-agent-template/src/VoiceAgent.ts:778
↓ 4 callers
Method
#ensureConversationCleanupSchedule
(deadlineMs: number)
voice-agent-template/src/VoiceAgent.ts:1026
↓ 4 callers
Method
#oldestConversationTimestamp
()
voice-agent-template/src/VoiceAgent.ts:1017
↓ 4 callers
Function
AuthHeaders
(env: Env)
internal-sites-template/src/resource.ts:21
↓ 4 callers
Function
MakeHeaders
(env: Env)
workers-for-platforms-template/src/resource.ts:10
↓ 4 callers
Function
ScriptsURI
(env: Env)
internal-sites-template/src/resource.ts:18
↓ 4 callers
Function
ScriptsURI
(env: Env)
workers-for-platforms-template/src/resource.ts:8
↓ 4 callers
Method
addMessageToUI
(content, type, animate = true)
nlweb-template/public/fp-chat-interface.js:362
↓ 4 callers
Method
broadcast
* Broadcast a message to all connected WebSocket clients
workflows-starter-template/worker/durable-object.ts:120
↓ 4 callers
Method
createDefaultItemHtml
* Creates default HTML for a JSON item * * @param {Object} item - The item data * @returns {HTMLElement} - The HTML element
nlweb-template/public/json-renderer.js:88
↓ 4 callers
Function
execute
(retried = false)
cli/src/validateLiveDemoLinks.ts:17
↓ 4 callers
Function
fetch
(request, env, ctx)
nlweb-template/src/index.ts:54
↓ 4 callers
Function
fetch
(request)
react-starter-template/worker/index.ts:2
↓ 4 callers
Method
fetch
(request: Request)
workers-builds-notifications-template/worker-configuration.d.ts:504
↓ 4 callers
Function
formatPercent
(rate: number)
agent-commerce-analytics-template/src/react-app/App.tsx:639
↓ 4 callers
Function
getProductName
(slug: string)
agent-commerce-analytics-template/src/lib/store.ts:464
↓ 4 callers
Function
getPublishedTemplates
(templateDirectory: string)
cli/src/util.ts:99
↓ 4 callers
Method
info
* The **`console.info()`** static method outputs a message to the console at the "info" log level. The message is only displayed to the user if the co
workers-builds-notifications-template/worker-configuration.d.ts:168
↓ 4 callers
Function
isRecord
(value: unknown)
voice-agent-template/src/voice/voiceAIBinding.ts:9
↓ 4 callers
Method
list
* Retrieves all todos from storage * @returns Promise containing an array of Todo items, sorted by creation date (newest first)
to-do-list-kv-template/app/to-do-manager.ts:31
↓ 4 callers
Method
list
(options?: R2ListOptions)
workers-builds-notifications-template/worker-configuration.d.ts:2041
↓ 4 callers
Method
listen
(...args: unknown[])
workers-builds-notifications-template/worker-configuration.d.ts:13134
↓ 4 callers
Method
onError
(error: unknown)
containers-template/src/index.ts:23
↓ 4 callers
Method
possiblyAddExplanation
* Adds an explanation to an item * * @param {Object} item - The item data * @param {HTMLElement} contentDiv - The content div * @param {boolea
nlweb-template/public/json-renderer.js:346
↓ 4 callers
Method
registerRenderer
* Registers a specific renderer with a JSON renderer * * @param {Function} RendererClass - The renderer class * @param {JsonRenderer} jsonRender
nlweb-template/public/type-renderers.js:175
↓ 4 callers
Function
siteDomain
(env: Env)
internal-sites-template/src/index.ts:562
↓ 4 callers
Function
siteUrl
Generate the URL for a deployed site.
internal-sites-template/src/index.ts:456
↓ 4 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.js:1487
↓ 3 callers
Method
#hasConversationHistory
()
voice-agent-template/src/VoiceAgent.ts:1008
↓ 3 callers
Method
#logDocsToolsAborted
( metricContext: VoiceMetricContext, durationMs = 0, )
voice-agent-template/src/VoiceAgent.ts:1187
↓ 3 callers
Method
#prepareDocsTool
()
voice-agent-template/src/VoiceAgent.ts:1109
↓ 3 callers
Method
_initializeDatabase
()
react-router-postgres-ssr-template/api/books-service.js:11
↓ 3 callers
Method
arrayBuffer
()
workers-builds-notifications-template/worker-configuration.d.ts:2072
↓ 3 callers
Function
buildContextBlock
* Builds a context block from mrkdwn elements.
workers-builds-notifications-template/src/slack.ts:64
↓ 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
next →
1–100 of 9,650, ranked by callers