Skip to main content

Module api

Module api 

Source
Expand description

API client utilities and shared types for frontend

Structs§

DailyActivityEntry
ModelUsage
MostUsedModel
ProjectCost
RecentSessionsResponse
Recent sessions response from API
SessionData
Session data structure (complete version)
StatsData
Stats data structure matching backend API response

Functions§

fetch_recent_sessions
Fetch recent sessions from API (for dashboard)
fetch_stats
Fetch stats from API
format_cost
Format cost as USD
format_number
Format large numbers (K, M, B)