MCPcopy Index your code

hub / github.com/bytonylee/free-router / functions

Functions315 in github.com/bytonylee/free-router

↓ 146 callersFunctionmakeModel
( id: string, displayName: string, context: number, providerKey: string, )
src/lib/models.ts:130
↓ 35 callersFunctionescapeHtml
(value)
site/scripts/generate-site.mjs:36
↓ 26 callersFunctionw
(s: string)
src/bin/free-router.ts:77
↓ 18 callersFunctionrenderWithAuthority
(reason: string)
src/bin/free-router.ts:862
↓ 16 callersFunctionfooterKey
(key: string, label: string)
src/bin/free-router.ts:575
↓ 16 callersFunctionfullWidthLine
(content: string, lastLine = false)
src/bin/free-router.ts:341
↓ 15 callersFunctiongetApiKey
( config: FrouterConfig, providerKey: string, )
src/lib/config.ts:132
↓ 12 callersFunctionnormalizeModelId
(id: string)
scripts/update-models.ts:192
↓ 10 callersFunctionreadEnv
(name: string, legacyName?: string)
src/lib/utils.ts:15
↓ 9 callersFunctionsaveConfig
(config: FrouterConfig)
src/lib/config.ts:118
↓ 9 callersFunctionvisLen
(s: string)
src/lib/utils.ts:470
↓ 8 callersFunctionnavigate
(target: number)
src/bin/free-router.ts:931
↓ 8 callersFunctionrestartLoop
()
src/bin/free-router.ts:1589
↓ 8 callersFunctionsitemapUrlBuilder
(pathname, context)
site/scripts/lib/url-policy.mjs:87
↓ 7 callersFunctionaddSupportId
( target: ReturnType<typeof emptySupportSets>, provider: ProviderKey, modelId: string, )
scripts/update-models.ts:435
↓ 7 callersFunctiontruncAnsi
(s: string, maxVis: number)
src/bin/free-router.ts:454
↓ 6 callersFunctionapplyFilters
()
src/bin/free-router.ts:877
↓ 6 callersFunctioncols
()
src/bin/free-router.ts:246
↓ 6 callersFunctionfirstString
(...values: unknown[])
scripts/update-models.ts:628
↓ 6 callersFunctionformatValue
(value, fallback = 'Unknown')
site/scripts/generate-site.mjs:45
↓ 6 callersFunctionopenBrowser
(url: string)
src/lib/config.ts:161
↓ 6 callersFunctionrunProviderPing
(pk: string, cfgOverride?: any)
src/tui/settings-app.tsx:70
↓ 5 callersFunctioncleanup
()
src/bin/free-router.ts:1923
↓ 5 callersFunctiondispatch
(ch: string)
src/bin/free-router.ts:1509
↓ 5 callersFunctionensureMetrics
(model: Model)
src/lib/utils.ts:115
↓ 5 callersFunctionescapeMarkdownInline
(value)
site/scripts/generate-site.mjs:335
↓ 5 callersFunctionfetchJson
( hostname: string, path: string, options: { apiKey?: string | null; headers?: Record<string, st
scripts/update-models.ts:115
↓ 5 callersFunctiongetAvg
(model: Model)
src/lib/utils.ts:204
↓ 5 callersFunctiongetUptime
(model: Model)
src/lib/utils.ts:218
↓ 5 callersFunctioniconPath
(theme, file)
site/scripts/generate-site.mjs:164
↓ 5 callersFunctionpositiveInt
(v: unknown)
src/bin/free-router.ts:203
↓ 5 callersFunctionsetIfAbsent
(key: string, value: AAMeta)
scripts/update-models.ts:705
↓ 5 callersFunctionshowNotice
(msg: string, variant: "success" | "error" | "warning" = "success")
src/tui/settings-app.tsx:66
↓ 4 callersFunctionadvanceProvider
(nextApiKeys: Record<string, string>)
src/tui/first-run-app.tsx:101
↓ 4 callersFunctionassertNonEmptyString
(value)
site/scripts/lib/slug-policy.mjs:1
↓ 4 callersFunctioncanonicalPathSerializer
(pathname, basePath = '/')
site/scripts/lib/url-policy.mjs:22
↓ 4 callersFunctionclearCompletionTimer
()
src/tui/first-run-app.tsx:51
↓ 4 callersFunctionfinish
(answer: boolean, echo = "")
src/bin/free-router.ts:1698
↓ 4 callersFunctionhasBinary
(bin: string)
src/lib/targets.ts:100
↓ 4 callersFunctionnormalizeSlugSegment
(value)
site/scripts/lib/slug-policy.mjs:9
↓ 4 callersFunctionopenApiKeyEditorFromMain
(providerKey?: string)
src/bin/free-router.ts:1184
↓ 4 callersFunctionparseNumberOrNull
(value: unknown)
scripts/update-models.ts:278
↓ 4 callersFunctionrender
()
src/bin/free-router.ts:827
↓ 4 callersFunctionrestoreAfterInkSubApp
(returnScreen = "main")
src/bin/free-router.ts:1625
↓ 3 callersFunctioncmpAvg
(a: Model, b: Model)
src/lib/utils.ts:357
↓ 3 callersFunctionderiveTier
(meta: AAMeta | null, fallbackSwe: string | null)
scripts/update-models.ts:293
↓ 3 callersFunctionemptySupportSets
()
scripts/update-models.ts:413
↓ 3 callersFunctionfinalizeOnce
( nextApiKeys: Record<string, string>, startupSearchRequested: boolean, )
src/tui/first-run-app.tsx:60
↓ 3 callersFunctionfindAAMeta
( modelId: string, modelName: string, aaLookup: Map<string, AAMeta>, )
scripts/update-models.ts:743
↓ 3 callersFunctionfullWidthBar
(content: string, style = INVERT, lastLine = false)
src/bin/free-router.ts:337
↓ 3 callersFunctiongetVerdict
(model: Model)
src/lib/utils.ts:233
↓ 3 callersFunctionisOpenCodeSupported
( provider: ProviderKey, modelId: string, support: ReturnType<typeof emptySupportSets>, )
scripts/update-models.ts:533
↓ 3 callersFunctionisProviderKeyRejected
(providerKey: string)
src/bin/free-router.ts:509
↓ 3 callersFunctionisReachablePing
(ping: PingEntry)
src/lib/utils.ts:85
↓ 3 callersFunctionloadApiKey
(provider: string)
scripts/update-models.ts:163
↓ 3 callersFunctionmaybeAutoOpenSignup
(pk: string, cfgOverride?: any)
src/tui/settings-app.tsx:85
↓ 3 callersFunctionping
( apiKey: string | null | undefined, modelId: string, chatUrl: string, options: PingOptions = {}, )
src/lib/ping.ts:110
↓ 3 callersFunctionrecomputeMetricsFromPings
(pings: PingEntry[])
src/lib/utils.ts:89
↓ 3 callersFunctionrenderModels
()
site/src/main.ts:154
↓ 3 callersFunctionresetSearchState
()
src/bin/free-router.ts:940
↓ 3 callersFunctionsettle
(code: string, detail?: string)
src/lib/ping.ts:144
↓ 3 callersFunctionstopPingLoop
( ref: { running: boolean; timer: NodeJS.Timeout | null } | null | undefined, )
src/lib/ping.ts:297
↓ 3 callersFunctionstripFreeSuffix
(id: string)
scripts/update-models.ts:188
↓ 3 callersFunctiontRows
()
src/bin/free-router.ts:251
↓ 3 callersFunctionupdateDial
(el: HTMLElement, targetMs: number)
site/src/main.ts:215
↓ 3 callersFunctionuseMountEffect
(effect: () => void | (() => void))
src/tui/useMountEffect.ts:7
↓ 3 callersFunctionviewport
()
src/bin/free-router.ts:209
↓ 2 callersFunctionapplyLocale
(locale: "en" | "ko")
site/src/main.ts:113
↓ 2 callersFunctionapplyOpenCodeSupportToRankings
( rankings: any, support: ReturnType<typeof emptySupportSets>, )
scripts/update-models.ts:593
↓ 2 callersFunctionbackupAndWriteJson
(path: string, data: Record<string, any>)
src/lib/targets.ts:56
↓ 2 callersFunctionbuildHeadMarkup
({ canonicalUrl, description, jsonLd, robotsContent, title, type, })
site/scripts/generate-site.mjs:133
↓ 2 callersFunctioncmpWithInfinity
Compare two values where Infinity means "no data" and sorts last.
src/lib/utils.ts:306
↓ 2 callersFunctioncreateSlugManifest
(entries)
site/scripts/lib/slug-policy.mjs:31
↓ 2 callersFunctiondestroyAgents
()
src/lib/ping.ts:306
↓ 2 callersFunctionensureTrailingSlash
(pathname)
site/scripts/lib/url-policy.mjs:4
↓ 2 callersFunctionenterSearchMode
()
src/bin/free-router.ts:947
↓ 2 callersFunctionenterTargetPickerFromSelection
()
src/bin/free-router.ts:983
↓ 2 callersFunctionenvSize
(name: string)
src/bin/free-router.ts:198
↓ 2 callersFunctionfetchJsonArray
Fetch JSON from an HTTPS endpoint. Returns parsed data array or fallback on failure.
src/lib/models.ts:835
↓ 2 callersFunctionfindBestModel
(models: Model[])
src/lib/utils.ts:401
↓ 2 callersFunctionfinish
(ok: boolean)
src/tui/update-app.tsx:85
↓ 2 callersFunctionfinish
(val: string)
src/lib/config.ts:185
↓ 2 callersFunctionfmtCtx
(n: number)
src/bin/free-router.ts:316
↓ 2 callersFunctionfmtLatency
(ms: number | null)
src/bin/free-router.ts:332
↓ 2 callersFunctionfmtMs
(ms: number | null)
src/bin/free-router.ts:322
↓ 2 callersFunctionformatContext
(context: number | null | undefined)
scripts/update-models.ts:233
↓ 2 callersFunctiongenerateSite
({ writeManifest = false } = {})
site/scripts/generate-site.mjs:469
↓ 2 callersFunctiongetAllModels
(config: FrouterConfig)
src/lib/models.ts:955
↓ 2 callersFunctiongetBaseUrl
(meta: { chatUrl: string })
src/lib/targets.ts:159
↓ 2 callersFunctiongetProviderMeta
(providerKey: string)
src/lib/targets.ts:77
↓ 2 callersFunctiongetRankingsBySource
(source: string)
src/lib/models.ts:71
↓ 2 callersFunctionhasSupportData
(support: ReturnType<typeof emptySupportSets>)
scripts/update-models.ts:529
↓ 2 callersFunctionisFiniteMs
(value: unknown)
src/lib/utils.ts:81
↓ 2 callersFunctionisOpenCodeInstalled
()
src/lib/targets.ts:115
↓ 2 callersFunctionloadConfig
()
src/lib/config.ts:102
↓ 2 callersFunctionloadRankings
()
src/lib/models.ts:30
↓ 2 callersFunctionlooksLikeModelId
(value: string)
scripts/update-models.ts:428
↓ 2 callersFunctionmainChromeRows
()
src/bin/free-router.ts:250
↓ 2 callersFunctionmaxCursorIndex
()
src/bin/free-router.ts:905
↓ 2 callersFunctionmaybeAutoOpenSettingsSignup
(providerKey: string)
src/bin/free-router.ts:1202
next →1–100 of 315, ranked by callers