toktrack 0.1.11 → 0.1.14

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md ADDED
@@ -0,0 +1,84 @@
1
+ # toktrack
2
+
3
+ [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://github.com/mag123c/toktrack/blob/main/LICENSE)
4
+
5
+ Ultra-fast AI CLI token usage tracker. Built with Rust + simd-json + ratatui.
6
+
7
+ ![toktrack overview](https://raw.githubusercontent.com/mag123c/toktrack/main/image.png)
8
+
9
+ ## Why toktrack?
10
+
11
+ | Tool | Time (2,000+ files / 3GB) | |
12
+ |------|---------------------------|---|
13
+ | ccusage (Node.js) | ~43s | 1x |
14
+ | **toktrack (Rust)** | **~3s** | **15x faster** |
15
+
16
+ ## Installation
17
+
18
+ ```bash
19
+ # No installation required
20
+ npx toktrack
21
+
22
+ # Or install globally
23
+ npm install -g toktrack
24
+ ```
25
+
26
+ ## Features
27
+
28
+ - **Blazing Fast** - 15x faster than Node.js alternatives (~2 GiB/s throughput)
29
+ - **Beautiful TUI** - 4 views (Overview, Models, Daily, Stats) with heatmap
30
+ - **Multi-CLI Support** - Claude Code, Codex CLI, Gemini CLI
31
+ - **CLI Commands** - `daily`, `stats` with JSON output
32
+ - **Auto Update** - Check for updates on startup
33
+
34
+ ## Supported AI CLIs
35
+
36
+ | CLI | Data Location |
37
+ |-----|---------------|
38
+ | Claude Code | `~/.claude/projects/` |
39
+ | Codex CLI | `~/.codex/sessions/` |
40
+ | Gemini CLI | `~/.gemini/tmp/*/chats/` |
41
+
42
+ ## Usage
43
+
44
+ ### TUI Mode (Default)
45
+
46
+ ```bash
47
+ toktrack
48
+ ```
49
+
50
+ ### CLI Commands
51
+
52
+ ```bash
53
+ toktrack daily # Daily usage report
54
+ toktrack daily --json # JSON output
55
+
56
+ toktrack stats # Statistics
57
+ toktrack stats --json # JSON output
58
+ ```
59
+
60
+ ### Keyboard Shortcuts
61
+
62
+ | Key | Action |
63
+ |-----|--------|
64
+ | `1-4` | Switch tabs |
65
+ | `Tab` | Next tab |
66
+ | `j/k` or `↑/↓` | Scroll |
67
+ | `?` | Help |
68
+ | `q` | Quit |
69
+
70
+ ## Performance
71
+
72
+ | Tool | Time (2,000+ files / 3GB) | |
73
+ |------|---------------------------|---|
74
+ | ccusage (Node.js) | ~43s | 1x |
75
+ | **toktrack** | **~3s** | **15x faster** |
76
+
77
+ ## Links
78
+
79
+ - [GitHub](https://github.com/mag123c/toktrack)
80
+ - [Releases](https://github.com/mag123c/toktrack/releases)
81
+
82
+ ## License
83
+
84
+ MIT
Binary file
Binary file
Binary file
Binary file
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "toktrack",
3
- "version": "0.1.11",
3
+ "version": "0.1.14",
4
4
  "description": "Ultra-fast AI CLI token usage tracker",
5
5
  "bin": {
6
6
  "toktrack": "./bin/run.js"
@@ -8,10 +8,14 @@
8
8
  "files": [
9
9
  "bin/"
10
10
  ],
11
+ "homepage": "https://github.com/mag123c/toktrack#readme",
11
12
  "repository": {
12
13
  "type": "git",
13
14
  "url": "https://github.com/mag123c/toktrack"
14
15
  },
16
+ "bugs": {
17
+ "url": "https://github.com/mag123c/toktrack/issues"
18
+ },
15
19
  "keywords": [
16
20
  "ai",
17
21
  "token",
@@ -19,9 +23,30 @@
19
23
  "tracker",
20
24
  "cli",
21
25
  "claude",
26
+ "claude-code",
22
27
  "anthropic",
23
28
  "openai",
24
- "llm"
29
+ "llm",
30
+ "token-counter",
31
+ "token-tracker",
32
+ "cost-tracker",
33
+ "usage-tracker",
34
+ "usage-monitor",
35
+ "api-usage",
36
+ "codex",
37
+ "codex-cli",
38
+ "gemini",
39
+ "gemini-cli",
40
+ "cursor",
41
+ "opencode",
42
+ "ccusage",
43
+ "tokscale",
44
+ "ai-cost",
45
+ "ai-billing",
46
+ "ai-analytics",
47
+ "tui",
48
+ "terminal",
49
+ "rust"
25
50
  ],
26
51
  "author": "mag123c",
27
52
  "license": "MIT",