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
↓ 1 callers
Function
renderSetupPage
(request: Request, env: Env)
email-sending-template/src/index.ts:22
↓ 1 callers
Function
renderWebsiteJsonLd
(ctx: RenderCtx)
agent-visibility-template/src/enrichment/surfaces.ts:193
↓ 1 callers
Function
request
(authorization?: string)
voice-agent-template/test/auth.test.ts:7
↓ 1 callers
Function
request
(path: string, init?: RequestInit)
email-sending-template/test/index.test.ts:37
↓ 1 callers
Function
requestForSite
Strip the /sites/slug prefix when dispatching in path-based mode.
internal-sites-template/src/index.ts:466
↓ 1 callers
Function
requestWithRawUrl
(url: string)
x402-proxy-template/test/index.test.ts:6
↓ 1 callers
Function
requireAccessIdentity
( ctx: ExecutionContext, )
internal-sites-template/src/access.ts:89
↓ 1 callers
Function
requirePaymentOrCookie
(paymentMw: MiddlewareHandler)
x402-proxy-template/src/auth.ts:18
↓ 1 callers
Function
resetDbInitialized
()
internal-sites-template/src/index.ts:577
↓ 1 callers
Function
resetTables
(session: D1DatabaseSession)
d1-starter-sessions-api-template/src/index.ts:156
↓ 1 callers
Function
resourceValueToString
(value: ResourceValues)
internal-sites-template/src/render.ts:123
↓ 1 callers
Function
responseForSite
Rewrite asset URLs in path-based mode so relative paths resolve correctly.
internal-sites-template/src/index.ts:483
↓ 1 callers
Function
responseShape
(response: unknown)
voice-agent-template/src/voice/voiceAIBinding.ts:26
↓ 1 callers
Function
retentionSeconds
(env: { EVENT_RETENTION_DAYS?: string })
agent-commerce-analytics-template/src/lib/store.ts:90
↓ 1 callers
Method
retry
(options?: QueueRetryOptions)
workers-builds-notifications-template/worker-configuration.d.ts:1996
↓ 1 callers
Function
rewriteLocation
* 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 callers
Function
rewritePathBasedAssetUrls
(html: string, slug: string)
internal-sites-template/src/index.ts:537
↓ 1 callers
Function
rewriteSetCookie
* 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 callers
Method
run
(model: string, input: Record<string, unknown>)
commerce-llms-txt-template/src/enrichment/index.ts:38
↓ 1 callers
Function
runClient
()
grpc-container-template/scripts/smoke-test.mjs:52
↓ 1 callers
Function
runCommand
( file: string, args: string[], cwd: string, log: string[], )
cli/src/deployLiveDemos.ts:19
↓ 1 callers
Function
runCustomerWorkflow
(id, baseUrl, apiToken)
saas-admin-template/src/lib/api.ts:209
↓ 1 callers
Function
runGrpcSmokeTest
()
playwright-tests/grpc-container-template.spec.ts:5
↓ 1 callers
Function
runtime
( execute: ( options: ToolExecutionOptions<unknown>, ) => unknown | PromiseLike<unknown>, onAttempt?: (ev
voice-agent-template/test/docsTools.test.ts:15
↓ 1 callers
Function
safeCompare
(a, b)
saas-admin-template/src/lib/api.ts:1
↓ 1 callers
Method
save
()
cli/src/npm.ts:121
↓ 1 callers
Function
saveAndContinueFromCompetitors
()
ai-brand-visibility-template/app/routes/setup.tsx:142
↓ 1 callers
Method
saveMessage
(message: ChatMessage)
durable-chat-template/src/server/index.ts:43
↓ 1 callers
Method
sayHello
* 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 callers
Method
scrollToUserMessage
()
nlweb-template/public/fp-chat-interface.js:1666
↓ 1 callers
Function
seedDemoDataIfNeeded
( store: KVNamespace, env: { SEED_DEMO_DATA?: string; EVENT_RETENTION_DAYS?: string }, )
agent-commerce-analytics-template/src/lib/store.ts:176
↓ 1 callers
Function
segmentToRegex
* 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 callers
Method
sendBatch
(messages: Iterable<MessageSendRequest<Body>>, options?: QueueSendBatchOptions)
workers-builds-notifications-template/worker-configuration.d.ts:1939
↓ 1 callers
Method
sendFromCenteredInput
()
nlweb-template/public/fp-chat-interface.js:1865
↓ 1 callers
Method
sendFromCenteredInput
()
nlweb-template/public/fp-chat-interface-snippet.js:1747
↓ 1 callers
Function
sendMessage
* Sends a message to the chat API and processes the response
llm-chat-app-template/public/chat.js:43
↓ 1 callers
Function
sendNext
()
grpc-container-template/container/client.js:60
↓ 1 callers
Function
sendSlackNotification
( webhookUrl: string, payload: SlackPayload, )
workers-builds-notifications-template/src/slack.ts:231
↓ 1 callers
Method
setReject
* 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 callers
Function
setWranglerSecrets
(config)
workers-for-platforms-template/scripts/setup-quick.js:465
↓ 1 callers
Method
setup
()
workers-for-platforms-template/scripts/setup.js:50
↓ 1 callers
Method
setupChatInterfaceOverrides
()
nlweb-template/public/nlweb-dropdown-chat.js:187
↓ 1 callers
Method
setupEventHandlers
()
nlweb-template/public/nlweb-dropdown-chat.js:273
↓ 1 callers
Function
setupEventListeners
()
mysql-hyperdrive-template/public/js/app.js:188
↓ 1 callers
Function
setupEventListeners
()
postgres-hyperdrive-template/public/js/app.js:188
↓ 1 callers
Function
setupHooks
()
cli/src/setupHooks.ts:7
↓ 1 callers
Method
setupResources
()
workers-for-platforms-template/scripts/setup.js:336
↓ 1 callers
Function
sha256
(value: string)
voice-agent-template/src/auth.ts:30
↓ 1 callers
Function
shouldAnnounceEphemeralSpeakingStatus
( phase: "filler" | "recovery", )
voice-agent-template/src/voice/ephemeralSpeech.ts:3
↓ 1 callers
Function
shouldBeginFillerSpeech
( streamPartType: string, alreadyStarted: boolean, )
voice-agent-template/src/voice/ephemeralSpeech.ts:19
↓ 1 callers
Function
shouldRedirectPathBasedRoot
Redirect /sites/slug to /sites/slug/ in path-based mode.
internal-sites-template/src/index.ts:549
↓ 1 callers
Method
showCenteredInput
()
nlweb-template/public/fp-chat-interface.js:1684
↓ 1 callers
Method
showLocationList
* 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 callers
Function
shutdown
(signal)
grpc-container-template/container/server.js:77
↓ 1 callers
Function
siteConfig
(env: Env, origin: string)
agent-visibility-template/src/lib/store.ts:17
↓ 1 callers
Function
siteLink
(path: string)
ai-brand-visibility-template/app/routes/layout.tsx:33
↓ 1 callers
Function
slugFromRequest
* 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 callers
Method
speak
()
voice-agent-template/src/VoiceAgent.ts:818
↓ 1 callers
Function
start
(config, providedArgs, waitUntilReady = false)
microfrontend-template/e2e/dev.mjs:44
↓ 1 callers
Method
startAndWaitForPort
()
containers-template/src/index.ts:39
↓ 1 callers
Method
startServer
(templateName: string)
playwright-tests/utils/template-server.ts:154
↓ 1 callers
Function
statusBadge
(status: string)
workers-for-platforms-template/src/index.ts:294
↓ 1 callers
Function
statusPage
()
voice-agent-template/src/statusPage.ts:9
↓ 1 callers
Function
stepGlyph
(kind: string)
agent-commerce-analytics-template/src/react-app/App.tsx:661
↓ 1 callers
Function
stepKind
( step: JourneyStep, )
agent-commerce-analytics-template/src/react-app/App.tsx:650
↓ 1 callers
Method
stopAllServers
()
playwright-tests/utils/template-server.ts:286
↓ 1 callers
Function
stopProcessTree
(child)
grpc-container-template/scripts/smoke-test.mjs:104
↓ 1 callers
Function
streamLogic
()
nlweb-template/src/ask/index.ts:118
↓ 1 callers
Function
stringArray
(v: unknown, max: number)
agent-visibility-template/src/enrichment/index.ts:75
↓ 1 callers
Function
stripHtml
* Strip HTML tags from Shopify body_html to get plain text description.
commerce-llms-txt-template/src/lib/shopify.ts:46
↓ 1 callers
Function
summarizeStreaming
({ query, answers, stream, ai, }: { query: string; answers: ResultBatch["results"]; stream?: StreamingW
nlweb-template/src/ask/summarize.ts:53
↓ 1 callers
Function
suppressWithFallback
( state: OutputGuardrailState, outcome: "blocked" | "error", message: string, categories?: readonly string
voice-agent-template/src/voice/outputGuardrail.ts:31
↓ 1 callers
Function
tier
()
agent-commerce-analytics-template/src/lib/store.ts:1203
↓ 1 callers
Method
toggleConversationsPanel
()
nlweb-template/public/nlweb-dropdown-chat.js:356
↓ 1 callers
Method
toggleDebugInfo
()
nlweb-template/public/fp-chat-interface.js:1876
↓ 1 callers
Method
toggleDebugInfo
()
nlweb-template/public/fp-chat-interface-snippet.js:1758
↓ 1 callers
Method
toggleSiteDropdown
()
nlweb-template/public/fp-chat-interface.js:2048
↓ 1 callers
Method
toggleSiteDropdown
()
nlweb-template/public/fp-chat-interface-snippet.js:1930
↓ 1 callers
Function
tokensMatch
( supplied: string, configured: string, )
voice-agent-template/src/auth.ts:45
↓ 1 callers
Function
truncate
(str: string, maxLength: number)
workers-builds-notifications-template/src/helpers.ts:194
↓ 1 callers
Function
truncateToolResult
(result: unknown)
voice-agent-template/src/voice/docsTools.ts:68
↓ 1 callers
Function
ts
(minutesAgo: number)
agent-commerce-analytics-template/src/lib/store.ts:186
↓ 1 callers
Function
ttlSeconds
(env: Env)
agent-visibility-template/src/lib/store.ts:25
↓ 1 callers
Function
unescapePathLiterals
* 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 callers
Method
updateConversation
(id, updates)
nlweb-template/public/conversation-manager.js:485
↓ 1 callers
Method
updateStep
* 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 callers
Function
updateWidth
()
workflows-starter-template/src/components/WorkflowDiagram.tsx:38
↓ 1 callers
Function
updateWranglerConfig
(accountId)
internal-sites-template/scripts/setup.js:102
↓ 1 callers
Function
updateWranglerConfig
(config)
workers-for-platforms-template/scripts/setup-quick.js:330
↓ 1 callers
Method
updateWranglerConfig
()
workers-for-platforms-template/scripts/setup.js:589
↓ 1 callers
Function
uploadAssetBucket
( env: Env, bucket: string[], assetsByHash: Map<string, UploadedAsset>, uploadJwt: string, )
internal-sites-template/src/resource.ts:277
↓ 1 callers
Function
uploadTemplates
(body: FormData, config: UploadConfig)
cli/src/upload.ts:44
↓ 1 callers
Function
upsertResource
( env: Env, raw: RawResource, maxResources = 100, )
agent-visibility-template/src/lib/store.ts:74
↓ 1 callers
Function
useBooks
(filter, sortBy)
react-postgres-fullstack-template/src/components/BooksList.jsx:5
↓ 1 callers
Function
useFormField
()
saas-admin-template/src/components/ui/form.tsx:38
↓ 1 callers
Function
useSiteInfo
()
agent-visibility-template/src/react-app/App.tsx:25
↓ 1 callers
Function
useWorkflowWebSocket
(instanceId: string | null)
workflows-starter-template/src/hooks/useWorkflowWebSocket.ts:49
↓ 1 callers
Function
validateApiToken
(request, apiToken)
saas-admin-template/src/lib/api.ts:17
↓ 1 callers
Function
validateAssets
(assets: UploadedAsset[])
internal-sites-template/src/assets.ts:190
↓ 1 callers
Method
validateCredentials
()
workers-for-platforms-template/scripts/setup.js:264
← previous
next →
701–800 of 10,210, ranked by callers