The Elegance of Laravel.
The Raw Speed of Rust.
Lumina is a developer-first Rust web framework specifically built for modern Backend APIs, microservices, and enterprise applications. Enjoy seamless routing, unified database pooling, and rapid scaffolding.
Lumen-Style Headless JSON Response
Kirim header Accept: application/json ke URL root (/) untuk langsung menerima JSON spec.
{
"name": "Lumina Framework",
"version": "0.1.6",
"engine": "Axum 0.7 + Tokio Async",
"database": {
"driver": "Postgres",
"status": "connected"
},
"documentation": "https://github.com/lumina-java/framework"
}
Dedicated API Routing
Pisahkan rute API dan Web dengan mudah. File src/routes/api.rs otomatis diprefix dengan /api lengkap dengan middleware CORS & Rate Limiter.
Unified Multi-DB Pool
Gunakan SQLite untuk development lokal cepat tanpa setup, lalu beralih ke PostgreSQL atau MySQL di production cukup dengan mengubah file .env.
Active Record Models
Tulis model database semudah di Laravel Eloquent dengan makro sakti #[derive(LuminaModel)]. Otomatis menyediakan all(), find(id), dan CRUD.
⚡ Cara Cepat Membuat API Endpoint Baru:
src/routes/api.rs
pub fn router() -> Router<AppState> {
Router::new()
.get("/products", get_products)
}
async fn get_products() -> impl IntoResponse {
Json(serde_json::json!({
"status": "success",
"data": ["Rust", "Axum", "Lumina"]
}))
}