An npm Downloads Comparison Chart in 300 Lines of Vanilla JS — Nice-Tick Math and API-Direct Fetch
SEN LLC
"react vs vue vs svelte vs solid-js — who's actually winning?" This tool answers it. Fetches daily downloads from api.npmjs.org (CORS-enabled, no auth) and overlays up to 6 packages on one inline SVG chart. No chart library. ~300 lines of vanilla JS. The scale + tick math is pure and gets 17 unit tests. 🌐 Demo : https://sen.ltd/portfolio/npm-downloads-chart/ 📦 GitHub : https://github.com/sen-ltd/npm-downloads-chart Why DIY? I wanted: Pick arbitrary packages, compare side-by-side Switch the time
