Yaiko is a fullstack web framework built on Rust (Hyper + Tokio) and jQuery, designed to deliver high performance without the complexity of modern JavaScript build tools.
Why Yaiko?
Most Rust web libraries require assembling routing, authentication, migrations, and frontend build tools manually. Yaiko packages everything into one framework:
- Fast & Minimal: Handles 80,000+ RPS with sub-5ms boot times and under 15MB RAM usage.
- Batteries Included: Built-in SQLite and PostgreSQL migrations, CSRF protection, rate limiting, and WebSockets.
- No Node.js Needed: Server-rendered HTML templates with jQuery for clean frontend interactions.
Getting Started
Install the CLI tool:
cargo install yaiko
Create and run a new project:
yaiko init my-app -d sqlite
cd my-app
yaiko dev
Example Handler (src/main.rs)
use yaiko_core::{App, Router, Server, Request, Response, BoxError};
async fn home(_req: Request) -> Result<Response, BoxError> {
Ok(Response::new().html("<h1>Hello from Yaiko</h1>"))
}
#[tokio::main]
async fn main() -> Result<(), BoxError> {
let router = Router::new().get("/", home);
let app = App::new().router(router);
Server::new(app, "127.0.0.1:3000".parse()?).run().await?;
Ok(())
}
Links
- GitHub: github.com/sazalo101/yaiko
- Crates.io: crates.io/crates/yaiko
- Documentation: The Yaiko Book
Top comments (0)