$ show Joyi-code/DeepSeekMonitorWindows
DeepSeek Monitor Windows is a Tauri 2 desktop application for monitoring DeepSeek API usage on Windows. It provides a React/TypeScript frontend with a Rust backend, offering dashboard views for account balance, monthly spending, per-model token usage (V4 Flash and Pro), and a 7-day consumption trend chart. The application stores API keys and usage tokens in a local config file and supports automatic refresh via system tray integration. It is a self-contained monolith that communicates with DeepSeek's official balance endpoint and internal platform usage API through the Rust backend. The frontend manages state via React hooks and uses lucide-react for icons. The architecture is clean with clear separation between IPC commands (in lib.rs) and UI components (in main.tsx). No data science or research components are present.
The LLM identified 1 files worth highlighting for reuse:
The usage token capture module (functions start_usage_sync, capture_usage_token, find_webview_cached_usage_token, and the JS injection constant USAGE_SYNC_POLL_JS) demonstrates a sophisticated pattern for programmatically extracting bearer tokens from a WebView2-based login flow. It injects JavaScript to hook fetch and XMLHttpRequest, monitors document.title for token delivery, and falls back to scanning the WebView2 cache. This pattern is self-contained, could be extracted into its own crate or library for any application needing to capture auth tokens from embedded web views, and is not dependent on the rest of the repository's business logic.