toktrack 0.1.7 → 0.1.13
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 +76 -0
- package/bin/toktrack-darwin-arm64 +0 -0
- package/bin/toktrack-darwin-x64 +0 -0
- package/bin/toktrack-linux-arm64 +0 -0
- package/bin/toktrack-linux-x64 +0 -0
- package/bin/toktrack-win32-x64.exe +0 -0
- package/package.json +27 -2
package/README.md
ADDED
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
# toktrack
|
|
2
|
+
|
|
3
|
+
Ultra-fast AI CLI token usage tracker. Built with Rust + simd-json + ratatui.
|
|
4
|
+
|
|
5
|
+

|
|
6
|
+
|
|
7
|
+
## Installation
|
|
8
|
+
|
|
9
|
+
```bash
|
|
10
|
+
# No installation required
|
|
11
|
+
npx toktrack
|
|
12
|
+
|
|
13
|
+
# Or install globally
|
|
14
|
+
npm install -g toktrack
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
## Features
|
|
18
|
+
|
|
19
|
+
- **Blazing Fast** - 40x faster than Node.js alternatives (~2 GiB/s throughput)
|
|
20
|
+
- **Beautiful TUI** - 4 views (Overview, Models, Daily, Stats) with heatmap
|
|
21
|
+
- **Multi-CLI Support** - Claude Code, Codex CLI, Gemini CLI
|
|
22
|
+
- **CLI Commands** - `daily`, `stats` with JSON output
|
|
23
|
+
- **Auto Update** - Check for updates on startup
|
|
24
|
+
|
|
25
|
+
## Supported AI CLIs
|
|
26
|
+
|
|
27
|
+
| CLI | Data Location |
|
|
28
|
+
|-----|---------------|
|
|
29
|
+
| Claude Code | `~/.claude/projects/` |
|
|
30
|
+
| Codex CLI | `~/.codex/sessions/` |
|
|
31
|
+
| Gemini CLI | `~/.gemini/tmp/*/chats/` |
|
|
32
|
+
|
|
33
|
+
## Usage
|
|
34
|
+
|
|
35
|
+
### TUI Mode (Default)
|
|
36
|
+
|
|
37
|
+
```bash
|
|
38
|
+
toktrack
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
### CLI Commands
|
|
42
|
+
|
|
43
|
+
```bash
|
|
44
|
+
toktrack daily # Daily usage report
|
|
45
|
+
toktrack daily --json # JSON output
|
|
46
|
+
|
|
47
|
+
toktrack stats # Statistics
|
|
48
|
+
toktrack stats --json # JSON output
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
### Keyboard Shortcuts
|
|
52
|
+
|
|
53
|
+
| Key | Action |
|
|
54
|
+
|-----|--------|
|
|
55
|
+
| `1-4` | Switch tabs |
|
|
56
|
+
| `Tab` | Next tab |
|
|
57
|
+
| `j/k` or `↑/↓` | Scroll |
|
|
58
|
+
| `?` | Help |
|
|
59
|
+
| `q` | Quit |
|
|
60
|
+
|
|
61
|
+
## Performance
|
|
62
|
+
|
|
63
|
+
| Tool | Time (2,000+ files) |
|
|
64
|
+
|------|---------------------|
|
|
65
|
+
| ccusage (Node.js) | ~20s |
|
|
66
|
+
| ccusage (cached) | ~7s |
|
|
67
|
+
| **toktrack** | **< 500ms** |
|
|
68
|
+
|
|
69
|
+
## Links
|
|
70
|
+
|
|
71
|
+
- [GitHub](https://github.com/mag123c/toktrack)
|
|
72
|
+
- [Releases](https://github.com/mag123c/toktrack/releases)
|
|
73
|
+
|
|
74
|
+
## License
|
|
75
|
+
|
|
76
|
+
MIT
|
|
Binary file
|
package/bin/toktrack-darwin-x64
CHANGED
|
Binary file
|
package/bin/toktrack-linux-arm64
CHANGED
|
Binary file
|
package/bin/toktrack-linux-x64
CHANGED
|
Binary file
|
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "toktrack",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.13",
|
|
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",
|