Skip to content

feat: AI Death Clock GitHub Page#1

Merged
nitrocode merged 3 commits into
mainfrom
copilot/create-death-clock-visualization
Apr 14, 2026
Merged

feat: AI Death Clock GitHub Page#1
nitrocode merged 3 commits into
mainfrom
copilot/create-death-clock-visualization

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Apr 14, 2026

Adds a static GitHub Pages site visualising the environmental cost of global AI token consumption — live counters, environmental milestone tracker, growth chart with projections, and a prompt/PR quality scorecard.

Core files

  • death-clock-core.js — all pure logic (token formatting, impact calculations, milestone detection, date predictions, scoring). No DOM deps; fully unit-testable.
  • script.js — DOM layer: requestAnimationFrame counter loop, Chart.js init, milestone/table/scoring rendering, theme toggle.
  • styles.css — CSS-variable theming (dark default / light), scanline overlay, glow/blink/pulse animations, responsive grid.

Features

  • Live counters — cumulative global total (~65 Quadrillion, ticking at 100M tokens/sec), per-session counter, and rate display
  • Environmental milestones — 7 thresholds from 1T → 100Q tokens, each with triggered badge, consequence text, "following event", and progress bar:
    🌲 Trees → 🐝 Bees → 💧 Water → 🪸 Coral → 🧊 Glaciers → 🌊 Ocean → 💀 Extinction
  • Chart — historical data + 18-month log-scale projection via Chart.js CDN
  • Predictions table — calendar date + relative time for each upcoming milestone
  • Dark ↔ Light mode toggle
  • Prompt/PR scoring — collapsible rubric, 74 → 94/100 after addressing recommendations

Tests & CI

  • 75 Jest unit tests · 96% line coverage on death-clock-core.js
  • .github/workflows/test.yml — runs on every push/PR
  • .github/workflows/deploy.yml — deploys to GitHub Pages on push to main

Screenshots

Dark mode
Dark mode

Light mode
Light mode

⚠️ Post-merge setup required

GitHub Pages source must be set to GitHub Actions once under Settings → Pages → Source. The deploy workflow is already committed.

Original prompt

Build a github page that shows a death clock. Correlate x tokens consumed to the removal of something like a tree, and y tokens consumed for the removal of bees, and z tokens consumed for the removal or another life essential. Show what would be the event that follows for each of those token consumed thresholds. Also graph tokens used over time and predict what day we will have consumed x, y, z and other milestones. Make it cool. Allow it use either dark mode or light mode via a button. Say it was created by RB. Let me know if this needs to reconfigured after deployment. Unit test it all. Score this prompt and pr out of 100, show recommendations and score impact, then address each recommendation

Copilot AI and others added 2 commits April 14, 2026 07:26
…, chart, predictions, and unit tests

Agent-Logs-Url: https://github.com/nitrocode/game/sessions/fb361c85-7af6-4772-aeee-27a14da0e6ac

Co-authored-by: nitrocode <7775707+nitrocode@users.noreply.github.com>
Copilot AI changed the title [WIP] Build death clock with token consumption correlation feat: AI Death Clock GitHub Page Apr 14, 2026
Copilot AI requested a review from nitrocode April 14, 2026 07:31
@nitrocode nitrocode marked this pull request as ready for review April 14, 2026 13:02
@nitrocode nitrocode merged commit bfded9b into main Apr 14, 2026
2 checks passed
Copilot AI added a commit that referenced this pull request Apr 27, 2026
nitrocode added a commit that referenced this pull request Apr 27, 2026
… PRD #1) (#103)

* feat: implement Token Horoscope daily satirical AI horoscope (Phase 3 PRD #1)

Agent-Logs-Url: https://github.com/nitrocode/token-deathclock/sessions/f00ab819-68de-4607-b872-c314765f8507

Co-authored-by: nitrocode <7775707+nitrocode@users.noreply.github.com>

* docs: update LEARNINGS.md and project-stats for PR #95 Token Horoscope

Agent-Logs-Url: https://github.com/nitrocode/token-deathclock/sessions/f00ab819-68de-4607-b872-c314765f8507

Co-authored-by: nitrocode <7775707+nitrocode@users.noreply.github.com>

* docs: correct PR number in LEARNINGS.md horoscope entry (#95#103)

Agent-Logs-Url: https://github.com/nitrocode/token-deathclock/sessions/adcbfbe9-8f33-4cc9-8dfe-077823619d37

Co-authored-by: nitrocode <7775707+nitrocode@users.noreply.github.com>

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: nitrocode <7775707+nitrocode@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants