@tomdraper/claude-usage 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/LICENSE +21 -0
- package/README.md +50 -0
- package/bin/claude-usage.js +3 -0
- package/dist/cli/index.js +591 -0
- package/dist/dashboard/assets/index-BI_JjCY6.css +2 -0
- package/dist/dashboard/assets/index-BtSpo2ZF.js +4 -0
- package/dist/dashboard/favicon.svg +16 -0
- package/dist/dashboard/index.html +20 -0
- package/package.json +54 -0
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32" width="32" height="32">
|
|
2
|
+
<!-- 12 polar segments, each 30°, starting from 12 o'clock going clockwise -->
|
|
3
|
+
<!-- Simulates usage pattern: low at night, peak mid-morning through afternoon -->
|
|
4
|
+
<path d="M16,16 L16,14.1 A1.95,1.95,0,0,1,17,14.3 Z" fill="#cc785c" fill-opacity="0.41"/>
|
|
5
|
+
<path d="M16,16 L16.3,15.4 A0.65,0.65,0,0,1,16.6,15.7 Z" fill="#cc785c" fill-opacity="0.34"/>
|
|
6
|
+
<path d="M16,16 L16.3,15.8 A0.39,0.39,0,0,1,16.4,16 Z" fill="#cc785c" fill-opacity="0.32"/>
|
|
7
|
+
<path d="M16,16 L18.6,16 A2.6,2.6,0,0,1,18.3,17.3 Z" fill="#cc785c" fill-opacity="0.44"/>
|
|
8
|
+
<path d="M16,16 L23.9,20.6 A9.1,9.1,0,0,1,20.6,23.9 Z" fill="#cc785c" fill-opacity="0.79"/>
|
|
9
|
+
<path d="M16,16 L22.5,27.3 A13,13,0,0,1,16,29 Z" fill="#cc785c" fill-opacity="1"/>
|
|
10
|
+
<path d="M16,16 L16,27.7 A11.7,11.7,0,0,1,10.2,26.1 Z" fill="#cc785c" fill-opacity="0.93"/>
|
|
11
|
+
<path d="M16,16 L9.8,26.7 A12.35,12.35,0,0,1,5.3,22.2 Z" fill="#cc785c" fill-opacity="0.97"/>
|
|
12
|
+
<path d="M16,16 L7,21.2 A10.4,10.4,0,0,1,5.6,16 Z" fill="#cc785c" fill-opacity="0.86"/>
|
|
13
|
+
<path d="M16,16 L8.2,16 A7.8,7.8,0,0,1,9.2,12.1 Z" fill="#cc785c" fill-opacity="0.72"/>
|
|
14
|
+
<path d="M16,16 L11.5,13.4 A5.2,5.2,0,0,1,13.4,11.5 Z" fill="#cc785c" fill-opacity="0.58"/>
|
|
15
|
+
<path d="M16,16 L14.4,13.2 A3.25,3.25,0,0,1,16,12.75 Z" fill="#cc785c" fill-opacity="0.48"/>
|
|
16
|
+
</svg>
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html lang="en">
|
|
3
|
+
|
|
4
|
+
<head>
|
|
5
|
+
<meta charset="UTF-8" />
|
|
6
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
7
|
+
<title>Claude Usage</title>
|
|
8
|
+
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
|
|
9
|
+
<link rel="preconnect" href="https://fonts.googleapis.com" />
|
|
10
|
+
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
|
|
11
|
+
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap" rel="stylesheet" />
|
|
12
|
+
<script type="module" crossorigin src="/assets/index-BtSpo2ZF.js"></script>
|
|
13
|
+
<link rel="stylesheet" crossorigin href="/assets/index-BI_JjCY6.css">
|
|
14
|
+
</head>
|
|
15
|
+
|
|
16
|
+
<body>
|
|
17
|
+
<div id="app"></div>
|
|
18
|
+
</body>
|
|
19
|
+
|
|
20
|
+
</html>
|
package/package.json
ADDED
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@tomdraper/claude-usage",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "Dashboard for Claude Code usage statistics",
|
|
5
|
+
"main": "./dist/cli/index.js",
|
|
6
|
+
"bin": {
|
|
7
|
+
"claude-usage": "./bin/claude-usage.js"
|
|
8
|
+
},
|
|
9
|
+
"files": [
|
|
10
|
+
"bin",
|
|
11
|
+
"dist"
|
|
12
|
+
],
|
|
13
|
+
"scripts": {
|
|
14
|
+
"build": "vite build && tsup",
|
|
15
|
+
"dev": "vite",
|
|
16
|
+
"typecheck": "tsc --noEmit && svelte-check"
|
|
17
|
+
},
|
|
18
|
+
"engines": {
|
|
19
|
+
"node": ">=18"
|
|
20
|
+
},
|
|
21
|
+
"keywords": [
|
|
22
|
+
"claude",
|
|
23
|
+
"claude-usage",
|
|
24
|
+
"anthropic",
|
|
25
|
+
"claude-code",
|
|
26
|
+
"usage",
|
|
27
|
+
"dashboard",
|
|
28
|
+
"statistics",
|
|
29
|
+
"analytics"
|
|
30
|
+
],
|
|
31
|
+
"author": "Tom Draper",
|
|
32
|
+
"license": "MIT",
|
|
33
|
+
"repository": {
|
|
34
|
+
"type": "git",
|
|
35
|
+
"url": "https://github.com/tom-draper/claude-usage"
|
|
36
|
+
},
|
|
37
|
+
"homepage": "https://github.com/tom-draper/claude-usage#readme",
|
|
38
|
+
"bugs": {
|
|
39
|
+
"url": "https://github.com/tom-draper/claude-usage/issues"
|
|
40
|
+
},
|
|
41
|
+
"devDependencies": {
|
|
42
|
+
"@sveltejs/vite-plugin-svelte": "^7.1.2",
|
|
43
|
+
"@tailwindcss/vite": "^4.3.0",
|
|
44
|
+
"@types/node": "^25.7.0",
|
|
45
|
+
"chart.js": "^4.5.1",
|
|
46
|
+
"svelte": "^5.55.5",
|
|
47
|
+
"svelte-check": "^4.4.8",
|
|
48
|
+
"tailwindcss": "^4.3.0",
|
|
49
|
+
"tsup": "^8.5.1",
|
|
50
|
+
"typescript": "^6.0.3",
|
|
51
|
+
"vite": "^8.0.13"
|
|
52
|
+
},
|
|
53
|
+
"packageManager": "pnpm@11.1.1+sha512.d1fdf5f73c617b64fa1a56a81c3c8dfe0e966e33a6010aa256b517ae77be21d93e05affc0de1a83b0e4f29d569f68b446ae8f068cd7247c0bb3df0fb4d7bdf9a"
|
|
54
|
+
}
|