{"id":14989369,"url":"https://github.com/hexilee/roa","last_synced_at":"2025-04-04T11:11:18.076Z","repository":{"id":42533427,"uuid":"234845410","full_name":"Hexilee/roa","owner":"Hexilee","description":"async web framework inspired by koajs, lightweight but powerful.","archived":false,"fork":false,"pushed_at":"2022-09-29T05:49:15.000Z","size":1110,"stargazers_count":249,"open_issues_count":1,"forks_count":11,"subscribers_count":7,"default_branch":"master","last_synced_at":"2025-04-04T11:11:12.650Z","etag":null,"topics":["koa","koa-like","rust-lang","rust-web","web"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Hexilee.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-01-19T05:27:08.000Z","updated_at":"2025-02-20T19:05:06.000Z","dependencies_parsed_at":"2022-09-06T01:30:40.074Z","dependency_job_id":null,"html_url":"https://github.com/Hexilee/roa","commit_stats":null,"previous_names":[],"tags_count":76,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Hexilee%2Froa","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Hexilee%2Froa/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Hexilee%2Froa/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Hexilee%2Froa/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Hexilee","download_url":"https://codeload.github.com/Hexilee/roa/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247166168,"owners_count":20894654,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["koa","koa-like","rust-lang","rust-web","web"],"created_at":"2024-09-24T14:18:13.572Z","updated_at":"2025-04-04T11:11:18.053Z","avatar_url":"https://github.com/Hexilee.png","language":"Rust","readme":"\u003cdiv align=\"center\"\u003e\n  \u003ch1\u003eRoa\u003c/h1\u003e\n  \u003cp\u003e\u003cstrong\u003eRoa is an async web framework inspired by koajs, lightweight but powerful. \u003c/strong\u003e \u003c/p\u003e\n  \u003cp\u003e\n\n[![Stable Test](https://github.com/Hexilee/roa/workflows/Stable%20Test/badge.svg)](https://github.com/Hexilee/roa/actions)\n[![codecov](https://codecov.io/gh/Hexilee/roa/branch/master/graph/badge.svg)](https://codecov.io/gh/Hexilee/roa) \n[![wiki](https://img.shields.io/badge/roa-wiki-purple.svg)](https://github.com/Hexilee/roa/wiki)\n[![Rust Docs](https://docs.rs/roa/badge.svg)](https://docs.rs/roa)\n[![Crate version](https://img.shields.io/crates/v/roa.svg)](https://crates.io/crates/roa)\n[![Download](https://img.shields.io/crates/d/roa.svg)](https://crates.io/crates/roa)\n[![MSRV-1.54](https://img.shields.io/badge/MSRV-1.54-blue.svg)](https://blog.rust-lang.org/2021/07/29/Rust-1.54.0.html)\n[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://github.com/Hexilee/roa/blob/master/LICENSE)\n\n  \u003c/p\u003e\n\n  \u003ch3\u003e\n    \u003ca href=\"https://github.com/Hexilee/roa/tree/master/examples\"\u003eExamples\u003c/a\u003e\n    \u003cspan\u003e | \u003c/span\u003e\n    \u003ca href=\"https://github.com/Hexilee/roa/wiki/Guide\"\u003eGuide\u003c/a\u003e\n    \u003cspan\u003e | \u003c/span\u003e\n    \u003ca href=\"https://github.com/Hexilee/roa/wiki/Cookbook\"\u003eCookbook\u003c/a\u003e\n  \u003c/h3\u003e\n\u003c/div\u003e\n\u003cbr\u003e\n\n\n#### Feature highlights\n\n- A lightweight, solid and well extensible core.\n    - Supports HTTP/1.x and HTTP/2.0 protocols.\n    - Full streaming.\n    - Highly extensible middleware system.\n    - Based on [`hyper`](https://github.com/hyperium/hyper), runtime-independent, you can chose async runtime as you like.\n- Many useful extensions.\n    - Official runtime schemes:\n        - (Default) [tokio](https://github.com/tokio-rs/tokio) runtime and TcpStream.\n        - [async-std](https://github.com/async-rs/async-std) runtime and TcpStream.\n    - Transparent content compression (br, gzip, deflate, zstd).\n    - Configurable and nestable router.\n    - Named uri parameters(query and router parameter).\n    - Cookie and jwt support.\n    - HTTPS support.\n    - WebSocket support.\n    - Asynchronous multipart form support.\n    - Other middlewares(logger, CORS .etc).\n- Integrations\n    - roa-diesel, integration with [diesel](https://github.com/diesel-rs/diesel).\n    - roa-juniper, integration with [juniper](https://github.com/graphql-rust/juniper).\n- Works on stable Rust.\n\n#### Get start\n\n```toml\n# Cargo.toml\n\n[dependencies]\nroa = \"0.6\"\ntokio = { version = \"1.15\", features = [\"rt\", \"macro\"] }\n```\n\n```rust,no_run\nuse roa::App;\nuse roa::preload::*;\n\n#[tokio::main]\nasync fn main() -\u003e anyhow::Result\u003c()\u003e {\n    let app = App::new().end(\"Hello, World\");\n    app.listen(\"127.0.0.1:8000\", |addr| {\n        println!(\"Server is listening on {}\", addr)\n    })?\n    .await?;\n    Ok(())\n}\n```\nRefer to [wiki](https://github.com/Hexilee/roa/wiki) for more details.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhexilee%2Froa","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhexilee%2Froa","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhexilee%2Froa/lists"}