Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/diegosouzapw/OmniRoute
/ functions
Functions
20,485 in github.com/diegosouzapw/OmniRoute
⨍
Functions
20,485
◇
Types & classes
2,883
↓ 6,115 callers
Function
t
(key: string)
src/app/(dashboard)/dashboard/webhooks/__tests__/webhook-wizard.test.tsx:10
↓ 2,882 callers
Method
now
()
tests/unit/domain-cost-rules.test.ts:106
↓ 2,733 callers
Method
get
(...params: unknown[])
src/lib/db/adapters/types.ts:8
↓ 2,264 callers
Method
push
(chunk: Uint8Array)
open-sse/executors/kiro.ts:54
↓ 1,629 callers
Method
push
(line: LogLine)
src/lib/services/ringBuffer.ts:26
↓ 1,323 callers
Method
has
* Check if a key exists (without promoting it). * @param {string} key * @returns {boolean}
src/lib/cacheLayer.ts:154
↓ 1,308 callers
Method
error
(tag: string, message: string, data?: Record<string, unknown>)
open-sse/types.d.ts:87
↓ 1,270 callers
Method
replace
(text: string)
src/types/global.d.ts:76
↓ 1,060 callers
Method
prepare
(sql: string)
src/lib/db/adapters/types.ts:17
↓ 975 callers
Method
resolve
* Resolve a service by name. Lazy-creates via factory on first call, * then returns the cached singleton.
src/lib/container.ts:49
↓ 895 callers
Function
t
(key, vars)
bin/cli/i18n.mjs:88
↓ 790 callers
Method
text
()
tests/unit/t27-github-copilot-response-format.test.ts:180
↓ 769 callers
Function
setTimeout
(ms: number, cb: () => void)
tests/unit/mitm-server-timeouts.test.ts:19
↓ 748 callers
Function
getDbInstance
()
src/lib/db/core.ts:930
↓ 734 callers
Method
prepare
(sql: string)
src/types/sqljs.d.ts:15
↓ 721 callers
Method
write
(level: string, message: string, data?: unknown)
src/lib/plugins/logger.ts:19
↓ 633 callers
Method
warn
(tag: string, message: string, data?: Record<string, unknown>)
open-sse/types.d.ts:86
↓ 572 callers
Method
exit
()
open-sse/utils/tlsClient.ts:210
↓ 560 callers
Method
add
(usd: number)
open-sse/services/compression/eval/costMeter.ts:2
↓ 559 callers
Method
execute
(input: ExecuteInput)
open-sse/executors/glm.ts:430
↓ 555 callers
Method
set
* Set a value in the cache. * @param {string} key * @param {*} value * @param {number} [ttl] - Override default TTL
src/lib/cacheLayer.ts:92
↓ 551 callers
Method
close
()
src/types/sqljs.d.ts:19
↓ 540 callers
Method
all
(...params: unknown[])
src/lib/db/adapters/types.ts:9
↓ 523 callers
Method
run
(...params: unknown[])
src/lib/db/adapters/types.ts:7
↓ 510 callers
Function
apiFetch
(path, opts = {})
bin/cli/api.mjs:180
↓ 496 callers
Method
push
* Buffer `chunk` until the holdback window elapses or the byte cap is reached. * Returns the chunks to emit downstream now: `[]` while still holdin
open-sse/services/streamRecovery.ts:59
↓ 456 callers
Function
emit
(data, opts = {}, schema = null)
bin/cli/output.mjs:155
↓ 448 callers
Method
run
(sql: string)
src/types/sqljs.d.ts:16
↓ 429 callers
Method
delete
* Delete a specific key. * @param {string} key * @returns {boolean}
src/lib/cacheLayer.ts:169
↓ 400 callers
Method
has
(conversationId: string)
open-sse/services/cursorSessionManager.ts:201
↓ 392 callers
Function
sanitizeErrorMessage
(message: unknown)
open-sse/utils/error.ts:47
↓ 389 callers
Method
set
(key: string, live: number[])
open-sse/services/slidingWindowLimiter.ts:76
↓ 370 callers
Method
info
(tag: string, message: string, data?: Record<string, unknown>)
open-sse/types.d.ts:85
↓ 343 callers
Method
on
(event: string, listener: Listener)
tests/unit/copilot-m365-web-executor.test.ts:34
↓ 335 callers
Function
resolve
(_alias: string)
tests/unit/check-known-symbols.test.ts:113
↓ 333 callers
Function
requireManagementAuth
(request: Request)
src/lib/api/requireManagementAuth.ts:24
↓ 261 callers
Method
clear
(apiKeyId: string, dim: DimensionKey)
src/lib/quota/types.ts:62
↓ 244 callers
Function
validateProviderApiKey
({ provider, apiKey, providerSpecificData = {} }: any)
src/lib/providers/validation.ts:190
↓ 240 callers
Function
validateBody
( schema: TSchema, body: unknown )
src/shared/validation/helpers.ts:31
↓ 224 callers
Function
buildErrorBody
( statusCode: number, message: string, upstreamDetails?: unknown )
open-sse/utils/error.ts:96
↓ 224 callers
Function
makeManagementSessionRequest
( url: string, options: { method?: string; token?: string; headers?: HeadersInit; body?: B
tests/helpers/managementSession.ts:29
↓ 185 callers
Function
isValidationFailure
( validation: ValidationResult<TData> )
src/shared/validation/helpers.ts:52
↓ 184 callers
Function
fn
()
tests/unit/db-state-reset.test.ts:43
↓ 177 callers
Function
getI18nOrFallback
(t, key, fallback)
src/app/(dashboard)/dashboard/combos/page.tsx:522
↓ 176 callers
Function
createErrorResponse
(payload: ApiErrorPayload)
src/lib/api/errorResponse.ts:12
↓ 175 callers
Method
buildHeaders
( credentials: ProviderCredentials, stream = true, _clientHeaders?: Record<string, string> | null,
open-sse/executors/glm.ts:228
↓ 174 callers
Method
exec
(sql: string)
src/types/sqljs.d.ts:17
↓ 171 callers
Method
read
(length: number)
open-sse/executors/kiro.ts:70
↓ 170 callers
Function
handleComboChat
({ body, combo, handleSingleModel, isModelAvailable, log, settings, allCombos, relayOptions,
open-sse/services/combo.ts:709
↓ 167 callers
Method
debug
(tag: string, message: string, data?: Record<string, unknown>)
open-sse/types.d.ts:84
↓ 166 callers
Method
bind
(values: unknown[])
src/types/sqljs.d.ts:3
↓ 162 callers
Method
transformRequest
(_model: string, body: Record<string, unknown>)
tests/unit/field-400-downgrade.test.ts:14
↓ 161 callers
Function
reject
(status: number, code: string, message: string)
src/server/authz/context.ts:42
↓ 159 callers
Function
handleChat
( request: any, clientRawRequest: any = null, preParsedBody: any = null )
src/sse/handlers/chat.ts:209
↓ 150 callers
Method
update
(items: MenuItem[])
bin/cli/tray/tray.ts:21
↓ 140 callers
Method
addEventListener
()
tests/unit/ui/studio-pages.test.tsx:19
↓ 140 callers
Function
seedConnection
(provider, overrides: SeedConnectionOverrides = {})
tests/integration/chat-pipeline.test.ts:379
↓ 136 callers
Method
buildUrl
( _model: string, _stream: boolean, _urlIndex = 0, credentials: ProviderCredentials | null = n
open-sse/executors/glm.ts:208
↓ 135 callers
Function
translateOrFallback
( t: ReturnType<typeof useTranslations>, key: string, fallback: string )
src/app/(dashboard)/dashboard/settings/components/ComboDefaultsTab.tsx:49
↓ 131 callers
Method
abort
(reason?: string)
open-sse/executors/copilot-web.ts:276
↓ 131 callers
Method
random
Get a random profile
open-sse/services/sessionPool/fingerprintRotator.ts:91
↓ 131 callers
Method
set
(key: string, value: T)
src/lib/db/readCache.ts:38
↓ 129 callers
Function
cn
(...classes: ClassValue[])
src/shared/utils/cn.ts:10
↓ 115 callers
Method
exec
(sql: string)
src/lib/db/adapters/types.ts:18
↓ 115 callers
Function
isAuthenticated
(request: Request)
src/shared/utils/apiAuth.ts:285
↓ 114 callers
Function
registerHook
( event: string, pluginName: string, handler: HookHandler, priority: number = 100 )
src/lib/plugins/hooks.ts:91
↓ 112 callers
Function
providerText
( t: ProviderMessageTranslator, key: string, fallback: string, values?: Record<string, unknown> )
src/app/(dashboard)/dashboard/providers/[id]/providerPageHelpers.ts:104
↓ 110 callers
Function
errorResponse
( code: string, message: string, status: number, opts?: { correlationId?: string; details?: Record<str
src/shared/utils/apiResponse.ts:30
↓ 107 callers
Function
seedConnection
(provider: string, overrides: any = {})
tests/unit/sse-auth.test.ts:30
↓ 106 callers
Function
getExecutor
(provider)
open-sse/executors/index.ts:161
↓ 101 callers
Function
isLocalOnlyPath
(path: string, method?: string)
src/server/authz/routeGuard.ts:185
↓ 100 callers
Function
saveCallLog
(entry: any)
src/lib/usage/callLogs.ts:515
↓ 97 callers
Function
checkFallbackError
( status: number, errorText: string | null, backoffLevel: number = 0, _model: string | null = null,
open-sse/services/accountFallback.ts:1276
↓ 96 callers
Function
restore
()
tests/unit/chatgpt-web.test.ts:343
↓ 95 callers
Method
removeEventListener
()
tests/unit/ui/studio-pages.test.tsx:20
↓ 93 callers
Function
POST
(req: NextRequest)
src/app/a2a/route.ts:108
↓ 92 callers
Function
printInfo
(message)
bin/cli/io.mjs:77
↓ 86 callers
Method
evaluate
(ctx: PolicyContext)
src/server/authz/context.ts:35
↓ 84 callers
Method
apply
(body: Record<string, unknown>, options?: CompressionEngineApplyOptions)
open-sse/services/compression/engines/types.ts:56
↓ 81 callers
Function
getSettings
()
src/lib/db/settings.ts:91
↓ 81 callers
Function
tr
(key: string, fallback: string)
src/app/(dashboard)/dashboard/translator/components/advanced/RawJsonPanel.tsx:228
↓ 78 callers
Method
getState
(token: string)
tests/e2e/helpers/mockUpstreamServer.ts:105
↓ 77 callers
Function
backupDbFile
(reason = "auto")
src/lib/db/backup.ts:354
↓ 77 callers
Function
createLog
()
tests/unit/combo-routing-engine.test.ts:38
↓ 76 callers
Function
GET
(request: Request)
src/app/api/v1/route.ts:15
↓ 76 callers
Function
gotoDashboardRoute
( page: Page, url: string, options: GotoDashboardRouteOptions = {} )
tests/e2e/helpers/dashboardAuth.ts:82
↓ 74 callers
Function
getProviderConnections
(filter: JsonRecord = {})
src/lib/db/providers.ts:44
↓ 72 callers
Function
buildRequest
({ url = "http://localhost/v1/chat/completions", body, authKey = null, headers = {}, }: { url?: stri
tests/integration/chat-pipeline.test.ts:74
↓ 70 callers
Function
reset
()
tests/unit/chatgpt-web.test.ts:349
↓ 70 callers
Function
text
(key: string, fallback: string, values?: Record<string, unknown>)
src/app/(dashboard)/dashboard/providers/components/onboarding/ProviderOnboardingWizard.tsx:292
↓ 69 callers
Function
updateProviderConnection
(id: string, data: JsonRecord)
src/lib/db/providers.ts:519
↓ 68 callers
Function
createHash
()
open-sse/lib/deepseek-pow.ts:120
↓ 68 callers
Function
invokeChatCore
({ body, provider = "openai", model = "gpt-4o-mini", endpoint = "/v1/chat/completions", accept = "ap
tests/unit/chatcore-translation-paths.test.ts:301
↓ 68 callers
Method
register
* Register a factory for a service. Does NOT instantiate until resolve().
src/lib/container.ts:39
↓ 67 callers
Method
destroy
()
bin/cli/tray/tray.ts:23
↓ 67 callers
Function
openaiResponsesToOpenAIRequest
( model: unknown, body: unknown, stream: unknown, credentials: unknown )
open-sse/translator/request/openai-responses.ts:80
↓ 67 callers
Function
unmount
()
src/app/(dashboard)/dashboard/endpoint/__tests__/ApiEndpointsTab.test.tsx:89
↓ 66 callers
Function
installMockFetch
Dispatch the TLS-impersonating fetch by URL pathname. * Default: session 200 with accessToken, sentinel 200 no PoW, conv 200 empty stream.
tests/unit/chatgpt-web.test.ts:68
↓ 66 callers
Method
next
Get the next profile in round-robin order
open-sse/services/sessionPool/fingerprintRotator.ts:84
↓ 66 callers
Function
okResponse
(body: any = { choices: [{ message: { content: "ok" } }] })
tests/unit/combo-routing-engine.test.ts:49
next →
1–100 of 20,485, ranked by callers