cctrackr 0.1.0

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/package.json ADDED
@@ -0,0 +1,78 @@
1
+ {
2
+ "name": "cctrackr",
3
+ "version": "0.1.0",
4
+ "description": "Claude Code usage analytics — accurate metrics and a beautiful HTML dashboard from local JSONL files",
5
+ "type": "module",
6
+ "main": "./dist/index.js",
7
+ "exports": {
8
+ ".": {
9
+ "import": "./dist/index.js"
10
+ }
11
+ },
12
+ "bin": {
13
+ "cctrack": "dist/index.js"
14
+ },
15
+ "files": [
16
+ "dist",
17
+ "pricing"
18
+ ],
19
+ "scripts": {
20
+ "build": "tsup",
21
+ "dev": "tsup --watch",
22
+ "test": "vitest run",
23
+ "test:watch": "vitest",
24
+ "test:e2e": "playwright test",
25
+ "test:all": "vitest run && playwright test",
26
+ "lint": "eslint src/",
27
+ "format": "prettier --write src/",
28
+ "typecheck": "tsc --noEmit",
29
+ "prepublishOnly": "pnpm run build && pnpm run test"
30
+ },
31
+ "engines": {
32
+ "node": ">=20"
33
+ },
34
+ "keywords": [
35
+ "claude",
36
+ "anthropic",
37
+ "claude-code",
38
+ "usage",
39
+ "analytics",
40
+ "dashboard",
41
+ "cost",
42
+ "token",
43
+ "cli",
44
+ "ai",
45
+ "llm",
46
+ "billing",
47
+ "pricing",
48
+ "developer-tools"
49
+ ],
50
+ "author": "azharuddinkhan3005",
51
+ "license": "MIT",
52
+ "repository": {
53
+ "type": "git",
54
+ "url": "git+https://github.com/azharuddinkhan3005/cctrack.git"
55
+ },
56
+ "homepage": "https://github.com/azharuddinkhan3005/cctrack#readme",
57
+ "bugs": {
58
+ "url": "https://github.com/azharuddinkhan3005/cctrack/issues"
59
+ },
60
+ "packageManager": "pnpm@10.33.0",
61
+ "dependencies": {
62
+ "chalk": "^5.6.2",
63
+ "cli-table3": "^0.6.5",
64
+ "commander": "^14.0.3",
65
+ "zod": "^4.3.6"
66
+ },
67
+ "devDependencies": {
68
+ "@playwright/test": "^1.58.2",
69
+ "@types/node": "^25.5.0",
70
+ "@vitest/coverage-v8": "^4.1.1",
71
+ "eslint": "^10.1.0",
72
+ "playwright": "^1.58.2",
73
+ "prettier": "^3.8.1",
74
+ "tsup": "^8.5.1",
75
+ "typescript": "^6.0.2",
76
+ "vitest": "^4.1.1"
77
+ }
78
+ }
@@ -0,0 +1,155 @@
1
+ {
2
+ "version": "2026-03-25",
3
+ "models": {
4
+ "claude-opus-4-6-20260205": {
5
+ "input_cost_per_million": 5.0,
6
+ "output_cost_per_million": 25.0,
7
+ "cache_creation_cost_per_million": 6.25,
8
+ "cache_read_cost_per_million": 0.50,
9
+ "context_window": 1000000,
10
+ "max_output": 128000
11
+ },
12
+ "claude-sonnet-4-6-20260217": {
13
+ "input_cost_per_million": 3.0,
14
+ "output_cost_per_million": 15.0,
15
+ "cache_creation_cost_per_million": 3.75,
16
+ "cache_read_cost_per_million": 0.30,
17
+ "context_window": 1000000,
18
+ "max_output": 64000
19
+ },
20
+ "claude-opus-4-5-20251101": {
21
+ "input_cost_per_million": 5.0,
22
+ "output_cost_per_million": 25.0,
23
+ "cache_creation_cost_per_million": 6.25,
24
+ "cache_read_cost_per_million": 0.50,
25
+ "input_cost_per_million_above_200k": 10.0,
26
+ "output_cost_per_million_above_200k": 37.50,
27
+ "cache_creation_cost_per_million_above_200k": 12.50,
28
+ "cache_read_cost_per_million_above_200k": 1.0,
29
+ "context_window": 200000,
30
+ "max_output": 64000
31
+ },
32
+ "claude-sonnet-4-5-20250929": {
33
+ "input_cost_per_million": 3.0,
34
+ "output_cost_per_million": 15.0,
35
+ "cache_creation_cost_per_million": 3.75,
36
+ "cache_read_cost_per_million": 0.30,
37
+ "input_cost_per_million_above_200k": 6.0,
38
+ "output_cost_per_million_above_200k": 22.50,
39
+ "cache_creation_cost_per_million_above_200k": 7.50,
40
+ "cache_read_cost_per_million_above_200k": 0.60,
41
+ "context_window": 200000,
42
+ "max_output": 64000
43
+ },
44
+ "claude-haiku-4-5-20251001": {
45
+ "input_cost_per_million": 1.0,
46
+ "output_cost_per_million": 5.0,
47
+ "cache_creation_cost_per_million": 1.25,
48
+ "cache_read_cost_per_million": 0.10,
49
+ "context_window": 200000,
50
+ "max_output": 64000
51
+ },
52
+ "claude-opus-4-20250514": {
53
+ "input_cost_per_million": 15.0,
54
+ "output_cost_per_million": 75.0,
55
+ "cache_creation_cost_per_million": 18.75,
56
+ "cache_read_cost_per_million": 1.50,
57
+ "context_window": 200000,
58
+ "max_output": 32000
59
+ },
60
+ "claude-sonnet-4-20250514": {
61
+ "input_cost_per_million": 3.0,
62
+ "output_cost_per_million": 15.0,
63
+ "cache_creation_cost_per_million": 3.75,
64
+ "cache_read_cost_per_million": 0.30,
65
+ "input_cost_per_million_above_200k": 6.0,
66
+ "output_cost_per_million_above_200k": 22.50,
67
+ "cache_creation_cost_per_million_above_200k": 7.50,
68
+ "cache_read_cost_per_million_above_200k": 0.60,
69
+ "context_window": 200000,
70
+ "max_output": 64000
71
+ },
72
+ "claude-3-7-sonnet-20250219": {
73
+ "input_cost_per_million": 3.0,
74
+ "output_cost_per_million": 15.0,
75
+ "cache_creation_cost_per_million": 3.75,
76
+ "cache_read_cost_per_million": 0.30,
77
+ "context_window": 200000,
78
+ "max_output": 64000
79
+ },
80
+ "claude-3-5-sonnet-20241022": {
81
+ "input_cost_per_million": 3.0,
82
+ "output_cost_per_million": 15.0,
83
+ "cache_creation_cost_per_million": 3.75,
84
+ "cache_read_cost_per_million": 0.30,
85
+ "context_window": 200000,
86
+ "max_output": 8192
87
+ },
88
+ "claude-3-5-sonnet-20240620": {
89
+ "input_cost_per_million": 3.0,
90
+ "output_cost_per_million": 15.0,
91
+ "cache_creation_cost_per_million": 3.75,
92
+ "cache_read_cost_per_million": 0.30,
93
+ "context_window": 200000,
94
+ "max_output": 8192
95
+ },
96
+ "claude-3-5-haiku-20241022": {
97
+ "input_cost_per_million": 1.0,
98
+ "output_cost_per_million": 5.0,
99
+ "cache_creation_cost_per_million": 1.25,
100
+ "cache_read_cost_per_million": 0.10,
101
+ "context_window": 200000,
102
+ "max_output": 8192
103
+ },
104
+ "claude-3-opus-20240229": {
105
+ "input_cost_per_million": 15.0,
106
+ "output_cost_per_million": 75.0,
107
+ "cache_creation_cost_per_million": 18.75,
108
+ "cache_read_cost_per_million": 1.50,
109
+ "context_window": 200000,
110
+ "max_output": 4096
111
+ },
112
+ "claude-3-sonnet-20240229": {
113
+ "input_cost_per_million": 3.0,
114
+ "output_cost_per_million": 15.0,
115
+ "cache_creation_cost_per_million": 3.75,
116
+ "cache_read_cost_per_million": 0.30,
117
+ "context_window": 200000,
118
+ "max_output": 4096
119
+ },
120
+ "claude-3-haiku-20240307": {
121
+ "input_cost_per_million": 0.25,
122
+ "output_cost_per_million": 1.25,
123
+ "cache_creation_cost_per_million": 0.30,
124
+ "cache_read_cost_per_million": 0.03,
125
+ "context_window": 200000,
126
+ "max_output": 4096
127
+ }
128
+ },
129
+ "aliases": {
130
+ "claude-opus-4-6": "claude-opus-4-6-20260205",
131
+ "claude-opus-4-6-latest": "claude-opus-4-6-20260205",
132
+ "claude-sonnet-4-6": "claude-sonnet-4-6-20260217",
133
+ "claude-sonnet-4-6-latest": "claude-sonnet-4-6-20260217",
134
+ "claude-opus-4-5": "claude-opus-4-5-20251101",
135
+ "claude-opus-4-5-latest": "claude-opus-4-5-20251101",
136
+ "claude-sonnet-4-5": "claude-sonnet-4-5-20250929",
137
+ "claude-sonnet-4-5-latest": "claude-sonnet-4-5-20250929",
138
+ "claude-haiku-4-5": "claude-haiku-4-5-20251001",
139
+ "claude-haiku-4-5-latest": "claude-haiku-4-5-20251001",
140
+ "claude-opus-4": "claude-opus-4-20250514",
141
+ "claude-opus-4-latest": "claude-opus-4-20250514",
142
+ "claude-sonnet-4": "claude-sonnet-4-20250514",
143
+ "claude-sonnet-4-latest": "claude-sonnet-4-20250514",
144
+ "claude-3-7-sonnet": "claude-3-7-sonnet-20250219",
145
+ "claude-3-7-sonnet-latest": "claude-3-7-sonnet-20250219",
146
+ "claude-3-5-sonnet": "claude-3-5-sonnet-20241022",
147
+ "claude-3-5-sonnet-latest": "claude-3-5-sonnet-20241022",
148
+ "claude-3-5-haiku": "claude-3-5-haiku-20241022",
149
+ "claude-3-5-haiku-latest": "claude-3-5-haiku-20241022",
150
+ "claude-3-opus": "claude-3-opus-20240229",
151
+ "claude-3-opus-latest": "claude-3-opus-20240229",
152
+ "claude-3-sonnet": "claude-3-sonnet-20240229",
153
+ "claude-3-haiku": "claude-3-haiku-20240307"
154
+ }
155
+ }