PACKAGE · HTTP CLIENT

superagent

elegant & feature rich browser / node HTTP with a fluent API

WEEKLY DOWNLOADS 33.4M
STARS 16.6K
FORKS 1.3K
OPEN ISSUES 9
GZIP SIZE 21.9 kB
UNPACKED SIZE 627.7 kB
DEPENDENCIES 25
LAST UPDATED 10mo ago
DOWNLOAD TRENDS

superagent downloads · last 12 months

Download trends for superagent1 download series from Nov 2025 to Oct 2026. Use left and right arrow keys to inspect monthly values.028.2M56.4M84.5M112.7MNov 2025FebMayAugOct 2026
superagent
ABOUT SUPERAGENT

Superagent is an HTTP client for browsers and Node.js that provides a fluent API for making requests and handling responses. It addresses the repeated work of constructing HTTP requests by exposing a chainable interface for expressing request details and sending them through a shared client style.

Its design emphasizes an elegant, feature-rich way to work with HTTP rather than a low-level transport interface. The package is suited to JavaScript developers who want a consistent request-building pattern in browser and server code, while keeping control of how requests are configured and used in their application.

The central pattern is to create requests with Superagent’s fluent API, configure them through chained calls, and execute them to receive a response. This approach makes request setup readable in place and can be used for common client-server communication without requiring a separate interface for each environment; consult the package documentation for the exact methods and options supported by version 10.4.2.

Superagent is categorized as an HTTP Client and is described as supporting both browser and Node.js environments, so it can fit frontend code that calls APIs as well as Node.js workflows that make outbound HTTP requests. Its request-oriented API can be integrated at the points in an application where those requests are built and handled, without requiring a particular framework to be specified here.

The package reports a 21.9 kB gzip bundle size and a 627.7 kB unpacked size; these are distinct measures, so assess the relevant one for your deployment and packaging workflow. Its reported 32.4 million weekly downloads, 16.6K GitHub stars, 1.3K forks, and zero open issues provide project activity context, while the listed last-updated date is 2026-11-07. The MIT license permits use under its terms, but teams should still verify current documentation and compatibility against their own runtime and deployment targets.

WHEN TO USE
  • When browser code needs to call an HTTP API, use Superagent’s fluent request-building pattern to configure and send requests.
  • When Node.js code must make outbound HTTP requests, use the same package’s request-oriented API rather than writing request construction around a lower-level interface.
  • When you want request setup expressed as a chain of calls, use Superagent’s fluent API to keep configuration alongside the request being executed.
  • When a codebase needs an HTTP client described as supporting both browser and Node.js environments, evaluate Superagent as a shared choice across those contexts.
  • When comparing client options for a JavaScript project, consider Superagent’s stated browser and Node.js support and check its version 10.4.2 documentation for the request features your use case requires.
WHEN NOT TO USE
  • If deployment size is a strict constraint, assess the reported 21.9 kB gzip bundle size against your budget; choose a lighter HTTP client approach if it does not fit.
  • If you need a documented API behavior that you cannot confirm for version 10.4.2, verify it in Superagent’s documentation before adopting the fluent request pattern, or use an approach whose required behavior is documented.
  • If your application needs a transport or request capability not established by the package details here, do not assume Superagent provides it; verify support or use a client that explicitly documents that capability.
  • If your project targets an environment other than browsers or Node.js, the stated platform support does not establish compatibility; select an HTTP solution documented for that environment.
  • If your team prefers a non-chainable request interface, Superagent’s fluent API may not match its conventions; choose a client whose documented API follows the preferred pattern.

CORRECTIONS

Spot wrong data here?

A short note helps us fix it.

Anonymous · No account · No email back

COMPARISONS 6
superagent vs axios ★ 109.5K · 146.3M/wk superagent vs undici ★ 7.8K · 347.4M/wk superagent vs node-fetch ★ 8.8K · 298.7M/wk superagent vs got ★ 15.0K · 52.8M/wk superagent vs ofetch ★ 5.4K · 28.2M/wk superagent vs ky ★ 17.2K · 10.1M/wk