Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/junhoyeo/tokscale
/ functions
Functions
4,973 in github.com/junhoyeo/tokscale
⨍
Functions
4,973
◇
Types & classes
735
↓ 1 callers
Function
fetch_api
(client: &reqwest::Client, key: &str)
crates/tokscale-cli/src/commands/usage/minimax.rs:120
↓ 1 callers
Function
fetch_author_pricing
( client: Arc<reqwest::Client>, model_id: String, semaphore: Arc<Semaphore>, fallback_pricing:
crates/tokscale-core/src/pricing/openrouter.rs:102
↓ 1 callers
Function
fetch_billing_grpc
(client: &reqwest::Client, token: &str)
crates/tokscale-cli/src/commands/usage/grok.rs:124
↓ 1 callers
Function
fetch_billing_html
(client: &reqwest::Client, cookie: &str)
crates/tokscale-cli/src/commands/usage/sakana.rs:482
↓ 1 callers
Function
fetch_cursor_usage_csv
(session_token: &str)
crates/tokscale-cli/src/cursor.rs:860
↓ 1 callers
Function
fetch_historical_session_artifact
( session_id: &str, connections: &[AntigravityConnection], candidate: &SessionCandidate, )
crates/tokscale-cli/src/antigravity.rs:1665
↓ 1 callers
Function
fetch_network_usage
(credentials: &Credentials)
crates/tokscale-cli/src/commands/usage/grok.rs:573
↓ 1 callers
Function
fetch_provider_report
( provider: &'static str, result: Result<Vec<UsageOutput>>, )
crates/tokscale-cli/src/commands/usage/mod.rs:442
↓ 1 callers
Function
fetch_quota
(client: &reqwest::Client, key: &str)
crates/tokscale-cli/src/commands/usage/zai.rs:43
↓ 1 callers
Function
fetch_remote_stats
(token: &str, username: &str, api_base_url: &str)
crates/tokscale-cli/src/tui/remote.rs:91
↓ 1 callers
Function
fetch_reset_credits
( client: &reqwest::Client, token: &str, account_id: Option<&str>, )
crates/tokscale-cli/src/commands/usage/codex.rs:1031
↓ 1 callers
Function
fetch_saved_account
(name_or_id: Option<&str>)
crates/tokscale-cli/src/commands/usage/codex.rs:1557
↓ 1 callers
Function
fetch_site
(client: &reqwest::Client, site: &Site, key: &str)
crates/tokscale-cli/src/commands/usage/minimax_tokenplan.rs:126
↓ 1 callers
Function
fetch_sub
(client: &reqwest::Client, key: &str)
crates/tokscale-cli/src/commands/usage/zai.rs:56
↓ 1 callers
Function
fetch_subscriptions
(client: &reqwest::Client, token: &str)
crates/tokscale-cli/src/commands/usage/grok.rs:97
↓ 1 callers
Function
fetch_svg_and_convert_to_png
( client: &reqwest::Client, svg_url: &str, filename: &str, size: i32, )
crates/tokscale-cli/src/commands/wrapped.rs:1171
↓ 1 callers
Function
fetch_task_usage
(client: &reqwest::Client, token: &str)
crates/tokscale-cli/src/commands/usage/grok.rs:112
↓ 1 callers
Function
fetch_usage_pages
Paginated call to the usage API; returns the raw JSON session list.
crates/tokscale-cli/src/trae.rs:1057
↓ 1 callers
Function
fetch_warp_usage
(credentials: &WarpCredentials)
crates/tokscale-cli/src/warp.rs:306
↓ 1 callers
Function
fetch_with_auth_async
( auth: Auth, source: CredentialSource, provider_name: String, account: Option<UsageAccount>,
crates/tokscale-cli/src/commands/usage/codex.rs:1179
↓ 1 callers
Function
file_ends_with_newline
(path: &Path, size: u64)
crates/tokscale-core/src/message_cache.rs:730
↓ 1 callers
Function
file_modified_ms
(path: &Path)
crates/tokscale-core/src/sessions/antigravity_cli.rs:215
↓ 1 callers
Function
file_uri_to_path
Convert a `file://` URI to a filesystem path, percent-decoding UTF-8 escapes (workspace paths on cloud drives can be percent-encoded CJK). After the s
crates/tokscale-core/src/sessions/antigravity_cli.rs:230
↓ 1 callers
Function
filterByClient
(data: TokenContributionData, clients: ClientType[])
packages/frontend/src/lib/utils.ts:77
↓ 1 callers
Function
filterByYear
(contributions: DailyContribution[], year: string)
packages/frontend/src/lib/utils.ts:93
↓ 1 callers
Function
filter_litellm
Mirror of `PricingService::filter_litellm_data`: github_copilot/ entries use subscription pricing ($0.00) and are excluded from lookups.
crates/tokscale-core/tests/anthropic_catalog.rs:134
↓ 1 callers
Function
filter_parsed_messages
( messages: Vec<ParsedMessage>, options: &LocalParseOptions, )
crates/tokscale-core/src/lib.rs:3146
↓ 1 callers
Function
filter_unified_messages
( messages: Vec<UnifiedMessage>, options: &LocalParseOptions, )
crates/tokscale-core/src/lib.rs:1742
↓ 1 callers
Function
findAssociatedPR
(commitHash: string)
scripts/generate-release-notes.ts:104
↓ 1 callers
Function
find_account
(name_or_id: &str)
crates/tokscale-cli/src/cursor.rs:429
↓ 1 callers
Function
find_listening_ports
(pid: u32)
crates/tokscale-cli/src/antigravity.rs:989
↓ 1 callers
Function
find_matching_ledger_record
( ledger_records: &[AmpUsageRecord], consumed: &[bool], search_start: usize, message_record: &
crates/tokscale-core/src/sessions/amp.rs:216
↓ 1 callers
Function
find_next_renewal
Next renewal: `Next renewal:?\s*([A-Z][a-z]+ \d{1,2}, \d{4})`.
crates/tokscale-cli/src/commands/usage/sakana.rs:355
↓ 1 callers
Function
find_parent_session_path
Locate the parent main-session JSONL for a sidechain transcript. Nested layout: `.../projects/<key>/<session>/subagents/agent-X.jsonl` → parent at `.
crates/tokscale-core/src/sessions/claudecode.rs:137
↓ 1 callers
Function
find_peak_hour
Find peak hour across all hourly data
crates/tokscale-cli/src/tui/data/mod.rs:1231
↓ 1 callers
Function
find_plan
Determine the active plan tier. The active tier is the (Standard|Pro|Max) token NEAREST-PRECEDING the `$NN/mo` price match — the upgrade buttons also
crates/tokscale-cli/src/commands/usage/sakana.rs:165
↓ 1 callers
Function
find_reset_times
Collect reset times matching `Resets on\s+([A-Z][a-z]+ \d{1,2}, \d{4} at \d{1,2}:\d{2} [AP]M)` in order.
crates/tokscale-cli/src/commands/usage/sakana.rs:312
↓ 1 callers
Function
find_string_by_key
(value: &Value, key: &str)
crates/tokscale-cli/src/warp.rs:540
↓ 1 callers
Function
find_summary_for_candidate
( summaries: &'a [TrajectorySummary], session_id: &str, )
crates/tokscale-cli/src/antigravity.rs:1656
↓ 1 callers
Function
find_unix_listening_ports
(pid: u32)
crates/tokscale-cli/src/antigravity.rs:1002
↓ 1 callers
Function
find_windows_listening_ports
(pid: u32)
crates/tokscale-cli/src/antigravity.rs:1020
↓ 1 callers
Function
first_account_id
(store: &CodexCredentialsStore)
crates/tokscale-cli/src/commands/usage/codex.rs:709
↓ 1 callers
Function
first_i32
(values: &[Option<&Value>])
crates/tokscale-cli/src/antigravity.rs:2228
↓ 1 callers
Function
first_ordered_path_index
(order: &str, path_count: usize)
crates/tokscale-core/src/sessions/zed.rs:340
↓ 1 callers
Function
first_string
(values: &[Option<&Value>])
crates/tokscale-cli/src/antigravity.rs:2219
↓ 1 callers
Function
fitValueFontSize
* Auto-scale font size so rendered text fits within maxWidth. * Uses a conservative character-width estimate to prevent overflow.
packages/frontend/src/lib/embed/renderProfileEmbedSvg.ts:46
↓ 1 callers
Function
flattenedTerms
(condition: unknown)
packages/frontend/__tests__/api/deviceAuthorize.test.ts:111
↓ 1 callers
Function
float_field
(value: &Value, field: &str)
crates/tokscale-core/src/sessions/junie.rs:263
↓ 1 callers
Function
forked_child_should_skip_inherited_snapshot
( state: &CodexParseState, total_usage: Option<&CodexTokenUsage>, totals: Option<CodexTotals>, )
crates/tokscale-core/src/sessions/codex.rs:933
↓ 1 callers
Function
forked_child_turn_starts_own_session
(state: &CodexParseState, turn_id: Option<&str>)
crates/tokscale-core/src/sessions/codex.rs:714
↓ 1 callers
Function
forked_from_id_from_source
(source: Option<&Value>)
crates/tokscale-core/src/sessions/codex.rs:705
↓ 1 callers
Function
formatCompactCurrency
(n: number)
packages/frontend/src/components/landing/sections/WorldwideSection.tsx:25
↓ 1 callers
Function
formatCompactNumber
(n: number)
packages/frontend/src/components/landing/sections/WorldwideSection.tsx:16
↓ 1 callers
Function
formatContributionDateFull
(contrib: { date: string; timestampMs?: number | null })
packages/frontend/src/lib/date-utils.ts:28
↓ 1 callers
Function
formatDateFromString
(dateStr: string)
packages/frontend/src/lib/date-utils.ts:3
↓ 1 callers
Function
formatDateFullFromString
(dateStr: string)
packages/frontend/src/lib/date-utils.ts:8
↓ 1 callers
Function
formatDateLabel
(value: string | null)
packages/frontend/src/lib/embed/renderIsometric3DSvg.ts:137
↓ 1 callers
Function
formatMetricValue
(data: UserEmbedStats, metric: BadgeMetric, compact: boolean)
packages/frontend/src/lib/embed/renderProfileBadgeSvg.ts:78
↓ 1 callers
Function
formatRole
(role: InvitePreview["role"])
packages/frontend/src/app/(main)/groups/join/[token]/JoinGroupClient.tsx:87
↓ 1 callers
Function
formatTokenBreakdown
(tokens: TokenBreakdown)
packages/frontend/src/lib/validation/submission.ts:245
↓ 1 callers
Function
format_cost
(cost: f64)
crates/tokscale-cli/src/commands/wrapped.rs:1407
↓ 1 callers
Function
format_credit_expiry_label
(value: &str)
crates/tokscale-cli/src/tui/ui/usage.rs:1511
↓ 1 callers
Function
format_expiry_time
(value: &str)
crates/tokscale-cli/src/tui/ui/usage.rs:2458
↓ 1 callers
Function
format_gpt_5_series_model_name
(model: &str, suffix: &str)
crates/tokscale-cli/src/commands/wrapped.rs:1731
↓ 1 callers
Function
format_model_name
(model: &str)
crates/tokscale-cli/src/commands/wrapped.rs:1548
↓ 1 callers
Function
format_selected_reset_schedule_entry
(bucket: &(String, usize))
crates/tokscale-cli/src/tui/ui/usage.rs:1355
↓ 1 callers
Function
format_tokens_compact
(tokens: u64)
crates/tokscale-cli/src/tui/ui/widgets.rs:8
↓ 1 callers
Function
format_tokens_short
(tokens: i64)
crates/tokscale-cli/src/commands/wrapped.rs:1395
↓ 1 callers
Function
format_tokens_with_commas
(n: u64)
crates/tokscale-cli/src/tui/ui/widgets.rs:24
↓ 1 callers
Function
from_hotkey
(key: char)
crates/tokscale-cli/src/tui/client_ui.rs:167
↓ 1 callers
Function
gemini_session_id_for_file
Returns the canonical Gemini `session_id` for a transcript on disk, matching how [`parse_gemini_file`] populates wiki entries: for chat recordings and
crates/tokscale-core/src/sessions/gemini.rs:112
↓ 1 callers
Function
generateApiToken
()
packages/frontend/src/lib/auth/utils.ts:32
↓ 1 callers
Function
generateClaudeData
(config: GeneratorConfig)
packages/benchmarks/generate.ts:251
↓ 1 callers
Function
generateCodexData
(config: GeneratorConfig)
packages/benchmarks/generate.ts:336
↓ 1 callers
Function
generateDeviceCode
()
packages/frontend/src/lib/auth/utils.ts:46
↓ 1 callers
Function
generateGeminiData
(config: GeneratorConfig)
packages/benchmarks/generate.ts:435
↓ 1 callers
Function
generateOpenCodeData
(config: GeneratorConfig)
packages/benchmarks/generate.ts:172
↓ 1 callers
Function
generateReleaseNotes
(version: string)
scripts/generate-release-notes.ts:166
↓ 1 callers
Function
generateUserCode
()
packages/frontend/src/lib/auth/utils.ts:14
↓ 1 callers
Function
generate_local_graph_report
(options: ReportOptions)
crates/tokscale-core/src/lib.rs:2263
↓ 1 callers
Function
generate_wrapped
(options: WrappedOptions)
crates/tokscale-cli/src/commands/wrapped.rs:105
↓ 1 callers
Function
generate_wrapped_image
(data: &WrappedData, options: &RenderOptions)
crates/tokscale-cli/src/commands/wrapped.rs:412
↓ 1 callers
Function
get
(_target, prop)
packages/frontend/src/lib/db/index.ts:68
↓ 1 callers
Function
getAllowedOrigins
()
packages/frontend/src/lib/auth/requestSession.ts:9
↓ 1 callers
Function
getAuthorizationUrl
(state: string)
packages/frontend/src/lib/auth/github.ts:17
↓ 1 callers
Function
getCommitsBetween
(fromTag: string, toRef: string)
scripts/generate-release-notes.ts:71
↓ 1 callers
Function
getConnectionString
()
packages/frontend/src/lib/db/index.ts:4
↓ 1 callers
Function
getGitHubUser
(accessToken: string)
packages/frontend/src/lib/auth/github.ts:60
↓ 1 callers
Function
getGitHubUserEmail
( accessToken: string )
packages/frontend/src/lib/auth/github.ts:78
↓ 1 callers
Function
getGroupInvitePreview
(token: string)
packages/frontend/src/lib/groups/invites.ts:82
↓ 1 callers
Function
getPeriodDateRange
(period: Period, now: Date = new Date())
packages/frontend/src/lib/groups/getGroupLeaderboard.ts:64
↓ 1 callers
Function
getPeriodDateRange
( period: Period, now: Date = new Date(), customFrom?: string, customTo?: string )
packages/frontend/src/lib/leaderboard/getLeaderboard.ts:68
↓ 1 callers
Function
getPreviousTag
()
scripts/generate-release-notes.ts:62
↓ 1 callers
Function
getProfileData
(username: string, period: ProfilePeriod)
packages/frontend/src/app/u/[username]/page.tsx:26
↓ 1 callers
Function
getProfileDevices
(username: string)
packages/frontend/src/app/u/[username]/page.tsx:46
↓ 1 callers
Function
getProfilePeriodDateRange
( period: ProfilePeriod, now: Date = new Date() )
packages/frontend/src/app/api/users/[username]/route.ts:35
↓ 1 callers
Function
getStargazersCount
( repo: string = 'junhoyeo/tokscale' )
packages/frontend/src/lib/github.ts:3
↓ 1 callers
Function
getSubmitDevice
(data: SubmissionData)
packages/frontend/src/app/api/submit/route.ts:62
↓ 1 callers
Function
getTagDate
(tag: string)
scripts/generate-release-notes.ts:67
↓ 1 callers
Function
getUniqueTokenName
(baseName: string, existingNames: Iterable<string>)
packages/frontend/src/lib/auth/personalTokens.ts:47
← previous
next →
1,601–1,700 of 4,973, ranked by callers