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
↓ 7 callers
Function
indent
* Generates a consistent indentation string based on the specified indentation level.
packages/snippetz/src/libs/php.ts:4
↓ 7 callers
Function
initializeServers
( document: WorkspaceDocument | null, { meta }: ServerEvents['server:initialize:servers'], )
packages/workspace-store/src/mutators/server.ts:42
↓ 7 callers
Function
isAuthenticationRequired
(security?: OpenAPIV3.SecurityRequirementObject[])
packages/mock-server/src/utils/is-authentication-required.ts:6
↓ 7 callers
Function
isContentTypeParameterObject
(parameter: ParameterObject)
packages/workspace-store/src/schemas/v3.1/strict/type-guards.ts:40
↓ 7 callers
Function
isDynamicRef
(schema: unknown)
packages/workspace-store/src/helpers/dynamic-ref.ts:29
↓ 7 callers
Function
isNonEmptyObject
Checks if a value is a non-null, non-array object with at least one entry
packages/openapi-upgrader/src/2.0-to-3.0/upgrade-from-two-to-three.ts:25
↓ 7 callers
Function
isNullSchema
( schema: T, )
packages/openapi-types/src/helpers/is-null-schema.ts:11
↓ 7 callers
Function
isNumericSchema
( schema: T, )
packages/openapi-types/src/helpers/is-numeric-schema.ts:11
↓ 7 callers
Function
isReorder
(hoveredItem: HoveredItem)
projects/scalar-app/src/helpers/drag-handle-factory.ts:92
↓ 7 callers
Function
isXError
(x)
packages/openapi-parser/src/utils/betterAjvErrors/utils.ts:10
↓ 7 callers
Function
iterateTitle
(title: string, checkDuplicates: (title: string) => boolean, separator = ' #')
packages/helpers/src/string/iterate-title.ts:4
↓ 7 callers
Function
joinUrlAndQuery
(url: string, queryString?: NameValuePair[])
packages/snippetz/src/libs/http.ts:69
↓ 7 callers
Function
loadDocument
* Resolves a workspace document from various input sources (URL, local file, or direct document object). * * @param workspaceDocument - The document
packages/workspace-store/src/client.ts:136
↓ 7 callers
Function
measureSync
( name: string, fn: ReturnType<F> extends Promise<unknown> ? never : F, )
packages/helpers/src/testing/measure.ts:15
↓ 7 callers
Function
messageForFetchError
(code: FetchRegistryDocumentError, detail?: string)
projects/scalar-app/src/features/app/helpers/registry-error-messages.ts:37
↓ 7 callers
Function
messageForPublishVersionError
(code: PublishRegistryVersionError, detail?: string)
projects/scalar-app/src/features/app/helpers/registry-error-messages.ts:56
↓ 7 callers
Function
mountWithProps
( custom: Partial<{ scopes: string[] scope: { name: string; description: string } | null }
packages/api-client/src/v2/blocks/scalar-auth-selector-block/components/OAuthScopesAddModal.test.ts:12
↓ 7 callers
Function
mountWithProps
( custom: Partial<{ document: any environment: any }> = {}, )
projects/scalar-app/src/features/collection/components/Servers.test.ts:49
↓ 7 callers
Function
mountWorkspaceCollection
(activeWorkspaceLabel = 'My Workspace')
projects/scalar-app/src/features/collection/WorkspaceCollection.test.ts:22
↓ 7 callers
Function
normalizeMethod
(method?: string)
packages/snippetz/src/libs/http.ts:43
↓ 7 callers
Function
normalizeMimeTypeObject
(content?: ResponseObject['content'])
packages/api-reference/src/features/example-responses/helpers/normalize-mime-type-object.ts:10
↓ 7 callers
Function
note
(version: string, title = `release ${version}`)
projects/scalar-app/src/features/whats-new/hooks/use-whats-new.test.ts:7
↓ 7 callers
Function
onError
(_: Electron.IpcRendererEvent, data: { streamId: string; message: string })
projects/scalar-app/entrypoints/electron/preload/index.ts:38
↓ 7 callers
Function
pickAcceptMediaType
(value: string | undefined)
packages/postman-to-openapi/src/helpers/header-utils.ts:36
↓ 7 callers
Function
processContact
(collection: PostmanCollection)
packages/postman-to-openapi/src/helpers/contact.ts:23
↓ 7 callers
Function
processLogo
(postmanCollection: PostmanCollection)
packages/postman-to-openapi/src/helpers/logo.ts:8
↓ 7 callers
Function
processResponseBody
({ data, headers }: { data: unknown; headers: { name: string; value: string }[] })
packages/api-client/src/v2/blocks/response-block/helpers/process-response-body.ts:11
↓ 7 callers
Function
rebuildSidebar
(documentName: string | undefined)
projects/scalar-app/src/features/app/app-state.ts:1145
↓ 7 callers
Function
refocusBlurTarget
(selector: string | null)
packages/api-client/src/v2/blocks/scalar-address-bar-block/helpers/refocus-blur-target.ts:15
↓ 7 callers
Function
render
(overrides: Partial<HeaderProps> = {})
packages/api-client/src/v2/blocks/operation-block/components/Header.test.ts:41
↓ 7 callers
Function
replacePathVariables
(path: string, variables: Record<string, string> = {})
packages/helpers/src/regex/replace-variables.ts:27
↓ 7 callers
Function
resolveRouteParameters
(store: WorkspaceStore, params: DefaultEntities)
packages/api-client/src/v2/features/modal/helpers/resolve-route-parameters.ts:153
↓ 7 callers
Function
scrollSidebarToTop
(id: string, offsetTop: number = DEFAULT_SCROLL_OFFSET_TOP)
packages/sidebar/src/helpers/scroll-sidebar-to-top.ts:53
↓ 7 callers
Method
setDisabled
Sets whether the agent is disabled. @param disabled true to disable, false or null to use default behavior
integrations/java/scalar-core/src/main/java/com/scalar/maven/core/config/ScalarAgentOptions.java:65
↓ 7 callers
Function
setFeedback
(feedback, message, type)
documentation/assets/enterprise-contact-form.js:2
↓ 7 callers
Function
setOffsetParent
(element: HTMLElement, value: HTMLElement | null)
packages/sidebar/src/helpers/scroll-sidebar-to-top.test.ts:19
↓ 7 callers
Method
setShowDeveloperTools
(DeveloperToolsVisibility showDeveloperTools)
integrations/java/scalar-core/src/main/java/com/scalar/maven/core/ScalarProperties.java:611
↓ 7 callers
Function
setState
(next: WebSocketSessionState)
packages/api-client/src/v2/blocks/channel-operation-block/helpers/websocket-session.ts:74
↓ 7 callers
Method
setUrl
Sets the URL of the OpenAPI specification @param url the url
integrations/java/scalar-core/src/main/java/com/scalar/maven/core/config/ScalarSource.java:76
↓ 7 callers
Function
setupIpcMock
Build a window.api mock and return helpers to control the stream.
projects/scalar-app/entrypoints/electron/helpers/custom-fetch/create-ipc-transport.test.ts:14
↓ 7 callers
Function
syntaxHighlight
( codeString: string, options: { lang: string languages: Record<string, LanguageFn> lineNumber
packages/code-highlight/src/code/highlight.ts:16
↓ 7 callers
Function
toPathKey
(path: readonly string[])
packages/api-client/src/v2/blocks/request-block/helpers/create-parameter-rows.ts:84
↓ 7 callers
Function
traverse
( content: UnknownObject, transform: (content: UnknownObject, path?: string[]) => UnknownObject, path: s
packages/openapi-parser/src/utils/traverse.ts:7
↓ 7 callers
Method
undo
Undo the previous mutation
packages/object-utils/src/mutator-record/mutations.ts:136
↓ 7 callers
Function
updateOperationExtension
( document: WorkspaceDocument | null, { meta, payload }: OperationEvents['operation:update:extension'], )
packages/workspace-store/src/mutators/operation/extensions.ts:20
↓ 7 callers
Function
upgrade
(value: string | UnknownObject | Filesystem)
packages/openapi-parser/src/utils/upgrade.ts:13
↓ 7 callers
Function
useBindCx
()
packages/use-hooks/src/useBindCx/useBindCx.ts:36
↓ 7 callers
Function
useRegistryDocuments
(options?: Omit<UseQueryOptions, 'queryKey' | 'queryFn'>)
projects/scalar-app/src/hooks/use-registry-documents.ts:15
↓ 7 callers
Function
useRegistryNamespaces
(options?: Omit<UseQueryOptions, 'queryKey' | 'queryFn'>)
projects/scalar-app/src/hooks/use-registry-namespaces.ts:20
↓ 7 callers
Function
validateParameter
( schema?: SchemaObject, value?: string | File | null, )
packages/api-client/src/v2/blocks/request-block/helpers/validate-parameter.ts:6
↓ 6 callers
Function
NewProxyServer
NewProxyServer creates a new proxy server instance
projects/proxy-scalar-com/main.go:182
↓ 6 callers
Method
addPath
* Adds a value to the trie at the specified path. * Creates new nodes as needed to build the path. * * @param path - Array of strings represe
packages/json-magic/src/diff/trie.ts:49
↓ 6 callers
Function
addToPriorityQueue
(id: string | undefined)
packages/api-reference/src/helpers/lazy-bus.ts:179
↓ 6 callers
Function
asyncApiResolvedReference
(schema: Schema)
packages/schemas/src/asyncapi/3.1/reference.ts:45
↓ 6 callers
Function
authMutatorsFactory
({ document, store, }: { document: WorkspaceDocument | null store: WorkspaceStore | null })
packages/workspace-store/src/mutators/auth.ts:688
↓ 6 callers
Function
authorizeOauth2
({ authorizationUrl }: AuthorizeOAuth2Params)
projects/scalar-app/entrypoints/electron/main/actions/authorize-oauth2.ts:112
↓ 6 callers
Function
baseRequest
(overrides: Partial<SandboxExecuteRequest>)
packages/pre-post-request-scripts/src/libs/execute-scripts/postman-adapter/sandbox-frame-server.test.ts:29
↓ 6 callers
Function
buildConnectionUrl
({ server, channel, operation = null, pathParameters = {}, queryParameters = {}, environmentVariab
packages/workspace-store/src/channel-example/build-connection-url.ts:263
↓ 6 callers
Function
buildRequest
( request: RequestFactory, options: { envVariables: Record<string, string> /** * When true, a
packages/workspace-store/src/request-example/builder/build-request.ts:122
↓ 6 callers
Function
cleanup
(persistence: Awaited<ReturnType<typeof createWorkspaceStorePersistence>> | undefined)
packages/workspace-store/src/persistence/migrations/v2-team-to-local.test.ts:118
↓ 6 callers
Function
collectHeaders
(headers?: NameOptionalValuePair[], cookies?: NameValuePair[])
packages/snippetz/src/libs/http.ts:86
↓ 6 callers
Function
createDiscovery
(overrides: Partial<OpenIDConnectDiscovery> = {})
packages/api-client/src/v2/blocks/scalar-auth-selector-block/helpers/openid-discovery-to-flows.test.ts:22
↓ 6 callers
Function
createDocumentProps
(overrides: Partial<CollectionProps> = {})
projects/scalar-app/src/features/collection/components/Cookies.test.ts:28
↓ 6 callers
Function
createElement
(tagName: string, attributes: Record<string, string> = {})
packages/api-client/src/v2/helpers/handle-hotkeys.test.ts:49
↓ 6 callers
Function
createFakeApp
({ documents, activeDocumentName, isTeamWorkspace = true, }: { documents: Record<string, FakeDocument>
projects/scalar-app/src/features/app/components/DocumentSyncIndicator.test.ts:23
↓ 6 callers
Function
createFakeApp
({ documents = {}, isTeamWorkspace = false, documentSlug, }: { documents?: Record<string, FakeDocument
projects/scalar-app/src/features/command-palette/hooks/use-command-palette-documents.test.ts:27
↓ 6 callers
Function
createHtmlResponse
(c: Context, data: Record<string, any>)
packages/void-server/src/utils/create-html-response.ts:9
↓ 6 callers
Function
createMicroStore
(name: string)
packages/object-utils/src/mutator-record/mutations.test.ts:7
↓ 6 callers
Function
createMinimalDocument
(overrides: Partial<OpenApiDocument> = {})
packages/workspace-store/src/request-example/context/get-request-example-context.test.ts:8
↓ 6 callers
Function
createMockDocument
(environments?: any)
projects/scalar-app/src/features/collection/components/Environment.test.ts:32
↓ 6 callers
Function
createMockEnvironment
(variables: any[] = [])
packages/api-client/src/v2/features/environments/components/EnvironmentVariablesTable.test.ts:10
↓ 6 callers
Function
createMockSelectedItem
(overrides: Partial<SelectedItem> = {})
projects/scalar-app/src/features/collection/components/Runner/hooks/use-runner-execution.test.ts:7
↓ 6 callers
Function
createMockWorkspaceStore
(documents: Record<string, Record<string, unknown>> = {})
projects/scalar-app/src/features/command-palette/hooks/use-command-palette-document-selection.test.ts:11
↓ 6 callers
Function
createModalOptions
(options: ApiClientOptions = {})
packages/api-client/src/v2/features/modal/Modal.test.ts:39
↓ 6 callers
Function
createParameter
(name: string, overrides?: Partial<ParameterObject>)
packages/api-reference/src/features/Operation/components/ParameterList.test.ts:18
↓ 6 callers
Function
createPathFromSegments
(obj: any, segments: string[])
packages/json-magic/src/helpers/json-path-utils.ts:19
↓ 6 callers
Function
createRegistryDocumentProps
(overrides: Partial<CollectionProps> = {})
projects/scalar-app/src/features/collection/components/Settings.test.ts:326
↓ 6 callers
Function
createServer
(server: Record<string, unknown> = {})
packages/oas-utils/src/migrations/migrate-to-indexdb.test.ts:121
↓ 6 callers
Function
createTraversedTag
(name: string, children?: Parameters<typeof editTag>[1]['tag']['children'])
packages/workspace-store/src/mutators/tag.test.ts:337
↓ 6 callers
Function
createWorkspaceStore
({ documents, originals, }: { documents: Record<string, FakeDocument> originals?: Record<string, Recor
projects/scalar-app/src/features/app/helpers/check-version-conflict.test.ts:20
↓ 6 callers
Function
createZipFileResponse
(c: Context, data: Record<string, unknown>)
packages/void-server/src/utils/create-zip-file-response.ts:6
↓ 6 callers
Function
deleteDatabase
(name: string)
packages/workspace-store/src/persistence/indexdb.test.ts:334
↓ 6 callers
Function
deletePathItemOperation
(pathItem: NodeInput<PathItemObject> | undefined, method: HttpMethod)
packages/workspace-store/src/helpers/for-each-path-item-operation.ts:60
↓ 6 callers
Function
deleteSecurityScheme
( store: WorkspaceStore | null, document: WorkspaceDocument | null, { names }: AuthEvents['auth:delete:s
packages/workspace-store/src/mutators/auth.ts:600
↓ 6 callers
Function
dispatchStorageEvent
(key: string, newValue: string | null)
projects/scalar-app/src/hooks/use-auth.test.ts:664
↓ 6 callers
Function
emit
(...args: EmitParameters<E>)
packages/workspace-store/src/events/bus.ts:394
↓ 6 callers
Function
escapeObjectKeys
(value: unknown)
packages/snippetz/src/plugins/php/laravel/laravel.ts:12
↓ 6 callers
Function
evaluate
(expression: (value: unknown) => unknown, schema: S)
packages/validation/src/schema.ts:320
↓ 6 callers
Function
executePreRequestScript
( script: string | undefined, data: { requestBuilder: RequestFactory variablesStore?: VariablesSto
packages/pre-post-request-scripts/src/libs/execute-scripts/execute-pre-request-script.ts:14
↓ 6 callers
Function
extname
(path: string)
packages/helpers/src/node/path.ts:216
↓ 6 callers
Function
extractPathParameterNames
(path: string)
packages/postman-to-openapi/src/helpers/urls.ts:121
↓ 6 callers
Function
extractServerObjectFromUrl
( url: string | undefined, collectionVariableLookup: CollectionVariableLookup = new Map(), )
packages/postman-to-openapi/src/helpers/urls.ts:148
↓ 6 callers
Function
fetchOpenIDConnectDiscovery
( url: string, proxyUrl: string, customFetch: CustomFetch = fetch, )
packages/api-client/src/v2/blocks/scalar-auth-selector-block/helpers/fetch-openid-connect-discovery.ts:44
↓ 6 callers
Function
filterItemsByRegistryNamespace
( items: T[], filterNamespaceId: NamespaceFilterId, isTeamWorkspace: boolean, )
projects/scalar-app/src/features/app/hooks/use-sidebar-documents/helpers/registry-namespace-filter.ts:79
↓ 6 callers
Function
findVersionCombobox
(wrapper: ReturnType<typeof mount>)
projects/scalar-app/src/features/app/components/DocumentBreadcrumb.test.ts:20
↓ 6 callers
Function
getAccessToken
()
projects/scalar-app/src/hooks/use-auth.ts:68
↓ 6 callers
Function
getActiveServerBase
( activeServer: ServerObject | null, environmentVariables: Record<string, string> = {}, )
packages/api-client/src/v2/blocks/scalar-auth-selector-block/helpers/oauth.ts:91
↓ 6 callers
Method
getAgent
()
integrations/java/scalar-core/src/main/java/com/scalar/maven/core/internal/ScalarConfiguration.java:431
↓ 6 callers
Function
getBasePath
(suffix)
integrations/dotnet/aspnetcore/src/Scalar.AspNetCore/StaticAssets/scalar.aspnetcore.js:14
↓ 6 callers
Function
getCompositionsToRender
( value: SchemaObject | undefined, document?: DocumentSchemaLookup, )
packages/api-reference/src/components/Content/Schema/helpers/get-compositions-to-render.ts:71
← previous
next →
801–900 of 4,087, ranked by callers