MCPcopy Create free account

hub / github.com/cloudflare/templates / functions

Functions10,210 in github.com/cloudflare/templates

↓ 1 callersFunctionrenderSetupPage
(request: Request, env: Env)
email-sending-template/src/index.ts:22
↓ 1 callersFunctionrenderWebsiteJsonLd
(ctx: RenderCtx)
agent-visibility-template/src/enrichment/surfaces.ts:193
↓ 1 callersFunctionrequest
(authorization?: string)
voice-agent-template/test/auth.test.ts:7
↓ 1 callersFunctionrequest
(path: string, init?: RequestInit)
email-sending-template/test/index.test.ts:37
↓ 1 callersFunctionrequestForSite
Strip the /sites/slug prefix when dispatching in path-based mode.
internal-sites-template/src/index.ts:466
↓ 1 callersFunctionrequestWithRawUrl
(url: string)
x402-proxy-template/test/index.test.ts:6
↓ 1 callersFunctionrequireAccessIdentity
( ctx: ExecutionContext, )
internal-sites-template/src/access.ts:89
↓ 1 callersFunctionrequirePaymentOrCookie
(paymentMw: MiddlewareHandler)
x402-proxy-template/src/auth.ts:18
↓ 1 callersFunctionresetDbInitialized
()
internal-sites-template/src/index.ts:577
↓ 1 callersFunctionresetTables
(session: D1DatabaseSession)
d1-starter-sessions-api-template/src/index.ts:156
↓ 1 callersFunctionresourceValueToString
(value: ResourceValues)
internal-sites-template/src/render.ts:123
↓ 1 callersFunctionresponseForSite
Rewrite asset URLs in path-based mode so relative paths resolve correctly.
internal-sites-template/src/index.ts:483
↓ 1 callersFunctionresponseShape
(response: unknown)
voice-agent-template/src/voice/voiceAIBinding.ts:26
↓ 1 callersFunctionretentionSeconds
(env: { EVENT_RETENTION_DAYS?: string })
agent-commerce-analytics-template/src/lib/store.ts:90
↓ 1 callersMethodretry
(options?: QueueRetryOptions)
workers-builds-notifications-template/worker-configuration.d.ts:1996
↓ 1 callersFunctionrewriteLocation
* Rewrites redirect Location headers to include the mount prefix. * * When an upstream service redirects to an absolute path on the same origin, *
microfrontend-template/index.ts:659
↓ 1 callersFunctionrewritePathBasedAssetUrls
(html: string, slug: string)
internal-sites-template/src/index.ts:537
↓ 1 callersFunctionrewriteSetCookie
* Rewrites Set-Cookie headers to scope cookie paths to the mount prefix. * * Cookies with Path=/ are rewritten to Path=/mount/ to prevent cookie col
microfrontend-template/index.ts:691
↓ 1 callersMethodrun
(model: string, input: Record<string, unknown>)
commerce-llms-txt-template/src/enrichment/index.ts:38
↓ 1 callersFunctionrunClient
()
grpc-container-template/scripts/smoke-test.mjs:52
↓ 1 callersFunctionrunCommand
( file: string, args: string[], cwd: string, log: string[], )
cli/src/deployLiveDemos.ts:19
↓ 1 callersFunctionrunCustomerWorkflow
(id, baseUrl, apiToken)
saas-admin-template/src/lib/api.ts:209
↓ 1 callersFunctionrunGrpcSmokeTest
()
playwright-tests/grpc-container-template.spec.ts:5
↓ 1 callersFunctionruntime
( execute: ( options: ToolExecutionOptions<unknown>, ) => unknown | PromiseLike<unknown>, onAttempt?: (ev
voice-agent-template/test/docsTools.test.ts:15
↓ 1 callersFunctionsafeCompare
(a, b)
saas-admin-template/src/lib/api.ts:1
↓ 1 callersMethodsave
()
cli/src/npm.ts:121
↓ 1 callersFunctionsaveAndContinueFromCompetitors
()
ai-brand-visibility-template/app/routes/setup.tsx:142
↓ 1 callersMethodsaveMessage
(message: ChatMessage)
durable-chat-template/src/server/index.ts:43
↓ 1 callersMethodsayHello
* The Durable Object exposes an RPC method sayHello which will be invoked when a Durable * Object instance receives a request from a Worker via the
hello-world-do-template/src/index.ts:35
↓ 1 callersMethodscrollToUserMessage
()
nlweb-template/public/fp-chat-interface.js:1666
↓ 1 callersFunctionseedDemoDataIfNeeded
( store: KVNamespace, env: { SEED_DEMO_DATA?: string; EVENT_RETENTION_DAYS?: string }, )
agent-commerce-analytics-template/src/lib/store.ts:176
↓ 1 callersFunctionsegmentToRegex
* Converts a single path segment expression into a regex pattern. * * Processes one path segment (no '/' characters) and converts it to regex that m
microfrontend-template/index.ts:215
↓ 1 callersMethodsendBatch
(messages: Iterable<MessageSendRequest<Body>>, options?: QueueSendBatchOptions)
workers-builds-notifications-template/worker-configuration.d.ts:1939
↓ 1 callersMethodsendFromCenteredInput
()
nlweb-template/public/fp-chat-interface.js:1865
↓ 1 callersMethodsendFromCenteredInput
()
nlweb-template/public/fp-chat-interface-snippet.js:1747
↓ 1 callersFunctionsendMessage
* Sends a message to the chat API and processes the response
llm-chat-app-template/public/chat.js:43
↓ 1 callersFunctionsendNext
()
grpc-container-template/container/client.js:60
↓ 1 callersFunctionsendSlackNotification
( webhookUrl: string, payload: SlackPayload, )
workers-builds-notifications-template/src/slack.ts:231
↓ 1 callersMethodsetReject
* Reject this email message by returning a permanent SMTP error back to the connecting client including the given reason. * @param reason The rej
workers-builds-notifications-template/worker-configuration.d.ts:12849
↓ 1 callersFunctionsetWranglerSecrets
(config)
workers-for-platforms-template/scripts/setup-quick.js:465
↓ 1 callersMethodsetup
()
workers-for-platforms-template/scripts/setup.js:50
↓ 1 callersMethodsetupChatInterfaceOverrides
()
nlweb-template/public/nlweb-dropdown-chat.js:187
↓ 1 callersMethodsetupEventHandlers
()
nlweb-template/public/nlweb-dropdown-chat.js:273
↓ 1 callersFunctionsetupEventListeners
()
mysql-hyperdrive-template/public/js/app.js:188
↓ 1 callersFunctionsetupEventListeners
()
postgres-hyperdrive-template/public/js/app.js:188
↓ 1 callersFunctionsetupHooks
()
cli/src/setupHooks.ts:7
↓ 1 callersMethodsetupResources
()
workers-for-platforms-template/scripts/setup.js:336
↓ 1 callersFunctionsha256
(value: string)
voice-agent-template/src/auth.ts:30
↓ 1 callersFunctionshouldAnnounceEphemeralSpeakingStatus
( phase: "filler" | "recovery", )
voice-agent-template/src/voice/ephemeralSpeech.ts:3
↓ 1 callersFunctionshouldBeginFillerSpeech
( streamPartType: string, alreadyStarted: boolean, )
voice-agent-template/src/voice/ephemeralSpeech.ts:19
↓ 1 callersFunctionshouldRedirectPathBasedRoot
Redirect /sites/slug to /sites/slug/ in path-based mode.
internal-sites-template/src/index.ts:549
↓ 1 callersMethodshowCenteredInput
()
nlweb-template/public/fp-chat-interface.js:1684
↓ 1 callersMethodshowLocationList
* Show location list as a fallback when map cannot be displayed * @param {HTMLElement} mapDiv - The container element * @param {Array} locations -
nlweb-template/public/display_map.js:199
↓ 1 callersFunctionshutdown
(signal)
grpc-container-template/container/server.js:77
↓ 1 callersFunctionsiteConfig
(env: Env, origin: string)
agent-visibility-template/src/lib/store.ts:17
↓ 1 callersFunctionsiteLink
(path: string)
ai-brand-visibility-template/app/routes/layout.tsx:33
↓ 1 callersFunctionslugFromRequest
* Extract the site slug from the incoming request. * * Production (custom domain): reads from the subdomain * e.g. "docs" from "docs.internal-com
internal-sites-template/src/index.ts:438
↓ 1 callersMethodspeak
()
voice-agent-template/src/VoiceAgent.ts:818
↓ 1 callersFunctionstart
(config, providedArgs, waitUntilReady = false)
microfrontend-template/e2e/dev.mjs:44
↓ 1 callersMethodstartAndWaitForPort
()
containers-template/src/index.ts:39
↓ 1 callersMethodstartServer
(templateName: string)
playwright-tests/utils/template-server.ts:154
↓ 1 callersFunctionstatusBadge
(status: string)
workers-for-platforms-template/src/index.ts:294
↓ 1 callersFunctionstatusPage
()
voice-agent-template/src/statusPage.ts:9
↓ 1 callersFunctionstepGlyph
(kind: string)
agent-commerce-analytics-template/src/react-app/App.tsx:661
↓ 1 callersFunctionstepKind
( step: JourneyStep, )
agent-commerce-analytics-template/src/react-app/App.tsx:650
↓ 1 callersMethodstopAllServers
()
playwright-tests/utils/template-server.ts:286
↓ 1 callersFunctionstopProcessTree
(child)
grpc-container-template/scripts/smoke-test.mjs:104
↓ 1 callersFunctionstreamLogic
()
nlweb-template/src/ask/index.ts:118
↓ 1 callersFunctionstringArray
(v: unknown, max: number)
agent-visibility-template/src/enrichment/index.ts:75
↓ 1 callersFunctionstripHtml
* Strip HTML tags from Shopify body_html to get plain text description.
commerce-llms-txt-template/src/lib/shopify.ts:46
↓ 1 callersFunctionsummarizeStreaming
({ query, answers, stream, ai, }: { query: string; answers: ResultBatch["results"]; stream?: StreamingW
nlweb-template/src/ask/summarize.ts:53
↓ 1 callersFunctionsuppressWithFallback
( state: OutputGuardrailState, outcome: "blocked" | "error", message: string, categories?: readonly string
voice-agent-template/src/voice/outputGuardrail.ts:31
↓ 1 callersFunctiontier
()
agent-commerce-analytics-template/src/lib/store.ts:1203
↓ 1 callersMethodtoggleConversationsPanel
()
nlweb-template/public/nlweb-dropdown-chat.js:356
↓ 1 callersMethodtoggleDebugInfo
()
nlweb-template/public/fp-chat-interface.js:1876
↓ 1 callersMethodtoggleDebugInfo
()
nlweb-template/public/fp-chat-interface-snippet.js:1758
↓ 1 callersMethodtoggleSiteDropdown
()
nlweb-template/public/fp-chat-interface.js:2048
↓ 1 callersMethodtoggleSiteDropdown
()
nlweb-template/public/fp-chat-interface-snippet.js:1930
↓ 1 callersFunctiontokensMatch
( supplied: string, configured: string, )
voice-agent-template/src/auth.ts:45
↓ 1 callersFunctiontruncate
(str: string, maxLength: number)
workers-builds-notifications-template/src/helpers.ts:194
↓ 1 callersFunctiontruncateToolResult
(result: unknown)
voice-agent-template/src/voice/docsTools.ts:68
↓ 1 callersFunctionts
(minutesAgo: number)
agent-commerce-analytics-template/src/lib/store.ts:186
↓ 1 callersFunctionttlSeconds
(env: Env)
agent-visibility-template/src/lib/store.ts:25
↓ 1 callersFunctionunescapePathLiterals
* Removes backslash escaping from path literals. * * The path expression syntax allows escaping special characters with backslash * for literal pat
microfrontend-template/index.ts:185
↓ 1 callersMethodupdateConversation
(id, updates)
nlweb-template/public/conversation-manager.js:485
↓ 1 callersMethodupdateStep
* RPC method called by the workflow to update step status * This is called via stub.updateStep() from the workflow
workflows-starter-template/worker/durable-object.ts:71
↓ 1 callersFunctionupdateWidth
()
workflows-starter-template/src/components/WorkflowDiagram.tsx:38
↓ 1 callersFunctionupdateWranglerConfig
(accountId)
internal-sites-template/scripts/setup.js:102
↓ 1 callersFunctionupdateWranglerConfig
(config)
workers-for-platforms-template/scripts/setup-quick.js:330
↓ 1 callersMethodupdateWranglerConfig
()
workers-for-platforms-template/scripts/setup.js:589
↓ 1 callersFunctionuploadAssetBucket
( env: Env, bucket: string[], assetsByHash: Map<string, UploadedAsset>, uploadJwt: string, )
internal-sites-template/src/resource.ts:277
↓ 1 callersFunctionuploadTemplates
(body: FormData, config: UploadConfig)
cli/src/upload.ts:44
↓ 1 callersFunctionupsertResource
( env: Env, raw: RawResource, maxResources = 100, )
agent-visibility-template/src/lib/store.ts:74
↓ 1 callersFunctionuseBooks
(filter, sortBy)
react-postgres-fullstack-template/src/components/BooksList.jsx:5
↓ 1 callersFunctionuseFormField
()
saas-admin-template/src/components/ui/form.tsx:38
↓ 1 callersFunctionuseSiteInfo
()
agent-visibility-template/src/react-app/App.tsx:25
↓ 1 callersFunctionuseWorkflowWebSocket
(instanceId: string | null)
workflows-starter-template/src/hooks/useWorkflowWebSocket.ts:49
↓ 1 callersFunctionvalidateApiToken
(request, apiToken)
saas-admin-template/src/lib/api.ts:17
↓ 1 callersFunctionvalidateAssets
(assets: UploadedAsset[])
internal-sites-template/src/assets.ts:190
↓ 1 callersMethodvalidateCredentials
()
workers-for-platforms-template/scripts/setup.js:264
← previousnext →701–800 of 10,210, ranked by callers