hyper

A fast, low-level HTTP client and server library for Rust supporting HTTP/1 and HTTP/2

Library
Cargo
v1.11.1
16,339 stars
MIT License

Repository Health

Pre-computed score based on development activity, maintenance, community, maturity, and trend momentum. How we score it →
93 /100 Excellent
Development Activity 92
Maintenance 96
Community 84
Maturity 60
Momentum 40

Technical Analysis

AI-assessed by reading the actual repository — architecture, code quality, innovation, and documentation. How we score it →
80 /100 Excellent
Architecture 90
Code Quality 90
Innovation 85
Learning Curve 55

hyper is the foundational HTTP implementation for the Rust ecosystem, providing both client and server building blocks over HTTP/1.1 and HTTP/2. It is deliberately low-level — it doesn’t ship a router, middleware system, or TLS implementation of its own — so that higher-level frameworks (Axum, warp, reqwest’s transport layer) and infrastructure tools can build exactly the stack they need on top of it without inheriting unwanted defaults.

Built on Tokio for async I/O, hyper exposes separate client and server modules alongside a Service trait (shared with the broader tower ecosystem) as its core abstraction for handling requests. Its combination of correctness, low overhead, and permissive MIT license has made it the de facto transport layer underneath a large share of production async Rust web services and HTTP clients.

What You Get

  • A low-level async HTTP/1.1 and HTTP/2 client for making outbound requests
  • A low-level async HTTP/1.1 and HTTP/2 server for accepting inbound connections
  • The Service trait — a shared request-handling abstraction compatible with the tower middleware ecosystem
  • Streaming request/response bodies via the http-body crate rather than buffering everything in memory
  • Optional C API bindings (capi/) for embedding hyper in non-Rust applications

Common Use Cases

  • Building a custom async web server or proxy that needs direct control over connection handling
  • Serving as the transport layer underneath a higher-level framework (many Rust web frameworks build on hyper directly)
  • Implementing an outbound HTTP client for a service that needs fine-grained control over connection pooling and timeouts
  • Embedding HTTP client/server capability in latency-sensitive infrastructure (proxies, gateways, load balancers)

Under The Hood

Architecture The crate splits cleanly into src/client and src/server modules, each built atop a shared src/proto layer implementing the HTTP/1 and HTTP/2 wire protocols, with src/body handling streaming request/response bodies and src/service defining the Service trait both client and server code paths use to dispatch work — roughly 22,000 lines of Rust across the crate. An optional capi/ directory provides a C-callable API so non-Rust applications can embed hyper directly. Tech Stack Async I/O runs entirely on Tokio; HTTP/2 framing is delegated to the separate h2 crate, request/response types come from the http crate, and body streaming uses http-body/http-body-util — all as optional dependencies gated by Cargo feature flags so consumers only pay for the protocol versions and roles (client/server) they enable. Code Quality The tests/ directory includes dedicated client.rs, server.rs, h1_server/, and integration.rs suites, plus a h1_shutdown_while_buffered.rs test targeting a specific connection-lifecycle edge case — evidence of regression tests written directly against past bug classes rather than only happy-path coverage. API Design The Service trait is the single abstraction both client and server code build on, and it’s shared with the wider tower ecosystem, so middleware (timeouts, retries, logging) written against tower::Service works with hyper directly — a deliberate design choice that trades a slightly steeper initial learning curve for strong ecosystem composability.

Used by 21 apps in this directory

Swift
62%
GPL 3.0

cmux

AI Development · Developer Tools

27,452

A native, Ghostty-based macOS terminal with vertical tabs, agent-aware notifications, and a scriptable browser built for running many parallel AI coding agent sessions instead of juggling tmux panes.

View details
84
Repo Health
81
Technical
69
Dependency
Built with
Swift 62%
Rust 13%
Updated 4 days ago
Go
32%
Apache 2.0

CubeSandbox

AI Agents · Developer Tools · Security

12,728

Instant, concurrent, hardware-isolated MicroVM sandboxes for AI agents — E2B-API compatible, sub-60ms cold starts, and a built-in zero-trust egress proxy, all self-hostable at scale.

View details
82
Repo Health
88
Technical
63
Dependency
Built with
Go 32%
Rust 26%
C 22%
Updated 1 weeks ago
Python
82%
Apache 2.0

headroom

AI Development · Developer Tools

73,966

Compress everything your AI agent reads — tool outputs, logs, RAG chunks, and files — before it reaches the LLM, achieving 60–95% fewer tokens with the same answers.

View details
85
Repo Health
86
Technical
69
Dependency
Built with
Python 82%
Rust 12%
Updated 5 days ago
Rust
52%
Other

hoodik

File Storage · Security

1,484

Self-hosted, end-to-end encrypted cloud storage with browser-based encryption and S3-compatible storage support

View details
79
Repo Health
71
Technical
63
Dependency
Built with
Rust 52%
TypeScript 33%
Vue 14%
Updated 1 weeks ago
Go
64%
MIT

hoop

Monitoring · Security

823

A wire-protocol gateway that enforces data masking, command blocking, approval workflows, and full session recording for engineers and AI agents accessing production infrastructure.

View details
85
Repo Health
80
Technical
64
Dependency
Built with
Go 64%
Clojure 17%
JavaScript 11%
Updated 1 weeks ago
Rust
73%
Other

iii

Developer Tools · Devops

18,814

Compose, extend, and observe every backend service in real time using three primitives: Workers, Functions, and Triggers.

View details
87
Repo Health
85
Technical
65
Dependency
Built with
Rust 73%
TypeScript 16%
Updated 5 days ago
Rust
52%
Other

Jan

AI Assistants

44,680

Run LLMs 100% locally with full privacy, or connect to cloud AI — your machine, your data, your control.

View details
90
Repo Health
81
Technical
65
Dependency
Built with
Rust 52%
TypeScript 44%
Updated 4 days ago
Dart
80%
Apache 2.0

LocalSend

Networking

92,857

An open-source, cross-platform AirDrop alternative that sends files and messages device-to-device over your local network with no internet, no account, and no cloud server involved.

View details
89
Repo Health
61
Technical
78
Dependency
Built with
Dart 80%
Rust 17%
Updated 5 days ago
TypeScript
95%
MIT

melty

AI Code Assistants · Code Editors · Developer Tools

5,444

The AI code editor where every chat message is a git commit you can revert, branch, or squash

View details
35
Repo Health
75
Technical
67
Dependency
Built with
TypeScript 95%
Updated 1 years ago

Join founders buildingwith open source

Opinionated takes, migration guides, cost-saving tips, and insights from the open source ecosystem.

Subscribe on Substack
Join 750+ subscribers