MCPcopy Create free account

hub / github.com/cloudflare/templates / functions

Functions9,650 in github.com/cloudflare/templates

↓ 115 callersMethodjson
()
workers-builds-notifications-template/worker-configuration.d.ts:2075
↓ 106 callersMethoderror
* 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 callersMethodget
( scriptName: string, args?: Record<string, unknown>, options?: { limits?: { cpuMs?: number; memory?:
internal-sites-template/src/env.ts:38
↓ 52 callersMethodreplace
(content: string | ReadableStream | Response, options?: ContentOptions)
workers-builds-notifications-template/worker-configuration.d.ts:1592
↓ 48 callersMethodlog
* 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 callersMethodset
* Set a new stored value
workers-builds-notifications-template/worker-configuration.d.ts:12657
↓ 36 callersMethodtoString
()
workers-builds-notifications-template/worker-configuration.d.ts:516
↓ 34 callersMethodtext
()
workers-builds-notifications-template/worker-configuration.d.ts:2074
↓ 32 callersMethoddelete
(keys: string | string[])
workers-builds-notifications-template/worker-configuration.d.ts:2040
↓ 31 callersFunctionfetch
(request, env)
d1-template/src/index.ts:4
↓ 29 callersMethodremove
()
workers-builds-notifications-template/worker-configuration.d.ts:1593
↓ 26 callersMethodwarn
* 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 callersMethodfetch
(request: Request)
internal-sites-template/src/env.ts:49
↓ 17 callersFunctionfetch
( request: Request, env: { CLOUDFLARE_API_TOKEN: string; CLOUDFLARE_ACCOUNT_ID: string; DISPATCHE
worker-publisher-template/src/index.ts:290
↓ 17 callersMethodrun
( model: typeof MODEL, inputs: { messages: { role: "user"; content: string }[]; max_tokens: number;
voice-agent-template/src/voice/checkPrompt.ts:30
↓ 16 callersFunctioncn
(...inputs: ClassValue[])
saas-admin-template/src/lib/utils.ts:4
↓ 13 callersMethodappend
(content: string | ReadableStream | Response, options?: ContentOptions)
workers-builds-notifications-template/worker-configuration.d.ts:1565
↓ 13 callersMethodput
(key: string, value: ReadableStream | ArrayBuffer | ArrayBufferView | string | null | Blob, options?: R2PutOpt
workers-builds-notifications-template/worker-configuration.d.ts:2034
↓ 12 callersFunctionlog
(color, message)
workers-for-platforms-template/scripts/setup.js:32
↓ 10 callersMethodgetAttribute
(name: string)
workers-builds-notifications-template/worker-configuration.d.ts:1558
↓ 10 callersFunctionsetLoading
(loading)
mysql-hyperdrive-template/public/js/components/ui.js:73
↓ 10 callersMethodwaitUntil
(promise: Promise<any>)
workers-builds-notifications-template/worker-configuration.d.ts:434
↓ 9 callersMethodclose
()
workers-builds-notifications-template/worker-configuration.d.ts:3314
↓ 9 callersFunctionescapeHtml
(value: string)
internal-sites-template/src/html.ts:9
↓ 9 callersFunctionfetchWithRetries
(...args)
cli/src/util.ts:409
↓ 9 callersMethodget
(key: string, options: R2GetOptions & { onlyIf: R2Conditional | Headers; })
workers-builds-notifications-template/worker-configuration.d.ts:2030
↓ 9 callersMethodrender
* 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 callersMethodsaveConversations
()
nlweb-template/public/fp-chat-interface.js:1650
↓ 9 callersMethodtoggle
* 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 callersFunctionvalidateApiTokenResponse
(request, apiToken)
saas-admin-template/src/lib/api.ts:10
↓ 9 callersMethodvalues
(options?: ReadableStreamValuesOptions)
workers-builds-notifications-template/worker-configuration.d.ts:2277
↓ 8 callersMethod#notify
(connection: Connection, data: Record<string, unknown>)
voice-agent-template/src/VoiceAgent.ts:1201
↓ 8 callersMethodcreate
* 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 callersMethodcreateNewChat
(existingInputElementId = null, site = null)
nlweb-template/public/fp-chat-interface.js:170
↓ 8 callersFunctionlogVoiceMetric
( context: VoiceMetricContext, metric: VoiceMetric, )
voice-agent-template/src/voice/metrics.ts:371
↓ 8 callersMethodsend
(message: Body, options?: QueueSendOptions)
workers-builds-notifications-template/worker-configuration.d.ts:1938
↓ 7 callersMethodabort
(reason?: any)
workers-builds-notifications-template/worker-configuration.d.ts:440
↓ 7 callersMethodend
(end: DocumentEnd)
workers-builds-notifications-template/worker-configuration.d.ts:1546
↓ 7 callersFunctionnormalizePath
* Normalizes a path string to a consistent format: * - Ensures it starts with "/" * - Removes trailing "/" (except for root "/") * * Examples: *
microfrontend-template/index.ts:161
↓ 6 callersFunctionelapsedMsSince
(startedAt: number)
voice-agent-template/src/voice/metrics.ts:177
↓ 6 callersFunctionfetch
( request: Request, env: Env, ctx: ExecutionContext, )
postgres-hyperdrive-template/src/index.ts:9
↓ 6 callersFunctiongetAllTemplates
(templateDirectory: string)
cli/src/util.ts:44
↓ 6 callersFunctionisTestingMode
(request: Request, env: Env)
internal-sites-template/src/access.ts:39
↓ 6 callersFunctionlog
(color, msg)
workers-for-platforms-template/scripts/setup-quick.js:29
↓ 6 callersFunctionreadJson
(filePath: string)
cli/src/util.ts:169
↓ 6 callersMethodupdate
* 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 callersMethod#invalidateApproval
(connectionId: string)
voice-agent-template/src/VoiceAgent.ts:751
↓ 5 callersMethod#teardownEphemeralSpeech
(connection: Connection, flowStopped: boolean)
voice-agent-template/src/VoiceAgent.ts:882
↓ 5 callersMethodexec
(cmd: string[], options?: ContainerExecOptions)
workers-builds-notifications-template/worker-configuration.d.ts:3428
↓ 5 callersFunctionfetch
( request: Request, env: Env, ctx: ExecutionContext, )
mysql-hyperdrive-template/src/index.ts:9
↓ 5 callersMethodfindConversation
(id)
nlweb-template/public/conversation-manager.js:475
↓ 5 callersFunctionformatCloudflareError
( message: string, data: CloudflareApiResponse<T>, )
internal-sites-template/src/resource.ts:414
↓ 5 callersFunctionformatCurrency
(amount: number)
agent-commerce-analytics-template/src/react-app/App.tsx:628
↓ 5 callersMethodgetAuthHeaders
()
workers-for-platforms-template/scripts/setup.js:249
↓ 5 callersFunctionlog
(color, message)
internal-sites-template/scripts/setup.js:23
↓ 5 callersFunctionnextConversationCleanupDeadline
( oldestTimestamp: number | null, now = Date.now(), )
voice-agent-template/src/voice/lifecycle.ts:33
↓ 5 callersMethodsendMessage
(messageText = null)
nlweb-template/public/fp-chat-interface.js:306
↓ 5 callersMethodsetAttribute
(name: string, value: string)
workers-builds-notifications-template/worker-configuration.d.ts:1560
↓ 4 callersMethod#abortApprovedSpeech
(connectionId: string)
voice-agent-template/src/VoiceAgent.ts:771
↓ 4 callersMethod#abortInputGuardrail
(connectionId: string)
voice-agent-template/src/VoiceAgent.ts:778
↓ 4 callersMethod#ensureConversationCleanupSchedule
(deadlineMs: number)
voice-agent-template/src/VoiceAgent.ts:1026
↓ 4 callersMethod#oldestConversationTimestamp
()
voice-agent-template/src/VoiceAgent.ts:1017
↓ 4 callersFunctionAuthHeaders
(env: Env)
internal-sites-template/src/resource.ts:21
↓ 4 callersFunctionMakeHeaders
(env: Env)
workers-for-platforms-template/src/resource.ts:10
↓ 4 callersFunctionScriptsURI
(env: Env)
internal-sites-template/src/resource.ts:18
↓ 4 callersFunctionScriptsURI
(env: Env)
workers-for-platforms-template/src/resource.ts:8
↓ 4 callersMethodaddMessageToUI
(content, type, animate = true)
nlweb-template/public/fp-chat-interface.js:362
↓ 4 callersMethodbroadcast
* Broadcast a message to all connected WebSocket clients
workflows-starter-template/worker/durable-object.ts:120
↓ 4 callersMethodcreateDefaultItemHtml
* 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 callersFunctionexecute
(retried = false)
cli/src/validateLiveDemoLinks.ts:17
↓ 4 callersFunctionfetch
(request, env, ctx)
nlweb-template/src/index.ts:54
↓ 4 callersFunctionfetch
(request)
react-starter-template/worker/index.ts:2
↓ 4 callersMethodfetch
(request: Request)
workers-builds-notifications-template/worker-configuration.d.ts:504
↓ 4 callersFunctionformatPercent
(rate: number)
agent-commerce-analytics-template/src/react-app/App.tsx:639
↓ 4 callersFunctiongetProductName
(slug: string)
agent-commerce-analytics-template/src/lib/store.ts:464
↓ 4 callersFunctiongetPublishedTemplates
(templateDirectory: string)
cli/src/util.ts:99
↓ 4 callersMethodinfo
* 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 callersFunctionisRecord
(value: unknown)
voice-agent-template/src/voice/voiceAIBinding.ts:9
↓ 4 callersMethodlist
* 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 callersMethodlist
(options?: R2ListOptions)
workers-builds-notifications-template/worker-configuration.d.ts:2041
↓ 4 callersMethodlisten
(...args: unknown[])
workers-builds-notifications-template/worker-configuration.d.ts:13134
↓ 4 callersMethodonError
(error: unknown)
containers-template/src/index.ts:23
↓ 4 callersMethodpossiblyAddExplanation
* 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 callersMethodregisterRenderer
* 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 callersFunctionsiteDomain
(env: Env)
internal-sites-template/src/index.ts:562
↓ 4 callersFunctionsiteUrl
Generate the URL for a deployed site.
internal-sites-template/src/index.ts:456
↓ 4 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.js:1487
↓ 3 callersMethod#hasConversationHistory
()
voice-agent-template/src/VoiceAgent.ts:1008
↓ 3 callersMethod#logDocsToolsAborted
( metricContext: VoiceMetricContext, durationMs = 0, )
voice-agent-template/src/VoiceAgent.ts:1187
↓ 3 callersMethod#prepareDocsTool
()
voice-agent-template/src/VoiceAgent.ts:1109
↓ 3 callersMethod_initializeDatabase
()
react-router-postgres-ssr-template/api/books-service.js:11
↓ 3 callersMethodarrayBuffer
()
workers-builds-notifications-template/worker-configuration.d.ts:2072
↓ 3 callersFunctionbuildContextBlock
* Builds a context block from mrkdwn elements.
workers-builds-notifications-template/src/slack.ts:64
↓ 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
next →1–100 of 9,650, ranked by callers