forwardemail

forwardemail/superagent

JavaScript MIT Web Dev low-activity

Ajax for Node.js and browsers (JS HTTP client). Maintained for @forwardemail, @ladjs, @spamscanner, @breejs, @cabinjs, and @lassjs.

16.7k stars
1.3k forks
slow
GitHub +2 / week

16.7k

Stars

1.3k

Forks

184

Open issues

30

Contributors

v10.3.0 06 Jan 2026

AI Analysis

Superagent is a lightweight HTTP client library (~50 KB minified+gzipped) that provides a unified API for making HTTP requests in both Node.js and browsers, supporting callbacks, promises, and async/await. It serves developers who need a lean, general-purpose HTTP client with cross-platform compatibility and is maintained by the Forward Email and Lad project communities. It is not specialized for any particular niche—it competes in the crowded general-purpose HTTP client space alongside axios...

Web Dev Library Discovery value: 2/10
Documentation 7/10
Activity 5/10
Community 8/10
Code quality 7/10

Inferred from signals mentioned in the README (tests, CI, type safety) — not a review of the actual code.

Overall score 7/10

AI's overall editorial judgment — not an average of the bars above, can weigh other factors too.

http-client javascript node-js browser ajax
MIT licensed Actively maintained Popular Beginner friendly Production ready
Deep Analysis · Based on README and public signals
3w ago

superagent: a 15-year-old Node.js/browser HTTP client still actively maintained by the Forward Email ecosystem

superagent is a lightweight, chainable HTTP client that works identically in Node.js and browsers, supporting promises, async/await, and callbacks. Originally created in 2011 by TJ Holowaychuk, it was one of the first ergonomic HTTP libraries for JavaScript. Today it is maintained by the Forward Email / Lad.js ecosystem primarily to serve their own internal tooling (forwardemail, ladjs, spamscanner, breejs, cabinjs, lassjs). It targets developers who want a fluent, plugin-friendly API without pulling in larger dependencies. With 16.6k stars accumulated over 15 years, it remains in broad legacy use but is no longer growing meaningfully.

Origin

Created April 2011 by TJ Holowaychuk as an isomorphic alternative to jQuery Ajax. Became a foundational library in the early Node.js ecosystem. Stewardship transferred to the forwardemail/ladjs organization, which maintains it primarily as an internal dependency.

Growth

Stars accumulated organically during 2011–2018 when superagent was among the few ergonomic HTTP clients for Node.js. Growth has effectively plateaued — 0 stars in the last 7 days recorded — as the JavaScript ecosystem shifted toward fetch, axios, and got. Current maintenance is defensive rather than expansive, focused on keeping the library functional for existing internal consumers.

In production

Used as an internal dependency by several active open-source projects under the forwardemail org (forwardemail.net, ladjs, spamscanner, breejs, cabinjs). NPM download counts are not available from provided metadata, but superagent historically had tens of millions of weekly downloads at peak. Whether those download counts remain high today due to transitive dependencies in legacy projects is likely but not verifiable from this data.

Code analysis
Architecture

Appears to follow a chainable builder pattern where each method returns the request object, enabling fluent composition. Likely uses XMLHttpRequest for browsers and Node's http/https modules under the hood, compiled into a browser bundle via a bundler. The plugin system (.use()) appears to be a middleware-style extension point. Browser bundle is reportedly 50 KB minified and gzipped.

Tests

Code coverage badge is present (Codecov integration), suggesting meaningful test coverage exists, though the exact percentage is not stated in the README excerpt.

Maintenance

Last push was 2026-01-06, approximately 6.5 months before the current date. CI badge is present and appears active. Maintenance appears to be in 'keep-it-working' mode rather than active feature development — this is slow but not stagnant given explicit organizational ownership.

Honest verdict

ADOPT IF: you are working within the forwardemail/ladjs ecosystem, maintaining existing codebases that already depend on superagent, or specifically need the plugin ecosystem (.use() middleware) and isomorphic API. AVOID IF: starting a new project in 2026 — native fetch, axios, or got are better-supported choices with larger communities and more active development trajectories. MONITOR IF: you have transitive dependencies on superagent and want to know when the Forward Email org might deprecate or replace it.

Independent dimensions

Mainstream potential

2/10

Technical importance

5/10

Adoption evidence

6/10

Risks
  • Effectively in maintenance-only mode: no meaningful new features are expected, and the primary motivation for maintenance is internal organizational need rather than community growth.
  • Zero star growth in the observation window suggests community interest has fully plateaued; if the Forward Email org deprioritizes it, no obvious successor maintainer is visible.
  • Native fetch in Node 18+ and modern browsers reduces the unique value proposition of an isomorphic HTTP client library.
  • The name collision with 'superagent-ai/superagent' (an AI agent framework) may cause ongoing discoverability confusion for new developers searching for either project.
  • Plugin ecosystem (superagent-no-cache, superagent-mock, etc.) appears to have received limited updates; compatibility with current library versions is uncertain.
Prediction

superagent will likely remain in a stable maintenance state for as long as the Forward Email ecosystem depends on it, but will see continued gradual decline in new adoption as native fetch and alternatives mature. No major resurgence appears probable.

0 found this helpful

Newsletter

Get analyses like this every Monday

Free weekly digest of the most interesting open-source discoveries.

Languages

JavaScript
88.4%
HTML
11.1%
Makefile
0.5%

Information

Language
JavaScript
License
MIT
Last updated
6mo ago
Created
186mo ago
Analyzed with
anthropic/claude-haiku-4-5

Stars over time

Loading…

Contributors over time

Top 100 contributors only — repos with more will plateau at 100.

Loading…

Similar repos

forwardemail

forwardemail/supertest

Supertest is a high-level HTTP assertion library for testing Node.js servers,...

14.4k JavaScript Dev Tools
superagent-ai

superagent-ai/superagent

Superagent is an open-source SDK that protects AI applications against prompt...

6.7k TypeScript Security
postalsys

postalsys/emailengine

EmailEngine is a self-hosted headless email client providing unified REST API...

2.2k JavaScript Dev Tools
axios

axios/axios

Axios is a widely-used, promise-based HTTP client for both browsers and...

109.1k JavaScript Web Dev
standardagents

standardagents/arrow-js

ArrowJS is a lightweight, type-safe reactive UI framework designed specifically...

3.7k TypeScript Web Dev
vs. alternatives
axios

axios is the dominant choice for browser+Node isomorphic HTTP today, with a larger community, more active development, and interceptor middleware. superagent predates it and offers a more chainable API style, but axios has effectively displaced it for new projects.

node-fetch / native fetch

Native fetch is now available in Node 18+ and all modern browsers, making a dedicated HTTP client library less necessary for simple use cases. superagent adds higher-level features (retries, plugins, multipart) that fetch lacks natively.

got

got is a Node.js-only HTTP client with strong TypeScript support and active development, targeting server-side use cases. superagent offers browser compatibility that got lacks.

ky

ky is a modern fetch-based HTTP client for browsers and Deno, with a chainable API similar to superagent but built on native fetch. Represents the 'next generation' replacement for superagent in browser contexts.

undici

undici is the Node.js core HTTP client with high performance, increasingly used as the foundation for other libraries. Not isomorphic but more performant for server-side Node.js use.