aieracard 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.
Files changed (3) hide show
  1. package/README.md +39 -0
  2. package/dist/index.js +4911 -0
  3. package/package.json +42 -0
package/README.md ADDED
@@ -0,0 +1,39 @@
1
+ # aieracard
2
+
3
+ Your AI usage — tokens, streaks, models — on one permanent, shareable card.
4
+
5
+ ```sh
6
+ npx aieracard
7
+ ```
8
+
9
+ The CLI collects usage **locally** from:
10
+
11
+ - **Claude Code** — local JSONL logs (`~/.claude/projects`), fully automatic
12
+ - **Cursor** — all-time usage via your own cursor.com session (token resolved
13
+ locally, sent only to cursor.com); CSV export as fallback
14
+ - **OpenRouter** — via your API key (read-only endpoints)
15
+
16
+ It then shows you the **exact JSON** that would be uploaded — aggregate
17
+ numbers only: token counts, cost totals, active days, streaks, model names.
18
+ Never prompts, code, file paths, or project names. `--dry-run` uploads
19
+ nothing at all.
20
+
21
+ On confirmation you get a permanent card URL like
22
+ [ai-era-card.vercel.app/s/mmi5GrqvJt](https://ai-era-card.vercel.app/s/mmi5GrqvJt)
23
+ that unfurls into a stats card when shared.
24
+
25
+ ## Options
26
+
27
+ ```
28
+ --dry-run build and print the payload, upload nothing
29
+ --json-out <file> also write the payload to a local file
30
+ --yes / --force skip prompts / skip upload confirmation
31
+ --openrouter-key <k> OpenRouter API key (or OPENROUTER_API_KEY env)
32
+ --cursor-cookie <t> Cursor web session token (auto-detected if omitted)
33
+ --cursor-csv <path> usage CSV export (fallback if the API path fails)
34
+ --no-claude-code / --no-openrouter / --no-cursor
35
+ --handle <name> display name on the card (unverified)
36
+ --open open the card URL in your browser
37
+ ```
38
+
39
+ Stats are self-reported, like any year-in-review.