Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/vercel/examples
/ functions
Functions
2,748 in github.com/vercel/examples
⨍
Functions
2,748
◇
Types & classes
418
↳
Endpoints
58
↓ 1 callers
Function
drawVercelTriangle
drawVercelTriangle draws a black, upward-pointing triangle centered in the image. To match the Vercel branding it is drawn directly over the center (n
container-images/demo/apps/qr/generate.go:75
↓ 1 callers
Function
e
()
framework-boilerplates/hexo/themes/landscape/source/fancybox/jquery.fancybox.pack.js:251
↓ 1 callers
Function
encode
(query: Record<string, string>)
edge-middleware/ip-blocking-datadome/lib/datadome.ts:137
↓ 1 callers
Function
encode
(query: Record<string, string>)
edge-middleware/bot-protection-datadome/lib/datadome.ts:156
↓ 1 callers
Function
ensureDirFor
(filePath)
python/vibe-coding-ide/frontend/scripts/build-templates.js:207
↓ 1 callers
Function
ensure_go_tooling
( ctx: RunContextWrapper[IDEContext], sandbox: Sandbox, safe_cwd: str, env: dict[str, str] | N
python/vibe-coding-ide/backend/src/sandbox/command.py:378
↓ 1 callers
Function
ensure_python_tooling
( ctx: RunContextWrapper[IDEContext], sandbox: Sandbox, safe_cwd: str, env: dict[str, str] | N
python/vibe-coding-ide/backend/src/sandbox/command.py:93
↓ 1 callers
Function
ensure_ruby_tooling
( ctx: RunContextWrapper[IDEContext], sandbox: Sandbox, safe_cwd: str, env: dict[str, str] | N
python/vibe-coding-ide/backend/src/sandbox/command.py:278
↓ 1 callers
Method
enter
* Update game state based on a guess of a five-letter word. Returns * true if the guess was valid, false otherwise
framework-boilerplates/sveltekit-1/src/routes/sverdle/game.ts:32
↓ 1 callers
Function
escapeRegex
(s: string)
python/vibe-coding-ide/frontend/src/context/ProjectsContext.tsx:631
↓ 1 callers
Function
expireUserCookie
(res: NextResponse)
edge-middleware/jwt-authentication/lib/auth.ts:54
↓ 1 callers
Function
fetchApi
()
python/vibe-coding-ide/frontend/templates/react-fastapi/frontend/src/app/page.tsx:3
↓ 1 callers
Function
fetchContentfulRedirects
()
cdn/cms-bulk-redirects/vercel.ts:32
↓ 1 callers
Function
fetchDatafile
()
edge-middleware/feature-flag-optimizely/scripts/fetch_optimizely_datafile.js:6
↓ 1 callers
Function
fetchItems
()
python/vibe-coding-ide/frontend/templates/react-fastapi/frontend/src/app/page.tsx:11
↓ 1 callers
Function
fetchPredictiveSearchResults
({ params, request, context, }: Pick<LoaderArgs, 'params' | 'context' | 'request'>)
framework-boilerplates/hydrogen-2/app/routes/api.predictive-search.tsx:56
↓ 1 callers
Function
filterTagList
(tags)
framework-boilerplates/eleventy/.eleventy.js:48
↓ 1 callers
Function
findDoomWindow
findDoomWindow searches for the chocolate-doom window by class/name.
container-images/demo/apps/doom/engine.go:94
↓ 1 callers
Function
firstLine
(s string)
container-images/demo/apps/doom/engine.go:126
↓ 1 callers
Function
format
(url, rez, params)
framework-boilerplates/hexo/themes/landscape/source/fancybox/helpers/jquery.fancybox-media.js:70
↓ 1 callers
Function
formatSlug
(fallback: string)
starter/cms-payload/payload/utilities/formatSlug.ts:10
↓ 1 callers
Function
generateFiles
({ writer, modelId }: Params)
apps/vibe-coding-platform/ai/tools/generate-files.ts:16
↓ 1 callers
Function
generatePromptFromThread
({ messages, }: ConversationsRepliesResponse)
solutions/slackbot/api/_openai.ts:14
↓ 1 callers
Function
generateRandomActivity
()
solutions/saas-microservices/apps/api-dashboard/server/routes/activity.get.ts:119
↓ 1 callers
Function
generateRandomActivity
()
microfrontends/saas-microservices/apps/api/src/index.ts:171
↓ 1 callers
Function
generateSitemap
({ data, baseUrl, }: { data: SitemapQuery; baseUrl: string; })
framework-boilerplates/hydrogen-2/app/routes/[sitemap.xml].tsx:49
↓ 1 callers
Function
generateTests
()
internal/packages/playwright/scripts/generate-tests.ts:11
↓ 1 callers
Function
get
(key: keyof FeatureFlags)
edge-middleware/feature-flag-apple-store/lib/feature-flags.ts:10
↓ 1 callers
Method
get
({ fallback, shouldReturnUnrecognizedValues = false, }: { fallback: ProceedToCheckout should
flags-sdk/hypertune/generated/hypertune.ts:131
↓ 1 callers
Function
getAddressFirstCharacters
(address: string)
solutions/mint-nft/helpers/address.helpers.ts:1
↓ 1 callers
Function
getAddressLateCharacters
(address: string)
solutions/mint-nft/helpers/address.helpers.ts:3
↓ 1 callers
Function
getAllRules
()
edge-middleware/ip-blocking-datadome/lib/datadome-ip.ts:51
↓ 1 callers
Function
getAuthorizationLength
(req: NextRequest)
edge-middleware/ip-blocking-datadome/lib/datadome.ts:182
↓ 1 callers
Function
getAuthorizationLength
(req: NextRequest)
edge-middleware/bot-protection-datadome/lib/datadome.ts:201
↓ 1 callers
Function
getBackgroundCommandErrorLines
(commands: Command[])
apps/vibe-coding-platform/app/state.ts:28
↓ 1 callers
Function
getBarColorForPercentage
(p)
edge-middleware/clerk-authentication/components/statelessDoneRightSection/TokenCard.jsx:7
↓ 1 callers
Function
getBucket
(buckets: readonly string[])
edge-middleware/ab-testing-simple/lib/ab-testing.ts:1
↓ 1 callers
Function
getClient
()
toolbar/toolbar-launchdarkly/app/launchdarkly.ts:9
↓ 1 callers
Function
getCollection
(slug: string)
cdn/cms-webhook-update-redirects/lib/collections.ts:117
↓ 1 callers
Function
getCollection
(slug: string)
cdn/cms-bulk-redirects/lib/collections.ts:117
↓ 1 callers
Function
getCollectionParams
()
cdn/cms-webhook-update-redirects/lib/collections.ts:121
↓ 1 callers
Function
getCollectionParams
()
cdn/cms-bulk-redirects/lib/collections.ts:121
↓ 1 callers
Function
getCommand
(sandboxId: string, cmdId: string)
apps/vibe-coding-platform/components/commands-logs/command-logs.tsx:100
↓ 1 callers
Function
getCommand
(sandboxId: string, cmdId: string)
apps/vibe-coding-platform/components/commands-logs/commands-logs-stream.tsx:94
↓ 1 callers
Function
getCommandLogs
(sandboxId: string, cmdId: string)
apps/vibe-coding-platform/components/commands-logs/command-logs.tsx:68
↓ 1 callers
Function
getCommandLogs
(sandboxId: string, cmdId: string)
apps/vibe-coding-platform/components/commands-logs/commands-logs-stream.tsx:57
↓ 1 callers
Function
getConnectionSpeed
()
framework-boilerplates/create-react-app/src/vitals.js:3
↓ 1 callers
Function
getConnectionSpeed
()
framework-boilerplates/sveltekit-1/src/lib/vitals.ts:5
↓ 1 callers
Function
getConnectionSpeed
()
framework-boilerplates/sveltekit/src/lib/vitals.js:5
↓ 1 callers
Function
getContents
( params: Params )
apps/vibe-coding-platform/ai/tools/generate-files/get-contents.ts:33
↓ 1 callers
Function
getCookieData
* Returns the client ID from the `datadome` cookie. * @param {NextRequest['cookies']} cookies - Incoming client request cookie header * @returns {{
edge-middleware/bot-protection-datadome/lib/datadome.ts:281
↓ 1 callers
Function
getCookiesLength
(cookies: NextRequest['cookies'])
edge-middleware/ip-blocking-datadome/lib/datadome.ts:205
↓ 1 callers
Function
getErrorFields
(error: unknown)
apps/vibe-coding-platform/ai/tools/get-rich-error.ts:25
↓ 1 callers
Function
getExt
()
python/vibe-coding-ide/frontend/src/components/Editor/EditorPane.tsx:296
↓ 1 callers
Function
getFeatureFlagVariant
( distinctUserId: string, featureName: Flags )
edge-middleware/feature-flag-posthog/lib/posthog-api.ts:22
↓ 1 callers
Function
getFlags
* A function which respects overrides set by the Toolbar, and returns feature flags.
toolbar/toolbar-statsig/app/page.tsx:11
↓ 1 callers
Function
getFlags
* A function which respects overrides set by the Toolbar, and returns feature flags.
toolbar/toolbar-launchdarkly/app/page.tsx:17
↓ 1 callers
Function
getFlags
* A function which respects overrides set by the Toolbar, and returns feature flags.
toolbar/toolbar-split/app/page.tsx:16
↓ 1 callers
Function
getFlags
* A function which respects overrides set by the Toolbar, and returns feature flags.
toolbar/toolbar-optimizely/app/page.tsx:16
↓ 1 callers
Function
getGPTResponse
(messages: ChatCompletionMessageParam[])
solutions/slackbot/api/_openai.ts:7
↓ 1 callers
Function
getHeadersDict
(headers: Headers)
edge-middleware/bot-protection-botd/lib/botd/index.ts:221
↓ 1 callers
Function
getHeadersList
(req: NextRequest)
edge-middleware/ip-blocking-datadome/lib/datadome.ts:177
↓ 1 callers
Function
getHeadersList
(req: NextRequest)
edge-middleware/bot-protection-datadome/lib/datadome.ts:196
↓ 1 callers
Function
getHeroPlaceholder
(heros: any[])
framework-boilerplates/hydrogen/src/lib/placeholders.ts:176
↓ 1 callers
Function
getHostnameDataOrDefault
( subdomainOrCustomDomain?: string )
edge-middleware/hostname-rewrites/lib/db.ts:29
↓ 1 callers
Function
getInitialMotionPreference
()
framework-boilerplates/sveltekit-1/src/routes/sverdle/reduced-motion.ts:6
↓ 1 callers
Function
getMDXData
(dir)
solutions/blog/app/blog/utils.ts:38
↓ 1 callers
Function
getMDXFiles
(dir)
solutions/blog/app/blog/utils.ts:29
↓ 1 callers
Function
getMultipleRandom
(arr: any[], infos: number)
framework-boilerplates/hydrogen/src/lib/placeholders.ts:217
↓ 1 callers
Function
getParityPrice
(price: number, parity: number)
edge-middleware/power-parity-pricing/utils.ts:1
↓ 1 callers
Function
getPassword
(form: FormData)
framework-boilerplates/hydrogen-2/app/routes/account.profile.tsx:227
↓ 1 callers
Function
getPostHogInstance
()
edge-middleware/feature-flag-posthog/lib/posthog.ts:47
↓ 1 callers
Function
getProductPlaceholder
()
framework-boilerplates/hydrogen/src/lib/placeholders.ts:224
↓ 1 callers
Function
getReadme
(path: string)
internal/scripts/lib/get-readme.ts:3
↓ 1 callers
Function
getReferencedTweets
(mainTweet)
solutions/platforms-slate-supabase/lib/twitter.js:32
↓ 1 callers
Function
getRelatedTemplates
(slug: string[])
internal/scripts/lib/contentful/get-related-templates.ts:4
↓ 1 callers
Method
getRootArgs
()
edge-middleware/feature-flag-hypertune/generated/hypertune.ts:83
↓ 1 callers
Function
getRuntimeIcon
(runtime: string)
python/vibe-coding-ide/frontend/src/components/Chat/ChatTimeline/RuntimePill.tsx:5
↓ 1 callers
Function
getSandboxTokenSource
(appConfig: AppConfig)
guides/sandbox-voice-agent/lib/utils.ts:104
↓ 1 callers
Function
getSandboxURL
({ writer }: Params)
apps/vibe-coding-platform/ai/tools/get-sandbox-url.ts:12
↓ 1 callers
Function
getSourceIcon
(source: Track.Source, enabled: boolean, pending = false)
guides/sandbox-voice-agent/components/livekit/agent-control-bar/track-toggle.tsx:17
↓ 1 callers
Function
getStyles
(appConfig: AppConfig)
guides/sandbox-voice-agent/lib/utils.ts:84
↓ 1 callers
Function
getSummary
(lines: Line[], previous: Line[])
apps/vibe-coding-platform/components/error-monitor/get-summary.ts:3
↓ 1 callers
Function
getTemplate
(readme: string)
internal/scripts/lib/contentful/get-template.ts:21
↓ 1 callers
Function
getTest
(demoUrl: string)
internal/packages/playwright/scripts/lib/get-test.ts:1
↓ 1 callers
Function
getTextColorForPercentage
(p)
edge-middleware/clerk-authentication/components/statelessDoneRightSection/TokenCard.jsx:21
↓ 1 callers
Method
getTodosList
()
solutions/testing/packages/playwright/shared/pages/todo-page.ts:21
↓ 1 callers
Function
getTwitterMedia
(id)
solutions/platforms-slate-supabase/lib/twitter-media.js:1
↓ 1 callers
Function
getValue
(key: K)
edge-middleware/feature-flag-configcat/lib/configcat.ts:28
↓ 1 callers
Function
getVercelOverride
()
edge-middleware/feature-flag-hypertune/generated/hypertune.vercel.tsx:10
↓ 1 callers
Function
getVercelRegion
(header)
edge-middleware/clerk-authentication/utils/vercelRegion.js:23
↓ 1 callers
Function
getVercelSandboxTokenSource
(sandboxId: string, roomName: string)
guides/sandbox-voice-agent/lib/utils.ts:139
↓ 1 callers
Function
getWriteFiles
({ sandbox, toolCallId, writer }: Params)
apps/vibe-coding-platform/ai/tools/generate-files/get-write-files.ts:13
↓ 1 callers
Function
get_sandbox_by_name
Get or create a sandbox by name (multi-sandbox only).
python/vibe-coding-ide/backend/src/sandbox/utils.py:65
↓ 1 callers
Function
handle
(msg: ServerMessage)
websockets/nitro/app/hooks/use-realtime.ts:92
↓ 1 callers
Function
handle
(msg: ServerMessage)
websockets/nuxt/app/composables/useRealtime.ts:79
↓ 1 callers
Method
handleClose
(ws: WebSocket, conn: ConnState)
websockets/next-chat/lib/chat/index.ts:235
↓ 1 callers
Function
handleErrors
(errors: Line[], prev: Line[])
apps/vibe-coding-platform/components/error-monitor/error-monitor.tsx:58
↓ 1 callers
Method
handleMessage
( ws: WebSocket, conn: ConnState, data: WebSocket.RawData )
websockets/next-chat/lib/chat/index.ts:221
↓ 1 callers
Function
handleRemove
(ruleId: string)
edge-middleware/ip-blocking-datadome/pages/index.tsx:20
← previous
next →
401–500 of 2,748, ranked by callers