Lumina v0.1.6 • High-Performance Rust Backend Engine

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.

Framework Version
Lumina 0.1.6
Rust 2021 Edition
Runtime Engine
Axum 0.7
Tokio Multi-Threaded Async
Database Driver
Postgres
connected
Environment
Local
Debug Mode Active
Dual-Mode API

Lumen-Style Headless JSON Response

Kirim header Accept: application/json ke URL root (/) untuk langsung menerima JSON spec.

1. Coba Request via Terminal / cURL:
bash terminal GET /
curl -H "Accept: application/json" http://127.0.0.1:8000/
2. JSON Response yang Dihasilkan:
{
  "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.

Cek /api/health →
🗄️

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.

PostgreSQL • MySQL • SQLite
🪄

Active Record Models

Tulis model database semudah di Laravel Eloquent dengan makro sakti #[derive(LuminaModel)]. Otomatis menyediakan all(), find(id), dan CRUD.

Pelajari Makro Model →

⚡ Cara Cepat Membuat API Endpoint Baru:

1
Daftarkan rute di src/routes/api.rs
pub fn router() -> Router<AppState> {
    Router::new()
        .get("/products", get_products)
}
2
Kembalikan respons JSON dengan mudah:
async fn get_products() -> impl IntoResponse {
    Json(serde_json::json!({
        "status": "success",
        "data": ["Rust", "Axum", "Lumina"]
    }))
}