npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@mai0313/vibe-coding-tracker

v0.5.12

Published

Vibe Coding Tracker - AI coding assistant telemetry/usage parser, aggregate JSONL events into CodeAnalysis results

Readme

Vibe Coding Tracker — AI 程式設計助手使用量追蹤器

Crates.io Crates.io Downloads npm version npm downloads PyPI version PyPI downloads rust tests code-quality license Star on GitHub PRs

即時追蹤你的 AI 程式設計花費。 Vibe Coding Tracker 是一款以 Rust 打造的輕量、高效能 CLI 工具,能監控與分析你在 Claude Code、Codex、Copilot 及 Gemini 的使用狀況——提供詳細的費用明細、token 統計資料與程式碼操作分析,同時維持極低的 CPU 與記憶體使用量。

English | 繁體中文 | 简体中文

注意:CLI 範例使用簡短別名 vct。如果你是透過 npm/pip/cargo 安裝,執行檔可能命名為 vibe_coding_trackervct。如有需要,請建立別名或在執行指令時將 vct 替換為完整名稱。


🎯 為什麼選擇 Vibe Coding Tracker?

💰 掌握你的花費

不用再猜測 AI 程式設計工作階段花了多少錢。透過 LiteLLM 自動更新價格,取得即時費用追蹤

🪶 超輕量

以 Rust 打造,資源佔用極低。互動式 TUI 儀表板僅需 ~3-5% CPU~140 MB 記憶體,即使處理來自多個供應商的數百萬 token 也不例外——不用 Electron,不用臃腫的執行環境。

📊 精美視覺化

選擇你偏好的檢視方式:

  • 互動式儀表板:自動更新的終端機 UI,即時顯示最新資訊
  • 靜態報表:專業的表格格式,適合撰寫文件
  • 腳本友好:純文字及 JSON 輸出,方便自動化處理
  • 完整精度:匯出精確費用供會計使用

🚀 零設定

自動偵測並處理 Claude Code、Codex、Copilot 及 Gemini 的日誌檔。不需要任何設定——直接執行就能分析。

🎨 豐富洞察

  • 依模型與日期分類的 token 使用量
  • 依 cache 類型(讀取 / 建立)的費用明細
  • 檔案操作追蹤(編輯、讀取、寫入行數)
  • 工具呼叫歷史(Bash、Edit、Read、Write、TodoWrite)
  • 每個供應商的每日平均值

✨ 主要功能

| 功能 | 說明 | | ------------------- | --------------------------------------------------------- | | 🤖 多供應商支援 | Claude Code、Codex、Copilot 及 Gemini——一站整合 | | 💵 智慧定價 | 模糊模型比對 + 每日從 LiteLLM cache 更新 | | 🎨 4 種顯示模式 | 互動式 TUI、靜態表格、純文字及 JSON | | 📈 雙重分析 | Token / 費用統計(usage)+ 程式碼操作統計(analysis) | | 🪶 超輕量 | ~3-5% CPU、~140 MB RAM——以 Rust 打造 | | 🔄 即時更新 | 即時儀表板每秒自動刷新 | | 💾 高效快取 | 智慧每日 cache 減少 API 呼叫次數 |


🚀 快速開始

安裝

選擇最適合你的安裝方式:

👨‍💻 開發者:如果你想從原始碼建置或參與開發,請參閱 CONTRIBUTING.md

方法一:透過 npm 安裝

前置條件Node.js v22 或更高版本

選擇以下任一套件名稱(內容完全相同):

# Main package
npm install -g vibe-coding-tracker

# Short alias with scope
npm install -g @mai0313/vct

# Full name with scope
npm install -g @mai0313/vibe-coding-tracker

方法二:透過 PyPI 安裝

前置條件:Python 3.8 或更高版本

pip install vibe_coding_tracker
# Or with uv
uv pip install vibe_coding_tracker

方法三:透過 crates.io 安裝

使用 Cargo 從官方 Rust 套件倉庫安裝:

cargo install vibe_coding_tracker

首次執行

# View your usage with the interactive dashboard
vct usage

# Or run the binary built by Cargo/pip
vibe_coding_tracker usage

# Analyze code operations across all sessions
vct analysis

📖 指令指南

🔍 快速參考

vct <COMMAND> [OPTIONS]
# Replace with `vibe_coding_tracker` if you are using the full binary name

Commands:
  analysis    Analyze JSONL conversation files (single file or all sessions)
  usage       Display token usage statistics
  version     Display version information
  update      Update to the latest version from GitHub releases
  help        Print this message or the help of the given subcommand(s)

💰 Usage 指令

追蹤你在所有 AI 程式設計工作階段的花費。

基本用法

# Interactive dashboard (recommended)
vct usage

# Static table for reports
vct usage --table

# Plain text for scripts
vct usage --text

# JSON for data processing
vct usage --json

預覽:互動式儀表板(vct usage

┌─────────────────────────────────────────────────────────────────────────────────────────────┐
│                                    📊 Token Usage Statistics                                │
└─────────────────────────────────────────────────────────────────────────────────────────────┘
┌─────────────────────────────────────────────────────────────────────────────────────────────┐
│ Model                              Input     Output    Cache Read  Cache Create  Total Cost │
│                                                                                             │
│ claude-haiku-4-5-20251001          5,567     19,769    4,627,938   619,816       $1.34      │
│ claude-opus-4-6                    25,651    179,066   40,830,154  2,572,258     $77.59     │
│ gemini-3.1-pro-preview             129,115   10,339    67,385      0             $0.40      │
│ TOTAL                              160,333   209,174   45,525,477  3,192,074     $79.33     │
└─────────────────────────────────────────────────────────────────────────────────────────────┘
┌─────────────────────────────────────────────────────────────────────────────────────────────┐
│ Provider              Tokens / Day     Cost / Day     Active Days                           │
│                                                                                             │
│ 🤖 Claude Code        16,293,406       $26.31         3                                    │
│ ✨ Gemini             206,839          $0.40          1                                     │
│ ⭐ All Providers      16,362,353       $26.44         3                                    │
└─────────────────────────────────────────────────────────────────────────────────────────────┘
┌─────────────────────────────────────────────────────────────────────────────────────────────┐
│   💰 Total: $79.33 | 🔢 Tokens: 49,087,058 | 📊 Models: 3 | ⚡ CPU: 4.6% | 🧠 Mem: 148 MB │
└─────────────────────────────────────────────────────────────────────────────────────────────┘
                          Press 'q', 'Esc', 'Ctrl+C' to quit | Press 'r' to refresh

掃描範圍

此工具會自動掃描以下目錄:

  • ~/.claude/projects/*.jsonl(Claude Code)
  • ~/.codex/sessions/*.jsonl(Codex)
  • ~/.copilot/history-session-state/*.json(Copilot)
  • ~/.gemini/tmp/<project_hash>/chats/*.json(Gemini)

📊 Analysis 指令

深入分析程式碼操作——精確掌握你的 AI 助手做了哪些事。

基本用法

# Interactive dashboard for all sessions (default)
vct analysis

# Static table output with daily averages
vct analysis --table

# Analyze a single conversation file
vct analysis --path ~/.claude/projects/session.jsonl

# Save results to JSON
vct analysis --output report.json

# Group results by provider
vct analysis --all

# Save grouped results
vct analysis --all --output grouped_report.json

預覽:互動式儀表板(vct analysis

┌─────────────────────────────────────────────────────────────────────────────────────────────┐
│                                    🔍 Analysis Statistics                                   │
└─────────────────────────────────────────────────────────────────────────────────────────────┘
┌─────────────────────────────────────────────────────────────────────────────────────────────┐
│ Model                        Edit Lines  Read Lines  Write Lines  Bash  Edit  Read  Write  │
│                                                                                             │
│ claude-haiku-4-5-20251001    0           0           0            43    0     59    0       │
│ claude-opus-4-6              1,280       13,264      1,575        82    146   209   62      │
│ gemini-3.1-pro-preview       0           0           0            0     0     0     0       │
│ TOTAL                        1,280       13,264      1,575        125   146   268   62      │
└─────────────────────────────────────────────────────────────────────────────────────────────┘
┌─────────────────────────────────────────────────────────────────────────────────────────────┐
│ Provider          EditL/Day ReadL/Day WriteL/Day Bash/Day Edit/Day Read/Day Write/Day Days  │
│                                                                                             │
│ 🤖 Claude Code    426.7     4421.3    525.0      41.7     48.7     89.3     20.7      3    │
│ ✨ Gemini         0         0         0          0.0      0.0      0.0      0.0       1    │
│ ⭐ All Providers  426.7     4421.3    525.0      41.7     48.7     89.3     20.7      3    │
└─────────────────────────────────────────────────────────────────────────────────────────────┘
┌─────────────────────────────────────────────────────────────────────────────────────────────┐
│  📝 Lines: 16,119 | 🔧 Tools: 601 | 📊 Models: 3 | ⚡ CPU: 3.6% | 🧠 Mem: 140 MB         │
└─────────────────────────────────────────────────────────────────────────────────────────────┘
                          Press 'q', 'Esc', 'Ctrl+C' to quit | Press 'r' to refresh

🔄 Update 指令

自動保持安裝為最新版本。

Update 指令適用於所有安裝方式(npm/pip/cargo/手動安裝),透過直接從 GitHub releases 下載並替換執行檔來完成更新。

基本用法

# Check for updates
vct update --check

# Interactive update with confirmation
vct update

# Force update — always downloads latest version
vct update --force

預覽(vct update --check

📋 Current version: v0.5.10
🔍 Checking for latest release...
✅ Latest version: v0.5.10 — you are up to date!

💡 智慧定價系統

運作方式

  1. 自動更新:每日從 LiteLLM 取得最新價格
  2. 智慧快取:將價格資料儲存於 ~/.vibe_coding_tracker/,有效期 24 小時
  3. 模糊比對:即使是自訂模型名稱也能找到最佳配對
  4. 始終精準:確保你取得最新的定價資訊

模型比對

優先順序

  1. 完全比對claude-sonnet-4claude-sonnet-4
  2. 🔄 正規化比對claude-sonnet-4-20250514claude-sonnet-4
  3. 🔍 子字串比對custom-gpt-4gpt-4
  4. 🎯 模糊比對(AI 驅動):使用 Jaro-Winkler 相似度(70% 門檻值)
  5. 💵 備援方案:若無法配對則顯示 $0.00

🐳 Docker 支援

# Build image
docker build -f docker/Dockerfile --target prod -t vibe_coding_tracker:latest .

# Run with your sessions
docker run --rm \
    -v ~/.claude:/root/.claude \
    -v ~/.codex:/root/.codex \
    -v ~/.copilot:/root/.copilot \
    -v ~/.gemini:/root/.gemini \
    vibe_coding_tracker:latest usage