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
↓ 3 callers
Function
logError
( context: string, error: unknown, metadata?: Record<string, unknown>, )
apps/agents-web/lib/utils/error-handling.ts:8
↓ 3 callers
Function
logWarning
( context: string, message: string, metadata?: Record<string, unknown>, )
apps/agents-web/lib/utils/error-handling.ts:27
↓ 3 callers
Function
mapDocsHrefToMd
(href: string)
apps/agents-web/scripts/export-an-docs-markdown.ts:71
↓ 3 callers
Function
markSeen
(demoId: number, componentId?: number | null)
apps/agents-web/server/api/routers/follows/router.ts:590
↓ 3 callers
Function
markThreadFailed
(params: StreamFailureParams)
apps/relay/src/chat.ts:754
↓ 3 callers
Function
normalizeMetadata
(metadata?: McpMetadata | null)
apps/agents-web/lib/server/mcp-vaults.ts:66
↓ 3 callers
Function
normalizeMetadata
(metadata?: McpMetadata | null)
apps/relay/src/vaults.ts:219
↓ 3 callers
Function
normalizeStringMap
( value: unknown, env: NodeJS.ProcessEnv, fieldName: string, )
packages/agent-runtime/src/mcp.ts:71
↓ 3 callers
Function
notFound
()
apps/agents-web/app/api/auth/[...all]/route.ts:5
↓ 3 callers
Function
parseButtonStyle
(text: string)
apps/agents-web/lib/utils/parse-ui-kit.ts:199
↓ 3 callers
Function
parseDateOrThrow
(value: string, field: string)
apps/agents-web/server/api/routers/an-billing/router.ts:61
↓ 3 callers
Function
parseJsonEnv
(name: string, fallback: T)
apps/agents-web/lib/server/agents/build-opensandbox-image.ts:120
↓ 3 callers
Function
parseStructuredJson
(value: unknown)
packages/react/src/utils/tool-part-normalizer.ts:7
↓ 3 callers
Function
parseVersionFromYaml
(yaml: string)
apps/agents-web/lib/desktop.ts:27
↓ 3 callers
Function
processStep
()
apps/agents-web/components/features/agents/an/hero-right-strategy-c.tsx:433
↓ 3 callers
Function
publish
( streamId: string, message: object, )
packages/agent-runtime/src/stream.ts:8
↓ 3 callers
Function
readEnvFile
(path: string)
packages/agent-runtime/src/runtime.ts:143
↓ 3 callers
Method
refresh
(reason: string, throwOnError: boolean)
apps/relay/src/sandbox-keepalive.ts:71
↓ 3 callers
Function
renderTabContent
()
apps/agents-web/components/features/agents/ui/canvas/{components}/settings-dialog.tsx:184
↓ 3 callers
Function
renderTitle
(title: string)
apps/agents-web/components/features/agents/an/archive/docs/sidebar.tsx:59
↓ 3 callers
Function
resetCredentialForm
()
apps/agents-web/app/(alpha)/agents/vaults/_components/vaults-page-client.tsx:562
↓ 3 callers
Function
resolveActivePlan
( contracts: Array<ContractPlanCandidate>, )
apps/agents-web/lib/agents-billing/ensure-team-billing.ts:591
↓ 3 callers
Function
resolveEnterpriseTeamForTeam
(teamId: string)
packages/sandbox-provider/src/enterprise-access.ts:161
↓ 3 callers
Function
resolveToolSize
(vc: VisualConfig)
apps/agents-web/components/features/agents/an/chat-preview/components/tools/tool-router.tsx:10
↓ 3 callers
Function
routeToolCall
( step: Extract<TimelineStep, { type: "tool-call" }>, state: StepState, onComplete: () => void, vc: Vi
apps/agents-web/components/features/agents/an/chat-preview/components/tools/tool-router.tsx:14
↓ 3 callers
Function
sanitizeMessages
(messages: AgentMessage[])
apps/agents-web/app/api/1code/chat/route.ts:167
↓ 3 callers
Function
scheduleCleanup
()
packages/agent-runtime/src/index.ts:331
↓ 3 callers
Function
sendUsageEvents
(logTag: string, usageEvents: BillingUsageEvent[])
apps/relay/src/billing.ts:172
↓ 3 callers
Function
serializeVault
(record: { id: string team_id: string name: string description: string | null metadata: unknown is
apps/agents-web/lib/server/mcp-vaults.ts:201
↓ 3 callers
Function
signStudioToken
( claims: StudioJwtClaims, ttlSeconds: number = DEFAULT_TTL_SECONDS, )
apps/agents-web/lib/server/studio/jwt.ts:24
↓ 3 callers
Function
startAgentForIssue
* Start agent for a Linear issue
apps/agents-web/app/api/webhooks/linear/route.ts:377
↓ 3 callers
Method
startSpan
(key: string, opts: { name: string kind: SpanKind parentKey?: string startTime?: number at
packages/agent-runtime/src/tracing.ts:80
↓ 3 callers
Function
streamThreadToResponse
(params: { req: Request; res: Response; tag: string; teamId: string; endUserId?: string; runtime:
apps/relay/src/chat.ts:1075
↓ 3 callers
Function
toDate
(v: string | Date)
apps/agents-web/app/(alpha)/agents/observability/_components/use-observability-metrics.ts:121
↓ 3 callers
Function
toErrorResponse
(err: unknown)
apps/relay/src/chat.ts:207
↓ 3 callers
Function
toLinear
(v: number)
packages/react/src/utils/contrast.ts:7
↓ 3 callers
Function
toLinear
(v: number)
apps/agents-web/components/features/agents/an/chat-preview/components/user-message.tsx:16
↓ 3 callers
Function
toNumber
(value: unknown)
apps/relay/src/budget.ts:12
↓ 3 callers
Function
toPublicDocsPath
(pathname: string)
apps/agents-web/app/agents/llms.txt/route.ts:6
↓ 3 callers
Function
toRelativeAuthRedirectUrl
(redirectUrl?: string)
apps/agents-web/lib/agents/auth/redirect.ts:3
↓ 3 callers
Function
toStudioWorkspaceAbsolutePath
(path: string)
apps/agents-web/lib/server/studio/workspace.ts:46
↓ 3 callers
Function
toUtcMidnight
(date: Date)
apps/agents-web/lib/agents-billing/metronome-analytics.ts:40
↓ 3 callers
Function
toUtcMidnight
(date: Date)
apps/agents-web/server/api/routers/an-billing/router.ts:72
↓ 3 callers
Function
transformUser
(user: any)
apps/agents-web/server/api/routers/users/router.ts:10
↓ 3 callers
Function
truncate
(value: unknown, max = 10_000)
packages/sandbox-provider/src/acp-stream-transformer.ts:266
↓ 3 callers
Function
unwrapMcpOutput
(output: any)
packages/react/src/tools/mcp-tool.tsx:96
↓ 3 callers
Function
updateAutomationExecution
( executionId: string, status: "success" | "failed", chatId?: string, errorMessage?: string, )
apps/agents-web/lib/webhooks/handlers/automation-matcher.ts:487
↓ 3 callers
Function
useAgentClassifications
( configs: AgentConfig[], usageStats?: Record<string, { threadCount: number }>, )
apps/agents-web/app/agents/internal/admin/_hooks/use-agent-classifications.ts:50
↓ 3 callers
Function
useDesktopDownload
()
apps/agents-web/hooks/use-desktop-download.ts:31
↓ 3 callers
Function
useFramework
()
apps/agents-web/lib/agents-docs/framework-context.tsx:47
↓ 3 callers
Function
useIsMobile
()
apps/agents-web/hooks/use-media-query.ts:23
↓ 3 callers
Function
useMediaQuery
(query: string)
apps/agents-web/hooks/use-media-query.ts:3
↓ 3 callers
Function
useObservabilityMetrics
( sandboxes: SandboxRow[], granularity: "hour" | "day" | "week" | "month", rangeStart: Date, rangeEnd:
apps/agents-web/app/(alpha)/agents/observability/_components/use-observability-metrics.ts:85
↓ 3 callers
Function
useSearch
()
apps/agents-web/components/features/agents/an/docs/search-context.tsx:19
↓ 3 callers
Function
verifyDesktopAuth
(request: NextRequest)
apps/agents-web/lib/desktop-auth-middleware.ts:15
↓ 3 callers
Function
withTelemetry
(options: TelemetryOptions)
apps/agents-web/lib/server/ai/telemetry.ts:60
↓ 3 callers
Function
withTimeout
(promise: Promise<T>, ms: number, label: string)
apps/agents-web/server/api/routers/agents-admin/router.ts:122
↓ 2 callers
Method
_request
( self, path: str, *, method: str = "GET", body: Optional[Dict[str, An
packages/python-sdk/src/twentyfirst_sdk/client.py:45
↓ 2 callers
Function
abortStream
()
apps/agents-web/app/api/1code/chat/route.ts:351
↓ 2 callers
Function
activateThread
(threadId: string)
apps/relay/src/chat.ts:630
↓ 2 callers
Function
addCommentReaction
( installationId: string | number, owner: string, repo: string, commentId: number, reaction: "eyes"
apps/agents-web/lib/webhooks/platforms/github/responder.ts:81
↓ 2 callers
Function
addDependency
(source: string)
apps/agents-web/lib/parsers.ts:390
↓ 2 callers
Function
addToRemoveQueue
(toastId: string)
apps/agents-web/hooks/use-toast.ts:58
↓ 2 callers
Function
addViewedComponent
* Add a component ID to the viewed set with LRU-like eviction * When max size is reached, removes oldest entries (first added)
apps/agents-web/hooks/use-view-tracking.ts:36
↓ 2 callers
Function
archiveMcpCredential
(params: { teamId: string vaultId: string credentialId: string })
apps/agents-web/lib/server/mcp-vaults.ts:748
↓ 2 callers
Function
archiveMcpVault
(params: { teamId: string vaultId: string })
apps/agents-web/lib/server/mcp-vaults.ts:455
↓ 2 callers
Function
authMiddleware
(req: Request, res: Response, next: NextFunction)
apps/relay/src/auth.ts:20
↓ 2 callers
Function
backfillTable
(table: ApiKeyTable, dryRun: boolean)
apps/agents-web/scripts/backfill-api-key-hashes.ts:87
↓ 2 callers
Function
baseAndCondition
(extra: string)
apps/agents-web/lib/queries.server.ts:31
↓ 2 callers
Function
billingMapWithConcurrency
( items: T[], limit: number, mapper: (item: T, index: number) => Promise<R>, )
apps/agents-web/server/api/routers/agents-admin/router.ts:100
↓ 2 callers
Function
buildApiKeyCreateData
(key: string)
apps/agents-web/server/api/routers/an-api-keys/router.ts:22
↓ 2 callers
Function
buildContractUniquenessKey
(params: { planStatus: BillingPlanStatus teamId: string customerId: string startingAt: string transi
apps/agents-web/lib/agents-billing/ensure-team-billing.ts:227
↓ 2 callers
Function
buildDescription
(template: (typeof AN_TEMPLATES)[number])
apps/agents-web/app/agents/docs/templates/[slug]/page.tsx:17
↓ 2 callers
Function
buildDesktopDownloadUrl
(version: string, arch: "arm64" | "x64" = "arm64")
apps/agents-web/lib/desktop.ts:65
↓ 2 callers
Function
buildLinearEventData
* Build LinearEventData from webhook payload
apps/agents-web/app/api/webhooks/linear/route.ts:108
↓ 2 callers
Function
buildLinuxDownloadUrl
(version: string)
apps/agents-web/lib/desktop.ts:96
↓ 2 callers
Function
buildPrivateEnvVars
( agentEnvVars?: Record<string, string> | null, )
apps/relay/src/sandbox-factory.ts:41
↓ 2 callers
Function
buildProxy
(path: string)
apps/agents-web/lib/stripe.ts:15
↓ 2 callers
Function
buildResult
()
apps/agents-web/server/api/routers/agents-admin/router.ts:1288
↓ 2 callers
Function
buildSandboxMeta
(params: { invocationTeamId: string invocationUserId?: string ownerTeamId: string resolvedVia?: "local
packages/sandbox-provider/src/enterprise-access.ts:405
↓ 2 callers
Function
buildWindowsDownloadUrl
(version: string)
apps/agents-web/lib/desktop.ts:83
↓ 2 callers
Function
calculateSimilarity
(str1: string, str2: string)
apps/agents-web/lib/server/ai/utils/edit-block-parser.ts:172
↓ 2 callers
Method
calculateUsageDiscount
(userId: string)
apps/agents-web/server/api/routers/usage/services/usage.service.ts:159
↓ 2 callers
Function
categorizeComments
( comments: string[], product: string, )
apps/agents-web/server/api/routers/feedback/router.ts:330
↓ 2 callers
Function
checkBudget
(label: string)
apps/agents-web/server/api/routers/agents-admin/router.ts:1199
↓ 2 callers
Function
checkIsAdmin
(userId: string | null)
apps/agents-web/lib/api/server/users.ts:25
↓ 2 callers
Function
checkRateLimit
( key: string, limit: number, windowSeconds: number, )
apps/agents-web/app/api/v1/_lib/rate-limit.ts:10
↓ 2 callers
Method
checkUsage
(userId: string)
apps/agents-web/server/api/routers/usage/services/usage.service.ts:72
↓ 2 callers
Method
chunkCodeWithAST
* Main entry point: chunk code using AST analysis
apps/agents-web/server/api/routers/semantic-chunk-search/services/ast-chunking.service.ts:47
↓ 2 callers
Function
clampWidth
(width: number)
apps/agents-web/components/features/agents/ui/canvas/[id]/{components}/resizable-sidebar.tsx:211
↓ 2 callers
Function
cleanSummaryText
(value: string)
apps/agents-web/app/(alpha)/agents/studio/[projectId]/_components/workspace-client.tsx:178
↓ 2 callers
Function
clearInstallationTokenCache
( installationId: string | number, )
apps/agents-web/lib/server/github/github-app-auth.ts:494
↓ 2 callers
Function
contrastText
(hex: string)
apps/agents-web/components/features/agents/an/playground/use-playground-state.ts:183
↓ 2 callers
Function
createBashParts
()
apps/agents-web/components/features/agents/an/showcase/mocks/tool-parts.ts:4
↓ 2 callers
Function
createClerkUserIdGetter
(auth: ClerkMiddlewareAuth)
apps/agents-web/middleware.ts:331
↓ 2 callers
Method
createConnection
(name: string, silent = false)
apps/relay/src/pubsub.ts:40
↓ 2 callers
Function
createEditParts
()
apps/agents-web/components/features/agents/an/showcase/mocks/tool-parts.ts:44
↓ 2 callers
Method
createEmbeddings
* Shared embedding creation helper
apps/agents-web/server/api/routers/semantic-chunk-search/services/embedding.service.ts:348
↓ 2 callers
Function
createFallbackProxy
(primary: any, fallback: any)
apps/agents-web/lib/stripe.ts:45
↓ 2 callers
Function
createFreeContract
(params: { client: Metronome teamId: string customerId: string billingConfigurationId: string starti
apps/agents-web/lib/agents-billing/ensure-team-billing.ts:761
← previous
next →
401–500 of 4,011, ranked by callers