Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/21st-dev/21st-sdk
/ functions
Functions
4,011 in github.com/21st-dev/21st-sdk
⨍
Functions
4,011
◇
Types & classes
625
↓ 8 callers
Function
getToolStatus
(part: any, chatStatus?: string)
packages/react/src/utils/format-tool.ts:77
↓ 8 callers
Function
hashToken
* Hash a token using SHA-256 for secure storage * Only the hash is stored in DB; plaintext is returned to client
apps/agents-web/lib/desktop-auth.ts:17
↓ 8 callers
Function
is1CodeDomain
(request: NextRequest)
apps/agents-web/middleware.ts:17
↓ 8 callers
Function
isStandaloneWorkspaceVolumesEnabled
( provider: string | null | undefined, )
apps/relay/src/standalone-workspace-pvc.ts:67
↓ 8 callers
Function
logBillingError
( teamId: string | undefined, message: string, error: unknown, data?: Record<string, unknown>, )
apps/agents-web/lib/agents-billing/ensure-team-billing.ts:136
↓ 8 callers
Function
requireAgentSlug
(args: string[], usage: string)
packages/cli/src/api.ts:16
↓ 8 callers
Function
useAnimationTimeline
(steps: TimelineStep[], options?: { paused?: boolean })
apps/agents-web/components/features/agents/an/chat-preview/hooks/use-animation-timeline.ts:6
↓ 8 callers
Function
useMorphingDialog
()
apps/agents-web/components/ui/morphing-dialog.tsx:34
↓ 8 callers
Function
useSidebar
()
apps/agents-web/components/features/agents/ui/canvas/{components}/ui/sidebar.tsx:41
↓ 8 callers
Function
useStreamingText
( fullText: string, options: { delayBefore?: number wordInterval?: number autoStart?: boolean
apps/agents-web/components/features/agents/an/chat-preview/hooks/use-streaming-text.ts:5
↓ 8 callers
Function
verifyDesktopToken
( token: string, )
apps/agents-web/lib/desktop-auth.ts:235
↓ 7 callers
Function
assertAgentReadAccess
(ownerTeamId: string, userId: string)
apps/agents-web/server/api/routers/agent-configs/router.ts:38
↓ 7 callers
Function
buildResponse
(params: { teamId: string planStatus: BillingPlanStatus state: TeamStripeBillingState ready: boolean
apps/agents-web/lib/agents-billing/ensure-team-billing.ts:986
↓ 7 callers
Function
captureAgentsEvent
( eventName: string, properties?: Record<string, any>, )
apps/agents-web/lib/posthog-agents.ts:100
↓ 7 callers
Function
checkIsAdmin
( userId: string, )
apps/agents-web/lib/supabase.ts:23
↓ 7 callers
Method
destroy
()
apps/relay/src/sandbox-backends/types.ts:37
↓ 7 callers
Function
escapeXml
(value: string)
apps/agents-web/app/agents/docs/whats-new/rss.xml/route.ts:9
↓ 7 callers
Function
formatCurrency
(value: number)
apps/agents-web/app/(alpha)/agents/_components/standalone-runs-page-client.tsx:34
↓ 7 callers
Function
formatTokens
(n: number | null | undefined)
apps/agents-web/app/(alpha)/agents/threads/_components/logs-constants.ts:68
↓ 7 callers
Function
generateIntegrationMarkdown
( slug: string, apiKey: string | undefined, themeJson: string | null, docsCodeLanguage: DocsCodeLangua
apps/agents-web/components/features/agents/an/utils/generate-integration-markdown.ts:295
↓ 7 callers
Function
getChatUrl
(chatId: string, addToInbox?: boolean)
apps/agents-web/lib/webhooks/utils/urls.ts:16
↓ 7 callers
Function
getInstallationForRepo
( integration: GitHubIntegration | null | undefined, repository: string, )
apps/agents-web/lib/github.ts:96
↓ 7 callers
Method
getNodeName
(node: Node)
apps/agents-web/server/api/routers/semantic-chunk-search/services/ast-chunking.service.ts:465
↓ 7 callers
Function
getOptionalTextField
(formData: FormData, key: string)
apps/agents-web/app/api/v1/agents/deploy/route.ts:141
↓ 7 callers
Function
inlineToMarkdown
($: CheerioAPI, node: NodeLike)
apps/agents-web/scripts/export-an-docs-markdown.ts:336
↓ 7 callers
Function
normalizeMcpServerUrl
(rawUrl: string)
packages/sandbox-provider/src/mcp.ts:110
↓ 7 callers
Method
publish
(channel: string, message: string)
apps/agents-web/lib/redis.ts:29
↓ 7 callers
Function
requireNonEmpty
(name: string, value: string | undefined)
apps/agents-web/lib/agents-billing/ensure-team-billing.ts:153
↓ 7 callers
Method
roundToTwoDecimals
(value: number)
apps/agents-web/server/api/routers/usage/services/credit.service.ts:17
↓ 7 callers
Function
sandboxAccessClause
(teamId: string)
apps/relay/src/sandboxes.ts:164
↓ 7 callers
Function
sleep
(ms: number)
apps/agents-web/scripts/generate-embeddings.ts:41
↓ 7 callers
Function
useAgentsViewer
()
apps/agents-web/lib/agents/auth/client.tsx:114
↓ 7 callers
Function
validationError
(message: string)
apps/agents-web/app/api/v1/agents/deploy/route.ts:128
↓ 6 callers
Function
addLinearComment
( teamId: string, issueId: string, body: string, parentId?: string )
apps/agents-web/lib/webhooks/platforms/linear/responder.ts:28
↓ 6 callers
Function
asString
(value: unknown)
apps/agents-web/lib/agents-billing/ensure-team-billing.ts:149
↓ 6 callers
Function
checkVaultCoverage
( vaultIds: string[], declaredServices: HttpAgentMcpServer[], store: VaultCoverageStore = databaseVaultC
apps/relay/src/vault-coverage.ts:74
↓ 6 callers
Function
createAgentSandbox
( params: CreateAgentSandboxParams )
apps/agents-web/lib/agents/create-agent-sandbox.ts:58
↓ 6 callers
Function
createApp
()
apps/relay/src/__tests__/vaults.test.ts:114
↓ 6 callers
Function
createLimiter
( limiter: ConstructorParameters<typeof Ratelimit>[0]["limiter"], prefix: string, )
apps/agents-web/lib/rate-limit.ts:13
↓ 6 callers
Function
createOrUpdateMcpCredential
(params: { teamId: string vaultId: string credentialId?: string name?: string | null serverUrl: stri
apps/agents-web/lib/server/mcp-vaults.ts:625
↓ 6 callers
Function
endTextBlock
( controller: TransformStreamDefaultController<LanguageModelV2StreamPart>, )
packages/sandbox-provider/src/sandbox-stream-transformer.ts:219
↓ 6 callers
Method
ensureLogDir
()
apps/agents-web/lib/server/logging/variant-logger.ts:22
↓ 6 callers
Function
expandEnvVars
(value: string, env: NodeJS.ProcessEnv)
packages/agent-runtime/src/mcp.ts:58
↓ 6 callers
Function
formatCurrency
(value: number)
apps/agents-web/app/(alpha)/agents/usage/_components/usage-page-client.tsx:35
↓ 6 callers
Function
formatDurationMs
(ms: number)
apps/agents-web/app/(alpha)/agents/threads/_components/span-tree-utils.ts:83
↓ 6 callers
Method
formatLogEntry
( level: "INFO" | "ERROR" | "TOOL" | "RESPONSE", message: string, data?: any, )
apps/agents-web/lib/server/logging/variant-logger.ts:41
↓ 6 callers
Function
formatRuntimeError
(phase: string, error: unknown)
packages/agent-runtime/src/index.ts:81
↓ 6 callers
Function
formatTimestamp
(value: string | null)
packages/cli/src/utils.ts:28
↓ 6 callers
Function
getApiKeyPrefix
(plaintext: string)
packages/api-key-security/src/index.ts:15
↓ 6 callers
Function
getDocsLang
( searchParams?: { lang?: string } | URLSearchParams, )
apps/agents-web/lib/agents-docs/get-docs-lang.ts:9
↓ 6 callers
Function
getFilesystemCompat
(sandbox: Sandbox)
apps/relay/src/sandboxes.ts:62
↓ 6 callers
Function
getInternalBaseUrl
()
apps/agents-web/lib/webhooks/utils/urls.ts:2
↓ 6 callers
Function
getNumberProp
(obj: any, key: string)
packages/agent-runtime/src/stream.ts:45
↓ 6 callers
Function
getPlanGroup
(planId?: string | null)
apps/agents-web/lib/plan-groups.ts:5
↓ 6 callers
Method
getSubscriptionInfo
(userId: string, planGroup?: PlanGroup)
apps/agents-web/server/api/routers/stripe/services/stripe.service.ts:7
↓ 6 callers
Function
getTeamCursorIntegration
( teamId: string, userId: string, )
apps/agents-web/lib/server/cursor-integration.ts:25
↓ 6 callers
Function
handleAutomationTrigger
* Handle automation triggers for PR/issue/branch events. * Checks ALL teams with this installation and runs matching automations from each.
apps/agents-web/app/api/webhooks/github/route.ts:1014
↓ 6 callers
Function
highlight
(code: string, lang = "typescript")
apps/agents-web/lib/agents-docs/highlight.ts:3
↓ 6 callers
Function
mapToolInvocationToStep
( toolCallId: string, toolInvocation: { toolName: string args?: Record<string, any> state: "pa
packages/react/src/utils/tool-adapters.ts:170
↓ 6 callers
Function
mapToolStateToStepState
( aiState: "partial-call" | "call" | "result", )
packages/react/src/utils/tool-adapters.ts:115
↓ 6 callers
Function
printIndented
(text: string)
packages/cli/src/logs.ts:95
↓ 6 callers
Function
request
(path: string, init?: RequestInit)
apps/agents-web/lib/attio.ts:15
↓ 6 callers
Function
requestJson
( app: express.Express, method: string, path: string, body?: unknown, )
apps/relay/src/__tests__/vaults.test.ts:134
↓ 6 callers
Function
resolveE2BSandbox
( clientSandboxId: string, teamId: string, requesterUserId: string, )
apps/relay/src/sandboxes.ts:637
↓ 6 callers
Function
resolveSandboxHandle
( clientSandboxId: string, teamId: string, requesterUserId: string, )
apps/relay/src/sandboxes.ts:562
↓ 6 callers
Function
saveActiveThreadId
(id: string | null)
apps/agents-web/components/features/agents/an/an-showcase.tsx:66
↓ 6 callers
Method
subscribe
(channel: string)
apps/agents-web/lib/redis.ts:30
↓ 6 callers
Function
trackDesktopDownload
(data: { platform: string source: "hero_cta" | "bottom_cta" | "pricing_free_tier" | "nav" })
apps/agents-web/lib/posthog-agents.ts:253
↓ 6 callers
Function
traverse
* Recursively traverses the component tree and adds components to the flat structure * @param component - The component to process
apps/agents-web/lib/registry.ts:220
↓ 6 callers
Function
validateSlug
(slug: string)
packages/cli/src/utils.ts:21
↓ 5 callers
Function
addGitHubComment
( installationId: string | number, owner: string, repo: string, issueNumber: number, body: string )
apps/agents-web/lib/webhooks/platforms/github/responder.ts:8
↓ 5 callers
Function
appendLine
(s: string)
apps/agents-web/lib/server/github/github-reference.ts:144
↓ 5 callers
Function
buildClaudeMcpServers
(params?: { host?: string port?: number | string env?: NodeJS.ProcessEnv })
packages/agent-runtime/src/mcp.ts:199
↓ 5 callers
Function
commit
()
apps/agents-web/components/features/agents/an/playground/config/config-shared.tsx:506
↓ 5 callers
Function
createCoverageStore
( rows: Awaited<ReturnType<VaultCoverageStore["findCredentialRows"]>>, )
apps/relay/src/__tests__/vault-resolution.test.ts:43
↓ 5 callers
Function
createRestRoute
(procedure: string)
apps/agents-web/lib/api/trpc-rest.ts:41
↓ 5 callers
Function
createStudioAgentClient
()
apps/agents-web/lib/server/studio/sandbox.ts:29
↓ 5 callers
Function
decrypt
(encryptedData: string)
apps/agents-web/lib/server/crypto.ts:59
↓ 5 callers
Function
decryptLinearToken
(encryptedToken: string)
apps/agents-web/lib/server/crypto.ts:119
↓ 5 callers
Function
defaultMcpCredentialInjectRule
()
packages/sandbox-provider/src/mcp.ts:63
↓ 5 callers
Function
emitSpan
( event: "start" | "end", span: Omit<SpanJSON, "traceId">, )
packages/sandbox-provider/src/acp-stream-transformer.ts:151
↓ 5 callers
Function
encrypt
(plaintext: string)
apps/agents-web/lib/server/crypto.ts:37
↓ 5 callers
Method
endSpan
(key: string, opts?: { status?: SpanStatus error?: string attributes?: Record<string, unknown> }
packages/agent-runtime/src/tracing.ts:115
↓ 5 callers
Method
exists
(key: string)
apps/agents-web/lib/redis.ts:26
↓ 5 callers
Method
expire
(key: string, seconds: number)
apps/agents-web/lib/redis.ts:27
↓ 5 callers
Function
extractThemeConfig
(theme?: ChatTheme)
packages/react/src/theme-config.ts:101
↓ 5 callers
Function
fetchCode
(url: string)
apps/agents-web/app/api/prompts/route.ts:18
↓ 5 callers
Function
fmtTokens
(n: number)
apps/agents-web/app/agents/internal/admin/directory/_constants.ts:82
↓ 5 callers
Function
fulfillModel
( model: keyof typeof models, caching: boolean = true, )
apps/agents-web/lib/server/ai/index.ts:91
↓ 5 callers
Function
generateSyntheticDiff
( filePath: string, content: string | null, isBinary: boolean, isLargeFile: boolean, )
apps/agents-web/app/api/1code/sandbox/[sandboxId]/diff/route.ts:26
↓ 5 callers
Function
generateToken
* Generate a secure random token
apps/agents-web/lib/desktop-auth.ts:57
↓ 5 callers
Function
getCorsHeadersAllowLocalhost
(request: NextRequest)
apps/agents-web/lib/utils/cors.ts:23
↓ 5 callers
Function
getCurrentISOWeek
()
apps/agents-web/lib/utils/week.ts:44
↓ 5 callers
Function
getErrorStatus
(error: unknown)
apps/agents-web/lib/agents-billing/ensure-team-billing.ts:160
↓ 5 callers
Function
getNamespace
()
apps/relay/src/standalone-workspace-pvc.ts:55
↓ 5 callers
Function
getOrCreateInviteLink
( teamId: string, userId: string, regenerate = false, )
apps/agents-web/server/api/routers/teams/utils.ts:138
↓ 5 callers
Function
groupIntoTurns
(steps: TimelineStep[])
apps/agents-web/components/features/agents/an/chat-preview/hooks/group-into-turns.ts:3
↓ 5 callers
Method
init
(streamId: string, traceId: string, publishFn: (streamId: string, message: object) => void)
packages/agent-runtime/src/tracing.ts:67
↓ 5 callers
Function
isRecord
(value: unknown)
packages/agent-runtime/src/mcp.ts:26
↓ 5 callers
Function
isRecord
(value: unknown)
packages/sandbox-provider/src/mcp.ts:45
← previous
next →
101–200 of 4,011, ranked by callers