Ajax for Node.js and browsers (JS HTTP client). Maintained for @forwardemail, @ladjs, @spamscanner, @breejs, @cabinjs, and @lassjs.
16.7k
Stars
1.3k
Forks
184
Open issues
30
Contributors
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...
Inferred from signals mentioned in the README (tests, CI, type safety) — not a review of the actual code.
AI's overall editorial judgment — not an average of the bars above, can weigh other factors too.
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.
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.
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.
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.
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.
Code coverage badge is present (Codecov integration), suggesting meaningful test coverage exists, though the exact percentage is not stated in the README excerpt.
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.
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
- 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.
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.
Newsletter
Get analyses like this every Monday
Free weekly digest of the most interesting open-source discoveries.
Languages
Information
- Language
- JavaScript
- License
- MIT
- Last updated
- 6mo ago
- Created
- 186mo ago
- Analyzed with
- anthropic/claude-haiku-4-5
Stars over time
Contributors over time
Top 100 contributors only — repos with more will plateau at 100.
Open issues
[Security] Authorization Header Leak on Cross-Origin 307/308 Redirects
[fix] "Object prototype may only be an Object or null: undefined" from supertest in browser contexts
[fix] "superagent: double callback bug" with maxResponseSize
[fix] Request not being properly disposed when it encounters an error
[fix] .. in path gets collapsed after 9.0.2
Top contributors
Similar repos
forwardemail/supertest
Supertest is a high-level HTTP assertion library for testing Node.js servers,...
superagent-ai/superagent
Superagent is an open-source SDK that protects AI applications against prompt...
postalsys/emailengine
EmailEngine is a self-hosted headless email client providing unified REST API...
| Repository | Stars | Week Δ | Language | Score | Updated |
|---|---|---|---|---|---|
|
|
16.7k | +2 | JavaScript | 7/10 | 6mo ago |
|
|
14.4k | — | JavaScript | 8/10 | 3mo ago |
|
|
6.7k | — | TypeScript | 7/10 | 3mo ago |
|
|
2.2k | — | JavaScript | 7/10 | 4d ago |
|
|
109.1k | — | JavaScript | 9/10 | 4d ago |
|
|
3.7k | — | TypeScript | 8/10 | 1w ago |
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.
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 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 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 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.