axios vs got
NPM Package Comparison - Which one should you use?
axios
ðMost PopularâMost StarredðŠķLightweightðTypeScript
Promise based HTTP client for the browser and node.js
View Repository ânpm install axiosgot
ðĶSmallestðRecently Updated
Human-friendly and powerful HTTP request library for Node.js
View Repository ânpm install gotDownload Trends (Last 12 Weeks)
When to Choose Each
ðChoose axios if:
- âYou want the most battle-tested solution with a larger community
- âYou prefer fewer dependencies to reduce supply chain risk
- âYou're working with TypeScript and need first-class type support
- âCommunity popularity and ecosystem support matter to you
ðChoose got if:
- âBundle size is critical for your project
Comparison
| Metric | axios | got |
|---|---|---|
| Weekly Downloads | 118.3M | 37.5M |
| GitHub Stars | 109.2k | 14.9k |
| Bundle Size | 1.8 MB | 371.1 KB |
| Dependencies | 4 | 12 |
| Last Updated | 1 months ago | 3 weeks ago |
| TypeScript | Yes | No |
| License | MIT | MIT |
| Version | 1.18.1 | 15.1.0 |