qmetrics.net

axios

Promise-based HTTP client for browser and Node.js

axios screenshot

Axios is a promise-based HTTP client for JavaScript environments in the browser and Node.js. It supports common request methods, configurable defaults, and interceptors for request and response handling.

Overview

Axios performs HTTP requests from browser and Node.js code using promises. Callers can issue GET, POST, PUT, PATCH, DELETE, and other methods through a shared API or method-specific shortcuts.

Request and response interceptors let applications add custom logic or transform data before promises resolve. Built-in cancellation APIs, timeout handling, and serializers for multipart form data and URL-encoded bodies cover typical client needs.

Developers install the package with common JavaScript package managers and import it into application code. Documentation covers instance creation, config merging, error handling, TypeScript types, and optional adapters such as fetch and experimental HTTP/2 in Node.

Current versions of Chrome, Firefox, Safari, Opera, and Edge are listed as supported browsers. Integration notes mention frameworks such as Tauri and SvelteKit for project-specific setup.

Key features

  • Request and response interceptors
  • Promise-based HTTP methods
  • Request cancellation support
  • Form-urlencoded and multipart serialization
  • Custom axios instances and defaults
  • TypeScript type declarations
  • Optional fetch adapter
  • Experimental Node.js HTTP/2 support

Use cases

  • Calling REST APIs from browser apps
  • Server-side HTTP requests in Node.js
  • Concurrent parallel HTTP requests
  • Uploading files with multipart forms
  • Shared HTTP client configuration across a codebase

Tags

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

OmniRoute

OpenAI-compatible AI gateway with provider routing

OmniRoute exposes one endpoint that routes chat requests across many LLM providers with quota-aware fallback and compression.

★ 90.7k⟳ todayMIT

Hoppscotch

Web, desktop and CLI API development ecosystem

Hoppscotch lets developers send HTTP, WebSocket, GraphQL, and related API requests from a lightweight client. Collections, environments, teams, and sync help organize testing across devices.

★ 81k⟳ 5 days agoMIT
Open Source Alternative to:Postman

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

JSON Server

Zero-code mock REST API from JSON data files

JSON Server turns a JSON or JSON5 database file into a REST API for local prototyping. It supports filtering, sorting, pagination, embedding relations, and static assets.

★ 75.7k⟳ 8 months agoMIT

Protobuf

Language-neutral structured data serialization format

Protocol Buffers is Google's extensible, language-neutral mechanism for serializing structured data, with a compiler and per-language runtimes.

★ 72.2k⟳ 3 days agoBSD-3-Clause