RepositoryRustHUHungary
rust-dd

rust-dd/tako

Multi-transport Rust web framework: HTTP/1.1, HTTP/2, HTTP/3, WebSocket, SSE, gRPC, TCP/UDP and Unix sockets behind one router, on Tokio or Compio.

185stars
9forks
1issues
4views

Featured achievements

The project's latest awards

1
TINIX TRENDING·Topic: compio

#1 Repository of the week

1
TINIX TRENDING·Topic: hyper

#1 Repository of the week

4
TINIX TRENDING·Topic: tokio

#4 Repository of the week

Build Workflow Crates.io License

🐙 Tako — Multi-Transport Rust Framework for Modern Network Services

Tako ("octopus" in Japanese) is a pragmatic, ergonomic and extensible Rust framework for services that go beyond plain HTTP. Build one cohesive application across HTTP/1.1, HTTP/2, HTTP/3, WebSocket, SSE, gRPC, TCP, UDP, Unix sockets, and WebTransport with a single routing, middleware, and observability model.

📖 Full documentation → tako.rust-dd.com  ·  API docs (docs.rs)

Why Tako

  • One service, many transports — REST, WebSockets, SSE, gRPC, raw TCP/UDP, Unix sockets, and QUIC without switching frameworks.
  • One model, two runtimes — the same framework style on Tokio or Compio, TLS and HTTP/2 on both.
  • Batteries included — middleware, auth, metrics, signals, queues, graceful shutdown, and streaming are part of the framework, not an afterthought.
  • Performance when it matters — SIMD JSON, optional zero-copy extractors, brotli/gzip/deflate/zstd, jemalloc, and HTTP/3 — without fragmenting the API.

At a glance

  • Transports — HTTP/1.1, HTTP/2, HTTP/3 (QUIC), WebSocket, WebTransport, SSE, gRPC, TCP, UDP, Unix sockets, PROXY protocol.
  • Extraction — 22+ typed extractors: JSON (SIMD optional), form, query, path, headers, cookies, JWT claims, API keys, Accept, Range, protobuf, multipart.
  • Middleware — JWT/Basic/Bearer/API-key auth, CSRF, sessions, security headers, request IDs, body limits, rate limiting, CORS, idempotency, compression, metrics.

The full transport matrix, extractor catalog, middleware reference, and cargo feature graph live in the documentation.

Installation

[dependencies]
tako-rs = "2"

MSRV 1.95 · Edition 2024

Quick Start

use anyhow::Result;
use tako::{
    responder::Responder,
    router::Router,
    types::Request,
    Method,
};
use tokio::net::TcpListener;

async fn hello_world(_: Request) -> impl Responder {
    "Hello, World!".into_response()
}

#[tokio::main]
async fn main() -> Result<()> {
    let listener = TcpListener::bind("127.0.0.1:8080").await?;

    let mut router = Router::new();
    router.route(Method::GET, "/", hello_world);

    tako::serve(listener, router).await;
    Ok(())
}

Keep going with the Quickstart guide.

In Production

Tako already powers real-world services:

Benchmark

Hello-world throughput on a clean local run (wrk -t4 -c100 -d30s):

FrameworkRequests/secAvg Latency
Tako~187,288~505 µs
Tako + jemalloc~187,638~502 µs
Axum~186,194~498 µs
Actix~155,307~635 µs

Machine- and thermal-state-dependent — treat as local baselines, not universal claims. Details on the benchmarks page.

License

MIT — see LICENSE.

Made with ❤️ & 🦀 by the Tako contributors.

Similar Projects

Discover other similar projects and AI models.

RepositoryRust
mountain-loop/yaak

The most intuitive desktop API client. Organize and execute REST, GraphQL, WebSockets, Server Sent Events, and gRPC 🦬

19.6k
Nov 23, 2026
RepositoryPython
aio-libs/aiohttp

Asynchronous HTTP client/server framework for asyncio and Python

16.6k
Nov 27, 2026
RepositoryPython
sparckles/Robyn

Robyn is a Super Fast Async Python Web Framework with a Rust runtime.

7.4k
Nov 23, 2026
RepositoryGo
techschool/simplebank

Backend master class: build a simple bank service in Go

6.6k
Apr 20, 2025
RepositoryTypeScript
TanStack/query

🤖 Powerful asynchronous state management, server-state utilities and data fetching for the web. TS/JS, React Query, Solid Query, Svelte Query and Vue Query.

50.8k
Dec 3, 2026
Modelsentence-similarity
sentence-transformers/all-MiniLM-L6-v2

all-MiniLM-L6-v2 This is a sentence-transformers(https://www.SBERT.net) model: It maps sentences & paragraphs to a 384 dimensional dense vector space and can be used for tasks like clustering or semantic search. Usage (Sentence-Transformers) Using t...

♥0
156.6M
Jun 1, 2026
RepositoryRust
hyperium/hyper

An HTTP library for Rust

16.5k
Nov 30, 2026
RepositoryRust
grpc/grpc-rust

A native gRPC client & server implementation with async/await support.

12.6k
Dec 1, 2026
RepositoryRust
telemt/telemt

MTProxy for Telegram on Rust + Tokio

5.8k
Nov 15, 2026