Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/scalar/scalar
/ functions
Functions
4,087 in github.com/scalar/scalar
⨍
Functions
4,087
◇
Types & classes
253
↳
Endpoints
19
↓ 12 callers
Function
formatLanguage
(lang?: string)
packages/blocks/src/code-example/helpers/format-language.ts:64
↓ 12 callers
Function
getEntryByLocation
(location)
packages/api-client/src/v2/features/modal/hooks/use-modal-sidebar.ts:102
↓ 12 callers
Function
getFeaturedClients
( clientOptions: ClientOptionGroup[], featuredClients: AvailableClients[number][] = FEATURED_CLIENTS, )
packages/api-reference/src/blocks/scalar-client-selector-block/helpers/featured-clients.ts:24
↓ 12 callers
Function
getOpenapiObject
({ store, entry, }: { store: WorkspaceStore entry: Entry })
packages/workspace-store/src/navigation/helpers/get-openapi-object.ts:46
↓ 12 callers
Method
getPageTitle
()
integrations/java/scalar-core/src/main/java/com/scalar/maven/core/ScalarProperties.java:335
↓ 12 callers
Function
initialize
(path, useDynamicBaseServerUrl, configuration = { sources: [] }, modulePath)
integrations/dotnet/aspnetcore/src/Scalar.AspNetCore/StaticAssets/scalar.aspnetcore.js:33
↓ 12 callers
Function
isArraySchema
(schema: Record<string, unknown> | undefined)
packages/mock-server/src/utils/deserialize-parameter.ts:60
↓ 12 callers
Function
isDroppable
(_draggingItem: DraggingItem, _hoveredItem: HoveredItem)
projects/scalar-app/src/helpers/drag-handle-factory.ts:405
↓ 12 callers
Function
isObjectSchema
(schema: Record<string, unknown> | undefined)
packages/mock-server/src/utils/deserialize-parameter.ts:73
↓ 12 callers
Function
makeHarRequest
(overrides: Partial<HarRequest> = {})
packages/blocks/src/code-example/helpers/get-snippet.test.ts:9
↓ 12 callers
Function
mockFetch
(body: unknown, ok = true, status = 200)
projects/scalar-app/src/hooks/use-auth.test.ts:167
↓ 12 callers
Function
mountWithProps
( custom: Partial<{ selectedSchemeOptions: any[] securitySchemes: any isStatic: boolean
packages/api-client/src/v2/blocks/scalar-auth-selector-block/components/RequestAuthDataTable.test.ts:34
↓ 12 callers
Function
normalizeError
(e: unknown, defaultMessage: string = ERRORS.DEFAULT)
packages/helpers/src/errors/normalize-error.ts:51
↓ 12 callers
Function
openDisclosure
(wrapper: ReturnType<typeof mountComponent>)
packages/api-client/src/v2/blocks/scalar-auth-selector-block/components/OAuthScopesInput.test.ts:26
↓ 12 callers
Function
parse
(v: any)
packages/object-utils/src/parse/json.ts:12
↓ 12 callers
Function
parsePreferHeader
(header: string | null | undefined)
packages/mock-server/src/utils/parse-prefer-header.ts:25
↓ 12 callers
Function
routeMetadata
(appState: Awaited<ReturnType<typeof createAppState>>, teamSlug: string, teamUid = teamSlug)
projects/scalar-app/src/features/app/app-state.test.ts:66
↓ 12 callers
Function
serializeReleaseNotes
( entries: readonly ReleaseNoteEntry[], options: { preamble?: string } = {}, )
packages/helpers/src/markdown/release-notes.ts:123
↓ 12 callers
Function
startMockServer
(config: ServerConfig)
packages/mock-server/docker/src/server.ts:25
↓ 12 callers
Function
tabs
()
packages/api-reference/src/blocks/scalar-sdk-installation-instructions/components/SdkInstallationInstructions.test.ts:102
↓ 12 callers
Function
traverseDescription
({ generateId, parentId, info, }: { generateId: TraverseSpecOptions['generateId'] parentId: string
packages/workspace-store/src/navigation/helpers/traverse-description.ts:53
↓ 12 callers
Function
updateColorMode
( workspace: Workspace | null, payload: WorkspaceEvents['workspace:update:color-mode'], )
packages/workspace-store/src/mutators/workspace.ts:28
↓ 12 callers
Function
upsertCookie
( collection: WorkspaceDocument | Workspace | null, { payload, index }: Event<'cookie:upsert:cookie'>, )
packages/workspace-store/src/mutators/cookie.ts:19
↓ 12 callers
Function
useClipboard
(opts: UseClipboardOptions = {})
packages/use-hooks/src/useClipboard/useClipboard.ts:19
↓ 11 callers
Function
addServer
( document: WorkspaceDocument | null, { url, select, meta }: ServerEvents['server:add:server'], )
packages/workspace-store/src/mutators/server.ts:62
↓ 11 callers
Function
addToMapArray
(map: Map<string, unknown[]>, key: string, value: unknown)
packages/helpers/src/array/add-to-map-array.ts:4
↓ 11 callers
Function
apiReference
(givenConfiguration: Partial<ApiReferenceConfiguration>)
integrations/express/src/apiReference.ts:16
↓ 11 callers
Function
beforePayload
(requestBuilder: RequestFactory)
packages/api-reference/src/helpers/map-config-plugins.test.ts:36
↓ 11 callers
Function
camelToTitleWords
(camelStr = '')
packages/helpers/src/string/camel-to-title.ts:6
↓ 11 callers
Function
createChannel
(overrides: Partial<TraversedAsyncApiChannel> = {})
packages/api-reference/src/components/Content/AsyncApi/Channel.test.ts:8
↓ 11 callers
Function
createDocument
(initial?: Partial<OpenApiDocument>)
packages/workspace-store/src/mutators/operation/body.test.ts:12
↓ 11 callers
Function
createDocumentProps
(overrides: Partial<CollectionProps> = {})
projects/scalar-app/src/features/collection/components/Settings.test.ts:41
↓ 11 callers
Function
createMockDocument
(overrides: Partial<OpenApiDocument> = {})
projects/scalar-app/src/features/command-palette/hooks/use-command-palette-document-selection.test.ts:19
↓ 11 callers
Function
createMockDragEvent
(overrides: Partial<DragEvent> = {})
projects/scalar-app/src/features/collection/components/Runner/hooks/use-runner-selection.test.ts:14
↓ 11 callers
Function
createMockOperation
(overrides: Partial<TraversedOperation> = {})
packages/api-reference/src/components/OperationsList/OperationsList.test.ts:26
↓ 11 callers
Function
createMockOriginalResponse
()
packages/api-client/src/v2/blocks/operation-block/OperationBlock.test.ts:129
↓ 11 callers
Function
createMockWebSocket
()
packages/api-client/src/v2/blocks/channel-operation-block/helpers/connect-websocket.test.ts:17
↓ 11 callers
Function
customFetch
()
packages/workspace-store/src/client.test.ts:4195
↓ 11 callers
Function
deleteCookie
( collection: WorkspaceDocument | Workspace | null, { index }: Event<'cookie:delete:cookie'>, )
packages/workspace-store/src/mutators/cookie.ts:63
↓ 11 callers
Function
deleteOperation
( workspace: WorkspaceStore | null, { meta, documentName }: OperationEvents['operation:delete:operation'],
packages/workspace-store/src/mutators/operation/operation.ts:277
↓ 11 callers
Function
deleteOperationExample
( workspace: WorkspaceStore | null, { meta: { path, method, exampleKey }, documentName }: OperationEvents[
packages/workspace-store/src/mutators/operation/operation.ts:338
↓ 11 callers
Function
forEachPathItemOperation
( pathItem: NodeInput<PathItemObject> | undefined, callback: (method: HttpMethod, operation: NodeInput<Ope
packages/workspace-store/src/helpers/for-each-path-item-operation.ts:81
↓ 11 callers
Function
formatPythonValue
(value: unknown, indentation = 4)
packages/snippetz/src/plugins/python/requestsLike.ts:27
↓ 11 callers
Function
getDefaultResponse
(overrides: Partial<ResponseInstance> = {})
packages/api-client/src/v2/blocks/response-block/ResponseBlock.test.ts:14
↓ 11 callers
Function
getHtmlDocument
(givenConfiguration: Partial<HtmlRenderingConfiguration>, customTheme = '')
packages/core/src/libs/html-rendering/html-rendering.ts:16
↓ 11 callers
Function
getOperationExamples
(path: OpenAPIV3_1.PathItemObject)
packages/postman-to-openapi/src/helpers/get-operation-examples.ts:41
↓ 11 callers
Function
getRenderableSdks
(xScalarSdkInstallation: SdkInstallationList | undefined)
packages/api-reference/src/blocks/scalar-sdk-installation-instructions/helpers/renderable-sdks.ts:43
↓ 11 callers
Function
getScriptTags
(configuration: Record<string, unknown>, cdn?: string, nonce?: string)
packages/client-side-rendering/src/html-rendering.ts:193
↓ 11 callers
Function
getSecuritySchemes
( securitySchemes: MergedSecuritySchemes, selectedSecurity: SecurityRequirementObject, )
packages/workspace-store/src/request-example/context/security/get-security-schemes.ts:12
↓ 11 callers
Function
getSelectedServer
( document: WorkspaceDocument | null, operation: OperationObject | null, configServers: ServerObject[] |
packages/workspace-store/src/request-example/context/servers.ts:105
↓ 11 callers
Function
getXKeysFromObject
(object?: Record<string, unknown>)
packages/workspace-store/src/navigation/helpers/get-x-keys.ts:7
↓ 11 callers
Function
honoRouteFromPath
(path: string)
packages/mock-server/src/utils/hono-route-from-path.ts:5
↓ 11 callers
Function
isDereferenced
( value: T, )
packages/openapi-types/src/helpers/is-dereferenced.ts:24
↓ 11 callers
Function
makeTagEntry
(overrides: Partial<WithParent<TraversedTag>> = {})
packages/workspace-store/src/navigation/helpers/update-order-ids.test.ts:43
↓ 11 callers
Function
mapHiddenClientsConfig
(hiddenClients: ApiReferenceConfiguration['hiddenClients'])
packages/api-client/src/v2/features/modal/helpers/map-hidden-clients-config.ts:10
↓ 11 callers
Function
nullable
(options?: Documentation)
packages/validation/src/schema.ts:208
↓ 11 callers
Function
objectKeys
(obj: T)
packages/helpers/src/object/object-keys.ts:5
↓ 11 callers
Function
parseMdTable
(md: string)
packages/postman-to-openapi/src/helpers/markdown.ts:8
↓ 11 callers
Function
parseVariableValue
(value: string)
packages/helpers/src/theme/load-css-variables.ts:46
↓ 11 callers
Method
peek
* Returns the front element of the queue without removing it. * @returns The front data, or null if the queue is empty.
packages/helpers/src/queue/queue.ts:82
↓ 11 callers
Function
pillSignature
(text: string, withVariables: boolean)
packages/api-client/src/v2/components/code-input/helpers/pill-signature.ts:14
↓ 11 callers
Function
reduceQueryParams
(query: HarRequest['queryString'] = [])
packages/snippetz/src/libs/http.ts:123
↓ 11 callers
Function
registryDocument
( overrides: Partial<RegistryDocument> & Pick<RegistryDocument, 'namespace' | 'slug' | 'versions'>, )
projects/scalar-app/src/features/app/hooks/use-sidebar-documents/helpers/build-registry-item.test.ts:14
↓ 11 callers
Function
reloadOperationHistory
( store: WorkspaceStore | null, document: WorkspaceDocument | null, { meta, index, callback }: Operation
packages/workspace-store/src/mutators/operation/history.ts:63
↓ 11 callers
Function
resetConsoleSpies
()
packages/helpers/src/testing/console-spies.ts:12
↓ 11 callers
Function
sendCallbackRequest
({ host = '127.0.0.1', method = 'POST', path, port, }: { host?: string method?: string path: str
projects/scalar-app/entrypoints/electron/main/actions/get-exchange-token.test.ts:70
↓ 11 callers
Function
setValueAtPath
(target: Record<string, unknown>, path: readonly string[], value: unknown)
packages/helpers/src/object/set-value-at-path.ts:21
↓ 11 callers
Function
stopLoading
()
packages/api-client/src/v2/blocks/scalar-address-bar-block/hooks/use-loading-animation.ts:94
↓ 11 callers
Function
toArrayBufferBody
(body: BodyInit | null | undefined)
projects/scalar-app/entrypoints/electron/helpers/custom-fetch/to-array-buffer-body.ts:5
↓ 11 callers
Function
traverseDocument
(documentName: string, document: OpenApiDocument, options?: NavigationOptions)
packages/workspace-store/src/navigation/helpers/traverse-document.ts:22
↓ 11 callers
Function
updateDocumentIcon
(document: WorkspaceDocument | null, icon: string)
packages/workspace-store/src/mutators/document.ts:71
↓ 11 callers
Function
useDraggable
(options: UseDraggableOptions)
packages/sidebar/src/hooks/use-draggable.ts:112
↓ 11 callers
Function
waitForNavigation
()
projects/scalar-app/src/features/app/app-state.test.ts:72
↓ 11 callers
Function
workspaceEntry
( overrides: Partial<WorkspaceDocumentEntry> & Pick<WorkspaceDocumentEntry, 'documentName' | 'title'>, )
projects/scalar-app/src/features/app/hooks/use-sidebar-documents/helpers/build-registry-item.test.ts:7
↓ 10 callers
Function
createDocument
(message: Record<string, unknown>)
packages/api-reference/src/components/Content/AsyncApi/Message.test.ts:22
↓ 10 callers
Function
createHash
(input?: string)
packages/helpers/src/string/create-hash.ts:8
↓ 10 callers
Function
createLimiter
(maxConcurrent: number)
packages/helpers/src/general/create-limiter.ts:22
↓ 10 callers
Function
createMockTestResult
(overrides: Partial<TestResult> = {})
projects/scalar-app/src/features/collection/components/Runner/hooks/use-runner-execution.test.ts:24
↓ 10 callers
Function
createPathParam
(name: string, value: unknown)
packages/api-client/src/v2/blocks/operation-block/helpers/validate-path-parameters.test.ts:7
↓ 10 callers
Function
createTestEventBus
()
packages/api-client/src/v2/features/modal/helpers/create-api-client-modal.test.ts:46
↓ 10 callers
Function
emitSchema
(schema: Schema, depth: number, ctx: TypeGenContext, braceIndent: string)
packages/validation/src/typegen.ts:162
↓ 10 callers
Function
escapeCSharpString
(text: string)
packages/snippetz/src/plugins/csharp/httpclient/httpclient.ts:239
↓ 10 callers
Function
extractServerFromUrl
(url: string | undefined)
packages/postman-to-openapi/src/helpers/urls.ts:141
↓ 10 callers
Function
getAsyncApiServers
( document: AsyncApiDocument, options: AsyncApiServerListOptions = {}, )
packages/workspace-store/src/channel-example/servers.ts:78
↓ 10 callers
Function
getConfigurationFromDataAttributes
(doc: Document)
packages/api-reference/src/standalone/lib/html-api.ts:78
↓ 10 callers
Function
getExchangeToken
(flow: 'login' | 'register')
projects/scalar-app/entrypoints/electron/main/actions/get-exchange-token.ts:184
↓ 10 callers
Function
getHeadingId
(heading: { value: string })
packages/workspace-store/src/navigation/helpers/traverse-description.test.ts:6
↓ 10 callers
Function
getOpenAuthTokenUrls
(schema?: OpenAPI.Document)
packages/mock-server/src/utils/get-open-auth-token-urls.ts:36
↓ 10 callers
Function
getRequestData
(c: Context)
packages/void-server/src/utils/get-request-data.ts:10
↓ 10 callers
Function
getXKeysFromObject
(object?: Record<string, unknown>)
packages/api-reference/src/features/specification-extension/helpers.ts:7
↓ 10 callers
Function
inferSchemaFromExample
(example: any)
packages/postman-to-openapi/src/helpers/schemas.ts:8
↓ 10 callers
Function
installScalar
(cdn: string = DEFAULT_CDN)
integrations/astro/src/client.test.ts:36
↓ 10 callers
Function
isBooleanJsonSchema
(schema: unknown)
packages/openapi-types/src/helpers/is-boolean-json-schema.ts:14
↓ 10 callers
Function
isContextFunctionName
(name: string)
packages/workspace-store/src/request-example/functions.ts:683
↓ 10 callers
Function
isNonOptionalSecurityRequirement
( securityRequirement: SecurityRequirementObject | undefined, )
packages/workspace-store/src/helpers/is-non-optional-security-requirement.ts:4
↓ 10 callers
Function
isSchemaPath
(path: string[] | undefined)
packages/openapi-upgrader/src/3.0-to-3.1/upgrade-from-three-to-three-one.ts:19
↓ 10 callers
Function
isTokenExpired
( token: string, /** current current time in unix milliseconds */ current: number = Date.now(), )
projects/scalar-app/src/helpers/auth/is-token-expired.ts:4
↓ 10 callers
Function
makeJwt
(payload: object)
projects/scalar-app/src/hooks/use-auth.test.ts:17
↓ 10 callers
Function
mountComponent
(props: Parameters<typeof mount>[1])
packages/api-reference/src/components/ApiReference.config.test.ts:90
↓ 10 callers
Function
next
()
packages/helpers/src/general/create-limiter.ts:26
← previous
next →
501–600 of 4,087, ranked by callers