Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/scalar/scalar
/ functions
Functions
4,087 in github.com/scalar/scalar
⨍
Functions
4,087
◇
Types & classes
253
↳
Endpoints
19
↓ 4 callers
Function
corsMiddleware
Handle preflight requests and ensures browsers can access the proxy regardless of where the request originates from. This is essential to make cross-o
projects/proxy-scalar-com/main.go:478
↓ 4 callers
Function
createAsyncApiDocument
* Helper to create a minimal AsyncApiDocument for testing.
packages/workspace-store/src/mutators/server.test.ts:1257
↓ 4 callers
Function
createAsyncApiMockServer
(options: AsyncApiMockServerOptions)
packages/mock-server/src/create-asyncapi-mock-server.ts:58
↓ 4 callers
Function
createCollectionVariableLookup
( variables: ReadonlyArray<{ key?: string; value?: string | number | boolean; disabled?: boolean }> | undefi
packages/postman-to-openapi/src/helpers/urls.ts:86
↓ 4 callers
Function
createDocument
(title: string)
packages/api-reference/src/components/ApiReference.test.ts:307
↓ 4 callers
Function
createDocument
(channelDescription?: string)
packages/api-reference/src/components/Content/AsyncApi/Channel.test.ts:19
↓ 4 callers
Function
createDocument
(servers: Record<string, unknown>)
packages/api-reference/src/components/Content/AsyncApi/helpers/get-async-api-labels.test.ts:6
↓ 4 callers
Function
createEmptyDocument
( store: WorkspaceStore | null, payload: DocumentEvents['document:create:empty-document'], )
packages/workspace-store/src/mutators/document.ts:93
↓ 4 callers
Function
createEntry
( overrides: Partial<AsyncApiServerEntry> & Pick<AsyncApiServerEntry, 'name' | 'url'>, )
packages/api-reference/src/blocks/scalar-asyncapi-server-selector-block/components/Selector.test.ts:9
↓ 4 callers
Function
createMockIpcResponse
({ status = 200, statusText = 'OK', headers = [], body = new ArrayBuffer(0), url = 'https://example.
projects/scalar-app/entrypoints/electron/helpers/custom-fetch/create-custom-fetch.test.ts:19
↓ 4 callers
Function
createMockTagGroup
(overrides: Partial<TraversedTag> = {})
packages/api-reference/src/components/Content/Operations/TraversedEntry.test.ts:169
↓ 4 callers
Function
createOperation
(overrides: Partial<TraversedAsyncApiOperation> = {})
packages/api-reference/src/components/Content/AsyncApi/Operation.test.ts:10
↓ 4 callers
Function
createProps
(overrides: Partial<Props> = {})
packages/api-client/src/v2/blocks/request-block/components/RequestCodeSnippet.test.ts:20
↓ 4 callers
Function
createReleaseNotesGeneratorCommand
(baseConfig: ReleaseNotesConfig = {})
packages/release-notes/src/commands/generate.ts:70
↓ 4 callers
Function
createStreamResponse
(c: Context)
packages/void-server/src/utils/create-stream-response.ts:4
↓ 4 callers
Function
currentModel
()
projects/scalar-app/src/features/editor/hooks/use-editor.ts:39
↓ 4 callers
Function
deepMerge
(source: Record<any, any>, target: Record<any, any>)
packages/api-reference/src/helpers/openapi.ts:195
↓ 4 callers
Function
deleteAllOperationParameters
( document: WorkspaceDocument | null, { meta, type }: OperationEvents['operation:delete-all:parameters'],
packages/workspace-store/src/mutators/operation/parameters.ts:240
↓ 4 callers
Function
deleteHeader
(headers: Record<string, unknown>, name: string)
packages/snippetz/src/plugins/clojure/clj_http/clj_http.ts:94
↓ 4 callers
Function
deleteOperationParameter
( document: WorkspaceDocument | null, { meta, originalParameter }: OperationEvents['operation:delete:param
packages/workspace-store/src/mutators/operation/parameters.ts:189
↓ 4 callers
Function
dereference
( input: UnknownObject, options?: Opts, )
packages/json-magic/src/dereference/dereference.ts:54
↓ 4 callers
Function
dereferenceCommand
(previousQueue: Queue<T>, options?: DereferenceOptions)
packages/openapi-parser/src/utils/openapi/commands/dereferenceCommand.ts:25
↓ 4 callers
Function
detectDocumentFormat
(content: string)
packages/mock-server/docker/src/document-loader.ts:123
↓ 4 callers
Function
disableConsoleError
()
packages/helpers/src/testing/console-spies.ts:27
↓ 4 callers
Function
disableConsoleWarn
()
packages/helpers/src/testing/console-spies.ts:21
↓ 4 callers
Function
dispatchBeforeSwap
(newDocument?: Document)
integrations/astro/src/client.test.ts:89
↓ 4 callers
Function
dispose
()
projects/scalar-app/src/features/editor/hooks/use-editor.ts:179
↓ 4 callers
Function
dyn
(value: Record<string, unknown>)
packages/workspace-store/src/request-example/builder/helpers/get-example-from-schema.test.ts:2021
↓ 4 callers
Function
encodeFormComponent
(value: string)
packages/snippetz/src/plugins/ruby/native/native.ts:9
↓ 4 callers
Function
escapeJsonPointer
(str: string)
packages/json-magic/src/helpers/escape-json-pointer.ts:6
↓ 4 callers
Function
escapeRubyDoubleQuoted
(value: string)
packages/snippetz/src/plugins/ruby/native/native.ts:5
↓ 4 callers
Function
escapeString
(rawValue: string, options: EscapeOptions = {})
packages/snippetz/src/httpsnippet-lite/helpers/escape.ts:31
↓ 4 callers
Function
exampleDocument
()
integrations/fastify/src/fastifyApiReference.test.ts:26
↓ 4 callers
Function
executeAndCleanup
(key: string)
packages/helpers/src/general/debounce.ts:45
↓ 4 callers
Function
executeScript
({ script, responseBody = { success: true }, status = 200, headers = { 'content-type': 'application/js
packages/pre-post-request-scripts/src/libs/execute-scripts/execute-post-response-script.test.ts:26
↓ 4 callers
Function
exposeInRenderer
(key: K, value: Window[K])
projects/scalar-app/entrypoints/electron/preload/index.ts:7
↓ 4 callers
Function
extractBodyDescriptions
(operation: OperationObject)
packages/api-reference/src/helpers/openapi.ts:147
↓ 4 callers
Function
extractParameterDescriptions
(parameters: ReferenceType<ParameterObject>[])
packages/api-reference/src/helpers/openapi.ts:117
↓ 4 callers
Function
extractRefreshTokenSecret
( authStoreSecrets: { 'x-scalar-secret-refresh-token'?: string } = {}, )
packages/workspace-store/src/request-example/context/security/extract-security-scheme-secrets.ts:77
↓ 4 callers
Function
extractRefreshTokenSecret
( authStoreSecrets: { 'x-scalar-secret-refresh-token'?: string } = {}, )
packages/api-client/src/v2/blocks/scalar-auth-selector-block/helpers/extract-security-scheme-secrets.ts:72
↓ 4 callers
Function
extractSchemaFieldNames
(schema: SchemaObject | undefined)
packages/api-reference/src/helpers/openapi.ts:165
↓ 4 callers
Function
filterSecuritySchemes
(_schemes: SecurityRequirementObject[])
packages/workspace-store/src/mutators/auth.ts:632
↓ 4 callers
Function
findById
(id: string)
packages/blocks/src/code-example/helpers/find-client.ts:51
↓ 4 callers
Function
findDataAttributes
(doc: Document, configuration: ApiReferenceConfigurationWithSource)
packages/api-reference/src/standalone/lib/html-api.ts:195
↓ 4 callers
Function
flushDebouncedEmits
(bus: ReturnType<typeof createWorkspaceEventBus>)
packages/workspace-store/src/events/bus.test.ts:26
↓ 4 callers
Function
formatDirectoryPackageFiles
(folder: PackageType, root: string)
tooling/scripts/src/commands/packages/format.ts:192
↓ 4 callers
Function
formatReleaseLine
(changeset: NewChangesetWithCommit, githubInfo: GitHubInfo | null)
tooling/changelog-generator/src/formatter.ts:82
↓ 4 callers
Function
generateReleaseNote
(options: GenerateReleaseNoteOptions)
packages/release-notes/src/core/generate-release-note.ts:207
↓ 4 callers
Function
generateWorkspaceUid
()
packages/workspace-store/src/persistence/index.ts:45
↓ 4 callers
Function
getActiveDocumentName
* Returns the name of the currently active document in the workspace. * The active document is determined by the 'x-scalar-active-document' metadat
packages/workspace-store/src/client.ts:912
↓ 4 callers
Function
getActiveIndex
(workspace: Workspace)
packages/workspace-store/src/mutators/tabs.ts:35
↓ 4 callers
Function
getChannelOperations
(document: AsyncApiDocument, channelName: string)
packages/workspace-store/src/channel-example/get-channel-operations.ts:17
↓ 4 callers
Function
getChannelServerLabels
( document: AsyncApiDocument, channel: AsyncApiChannelObject | null | undefined, )
packages/api-reference/src/components/Content/AsyncApi/helpers/get-async-api-labels.ts:11
↓ 4 callers
Function
getContentOfScriptTag
(html: string)
packages/import/src/resolve.ts:219
↓ 4 callers
Method
getCustomCss
()
integrations/java/scalar-core/src/main/java/com/scalar/maven/core/ScalarProperties.java:383
↓ 4 callers
Function
getDefaultProps
()
packages/api-client/src/v2/features/operation/Operation.test.ts:46
↓ 4 callers
Method
getDisabled
Gets whether the agent is disabled. @return true if disabled, false if enabled, null if not set
integrations/java/scalar-core/src/main/java/com/scalar/maven/core/config/ScalarAgentOptions.java:56
↓ 4 callers
Function
getDocument
(ctx: ResolverContext)
packages/api-client/src/v2/features/modal/helpers/resolve-route-parameters.ts:34
↓ 4 callers
Function
getDocumentName
( { name, url, document }: Partial<UrlDoc> & Partial<ObjectDoc> = {}, documents?: Record<string, OpenApiDo
packages/api-reference/src/helpers/get-document-name.ts:14
↓ 4 callers
Function
getDomainFromUrl
(url: string)
packages/postman-to-openapi/src/helpers/urls.ts:25
↓ 4 callers
Function
getDownloadButton
(page: Page, format: 'json' | 'yaml')
packages/api-reference/test/configuration/hide-download-button.e2e.ts:10
↓ 4 callers
Function
getEnvironmentVariables
(environment: XScalarEnvironment)
packages/workspace-store/src/request-example/builder/helpers/get-environment-variables.ts:9
↓ 4 callers
Function
getHeaderName
(headers: Headers<T>, name: string)
packages/snippetz/src/httpsnippet-lite/helpers/headers.ts:6
↓ 4 callers
Function
getIdFromHashBasePath
(location: string | URL, basePath: string, slugPrefix: string | undefined)
packages/api-reference/src/helpers/id-routing.ts:68
↓ 4 callers
Method
getKey
Gets the Agent Scalar key. @return the key or null
integrations/java/scalar-core/src/main/java/com/scalar/maven/core/config/ScalarAgentOptions.java:38
↓ 4 callers
Function
getListOfReferences
(specification: AnyObject)
packages/openapi-parser/src/utils/get-list-of-references.ts:9
↓ 4 callers
Function
getMutator
(uid: T['uid'])
packages/object-utils/src/mutator-record/handlers.ts:20
↓ 4 callers
Function
getOAuthCallbackParam
(callbackUrl: string, paramName: string)
packages/api-client/src/v2/blocks/scalar-auth-selector-block/helpers/oauth-callback.ts:61
↓ 4 callers
Function
getOperationStabilityColor
(operation: OperationStability)
packages/api-reference/src/features/Operation/helpers/operation-stability.ts:23
↓ 4 callers
Function
getParameterSchema
(parameter: ParameterObject)
packages/api-client/src/v2/blocks/request-block/helpers/get-parameter-schema.ts:9
↓ 4 callers
Function
getPlaceholderWorkspaceId
(teamSlug: string, slug: string)
projects/scalar-app/src/features/app/helpers/placeholder-workspace-id.ts:18
↓ 4 callers
Function
getSchemaCacheTarget
(schema: SchemaObject)
packages/workspace-store/src/request-example/builder/helpers/get-example-from-schema.ts:104
↓ 4 callers
Function
getSelectedAsyncApiServer
( document: WorkspaceDocument | null, servers: AsyncApiServerEntry[], _operation?: AsyncApiOperationObje
packages/workspace-store/src/channel-example/servers.ts:132
↓ 4 callers
Function
getServerUrl
( activeServer: ServerObject | null, environmentVariables: Record<string, string> = {}, )
packages/api-client/src/v2/blocks/scalar-auth-selector-block/helpers/oauth.ts:76
↓ 4 callers
Function
getSignature
(bytes: Uint8Array, offset: number)
packages/void-server/src/create-void-server.test.ts:5
↓ 4 callers
Function
getState
()
integrations/astro/src/client.ts:58
↓ 4 callers
Method
getUrl
Gets the server URL. @return the server URL
integrations/java/scalar-core/src/main/java/com/scalar/maven/core/config/ScalarServer.java:59
↓ 4 callers
Method
getVariables
Gets the server variables. @return the server variables
integrations/java/scalar-core/src/main/java/com/scalar/maven/core/config/ScalarServer.java:95
↓ 4 callers
Function
getYamlNodeRangeFromPath
(yamlText: string, path: Path)
projects/scalar-app/src/features/editor/helpers/yaml/get-yaml-node-range-from-path.ts:32
↓ 4 callers
Function
hasChildren
(currentItem: Item)
packages/sidebar/src/helpers/has-children.ts:7
↓ 4 callers
Function
invalidateSandboxFrame
({ element, id }: SandboxFrame)
packages/pre-post-request-scripts/src/libs/execute-scripts/postman-adapter/sandbox-adapter.ts:105
↓ 4 callers
Function
isClassic
(config: Source)
packages/api-reference/test/utils/is-classic.ts:4
↓ 4 callers
Method
isEnabled
()
integrations/java/scalar-core/src/main/java/com/scalar/maven/core/ScalarProperties.java:319
↓ 4 callers
Function
isEntryType
( entry: Entry, type: Type, )
projects/scalar-app/src/helpers/drag-handle-factory.ts:80
↓ 4 callers
Function
isFilesystem
(value: any)
packages/openapi-parser/src/utils/is-filesystem.ts:6
↓ 4 callers
Function
isHashBasePath
(basePath: string)
packages/api-reference/src/helpers/id-routing.ts:5
↓ 4 callers
Method
isHideDarkModeToggle
()
integrations/java/scalar-core/src/main/java/com/scalar/maven/core/ScalarProperties.java:375
↓ 4 callers
Method
isHideSearch
()
integrations/java/scalar-core/src/main/java/com/scalar/maven/core/ScalarProperties.java:391
↓ 4 callers
Method
isHideTestRequestButton
()
integrations/java/scalar-core/src/main/java/com/scalar/maven/core/ScalarProperties.java:359
↓ 4 callers
Function
isItemGroup
(item: Item | ItemGroup)
packages/postman-to-openapi/src/convert.ts:86
↓ 4 callers
Function
isObjectLike
(value: unknown)
packages/helpers/src/object/is-object.ts:43
↓ 4 callers
Function
isOperationDeprecated
(operation: OperationStability)
packages/api-reference/src/features/Operation/helpers/operation-stability.ts:11
↓ 4 callers
Function
isRouteParamsMatch
({ documentName, path, method, exampleName, }: { documentName: string path?: string
projects/scalar-app/src/features/app/app-events.ts:44
↓ 4 callers
Function
isStringSchema
(schema: SchemaObject)
packages/workspace-store/src/schemas/v3.1/strict/type-guards.ts:14
↓ 4 callers
Function
isTeamWorkspace
()
projects/scalar-app/src/features/app/hooks/use-sidebar-documents/index.ts:131
↓ 4 callers
Function
isText
(element?: ElementContent)
packages/code-highlight/src/code/line-numbers.ts:7
↓ 4 callers
Function
isVersionLessThanOrEqual
(a: string, b: string)
packages/helpers/src/general/compare-versions.ts:98
↓ 4 callers
Function
itemsShareParent
( draggingItem: TraversedEntry & { parent?: TraversedEntry }, hoveredItem: TraversedEntry & { parent?: Tra
projects/scalar-app/src/helpers/drag-handle-factory.ts:123
↓ 4 callers
Function
loadAuthFromStorage
(store: WorkspaceStore, slug: string)
packages/api-reference/src/helpers/load-from-perssistance.ts:23
↓ 4 callers
Function
log
(message: string)
tooling/scripts/src/commands/wait.ts:13
← previous
next →
1,101–1,200 of 4,087, ranked by callers