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
DeleteScriptInDispatchNamespace
( env: Env, scriptName: string, )
internal-sites-template/src/resource.ts:87
↓ 1 callers
Function
DeleteScriptInDispatchNamespace
( env: Env, scriptName: string, )
workers-for-platforms-template/src/resource.ts:267
↓ 1 callers
Function
DeleteSite
( db: D1Database, siteId: string, )
internal-sites-template/src/db.ts:125
↓ 1 callers
Function
FetchDeploymentsWithSites
( db: D1Database, )
internal-sites-template/src/db.ts:145
↓ 1 callers
Function
FetchTable
( db: D1Database, table: string, )
internal-sites-template/src/db.ts:61
↓ 1 callers
Function
FetchTable
( db: D1QB, table: string, )
workers-for-platforms-template/src/db.ts:31
↓ 1 callers
Function
GetProjectByCustomHostname
( db: D1QB, hostname: string, )
workers-for-platforms-template/src/db.ts:71
↓ 1 callers
Function
GetProjectBySubdomain
( db: D1QB, subdomain: string, )
workers-for-platforms-template/src/db.ts:56
↓ 1 callers
Function
GetScriptsInDispatchNamespace
(env: Env)
internal-sites-template/src/resource.ts:56
↓ 1 callers
Function
GetScriptsInDispatchNamespace
(env: Env)
workers-for-platforms-template/src/resource.ts:30
↓ 1 callers
Function
GetSiteBySlug
( db: D1Database, slug: string, )
internal-sites-template/src/db.ts:98
↓ 1 callers
Function
HTML_UI
({ isReadOnly }: { isReadOnly: boolean })
worker-publisher-template/src/index.ts:61
↓ 1 callers
Function
HasSitesTable
(db: D1Database)
internal-sites-template/src/db.ts:49
↓ 1 callers
Function
Initialize
(db: D1Database)
internal-sites-template/src/db.ts:16
↓ 1 callers
Function
Initialize
(db: D1QB)
workers-for-platforms-template/src/db.ts:7
↓ 1 callers
Function
PutScriptInDispatchNamespace
( env: Env, scriptName: string, scriptContent: string, )
workers-for-platforms-template/src/resource.ts:42
↓ 1 callers
Function
PutScriptWithAssetsInDispatchNamespace
( env: Env, scriptName: string, assets: AssetFile[], )
workers-for-platforms-template/src/resource.ts:100
↓ 1 callers
Function
ResourceValueToString
(value: ResourceValues, columnName?: string)
workers-for-platforms-template/src/render.ts:6
↓ 1 callers
Function
UpdateSite
( db: D1Database, siteId: string, updates: Pick<Partial<Site>, "latest_deployment_id" | "updated_at">, )
internal-sites-template/src/db.ts:108
↓ 1 callers
Function
abortReason
(signal: AbortSignal)
voice-agent-template/src/voice/docsTools.ts:78
↓ 1 callers
Method
acceptWebSocket
(ws: WebSocket, tags?: string[])
workers-builds-notifications-template/worker-configuration.d.ts:549
↓ 1 callers
Function
action
({ request, context, params }: ActionFunctionArgs)
to-do-list-kv-template/app/routes/$id.tsx:17
↓ 1 callers
Function
actionWithSummary
( title: string, action: () => Promise<string | void> | string | void, )
cli/src/util.ts:178
↓ 1 callers
Function
addCompetitor
()
ai-brand-visibility-template/app/routes/setup.tsx:135
↓ 1 callers
Method
addConversation
(conversation)
nlweb-template/public/conversation-manager.js:480
↓ 1 callers
Function
addCustom
()
ai-brand-visibility-template/app/routes/setup.tsx:127
↓ 1 callers
Function
addFeature
()
saas-admin-template/src/components/admin/create-subscription.tsx:69
↓ 1 callers
Method
addImageIfAvailable
* Adds an image to the item if available * * @param {Object} item - The item data * @param {HTMLElement} container - The container element
nlweb-template/public/json-renderer.js:234
↓ 1 callers
Method
addMessage
(content, type)
nlweb-template/public/fp-chat-interface.js:321
↓ 1 callers
Method
addMessage
(content, type)
nlweb-template/public/fp-chat-interface-snippet.js:298
↓ 1 callers
Function
addMessageToChat
* Helper function to add message to chat
llm-chat-app-template/public/chat.js:201
↓ 1 callers
Method
addRememberedItem
(item)
nlweb-template/public/fp-chat-interface.js:2092
↓ 1 callers
Method
addRememberedItem
(item)
nlweb-template/public/fp-chat-interface-snippet.js:1974
↓ 1 callers
Function
aiResponse
(body: string, status = 200)
voice-agent-template/test/guardrails.test.ts:10
↓ 1 callers
Method
analyzeTemplate
( name: string, path: string, packageJson: TemplatePackageJson, )
playwright-tests/utils/template-server.ts:132
↓ 1 callers
Function
arrayBufferToString
* Convert BufferSource to string
x402-proxy-template/src/jwt.ts:52
↓ 1 callers
Function
asString
(v: unknown)
agent-visibility-template/src/enrichment/index.ts:50
↓ 1 callers
Function
assetsFromFiles
( files: File[], paths: string[], )
internal-sites-template/src/assets.ts:116
↓ 1 callers
Function
assetsFromZip
(file: File)
internal-sites-template/src/assets.ts:136
↓ 1 callers
Function
autoInitializeDatabase
* Automatically initialize database schema on first request
workers-for-platforms-template/src/index.ts:60
↓ 1 callers
Function
availablePort
()
microfrontend-template/e2e/dev.mjs:7
↓ 1 callers
Function
b64urlToBytes
(s: string)
agent-visibility-template/src/lib/web-bot-auth.ts:54
↓ 1 callers
Function
base64UrlDecode
* Base64URL decoding
x402-proxy-template/src/jwt.ts:27
↓ 1 callers
Function
base64UrlEncode
* Base64URL encoding (URL-safe base64 without padding)
x402-proxy-template/src/jwt.ts:15
↓ 1 callers
Method
bindEvents
()
nlweb-template/public/fp-chat-interface.js:84
↓ 1 callers
Method
bindEvents
()
nlweb-template/public/fp-chat-interface-snippet.js:125
↓ 1 callers
Function
buildAssetManifest
( scriptName: string, assets: UploadedAsset[], )
internal-sites-template/src/resource.ts:204
↓ 1 callers
Function
buildAssetPrefixes
* Builds the complete list of asset prefixes by merging defaults with custom prefixes from environment. * * Reads the ASSET_PREFIXES environment var
microfrontend-template/index.ts:51
↓ 1 callers
Function
buildCancelledMessage
(event: CloudflareEvent)
workers-builds-notifications-template/src/slack.ts:165
↓ 1 callers
Function
buildEnrichmentPrompt
(vertical: string)
commerce-llms-txt-template/src/enrichment/index.ts:16
↓ 1 callers
Function
buildFailureMessage
( event: CloudflareEvent, logs: string[], )
workers-builds-notifications-template/src/slack.ts:134
↓ 1 callers
Function
buildFallbackMessage
(event: CloudflareEvent)
workers-builds-notifications-template/src/slack.ts:185
↓ 1 callers
Function
buildJourneySummary
(sorted: AgentEvent[])
agent-commerce-analytics-template/src/lib/store.ts:882
↓ 1 callers
Function
buildResponse
( session: D1DatabaseSession, res: D1Result, tsStart: number, )
d1-starter-sessions-api-template/src/index.ts:91
↓ 1 callers
Function
buildRoutes
* Parses and compiles route configuration from environment variables. * * Reads the ROUTES environment variable (JSON string) and: * 1. Parses the
microfrontend-template/index.ts:986
↓ 1 callers
Function
buildSignatureBase
Build the signature base string from the covered components.
agent-visibility-template/src/lib/web-bot-auth.ts:81
↓ 1 callers
Function
buildSite
( name: string, slug: string, ownerEmail: string, now: string, )
internal-sites-template/src/index.ts:411
↓ 1 callers
Function
buildSlackPayload
( event: CloudflareEvent, previewUrl: string | null, liveUrl: string | null, logs: string[], )
workers-builds-notifications-template/src/slack.ts:203
↓ 1 callers
Function
buildSuccessMessage
( event: CloudflareEvent, isProduction: boolean, previewUrl: string | null, liveUrl: string | null, )
workers-builds-notifications-template/src/slack.ts:103
↓ 1 callers
Function
bytesToBase64
(bytes: Uint8Array)
internal-sites-template/src/resource.ts:403
↓ 1 callers
Function
callModel
* Universal model caller — all models go through env.AI.run() with AI Gateway. * Handles OpenAI/Anthropic (messages format) and Gemini (contents form
ai-brand-visibility-template/workers/queue.ts:88
↓ 1 callers
Method
cancel
* The **`cancel()`** method of the ReadableStream interface returns a Promise that resolves when the stream is canceled. * * [MDN Reference]
workers-builds-notifications-template/worker-configuration.d.ts:2243
↓ 1 callers
Function
check
()
voice-agent-template/test/guardrails.test.ts:79
↓ 1 callers
Function
checkEnvConfig
(env: Env)
workers-for-platforms-template/src/resource.ts:21
↓ 1 callers
Function
checkTables
()
mysql-hyperdrive-template/public/js/services/api.js:9
↓ 1 callers
Function
checkTables
()
postgres-hyperdrive-template/public/js/services/api.js:9
↓ 1 callers
Method
checkWorkersForPlatformsAccess
()
workers-for-platforms-template/scripts/setup.js:349
↓ 1 callers
Function
classifyAction
( path: string, intent?: string | null, )
agent-commerce-analytics-template/src/lib/store.ts:444
↓ 1 callers
Function
clean
(d: string)
ai-brand-visibility-template/workers/api.ts:387
↓ 1 callers
Function
clearCache
(env: Env)
agent-visibility-template/src/lib/store.ts:111
↓ 1 callers
Function
clearEvents
(store: KVNamespace)
agent-commerce-analytics-template/src/lib/store.ts:148
↓ 1 callers
Method
clone
* The **`clone()`** method of the Request interface creates a copy of the current Request object. * * [MDN Reference](https://developer.mozi
workers-builds-notifications-template/worker-configuration.d.ts:1792
↓ 1 callers
Function
cloneHeadersForTransform
* Creates a copy of headers with transformation-incompatible headers removed. * * Removes headers that become invalid when response body is transfor
microfrontend-template/index.ts:639
↓ 1 callers
Method
close
* The **`WebSocket.close()`** method closes the WebSocket connection or connection attempt, if any. If the connection is already CLOSED, this method d
workflows-starter-template/worker-configuration.d.ts:3235
↓ 1 callers
Method
closeDropdown
()
nlweb-template/public/nlweb-dropdown-chat.js:462
↓ 1 callers
Method
collectUserConfig
()
workers-for-platforms-template/scripts/setup.js:154
↓ 1 callers
Function
commandOutput
(error)
internal-sites-template/scripts/setup.js:68
↓ 1 callers
Function
compilePathExpr
* Compiles a path expression into a RegExp pattern for route matching. * * The compiled regex captures the matched mount prefix in group 1, allowing
microfrontend-template/index.ts:326
↓ 1 callers
Function
computeBaseSpecificity
* Computes a specificity score for route matching tie-breaking. * * Routes with longer literal prefixes are considered more specific. * This is use
microfrontend-template/index.ts:294
↓ 1 callers
Function
computeDemandSignals
( agentMap: Map<string, AgentEvent[]>, )
agent-commerce-analytics-template/src/lib/store.ts:967
↓ 1 callers
Function
computeJourneys
( agentMap: Map<string, AgentEvent[]>, now: Date, )
agent-commerce-analytics-template/src/lib/store.ts:788
↓ 1 callers
Function
computeSecurity
( agentMap: Map<string, AgentEvent[]>, allEvents: AgentEvent[], )
agent-commerce-analytics-template/src/lib/store.ts:916
↓ 1 callers
Function
computeSummary
( events: AgentEvent[], merchantName: string, )
agent-commerce-analytics-template/src/lib/store.ts:484
↓ 1 callers
Function
computeTrustBreakdown
* Roll up trust-tier stats across all events. Per-event signals are * read from `event.trustSignals` when present, otherwise derived from * the lega
agent-commerce-analytics-template/src/lib/store.ts:1282
↓ 1 callers
Function
consumeSseEvents
(buffer)
llm-chat-app-template/public/chat.js:211
↓ 1 callers
Function
contentSignal
Apply the Content-Signal header declaring agent usage intent.
agent-visibility-template/src/worker/index.ts:79
↓ 1 callers
Method
convertServerConversations
(serverConversations)
nlweb-template/public/conversation-manager.js:95
↓ 1 callers
Function
convertToSafeBranchName
(str: string)
cli/src/util.ts:402
↓ 1 callers
Method
copyEnvFiles
(templatePath: string)
playwright-tests/utils/template-server.ts:293
↓ 1 callers
Method
create
* Creates a new todo item * @param text - The text content of the todo item * @returns Promise containing the newly created Todo item
to-do-list-kv-template/app/to-do-manager.ts:44
↓ 1 callers
Method
create
(customerSubscriptionData)
saas-admin-template/src/lib/services/customer_subscription.ts:100
↓ 1 callers
Method
create
(customerData: { name: string; email: string; notes?: string; subscription?: { id: numbe
saas-admin-template/src/lib/services/customer.ts:93
↓ 1 callers
Method
create
(subscriptionData)
saas-admin-template/src/lib/services/subscription.ts:73
↓ 1 callers
Function
createAccessContext
* Create an ExecutionContext with a mock ctx.access object. * This simulates what the Workers runtime provides when Cloudflare Access * has authenti
internal-sites-template/test/index.spec.ts:25
↓ 1 callers
Function
createAssetsUploadSession
( env: Env, scriptName: string, manifest: AssetManifest, )
internal-sites-template/src/resource.ts:244
↓ 1 callers
Function
createContainer
(socket: Socket, running = true)
grpc-container-template/test/index.spec.ts:48
↓ 1 callers
Function
createContainer
(running = false)
containers-template/test/index.spec.ts:11
↓ 1 callers
Function
createCustomHostname
( env: Env, hostname: string, )
workers-for-platforms-template/src/cloudflare-api.ts:32
↓ 1 callers
Function
createCustomer
(baseUrl, apiToken, customer)
saas-admin-template/src/lib/api.ts:98
↓ 1 callers
Method
createDOM
()
nlweb-template/public/nlweb-dropdown-chat.js:89
← previous
next →
301–400 of 10,210, ranked by callers