qmetrics.net

SuperAgent

HTTP client library for Node and browsers

SuperAgent screenshot

A small progressive HTTP request library with the same API in Node.js and the browser, including retries and plugin support.

Overview

SuperAgent is a client-side HTTP request library that also ships as a Node.js module with a matching API. It is maintained for Forward Email and Lad-related projects and aims for a readable, chainable style for AJAX and server-side calls alike.

Requests start with verbs such as get, post, put, patch, head, or delete, then headers, query strings, and bodies are attached through fluent methods. JSON is the default body encoding; form encoding and custom serializers are supported. Promises via then or await are the recommended completion style, though legacy end callbacks remain.

The browser build is distributed minified through CDNs and package downloads, and bundlers such as webpack or rollup can consume the same entry points as Node. Node support is listed from v14.18.0 upward. Optional retry logic covers transient network and specific HTTP status failures, with guidance to use retries only on idempotent calls.

Plugins extend behavior; the ecosystem expects names prefixed with superagent-. Features mentioned in docs include HTTP/2-only requests, Unix domain socket URLs in Node, and fine-grained header and content-type handling.

Key features

  • Fluent request builder API
  • Shared Node and browser API
  • JSON and form body helpers
  • Optional automatic retries
  • Plugin extension points
  • Promise and await support
  • HTTP/2-only mode
  • Query string helpers

Use cases

  • REST calls from Node services
  • Browser AJAX with bundlers
  • API testing in JavaScript
  • Retrying idempotent HTTP requests

Similar software

FastAPI

Python web framework for building APIs with type hints

FastAPI is a Python web framework for building APIs using standard type hints. It builds on Starlette and Pydantic and generates interactive OpenAPI documentation for the endpoints you define.

★ 105.1k⟳ 9 days agoMIT

NestJS

Progressive TypeScript framework for Node.js backends

Nest organizes Node server apps with modules, dependency injection, and first-party packages for auth, data, queues, and observability.

★ 77.2k⟳ todayMIT

OkHttp

HTTP client for JVM, Android, and GraalVM

OkHttp is an HTTP client library tuned for efficient networking on Android, Java, and GraalVM native images. It offers synchronous and asynchronous call APIs with a fluent request builder.

★ 47.1k⟳ yesterdayApache-2.0
Frameworks & PlatformsDesktop/CLI app

gRPC

Cross-language remote procedure call framework

gRPC is an RPC framework that lets client and server programs communicate transparently and supports building connected, multi-language systems.

★ 45.5k⟳ todayApache-2.0

tRPC

End-to-end typesafe TypeScript APIs without code generation

tRPC helps teams define server procedures and call them from clients with full TypeScript types for inputs, outputs, and errors—no schemas or codegen step.

★ 40.9k⟳ todayMIT
Frameworks & PlatformsDesktop/CLI app

go-zero

Cloud-native Go microservices and RPC framework

go-zero is a Go web and RPC framework with code generation, built-in resilience middleware, and tooling aimed at stable high-traffic services.

★ 33.5k⟳ 9 days agoMIT