Skip to content

Add install charts to package detail pages#97

Merged
retlehs merged 1 commit intomainfrom
install-charts
Apr 4, 2026
Merged

Add install charts to package detail pages#97
retlehs merged 1 commit intomainfrom
install-charts

Conversation

@retlehs
Copy link
Copy Markdown
Member

@retlehs retlehs commented Apr 4, 2026

Summary

  • Display monthly Composer install stats as an SVG bar chart on package detail pages
  • Chart is rendered entirely server-side in Go — no JS chart libraries
  • Y-axis labels with grid lines, and CSS-only hover tooltips showing exact install counts
  • Uses existing /api/stats/packages/{type}/{name} data via telemetry.GetMonthlyInstalls()
image

🤖 Generated with Claude Code

@retlehs retlehs self-assigned this Apr 4, 2026
Server-rendered SVG bar chart showing monthly Composer installs,
using data from the existing monthly_installs table. Zero additional
JS dependencies — hover tooltips use CSS-only opacity transitions.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@retlehs retlehs merged commit 1652ac2 into main Apr 4, 2026
5 checks passed
@retlehs retlehs deleted the install-charts branch April 4, 2026 20:04
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.

1 participant