| Crates.io | axor-web |
| lib.rs | axor-web |
| version | 0.1.0 |
| created_at | 2025-06-11 13:39:34.034752+00 |
| updated_at | 2025-06-11 13:39:34.034752+00 |
| description | HTTP runtime for the Axor framework, powered by Axum. Instantly expose agent operations over the web. |
| homepage | |
| repository | https://github.com/kinai-io/axor |
| max_upload_size | |
| id | 1708600 |
| size | 4,737 |
Axor is a modular Rust framework for backend development, focused on structuring business logic through injectable, self-contained agents. It enables instant publication across multiple environments — from HTTP to CLI and desktop — without code duplication.
One core logic, exposed anywhere — without rewriting it.
Axor empowers developers to build backends around typed agents, self-publishing operations, and a composable runtime model. With minimal boilerplate and full testability, Axor helps you scale your app — not your complexity.
AxorContext#[agent])#[operation])axor-web, powered by Axum| Crate | Role |
|---|---|
axor |
Core framework: agent system, DI, operations |
axor-web |
HTTP runtime based on Axum |
axor-tauri |
(coming soon) Tauri runtime for desktop apps |
axor-cli |
(coming soon) CLI runtime: turn agents into commands |
axor-doc |
(coming soon) Auto-generated docs + OpenAPI manifest |
#[agent]
pub struct UserService;
#[operation(GET, "/user/:id")]
fn get_user(&self, id: String) -> Result<User> {
// Your business logic here
}
fn main() {
let mut context = AxorContext::default();
context.register(UserService);
axor_web::serve(context);
}
| Framework | Typed DI | Auto Routing | Auto Op Export | Web Ready | Modular |
|---|---|---|---|---|---|
| Axor | ✅ | ✅ | ✅ | ✅ | ✅ |
| Axum | ❌ | ❌ | Handler-based | ✅ | ✅ |
| Actix Web | ❌ | ❌ | Trait-based | ✅ | ✅ |
| Shuttle Service | ✅ | ❌ | ❌ | ✅ | ❌ |
| async-graphql | ✅ | ✅ (GQL) | ✅ (#[Object]) |
❌ | ✅ |
axor-webaxor-tauri)axor-cli)axor-docMIT © Axor Contributors