Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/bytonylee/free-router
/ functions
Functions
315 in github.com/bytonylee/free-router
⨍
Functions
315
◇
Types & classes
1
↓ 146 callers
Function
makeModel
( id: string, displayName: string, context: number, providerKey: string, )
src/lib/models.ts:130
↓ 35 callers
Function
escapeHtml
(value)
site/scripts/generate-site.mjs:36
↓ 26 callers
Function
w
(s: string)
src/bin/free-router.ts:77
↓ 18 callers
Function
renderWithAuthority
(reason: string)
src/bin/free-router.ts:862
↓ 16 callers
Function
footerKey
(key: string, label: string)
src/bin/free-router.ts:575
↓ 16 callers
Function
fullWidthLine
(content: string, lastLine = false)
src/bin/free-router.ts:341
↓ 15 callers
Function
getApiKey
( config: FrouterConfig, providerKey: string, )
src/lib/config.ts:132
↓ 12 callers
Function
normalizeModelId
(id: string)
scripts/update-models.ts:192
↓ 10 callers
Function
readEnv
(name: string, legacyName?: string)
src/lib/utils.ts:15
↓ 9 callers
Function
saveConfig
(config: FrouterConfig)
src/lib/config.ts:118
↓ 9 callers
Function
visLen
(s: string)
src/lib/utils.ts:470
↓ 8 callers
Function
navigate
(target: number)
src/bin/free-router.ts:931
↓ 8 callers
Function
restartLoop
()
src/bin/free-router.ts:1589
↓ 8 callers
Function
sitemapUrlBuilder
(pathname, context)
site/scripts/lib/url-policy.mjs:87
↓ 7 callers
Function
addSupportId
( target: ReturnType<typeof emptySupportSets>, provider: ProviderKey, modelId: string, )
scripts/update-models.ts:435
↓ 7 callers
Function
truncAnsi
(s: string, maxVis: number)
src/bin/free-router.ts:454
↓ 6 callers
Function
applyFilters
()
src/bin/free-router.ts:877
↓ 6 callers
Function
cols
()
src/bin/free-router.ts:246
↓ 6 callers
Function
firstString
(...values: unknown[])
scripts/update-models.ts:628
↓ 6 callers
Function
formatValue
(value, fallback = 'Unknown')
site/scripts/generate-site.mjs:45
↓ 6 callers
Function
openBrowser
(url: string)
src/lib/config.ts:161
↓ 6 callers
Function
runProviderPing
(pk: string, cfgOverride?: any)
src/tui/settings-app.tsx:70
↓ 5 callers
Function
cleanup
()
src/bin/free-router.ts:1923
↓ 5 callers
Function
dispatch
(ch: string)
src/bin/free-router.ts:1509
↓ 5 callers
Function
ensureMetrics
(model: Model)
src/lib/utils.ts:115
↓ 5 callers
Function
escapeMarkdownInline
(value)
site/scripts/generate-site.mjs:335
↓ 5 callers
Function
fetchJson
( hostname: string, path: string, options: { apiKey?: string | null; headers?: Record<string, st
scripts/update-models.ts:115
↓ 5 callers
Function
getAvg
(model: Model)
src/lib/utils.ts:204
↓ 5 callers
Function
getUptime
(model: Model)
src/lib/utils.ts:218
↓ 5 callers
Function
iconPath
(theme, file)
site/scripts/generate-site.mjs:164
↓ 5 callers
Function
positiveInt
(v: unknown)
src/bin/free-router.ts:203
↓ 5 callers
Function
setIfAbsent
(key: string, value: AAMeta)
scripts/update-models.ts:705
↓ 5 callers
Function
showNotice
(msg: string, variant: "success" | "error" | "warning" = "success")
src/tui/settings-app.tsx:66
↓ 4 callers
Function
advanceProvider
(nextApiKeys: Record<string, string>)
src/tui/first-run-app.tsx:101
↓ 4 callers
Function
assertNonEmptyString
(value)
site/scripts/lib/slug-policy.mjs:1
↓ 4 callers
Function
canonicalPathSerializer
(pathname, basePath = '/')
site/scripts/lib/url-policy.mjs:22
↓ 4 callers
Function
clearCompletionTimer
()
src/tui/first-run-app.tsx:51
↓ 4 callers
Function
finish
(answer: boolean, echo = "")
src/bin/free-router.ts:1698
↓ 4 callers
Function
hasBinary
(bin: string)
src/lib/targets.ts:100
↓ 4 callers
Function
normalizeSlugSegment
(value)
site/scripts/lib/slug-policy.mjs:9
↓ 4 callers
Function
openApiKeyEditorFromMain
(providerKey?: string)
src/bin/free-router.ts:1184
↓ 4 callers
Function
parseNumberOrNull
(value: unknown)
scripts/update-models.ts:278
↓ 4 callers
Function
render
()
src/bin/free-router.ts:827
↓ 4 callers
Function
restoreAfterInkSubApp
(returnScreen = "main")
src/bin/free-router.ts:1625
↓ 3 callers
Function
cmpAvg
(a: Model, b: Model)
src/lib/utils.ts:357
↓ 3 callers
Function
deriveTier
(meta: AAMeta | null, fallbackSwe: string | null)
scripts/update-models.ts:293
↓ 3 callers
Function
emptySupportSets
()
scripts/update-models.ts:413
↓ 3 callers
Function
finalizeOnce
( nextApiKeys: Record<string, string>, startupSearchRequested: boolean, )
src/tui/first-run-app.tsx:60
↓ 3 callers
Function
findAAMeta
( modelId: string, modelName: string, aaLookup: Map<string, AAMeta>, )
scripts/update-models.ts:743
↓ 3 callers
Function
fullWidthBar
(content: string, style = INVERT, lastLine = false)
src/bin/free-router.ts:337
↓ 3 callers
Function
getVerdict
(model: Model)
src/lib/utils.ts:233
↓ 3 callers
Function
isOpenCodeSupported
( provider: ProviderKey, modelId: string, support: ReturnType<typeof emptySupportSets>, )
scripts/update-models.ts:533
↓ 3 callers
Function
isProviderKeyRejected
(providerKey: string)
src/bin/free-router.ts:509
↓ 3 callers
Function
isReachablePing
(ping: PingEntry)
src/lib/utils.ts:85
↓ 3 callers
Function
loadApiKey
(provider: string)
scripts/update-models.ts:163
↓ 3 callers
Function
maybeAutoOpenSignup
(pk: string, cfgOverride?: any)
src/tui/settings-app.tsx:85
↓ 3 callers
Function
ping
( apiKey: string | null | undefined, modelId: string, chatUrl: string, options: PingOptions = {}, )
src/lib/ping.ts:110
↓ 3 callers
Function
recomputeMetricsFromPings
(pings: PingEntry[])
src/lib/utils.ts:89
↓ 3 callers
Function
renderModels
()
site/src/main.ts:154
↓ 3 callers
Function
resetSearchState
()
src/bin/free-router.ts:940
↓ 3 callers
Function
settle
(code: string, detail?: string)
src/lib/ping.ts:144
↓ 3 callers
Function
stopPingLoop
( ref: { running: boolean; timer: NodeJS.Timeout | null } | null | undefined, )
src/lib/ping.ts:297
↓ 3 callers
Function
stripFreeSuffix
(id: string)
scripts/update-models.ts:188
↓ 3 callers
Function
tRows
()
src/bin/free-router.ts:251
↓ 3 callers
Function
updateDial
(el: HTMLElement, targetMs: number)
site/src/main.ts:215
↓ 3 callers
Function
useMountEffect
(effect: () => void | (() => void))
src/tui/useMountEffect.ts:7
↓ 3 callers
Function
viewport
()
src/bin/free-router.ts:209
↓ 2 callers
Function
applyLocale
(locale: "en" | "ko")
site/src/main.ts:113
↓ 2 callers
Function
applyOpenCodeSupportToRankings
( rankings: any, support: ReturnType<typeof emptySupportSets>, )
scripts/update-models.ts:593
↓ 2 callers
Function
backupAndWriteJson
(path: string, data: Record<string, any>)
src/lib/targets.ts:56
↓ 2 callers
Function
buildHeadMarkup
({ canonicalUrl, description, jsonLd, robotsContent, title, type, })
site/scripts/generate-site.mjs:133
↓ 2 callers
Function
cmpWithInfinity
Compare two values where Infinity means "no data" and sorts last.
src/lib/utils.ts:306
↓ 2 callers
Function
createSlugManifest
(entries)
site/scripts/lib/slug-policy.mjs:31
↓ 2 callers
Function
destroyAgents
()
src/lib/ping.ts:306
↓ 2 callers
Function
ensureTrailingSlash
(pathname)
site/scripts/lib/url-policy.mjs:4
↓ 2 callers
Function
enterSearchMode
()
src/bin/free-router.ts:947
↓ 2 callers
Function
enterTargetPickerFromSelection
()
src/bin/free-router.ts:983
↓ 2 callers
Function
envSize
(name: string)
src/bin/free-router.ts:198
↓ 2 callers
Function
fetchJsonArray
Fetch JSON from an HTTPS endpoint. Returns parsed data array or fallback on failure.
src/lib/models.ts:835
↓ 2 callers
Function
findBestModel
(models: Model[])
src/lib/utils.ts:401
↓ 2 callers
Function
finish
(ok: boolean)
src/tui/update-app.tsx:85
↓ 2 callers
Function
finish
(val: string)
src/lib/config.ts:185
↓ 2 callers
Function
fmtCtx
(n: number)
src/bin/free-router.ts:316
↓ 2 callers
Function
fmtLatency
(ms: number | null)
src/bin/free-router.ts:332
↓ 2 callers
Function
fmtMs
(ms: number | null)
src/bin/free-router.ts:322
↓ 2 callers
Function
formatContext
(context: number | null | undefined)
scripts/update-models.ts:233
↓ 2 callers
Function
generateSite
({ writeManifest = false } = {})
site/scripts/generate-site.mjs:469
↓ 2 callers
Function
getAllModels
(config: FrouterConfig)
src/lib/models.ts:955
↓ 2 callers
Function
getBaseUrl
(meta: { chatUrl: string })
src/lib/targets.ts:159
↓ 2 callers
Function
getProviderMeta
(providerKey: string)
src/lib/targets.ts:77
↓ 2 callers
Function
getRankingsBySource
(source: string)
src/lib/models.ts:71
↓ 2 callers
Function
hasSupportData
(support: ReturnType<typeof emptySupportSets>)
scripts/update-models.ts:529
↓ 2 callers
Function
isFiniteMs
(value: unknown)
src/lib/utils.ts:81
↓ 2 callers
Function
isOpenCodeInstalled
()
src/lib/targets.ts:115
↓ 2 callers
Function
loadConfig
()
src/lib/config.ts:102
↓ 2 callers
Function
loadRankings
()
src/lib/models.ts:30
↓ 2 callers
Function
looksLikeModelId
(value: string)
scripts/update-models.ts:428
↓ 2 callers
Function
mainChromeRows
()
src/bin/free-router.ts:250
↓ 2 callers
Function
maxCursorIndex
()
src/bin/free-router.ts:905
↓ 2 callers
Function
maybeAutoOpenSettingsSignup
(providerKey: string)
src/bin/free-router.ts:1202
next →
1–100 of 315, ranked by callers