Changelog
2026-07-26v0.39.6— Two Numbers
Added
- The npm download count is now shown in the website header. The npm wordmark was a bare link; it now carries a download icon and the total number of times Kandown has been installed, in npm's own red, and the whole group is one link to the package. It sits beside the GitHub star count and is read the same way — two numbers that say how used the project is, without anyone having to go looking for them.
Changed
- The download figure is labelled for what it actually measures. npm has no "total downloads" endpoint: it answers for a date range and silently shortens any range longer than eighteen months, without saying it did. Rather than trusting the number, Kandown checks which window the registry actually answered for and compares it against the package's first publish date. While the answer still covers the package's entire life it is described as a total; once it no longer can, the wording corrects itself with nothing to remember and nothing to edit.
- Both counts share one implementation. The star count and the download count are the same problem twice — a number from a public API, on a site with no server, that must not break the header when the network does. They now share their caching, their once-a-day refresh, their behaviour when a request fails, and their layout, so the two cannot drift apart. Each keeps only what is genuinely different: an address and a way to read the reply.