# SuperAgent

> Ajax for Node.js and browsers (JS HTTP client)

Source: https://talira.ai/catalog/superagent-b9qa7pyb
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Library
- Categories: [libraries / http clients](https://talira.ai/categories/libraries/http-clients), [languages / javascript](https://talira.ai/categories/languages/javascript)
- Licence: MIT[^1]
- Pricing: Free and open source[^1]
- Free tier: yes[^1]
- Self-hostable: yes[^2]
- API: yes[^2]
- Plugins: yes[^2]
- Backed by: [Forward Email](https://talira.ai/orgs/forward-email.md)
- Creator: TJ Holowaychuk

SuperAgent is a JavaScript HTTP client with the same chainable API in browsers and in Node.js (`superagent.post(url).send(body).set(header)`), usable with callbacks, promises or async/await. It handles JSON and form bodies, multipart file attachments, retries, response and deadline timeouts, Basic and Bearer auth, cookie-keeping agents, TLS client certificates, piping and streaming in Node.js, upload and download progress and forced HTTP/2. Plugins add caching, prefixes, mocking, throttling and AWS request signing. TJ Holowaychuk created it in 2011, and it is now maintained for Forward Email and Lad in the forwardemail [GitHub](https://talira.ai/catalog/github-ppcgj756.md) organization. It's an alternative to [axios](https://talira.ai/catalog/axios-0sg488rd.md), [Got](https://talira.ai/catalog/got-0csab4w7.md) and [Ky](https://talira.ai/catalog/ky-7jhb33p5.md).

## Links

- Website: https://forwardemail.github.io/superagent/
- GitHub: https://github.com/forwardemail/superagent
- Docs: https://forwardemail.github.io/superagent/

## Problems it solves

- a chainable request API that works the same in the browser and in Node.js
- upload files as multipart form data from Node.js with extra form fields
- keep a logged-in session's cookies across requests in Node.js tests
- send requests with a client TLS certificate and a custom CA from Node.js
- pipe a large HTTP response straight to a file in Node.js
- set a deadline for the whole request and a separate limit for the first byte
- retry idempotent requests on network errors and 5xx responses
- extend every request with small plugins for caching, URL prefixes or mocking

## Features

- same chainable API in browsers and Node.js
- callbacks, promises and async/await
- JSON and URL-encoded bodies
- multipart attachments and fields
- retries for transient failures
- deadline and response timeouts
- Basic and Bearer auth
- agents that keep cookies
- TLS options: CA, client certificate and key, PFX
- piping and streaming in Node.js
- upload and download progress events
- HTTP/2 with .http2()
- maximum response size for buffered bodies
- plugins with .use()

## Capabilities

- Has an API: plan not known
- Takes plugins: plan not known

## Trust

Overall: 0.46 out of 1.
Signals: backing 0.50, extensibility 0.40.

- backed by Forward Email
- created by TJ Holowaychuk
- has a plugin system

Warnings:

- GitHub activity not fetched yet

## Alternatives

- [Got](https://talira.ai/catalog/got-0csab4w7.md): Human-friendly and powerful HTTP request library for Node.js
- [axios](https://talira.ai/catalog/axios-0sg488rd.md): Promise based HTTP client for the browser and node.js
- [undici](https://talira.ai/catalog/undici-kmdjat1w.md): An HTTP/1.1 client, written from scratch for Node.js
- [Ky](https://talira.ai/catalog/ky-7jhb33p5.md): Tiny & elegant JavaScript HTTP client based on the Fetch API
- [node-fetch](https://talira.ai/catalog/node-fetch-f6wxdep8.md): A light-weight module that brings the Fetch API to Node.js
- [ofetch](https://talira.ai/catalog/ofetch-brxwg7d2.md): A better fetch API. Works on node, browser, and workers.

## Sources

[^1]: https://github.com/forwardemail/superagent/blob/master/LICENSE (checked 20 Nov 2026)
[^2]: https://github.com/forwardemail/superagent (checked 20 Nov 2026)
