talira

Compare

SuperAgentGotaxiosundici
What it isAjax for Node.js and browsers (JS HTTP client)Human-friendly and powerful HTTP request library for Node.jsPromise based HTTP client for the browser and node.jsAn HTTP/1.1 client, written from scratch for Node.js
KindOpen sourceOpen sourceOpen sourceOpen source
Trust0.460.340.280.32
Stars————
Last commit————
LicenceMITMITMITMIT
PricingFree and open sourceFree and open sourceFree and open sourceFree and open source
Free tierYesYesYesYes
Self-hostableYesYesYesYes
Ways to run it————
SOC 2————
HIPAA————
SSO————
APIYesYesYesYes
PluginsYesYes——
MCP server————
CompanyForward Email——Node.js and OpenJS Foundation
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
  • All 14 features
  • promise API and stream API
  • retries on failure, on by default
  • advanced timeouts per request phase
  • pagination API
  • RFC 7234 compliant caching
  • cookies
  • HTTP/2 support
  • proxy support and Unix domain sockets
  • All 15 features
  • XMLHttpRequest and fetch in browsers, http module in Node.js
  • Promise API with async/await
  • request and response interceptors
  • request and response data transforms
  • cancellation with AbortController
  • automatic JSON serialization and parsing
  • multipart/form-data and URL-encoded serialization
  • upload and download progress events
  • All 14 features
  • request, stream, pipeline, connect and upgrade APIs
  • WHATWG fetch implementation, the one built into Node.js since v18
  • Client, Pool, BalancedPool, RoundRobinPool and Agent dispatchers with keep-alive
  • HTTP/2 when the server prefers it through ALPN (allowH2), and H2CClient for cleartext HTTP/2
  • optional HTTP/1.1 pipelining
  • ProxyAgent, EnvHttpProxyAgent (http_proxy, https_proxy, no_proxy) and Socks5ProxyAgent
  • RetryAgent and retry handler
  • interceptors: redirect, retry, dump, dns, cache, decompress, responseError and deduplicate
  • All 19 features
Limitations
    • Doesn't run in the browser: it's an HTTP library for Node.js only
    • Doesn't provide a CommonJS export: it's native ESM, so CommonJS projects must convert to ESM
    • HTTP/2 support is experimental: only the Node.js http adapter has it, and behaviour depends on the runtime and Node.js version
    • Doesn't work without WebAssembly: its HTTP/1 parser needs it, so requests fail with ERR_WEBASSEMBLY_NOT_SUPPORTED under --jitless
    • Doesn't support the Expect: 100-continue request header: it sends the body at once and ignores 100 Continue
    • Doesn't implement CORS in fetch: no preflight requests or Access-Control-Allow-Origin checks