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
↓ 6 callers
Function
getDownloadButton
(page: Page, format: 'json' | 'yaml')
packages/api-reference/test/configuration/document-download-type.e2e.ts:10
↓ 6 callers
Function
getHttpMethodInfo
(methodName: string)
packages/helpers/src/http/http-info.ts:68
↓ 6 callers
Function
getKeyLabel
(key: string)
packages/components/src/components/ScalarHotkey/formatHotkey.ts:54
↓ 6 callers
Function
getMutators
({ collectionType }: CollectionType)
packages/api-client/src/v2/workspace-events.ts:69
↓ 6 callers
Function
getOAuthCallbackParamWithSource
( searchParams: URLSearchParams, hashParams: URLSearchParams, paramName: string, )
packages/api-client/src/v2/blocks/scalar-auth-selector-block/helpers/oauth-callback.ts:73
↓ 6 callers
Function
getQueryParams
()
packages/api-client/src/v2/blocks/request-block/RequestBlock.test.ts:408
↓ 6 callers
Function
getRoutePrefix
(routePrefix?: string)
integrations/fastify/src/fastifyApiReference.ts:31
↓ 6 callers
Function
getScopes
(store: ReturnType<typeof createWorkspaceStore>)
packages/workspace-store/src/mutators/auth.test.ts:1099
↓ 6 callers
Function
getScriptTags
(configuration: Partial<ApiReferenceConfigurationWithSource>, cdn?: string)
packages/core/src/libs/html-rendering/html-rendering.ts:27
↓ 6 callers
Function
getSegmentsFromPath
(path: string)
packages/json-magic/src/helpers/get-segments-from-path.ts:6
↓ 6 callers
Function
getUnpackedTabs
( workspace: Workspace & { 'x-scalar-tabs': NonNullable<Workspace['x-scalar-tabs']> }, )
packages/workspace-store/src/mutators/tabs.ts:25
↓ 6 callers
Function
getVisibleClientIds
()
packages/api-reference/src/components/ApiReference.test.ts:342
↓ 6 callers
Function
handler
(_, reply)
integrations/fastify/src/fastifyApiReference.ts:144
↓ 6 callers
Function
hasModifier
(keydown: KeyboardEvent)
packages/helpers/src/general/has-modifier.ts:8
↓ 6 callers
Function
hasProvider
( params: UseCodeMirrorParameters, )
packages/use-codemirror/src/hooks/useCodeMirror.ts:91
↓ 6 callers
Function
highlight
(code: string)
packages/code-highlight/src/languages/python.test.ts:11
↓ 6 callers
Function
highlight
(code: string)
packages/code-highlight/src/languages/mojo.test.ts:12
↓ 6 callers
Function
isMultiTypeSchema
( schema: T, )
packages/openapi-types/src/helpers/is-multi-type-schema.ts:10
↓ 6 callers
Function
isNumberSchema
( schema: SchemaObject, )
packages/workspace-store/src/schemas/v3.1/strict/type-guards.ts:20
↓ 6 callers
Function
isNumberSchema
( schema: T, )
packages/openapi-types/src/helpers/is-number-schema.ts:10
↓ 6 callers
Function
isStringSchema
( schema: T, )
packages/openapi-types/src/helpers/is-string-schema.ts:11
↓ 6 callers
Function
logout
()
projects/scalar-app/src/hooks/use-auth.ts:71
↓ 6 callers
Function
lookupVariableValue
(environment: XScalarEnvironment | undefined, name: string)
packages/api-client/src/v2/components/code-input/helpers/lookup-variable-value.ts:11
↓ 6 callers
Function
makeOperationEntry
( overrides: Partial<WithParent<TraversedOperation>> & { parent?: WithParent<TraversedDocument> | Traver
packages/workspace-store/src/navigation/helpers/update-order-ids.test.ts:27
↓ 6 callers
Function
makeWrapper
(options?: Partial<ServerDropdownProps>)
packages/api-client/src/v2/components/server/ServerDropdown.test.ts:7
↓ 6 callers
Function
mergeObjects
(a: Record<string, unknown>, b: Record<string, unknown>)
packages/openapi-parser/src/utils/join/merge-objects.ts:20
↓ 6 callers
Function
messageForPublishDocumentError
(code: PublishRegistryDocumentError, detail?: string)
projects/scalar-app/src/features/app/helpers/registry-error-messages.ts:77
↓ 6 callers
Function
minimalOasDocument
(overrides: Record<string, unknown>)
packages/workspace-store/src/request-example/context/servers.test.ts:249
↓ 6 callers
Function
mockResponse
(data: unknown, versionSha?: string)
projects/scalar-app/src/helpers/fetch-registry-document.test.ts:32
↓ 6 callers
Function
mountComposable
(args: { workspaceStore: Awaited<ReturnType<typeof createMockWorkspaceStore>> documents?: CommandPalet
projects/scalar-app/src/features/command-palette/hooks/use-command-palette-document-selection.test.ts:28
↓ 6 callers
Function
mountWithRouter
(document: OpenApiDocument | null, extraProps?: Record<string, unknown>)
projects/scalar-app/src/features/collection/DocumentCollection.test.ts:45
↓ 6 callers
Function
mountWithRouter
(type: 'document' | 'workspace', initialRoute?: string)
projects/scalar-app/src/features/collection/components/Tabs.test.ts:17
↓ 6 callers
Function
nav
(name: string, title: string)
projects/scalar-app/src/features/app/hooks/use-sidebar-documents/index.test.ts:62
↓ 6 callers
Function
navigateToWorkspace
(teamSlug?: string, slug?: string)
projects/scalar-app/src/features/app/app-state.ts:588
↓ 6 callers
Function
normalize
(inputPath: string)
packages/helpers/src/node/path.ts:98
↓ 6 callers
Function
normalizeResponseBody
(body: unknown, schema: Schema)
packages/mock-server/src/utils/normalize-response-body.ts:30
↓ 6 callers
Function
omitUndefinedValues
(data: T)
packages/helpers/src/object/omit-undefined-values.ts:6
↓ 6 callers
Function
openIDDiscoveryToFlows
(discovery: OpenIDConnectDiscovery)
packages/api-client/src/v2/blocks/scalar-auth-selector-block/helpers/openid-discovery-to-flows.ts:8
↓ 6 callers
Function
processParameters
({ harRequest, parameters, example, defaultDisabled, }: { harRequest: HarRequest parameters: Opera
packages/blocks/src/code-example/helpers/operation-to-har/process-parameters.ts:120
↓ 6 callers
Function
processServerUrl
(server: ServerObject | null, path: string)
packages/blocks/src/code-example/helpers/operation-to-har/process-server-url.ts:8
↓ 6 callers
Function
pushUnique
(target: string[], value: string | undefined)
packages/api-reference/src/helpers/openapi.ts:27
↓ 6 callers
Function
removeExtraScalarKeys
()
packages/workspace-store/src/plugins/bundler/index.ts:365
↓ 6 callers
Method
render
(props: Record<string, unknown>)
packages/react-renderer/src/components/ReactConnector.tsx:24
↓ 6 callers
Function
requestScriptsPlugin
()
packages/pre-post-request-scripts/src/plugins/request-scripts/request-scripts-plugin.ts:25
↓ 6 callers
Function
resolvePath
(ctx: ResolverContext, path: string | undefined)
packages/api-client/src/v2/features/modal/helpers/resolve-route-parameters.ts:73
↓ 6 callers
Function
resolveUserPath
(input: string, cwd = process.env.INIT_CWD ?? process.cwd())
packages/release-notes/src/core/paths.ts:6
↓ 6 callers
Function
runWithFakeCurl
(fakeCurlSource: string, options: RunOptions = {})
tooling/scripts/delete-cloudflare-pages-preview.test.ts:17
↓ 6 callers
Function
seedV1Database
( records: Array<{ namespace: string slug: string name: string teamUid:
packages/workspace-store/src/persistence/migrations/v2-team-to-local.test.ts:128
↓ 6 callers
Function
sendRequest
({ path, port }: { path: string; port: number })
projects/scalar-app/entrypoints/electron/main/actions/authorize-oauth2.test.ts:51
↓ 6 callers
Function
serializeConfigToJs
(config: Record<string, unknown>)
packages/server-side-rendering/src/ssr.ts:354
↓ 6 callers
Function
setInputValue
(value: string)
projects/scalar-app/src/features/app/components/CreateVersionModal.test.ts:31
↓ 6 callers
Function
setNestedValue
(obj: T, path: P, value: PathValue<T, P>)
packages/object-utils/src/nested/nested.ts:156
↓ 6 callers
Function
setupWorkspaceStore
()
packages/api-client/src/v2/features/modal/helpers/create-api-client-modal.test.ts:49
↓ 6 callers
Function
shouldRenderArrayItemComposition
(schema: SchemaObject | undefined, composition: string)
packages/api-reference/src/components/Content/Schema/helpers/should-render-array-item-composition.ts:13
↓ 6 callers
Function
startServer
(options: { connectionTimeoutMs?: number; path?: string } = {})
packages/void-server/src/void-websocket.test.ts:42
↓ 6 callers
Function
submitForm
()
projects/scalar-app/src/features/app/components/CreateVersionModal.test.ts:38
↓ 6 callers
Function
syncParametersForPathChange
( newPath: string, oldPath: string, existingParameters: ReferenceType<T>[], resolve: (node: ReferenceT
packages/workspace-store/src/mutators/operation/helpers/sync-path-parameters.ts:55
↓ 6 callers
Function
trackReservedKeys
( allowReservedQueryParameters: Set<string>, allowReserved: boolean, ...keys: string[] )
packages/workspace-store/src/request-example/builder/header/build-request-parameters.ts:168
↓ 6 callers
Function
updateActiveEnvironment
( workspace: Workspace | null, payload: WorkspaceEvents['workspace:update:active-environment'], )
packages/workspace-store/src/mutators/workspace.ts:61
↓ 6 callers
Function
updateOperationRequestBodyFormValue
( document: WorkspaceDocument | null, { meta, payload, contentType }: OperationEvents['operation:update:re
packages/workspace-store/src/mutators/operation/body.ts:116
↓ 6 callers
Function
updateSecurityScheme
( document: WorkspaceDocument | null, { payload, name }: AuthEvents['auth:update:security-scheme'], )
packages/workspace-store/src/mutators/auth.ts:171
↓ 6 callers
Function
updateSelectedAuthTab
( store: WorkspaceStore | null, document: WorkspaceDocument | null, { index, meta }: AuthEvents['auth:up
packages/workspace-store/src/mutators/auth.ts:261
↓ 6 callers
Function
updateSelectedSecuritySchemes
( store: WorkspaceStore | null, document: WorkspaceDocument | null, { selectedRequirements, newSchemes,
packages/workspace-store/src/mutators/auth.ts:39
↓ 6 callers
Function
updateSelectedServer
( document: WorkspaceDocument | null, { url, meta }: ServerEvents['server:update:selected'], )
packages/workspace-store/src/mutators/server.ts:286
↓ 6 callers
Function
useCodeMirror
( params: UseCodeMirrorParameters, )
packages/use-codemirror/src/hooks/useCodeMirror.ts:111
↓ 6 callers
Function
useCommandPaletteDocuments
({ app, managedDocs, }: { app: AppState managedDocs: MaybeRefOrGetter<RegistryDocument[]> })
projects/scalar-app/src/features/command-palette/hooks/use-command-palette-documents.ts:64
↓ 6 callers
Function
useGlobalHotKeys
( eventBus: WorkspaceEventBus, layout: ClientLayout, disableListeners?: MaybeRefOrGetter<boolean>, )
packages/api-client/src/v2/hooks/use-global-hot-keys.ts:14
↓ 6 callers
Function
waitForOpen
(client: WebSocket)
packages/void-server/src/void-websocket.test.ts:24
↓ 6 callers
Function
waitForScalarAppShellReady
(page: Page, options?: { timeout?: number })
projects/scalar-app/test/helpers/wait-for-scalar-app-shell-ready.ts:11
↓ 6 callers
Function
wrapAsExampleObject
Wraps a value as an ExampleObject, preserving existing structure if valid
packages/openapi-upgrader/src/2.0-to-3.0/upgrade-from-two-to-three.ts:145
↓ 5 callers
Function
AUTH_KEY
(slug: string)
packages/api-reference/src/plugins/persistence-plugin.test.ts:6
↓ 5 callers
Function
adaptAsyncApiParameters
(parameters: AsyncApiChannelObject['parameters'])
packages/api-reference/src/components/Content/AsyncApi/helpers/adapt-async-api-parameters.ts:15
↓ 5 callers
Function
attachVoidWebSocket
( httpServer: HttpServer | ServerType, options: VoidWebSocketOptions = {}, )
packages/void-server/src/void-websocket.ts:94
↓ 5 callers
Function
authStorage
()
packages/api-reference/src/helpers/storage.ts:36
↓ 5 callers
Function
basename
(path: string, ext?: string)
packages/helpers/src/node/path.ts:207
↓ 5 callers
Function
beforePayload
(requestBuilder: RequestFactory)
packages/oas-utils/src/helpers/client-plugins.test.ts:21
↓ 5 callers
Function
buildPillContext
(variableName: string, environment: XScalarEnvironment | undefined)
packages/api-client/src/v2/components/code-input/helpers/build-pill-context.ts:18
↓ 5 callers
Function
buildRegistryDoc
(version: string, commitHash?: string)
projects/scalar-app/src/features/collection/components/Settings.test.ts:296
↓ 5 callers
Function
buildReleaseNotesPreamble
(displayName?: string)
packages/helpers/src/markdown/release-notes.ts:110
↓ 5 callers
Function
buildWsQueryParams
( wsBinding: AsyncApiWsBindingObject | undefined, queryParameters?: Record<string, string>, )
packages/workspace-store/src/channel-example/build-connection-url.ts:228
↓ 5 callers
Function
clientStorage
()
packages/api-reference/src/helpers/storage.ts:12
↓ 5 callers
Function
collectDynamicAnchors
(resource: SchemaObject)
packages/workspace-store/src/helpers/dynamic-ref.ts:54
↓ 5 callers
Function
collectRequestPathKeysUnderFolder
(node: PostmanTreeNode)
projects/scalar-app/src/features/command-palette/helpers/postman-request-tree.ts:173
↓ 5 callers
Function
compileSchema
( ajv: Ajv2020, schema: Record<string, unknown> | null, label: string, )
packages/mock-server/src/utils/validate-request.ts:184
↓ 5 callers
Function
createChain
(method: string, ...args: string[])
packages/snippetz/src/libs/rust.ts:38
↓ 5 callers
Function
createDocument
(initial?: Partial<OpenApiDocument>)
packages/workspace-store/src/mutators/operation/extensions.test.ts:9
↓ 5 callers
Function
createIndexDbConnection
({ name = 'scalar-workspace-store', tables, migrations, }: { name: string tables: T migrations: re
packages/workspace-store/src/persistence/indexdb.ts:86
↓ 5 callers
Function
createJsonResponse
(c: Context, data: Record<string, any>)
packages/void-server/src/utils/create-json-response.ts:6
↓ 5 callers
Function
createLocationMock
(overrides: Partial<Location> = {})
packages/api-reference/src/helpers/id-routing.test.ts:596
↓ 5 callers
Function
createMockDocument
(overrides?: Partial<OpenApiDocument>)
projects/scalar-app/src/features/collection/DocumentCollection.test.ts:17
↓ 5 callers
Function
createMockWebhook
(overrides: Partial<TraversedWebhook> = {})
packages/api-reference/src/components/Content/Operations/TraversedEntry.test.ts:149
↓ 5 callers
Function
createMockWebhook
(overrides: Partial<TraversedWebhook> = {})
packages/api-reference/src/components/OperationsList/OperationsListItem.test.ts:26
↓ 5 callers
Function
createParameter
( overrides: Partial<ExtendedParameter> & Pick<ExtendedParameter, 'name' | 'in' | 'value'>, examples?: Rec
packages/workspace-store/src/request-example/builder/request-factory.test.ts:15
↓ 5 callers
Function
createSchemes
(overrides: Partial<MergedSecuritySchemes> = {})
packages/workspace-store/src/request-example/context/security/get-security-schemes.test.ts:8
↓ 5 callers
Function
createTestDocument
(overrides: Partial<OpenApiDocument> = {})
packages/api-client/src/v2/features/modal/helpers/create-api-client-modal.test.ts:29
↓ 5 callers
Function
createWorkspaceStoreInstance
()
projects/scalar-app/src/features/collection/components/Cookies.test.ts:23
↓ 5 callers
Function
createXmlResponse
(c: Context, data: Record<string, any>)
packages/void-server/src/utils/create-xml-response.ts:7
↓ 5 callers
Function
deleteDocument
(store: WorkspaceStore | null, payload: DocumentEvents['document:delete:document'])
packages/workspace-store/src/mutators/document.ts:132
↓ 5 callers
Function
deleteEnvironment
( workspace: Workspace | null, collection: WorkspaceDocument | Workspace | null, { environmentName }: Ev
packages/workspace-store/src/mutators/environment.ts:74
↓ 5 callers
Function
deleteEnvironmentVariable
( collection: WorkspaceDocument | Workspace | null, { environmentName, index }: Event<'environment:delete:
packages/workspace-store/src/mutators/environment.ts:130
← previous
next →
901–1,000 of 4,087, ranked by callers