victorGPT / vibeusage
View on GitHubAI Architecture Analysis
This repository is indexed by RepoMind. By analyzing victorGPT/vibeusage in our AI interface, you can instantly generate complete architecture diagrams, visualize control flows, and perform automated security audits across the entire codebase.
Our Agentic Context Augmented Generation (Agentic CAG) engine loads full source files into context on-demand, avoiding the fragmentation of traditional RAG systems. Ask questions about the architecture, dependencies, or specific features to see it in action.
Repository Overview (README excerpt)
Crawler viewπ’ VIBEUSAGE **QUANTIFY YOUR AI OUTPUT** _Track AI Token Usage Across All Your CLI Tools_ **www.vibeusage.cc** **English** β’ **δΈζθ―΄ζ** **Documentation** β’ **Dashboard** β’ **Backend API** --- π Quick Start Get started in 30 seconds: That's it! Your AI token usage will now automatically sync to the Dashboard π β¨ Why VibeUsage? β’ π‘ **Multi-Source Unified Tracking** - Support for Codex CLI, Every Code, Gemini CLI, Claude Code, Opencode, OpenClaw, and more β’ π€ **Multi-Model Statistics** - Unified tracking for GPT-4, Claude, Gemini, o1, and all AI models β’ π **Project AI Footprint** - Track and publicly display token usage per repository, proving AI-assisted development β’ π **Global Leaderboard** - Weekly/monthly/all-time rankings, grow with the global developer community β’ π **Public Profiles** - Share your AI usage journey, optionally participate in leaderboards β’ π **Privacy-First** - Only track numbers, never upload your code or conversations β’ β‘ **Zero-Config Auto-Sync** - Set up once, sync forever β’ π¨ **Matrix-A Design** - Cyberpunk-style high-fidelity dashboard β’ π **Deep Analytics** - Cost insights, trend forecasting, activity heatmaps π§° Supported AI CLIs | CLI Tool | Auto-Detection | Status | |----------|----------------|--------| | **Codex CLI** | β | Full Support | | **Every Code** | β | Full Support | | **Gemini CLI** | β | Full Support | | **Claude Code** | β | Full Support | | **Opencode** | β | Full Support | | **OpenClaw** | β | Full Support | Whether you're using GPT-4, Claude 3.5 Sonnet, o1, or Gemini - all token consumption is unified and tracked. π Overview **VibeUsage** is an intelligent token usage tracking system designed for macOS developers. Through the all-new **Matrix-A Design System**, it provides a high-fidelity cyberpunk-style dashboard that transforms your **AI Output** into quantifiable metrics, supported by the **Neural Divergence Map** for real-time monitoring of multi-model compute distribution. > [!TIP] > **Core Index**: Our signature metric that reflects your flow state by analyzing token consumption rates and patterns. π Dashboard Features π¨ Matrix-A Design System High-performance dashboard built with React + Vite, featuring our cyberpunk-inspired design language with: β’ **Neural Divergence Map**: Visualize multi-engine load balancing and compute distribution β’ **Cost Intelligence**: Real-time, multi-dimensional cost breakdown and forecasting β’ **Activity Heatmap**: GitHub-style contribution graph with streak tracking β’ **Smart Notifications**: Non-intrusive system-level alerts with Golden visual style π Analytics & Insights β’ **AI Analytics**: Deep analysis of Input/Output tokens with dedicated tracking for Cached and Reasoning components β’ **Model Breakdown**: Per-model usage statistics and cost analysis β’ **Project Stats**: Track token usage by GitHub repository β’ **Trend Forecasting**: Predict future usage patterns π Community Features β’ **Global Leaderboard**: Daily, weekly, monthly, and all-time rankings with privacy-safe display names β’ **Public Profiles**: Share your AI usage journey with a privacy-safe public profile β’ **Leaderboard Categories**: Compete in overall rankings or by specific models (GPT, Claude, etc.) π Privacy Guarantee We believe your code and thoughts are your own. VibeUsage is built with strict privacy pillars to ensure your data never leaves your control. | Protection | Description | |------------|-------------| | π‘οΈ **No Content Upload** | Never upload prompts or responses - only compute token counts locally | | π‘ **Local Aggregation** | All analysis happens on your machine - only send 30-minute usage buckets | | π **Hashed Identity** | Device tokens are SHA-256 hashed server-side - raw credentials never stored | | π¦ **Full Transparency** | Audit the sync logic yourself in - literally only numbers and timestamps | π¦ Installation Standard Setup Initialize your environment once - VibeUsage handles all synchronization automatically in the background: Authentication Methods β’ **Browser Auth** (default) - Opens browser for secure authentication β’ **Link Code** - Use to authenticate via dashboard-generated code β’ **Password** - Direct password authentication (fallback) β’ **Access Token** - For CI/automated environments CLI Options Auto-Configuration Once completes, all supported CLI tools are automatically configured for data sync: | Tool | Config Location | Method | |------|----------------|--------| | **Codex CLI** | | hook | | **Every Code** | (or ) | hook | | **Gemini CLI** | (or ) | hook | | **Opencode** | Global plugins | Message parser plugin | | **Claude Code** | | Hook configuration | | **OpenClaw** | Auto-links when installed | Session plugin (requires restart) | No further intervention required! π π‘ Usage Manual Sync While sync happens automatically, you can manually trigger synchronization anytime: Health Check Run comprehensive diagnostics to identify issues: Debug Mode Enable debug output to see detailed request/response information: Uninstall ποΈ Architecture Tech Stack β’ **CLI**: Node.js 20.x, CommonJS β’ **Dashboard**: React 18 + Vite + TailwindCSS + TypeScript β’ **Backend**: InsForge Edge Functions (Deno) β’ **Database**: InsForge Database (PostgreSQL) β’ **Design**: Matrix-A Design System Components β’ **Tracker CLI** ( ): Node.js CLI that parses logs from multiple AI tools and syncs token data β’ **Core Relay** (InsForge Edge Functions): Serverless backend handling ingestion, aggregation, and API β’ **Dashboard** ( ): React + Vite frontend for visualization β’ **AI Analytics Engine**: Cost calculation, model breakdown, and usage forecasting Data Flow β’ AI CLI tools generate logs during usage β’ Local detects changes and triggers sync β’ CLI incrementally parses logs, extracts token counts (whitelist fields only) β’ Data aggregated into 30-minute UTC buckets locally β’ Batch upload to InsForge with idempotent deduplication β’ Dashboard queries aggregated resultsβ¦