Use this file to discover Exa products, pricing, evaluations, comparisons, use cases, agent interfaces, and technical documentation before exploring further.
JavaScript HTTP libraries send requests to web servers and read their responses in Node.js, browsers, and edge runtimes. A client library wraps each request in an API with defaults for retries, timeouts, and parsed response bodies. These libraries let apps, backend services, and AI agents call external APIs through one configured client.
Popularity
Undici has the most monthly downloads in this comparison, at 1.1B.
async function createDispatcher (gyp) {
const env = process.env
const hasProxyEnv = env.http_proxy || env.HTTP_PROXY || env.https_proxy || env.HTTPS_PROXY
if (!gyp.opts.proxy && !gyp.opts.cafile && !hasProxyEnv) {
return new RetryAgent(new Agent(), { maxRetries: 3 })
}
const opts = {}
if (gyp.opts.cafile) {
const ca = await readCAFile(gyp.opts.cafile)
// EnvHttpProxyAgent forwards opts to both its internal Agent (direct) and // ProxyAgent (proxied). Agent reads TLS config from `connect`; ProxyAgent // reads it from `requestTls` (origin) / `proxyTls` (proxy). Set all three // so the custom CA is applied regardless of which path a request takes. opts.connect = { ca }
opts.requestTls = { ca }
opts.proxyTls = { ca }
}
if (gyp.opts.proxy) {
opts.httpProxy = gyp.opts.proxy
opts.httpsProxy = gyp.opts.proxy
}
if (gyp.opts.noproxy) {
opts.noProxy = gyp.opts.noproxy
}
return new RetryAgent(new EnvHttpProxyAgent(opts), { maxRetries: 3 })
}
node-fetch
Brings the Fetch API to Node.js as a standalone module.
Axios suits apps that run in browsers and Node.js and want shared interceptors. Undici suits Node.js servers that need control over connections and streams. ofetch suits code built on fetch that wants retries and parsed responses.
Fetch is built into browsers and Node.js and needs no install. Axios adds interceptors, request cancellation, and errors thrown for failed HTTP statuses.
Axios has no built-in retry API. Retries come from an extension package or application code.
Axios interceptors are functions that run before a request is sent and before a response reaches the calling code. They keep shared request and response handling on one client instance.
Undici is an HTTP client written from scratch for Node.js. It exposes request, stream, and pipeline APIs alongside its fetch interface.
node-fetch brings the Fetch API to Node.js as a standalone module. Its current major version requires ESM imports.
For coding agents
Found your HTTP library? Help your agent use it.
Connect Exa so your coding agent can find the library’s documentation, check its API, and look up implementations while you build.