got vs superagent
got is an HTTP request library for Node.js with streams, retries, hooks and pagination, and superagent is an HTTP request library for the browser and Node.js, with the same API in both.
HTTP request library for Node.js with streams, retries, hooks and pagination.
$ npm install gotHTTP request library for the browser and Node.js, with the same API in both.
$ npm install superagent| Metric | got | superagent | Difference |
|---|---|---|---|
| Weekly downloads | 30,398,057 | 16,110,103 | got 1.9x higher |
| 12-month download growth | +28% | +43% | superagent +15 pts |
| Gzip size | - | - | - |
| Minified size | - | - | - |
| Dependencies | 10 | 9 | got 1 more |
| Unpacked size | 438 kB | 592 kB | got 35% smaller |
| Latest release | 16.0.0, 30 Aug 2026 | 10.4.1, 23 Sept 2026 | superagent 23 days more recent |
| Releases, last 12 months | 18 | 3 | got 15 more |
| First published | 27 Mar 2014 | 22 Aug 2011 | superagent 2.6 years earlier |
| GitHub stars | 14,946 | 16,636 | superagent +11% |
| Open issues | 1 | 0 | got 1 more |
| Open pull requests | 0 | 0 | Same |
| Contributors | 205 | - | - |
| Commits, last 52 weeks | 203 | 31 | got 6.5x higher |
| TypeScript types | Bundled | None | Differs |
| Module format | ESM only | CommonJS | Differs |
| Runtimes | Node.js | Browser, Node.js | Only superagent: Browser |
| License | MIT | MIT | Same |
Green marks the smaller size or the more recent release. Bold marks the higher count, with no judgement implied. Sizes are for the whole package per Bundlephobia. Growth compares the average of the last 4 weeks with the first 4 weeks of the 52-week series.
got
- 0.1.027 Mar 2014
- 1.0.05 Aug 2014
- 2.0.023 Nov 2014
- 3.0.06 May 2015
- 4.0.025 Jul 2015
- 5.0.018 Oct 2015
- 6.0.07 Jan 2016
- 7.0.029 May 2017
- 8.0.016 Nov 2017
- 9.0.04 Aug 2018
- 10.0.01 Dec 2019
- 11.0.020 Apr 2020
- 12.0.010 Dec 2021
- 13.0.027 May 2023
- 14.0.029 Nov 2023
- 15.0.01 Apr 2026
- 16.0.030 Aug 2026
- 16.0.030 Aug 2026
- 15.1.02 Jul 2026
- 15.0.728 Jun 2026
- 15.0.621 Jun 2026
- 15.0.56 May 2026
superagent
- 0.1.122 Aug 2011
- 1.0.011 Mar 2015
- 2.0.029 May 2016
- 3.0.019 Nov 2016
- 4.0.017 Nov 2018
- 5.0.228 Mar 2019
- 6.0.08 Aug 2020
- 7.0.07 Jan 2022
- 8.0.024 Jun 2022
- 9.0.023 Apr 2024
- 10.0.05 Aug 2024
- 10.4.123 Sept 2026
- 10.4.022 Sept 2026
- 10.3.06 Jan 2026
- 10.2.322 Jul 2025
- 10.2.27 Jul 2025
Promise-based and stream-based, extendable instances with hooks
Chainable request builder, callback (.end) or promise (.then / await)
- Node.js only. Its own comparison table lists no browser support.
- Native ESM with no CommonJS export since v12.
- The README recommends ky, by the same maintainers, for most users, as it is smaller, works in the browser and is built on Fetch.
- Requests are built by chaining methods such as .send() and .set(), then sent with .end() or awaited.
- Supports both callbacks and promises.
- Has a plugin system. Browser builds are published in the package's dist folder and on CDNs.
- Need both ESM and CommonJS entry pointsNeither (got: ESM only; superagent: CommonJS)
- Need to load it with require()superagent
- Need TypeScript types in the package itselfgot (got: Bundled; superagent: None)
- Need to run in Browsersuperagent (as listed in its README)
- Only targeting Node.jsBoth run in Node.js (got is Node.js only)
- Node.js version requirementgot: >=22; superagent: >=14.18.0 (engines field in package.json)
- Need the more recent releasesuperagent (10.4.1 on 23 Sept 2026 vs 16.0.0 on 30 Aug 2026)
- Higher weekly npm downloadsgot (30.4m vs 16.1m)
Each line is generated from the data above.
- axios vs got20 searches/mo
- node-fetch vs got20 searches/mo
- axios vs superagent20 searches/mo
Indexability: Indexed.