styfle / packagephobia

⚖️ Find the cost of adding a new dependency to your project
https://packagephobia.com
MIT License
2.14k stars 45 forks source link

fix: add 429 rate limit for unknown user-agents #1050

Closed styfle closed 5 months ago

styfle commented 5 months ago

There are a lot of API requests now that Package Phobia is so popular.

We need to ensure that clients are setting a proper user-agent so we know where these requests are coming from and can block bad traffic.

Users who wish to call the API should add the expected user agent to API.md document.

vercel[bot] commented 5 months ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
packagephobia ✅ Ready (Inspect) Visit Preview Jun 10, 2024 10:04pm