tokengraph 0.1.0 → 0.1.1

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 CHANGED
@@ -19,36 +19,3 @@ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
19
  LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
20
  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
21
  SOFTWARE.
22
-
23
- ---
24
-
25
- Third-party notices
26
-
27
- The agent and model-maker marks in packages/core (agent-logos.ts, maker-logos.ts),
28
- which the published bundle includes, are adapted from Lobe Icons
29
- (https://github.com/lobehub/lobe-icons), used under the MIT License:
30
-
31
- MIT License
32
-
33
- Copyright (c) 2023 LobeHub
34
-
35
- Permission is hereby granted, free of charge, to any person obtaining a copy
36
- of this software and associated documentation files (the "Software"), to deal
37
- in the Software without restriction, including without limitation the rights
38
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
39
- copies of the Software, and to permit persons to whom the Software is
40
- furnished to do so, subject to the following conditions:
41
-
42
- The above copyright notice and this permission notice shall be included in all
43
- copies or substantial portions of the Software.
44
-
45
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
46
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
47
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
48
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
49
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
50
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
51
- SOFTWARE.
52
-
53
- The product names and marks themselves belong to their owners and are used only
54
- to identify the tools tokengraph reads.
package/README.md CHANGED
@@ -19,7 +19,11 @@
19
19
  </p>
20
20
 
21
21
  <p align="center">
22
- <b>English</b> · <a href="https://github.com/altindalorcun/tokengraph/blob/main/README.zh-CN.md">简体中文</a> · <a href="https://github.com/altindalorcun/tokengraph/blob/main/README.ja.md">日本語</a> · <a href="https://github.com/altindalorcun/tokengraph/blob/main/README.ko.md">한국어</a> · <a href="https://github.com/altindalorcun/tokengraph/blob/main/README.tr.md">Türkçe</a>
22
+ <a href="https://tokengraph.app">Website</a> · <a href="https://tokengraph.app/docs/">Docs</a> · <a href="https://www.npmjs.com/package/tokengraph">npm</a>
23
+ </p>
24
+
25
+ <p align="center">
26
+ <b>English</b> · <a href="https://github.com/altindalorcun/tokengraph/blob/main/README.tr.md">Türkçe</a>
23
27
  </p>
24
28
 
25
29
  <p align="center">
@@ -29,6 +33,10 @@
29
33
  </picture>
30
34
  </p>
31
35
 
36
+ <p align="center">
37
+ <img alt="The tokengraph terminal view: typing npx tokengraph opens a year heatmap, then the Insights and Setup tabs" src="https://raw.githubusercontent.com/altindalorcun/tokengraph/main/docs/assets/demo.gif" width="720">
38
+ </p>
39
+
32
40
  ## Quick start
33
41
 
34
42
  ```bash
@@ -140,7 +148,7 @@ not supported, because its local history rounds token counts.
140
148
 
141
149
  ## Commands
142
150
 
143
- Every command takes `--help`. An unknown option is an error.
151
+ Every command takes `--help`. An unknown option is an error. The full guide is at [tokengraph.app/docs](https://tokengraph.app/docs/).
144
152
 
145
153
  | Command | What it does |
146
154
  | --- | --- |
@@ -171,6 +179,12 @@ nothing twice.
171
179
 
172
180
  ## FAQ
173
181
 
182
+ **How is this different from ccusage or tokscale?** Both are good tools. [ccusage](https://github.com/ryoppippi/ccusage)
183
+ is the one for detailed daily, weekly, monthly and session reports in your terminal.
184
+ [tokscale](https://github.com/junhoyeo/tokscale) has a public leaderboard and profiles, which you join by logging in and
185
+ submitting your usage. tokengraph is for showing your year on your GitHub profile: the graph lives in your own gist,
186
+ several machines merge through your own secret gist, and there is no tokengraph server or account.
187
+
174
188
  **Why gists?** They are free, they belong to you, GitHub serves and caches the images, and there
175
189
  is no server for anyone to run, trust or shut down. If tokengraph disappears tomorrow, your graph
176
190
  keeps working.
@@ -210,3 +224,5 @@ If tokengraph made your profile better, a ⭐ helps other people find it.
210
224
 
211
225
  MIT, see [LICENSE](https://github.com/altindalorcun/tokengraph/blob/main/LICENSE). Bundled third-party components: see
212
226
  [THIRD-PARTY-NOTICES.md](https://github.com/altindalorcun/tokengraph/blob/main/packages/cli/THIRD-PARTY-NOTICES.md).
227
+
228
+ tokengraph is a [goldenbranch.dev](https://goldenbranch.dev) project.
@@ -29,6 +29,7 @@ tokengraph itself is MIT licensed (see `LICENSE`).
29
29
  | unicode-trie | 2.0.0 | MIT | https://github.com/devongovett/unicode-trie |
30
30
  | fflate | 0.7.3 | MIT | https://github.com/101arrowz/fflate |
31
31
  | cssesc (inside satori's `dist`) | 3.0.0 | MIT | https://github.com/mathiasbynens/cssesc |
32
+ | Lobe Icons (agent and model-maker marks, adapted) | as adapted in `packages/core` | MIT | https://github.com/lobehub/lobe-icons |
32
33
  | css-color-keywords | 1.0.0 | ISC | https://github.com/sonicdoe/css-color-keywords |
33
34
  | IBM Plex Sans and IBM Plex Mono | as shipped in `assets/fonts` | OFL-1.1 | https://github.com/IBM/plex |
34
35
  | Rust crates in the WebAssembly binaries | see [the list below](#rust-crates-compiled-into-the-webassembly-binaries) | MIT, Apache-2.0, BSD-3-Clause, Zlib, MPL-2.0 | see the list below |
@@ -1005,6 +1006,38 @@ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
1005
1006
  WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
1006
1007
  ```
1007
1008
 
1009
+ ### Lobe Icons
1010
+
1011
+ Source: https://github.com/lobehub/lobe-icons
1012
+
1013
+ The agent and model-maker marks in `packages/core` (`agent-logos.ts`, `maker-logos.ts`), which `bundle/bin.js`
1014
+ includes, are adapted from Lobe Icons. The product names and marks themselves belong to their owners and are used only
1015
+ to identify the tools tokengraph reads.
1016
+
1017
+ ```text
1018
+ MIT License
1019
+
1020
+ Copyright (c) 2023 LobeHub
1021
+
1022
+ Permission is hereby granted, free of charge, to any person obtaining a copy
1023
+ of this software and associated documentation files (the "Software"), to deal
1024
+ in the Software without restriction, including without limitation the rights
1025
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
1026
+ copies of the Software, and to permit persons to whom the Software is
1027
+ furnished to do so, subject to the following conditions:
1028
+
1029
+ The above copyright notice and this permission notice shall be included in all
1030
+ copies or substantial portions of the Software.
1031
+
1032
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
1033
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
1034
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
1035
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
1036
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
1037
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
1038
+ SOFTWARE.
1039
+ ```
1040
+
1008
1041
  ## ISC licensed components
1009
1042
 
1010
1043
  ### css-color-keywords 1.0.0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tokengraph",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "description": "A GitHub-style graph of the tokens your AI coding agents burn each day: Claude Code, Codex CLI, Cursor, Gemini CLI, Cline, OpenCode, Kilo CLI, Copilot CLI, pi, Qwen Code and Goose.",
5
5
  "keywords": [
6
6
  "ai",
@@ -27,7 +27,7 @@
27
27
  "url": "git+https://github.com/altindalorcun/tokengraph.git",
28
28
  "directory": "packages/cli"
29
29
  },
30
- "homepage": "https://github.com/altindalorcun/tokengraph#readme",
30
+ "homepage": "https://tokengraph.app",
31
31
  "bugs": {
32
32
  "url": "https://github.com/altindalorcun/tokengraph/issues"
33
33
  },
@@ -46,7 +46,7 @@
46
46
  },
47
47
  "devDependencies": {
48
48
  "@resvg/resvg-wasm": "^2.6.2",
49
- "@tokengraph/core": "0.1.0",
49
+ "@tokengraph/core": "0.1.1",
50
50
  "@types/react": "^19.3.0",
51
51
  "esbuild": "0.28.2",
52
52
  "qrcode-generator": "^2.0.4",