# đ Tako â LightweightâŻAsyncâŻWebâŻFramework in Rust
> **Tako** (*"octopus"* in Japanese) is a pragmatic, ergonomic and extensible async web framework for Rust.
> It aims to keep the mental model small while giving you firstâclass performance and modern conveniences outâofâtheâbox.
> **â ď¸ Earlyâstage software:** Tako is still under active development; use with caution and expect breaking changes.
> [**Blog**: Tako in detail](https://rust-dd.com/post/tako-a-lightweight-async-web-framework-on-tokio-and-hyper)
---
## ⨠Highlights
* **Batteriesâincluded Router** â Intuitive pathâbased routing with path parameters and trailingâslash redirection (TSR).
* **Extractor system** â Stronglyâtyped request extractors for headers, query/body params, JSON, form data, etc.
* **Streaming & SSE** â Builtâin helpers for ServerâSent Events *and* arbitrary `Stream` responses.
* **Middleware** â Compose synchronous or async middleware functions with minimal boilerplate.
* **Shared State** â Applicationâwide state injection without `unsafe` globals.
* **Plugin system** â Optâin extensions let you add functionality without cluttering the core API.
* **Hyperâpowered** â Built on `hyper` & `tokio` for minimal overhead and async performance with **native HTTP/2 & TLS** support.
---
## đŚ Installation
Add **Tako** to your `Cargo.toml`:
```toml
[dependencies]
tako-rs = "*"
```
---
## đ Quick Start
Spin up a "Hello, World!" server in a handful of lines:
```rust
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<()> {
// Bind a local TCP listener
let listener = TcpListener::bind("127.0.0.1:8080").await?;
// Declare routes
let mut router = Router::new();
router.route(Method::GET, "/", hello_world);
println!("Server running at http://127.0.0.1:8080");
// Launch the server
tako::serve(listener, router).await;
Ok(())
}
```
## đ License
`MIT` â see [LICENSE](./LICENSE) for details.
---
Made with â¤ď¸ & đŚ by the Tako contributors.