Commit 7d7ec83
feat: anonymous heartbeat + network stats on leaderboard (#114)
- Server sends anonymous heartbeat on startup (anonId, version, platform, agent counts)
- Worker tracks active installs (48h TTL) and daily active users
- Public leaderboard shows: on leaderboard / vibe coders online / active today
- codedash UI shows network stats bar
- Updated Worker HTML with tabs (Today/Week/All Time), GitHub links, agent badges
- Week stats sent from client for weekly ranking
- Export getOrCreateAnonId from data.js
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent a05f6bf commit 7d7ec83
4 files changed
Lines changed: 57 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2403 | 2403 | | |
2404 | 2404 | | |
2405 | 2405 | | |
| 2406 | + | |
2406 | 2407 | | |
2407 | 2408 | | |
2408 | 2409 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2729 | 2729 | | |
2730 | 2730 | | |
2731 | 2731 | | |
| 2732 | + | |
| 2733 | + | |
| 2734 | + | |
| 2735 | + | |
| 2736 | + | |
| 2737 | + | |
| 2738 | + | |
| 2739 | + | |
2732 | 2740 | | |
2733 | 2741 | | |
2734 | 2742 | | |
| |||
2882 | 2890 | | |
2883 | 2891 | | |
2884 | 2892 | | |
| 2893 | + | |
| 2894 | + | |
| 2895 | + | |
2885 | 2896 | | |
2886 | 2897 | | |
2887 | 2898 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2085 | 2085 | | |
2086 | 2086 | | |
2087 | 2087 | | |
| 2088 | + | |
| 2089 | + | |
| 2090 | + | |
| 2091 | + | |
| 2092 | + | |
| 2093 | + | |
| 2094 | + | |
| 2095 | + | |
| 2096 | + | |
| 2097 | + | |
| 2098 | + | |
| 2099 | + | |
| 2100 | + | |
| 2101 | + | |
2088 | 2102 | | |
2089 | 2103 | | |
2090 | 2104 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
437 | 437 | | |
438 | 438 | | |
439 | 439 | | |
| 440 | + | |
| 441 | + | |
| 442 | + | |
440 | 443 | | |
441 | 444 | | |
442 | 445 | | |
| 446 | + | |
| 447 | + | |
| 448 | + | |
| 449 | + | |
| 450 | + | |
| 451 | + | |
| 452 | + | |
| 453 | + | |
| 454 | + | |
| 455 | + | |
| 456 | + | |
| 457 | + | |
| 458 | + | |
| 459 | + | |
| 460 | + | |
| 461 | + | |
| 462 | + | |
| 463 | + | |
| 464 | + | |
| 465 | + | |
| 466 | + | |
| 467 | + | |
| 468 | + | |
| 469 | + | |
| 470 | + | |
| 471 | + | |
| 472 | + | |
| 473 | + | |
443 | 474 | | |
444 | 475 | | |
445 | 476 | | |
| |||
0 commit comments