qmetrics.net

Sttp

Scala HTTP client with pluggable backends

Sttp screenshot

sttp client is an open-source HTTP library for Scala with synchronous, Future, and effect-system styles across JVM, Scala.js, and Native.

Overview

sttp client lets Scala programs describe HTTP requests and handle responses through a programmer-oriented API meant to use connections safely even when errors occur. It supports direct-style synchronous calls, Future-based code, and integrations with cats-effect, ZIO, Monix, Kyo, and scalaz.

Common tasks include JSON APIs with serialization, file upload and download, HTML forms, multipart bodies, and WebSockets. URI interpolation, typed success and failure bodies, and a self-managed backend option appear in the documented examples.

Pluggable backends connect to Java HttpClient, Akka HTTP, Pekko HTTP, http4s, OkHttp, Armeria, and other stacks, so teams can match protocol needs and deployment constraints. Add-ons cover JSON libraries such as circe and play-json, logging and metrics via slf4j, scribe, OpenTelemetry, and Prometheus, plus streaming through fs2, ZIO Streams, and Akka or Pekko Streams.

The sttp family on the same site also includes tapir for documented APIs, shared HTTP models, and related tooling, though this package is the HTTP client itself. Documentation is published for multiple major versions with quickstarts for sbt, scala-cli, and Ammonite.

Key features

  • Describe-then-send request API
  • Multiple Scala effect styles
  • Pluggable HTTP backends
  • JSON serialization integrations
  • WebSocket support
  • Streaming response bodies
  • OpenTelemetry and metrics hooks
  • Stub backend for tests

Use cases

  • Calling REST and JSON APIs from Scala
  • Microservices HTTP clients
  • Streaming downloads or uploads
  • Distributed tracing of outbound HTTP

Tags

Similar software

axios

Promise-based HTTP client for browser and Node.js

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.

★ 109.5k⟳ 2 days agoMIT

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