Post

🎉 Introducing npmchart.com Analyze npm packages (downloads, releases), Github activity (releases, stars, commits, issues, PRs), compare packages, user pages, download or copy any charts, and more!

Great job as always. Though, when I went to site, it said "api.npmjs.org is rate limiting this deployment." I would suggest instead telling people to login, instead of the rate limiting error.

Thanks! Sadly there doesn’t appear to be any way to increase rate limiting with NPM (unlike GitHub) via auth/token. Most of the loading is done client-side to isolate rate limiting to per-user, but it’s still very tight. I have a few server-side data fetches with caching I plan to replace soon.

0 reposts1 like

Also I noticed that once I logged in, the error was gone so I thought maybe tell people to login along side the 500 error

Caching a lot of complicated caching would help, it's what I normally do in my apps. We fetch from the API once and have everything cached to memory on the server and you could even make everyone use one server cache, it'll save you a lot of API trips.