DX

Developer Experience

  • 70% less boilerplate
  • Declarative controllers
  • Convention over configuration
v0.8.2

elif.rs Zero-boilerplate Rust web framework

80% less code. 100% type safety. Production-ready performance. Built for humans and AI agents alike.

Start Building

DX

Developer Experience

  • Zero boilerplate
  • Instant feedback
  • Type-safe

AX

AI Experience

  • LLM-friendly
  • Self-documenting
  • Context-aware
AX

AI Experience

  • AI understands naturally
  • Self-documenting patterns
  • LLM-optimized design
Bootstrap 3 lines
#[elif::bootstrap]
fn main() {
    // That's it. Server configured and running.
}
Declarative Zero boilerplate
#[controller("/api")]
impl UserAPI {
    #[post("/users")]
    #[body(user: CreateUser)]
    async fn create(&self, user: CreateUser) -> ElifResponse {
        let user = self.service.create(user).await?;
        ElifResponse::created().json(&user)
    }
}

One macro changes everything

#[elif::bootstrap]

The Laravel moment for Rust.

01 Zero configuration
02 Everything automatic
03 Production ready
Complete App 5 minutes
// Define your module
#[module(
    controllers: [UserController, PostController],
    providers: [UserService, EmailService],
    is_app
)]
struct AppModule;

// Bootstrap magic - everything configured
#[elif::bootstrap(AppModule)]
async fn main() -> Result<(), HttpError> {
    // ✅ Dependency injection configured
    // ✅ Routes registered automatically
    // ✅ Middleware pipeline ready
    // ✅ Server running on :3000
}
From zero to production in one macro.
What it replaces 20+ lines
// Manual setup eliminated:
// ❌ No tokio::main boilerplate
// ❌ No manual DI container
// ❌ No route registration
// ❌ No server configuration
// ❌ No middleware setup
// ❌ No error handling wrapper

Start building in seconds

$ cargo install elifrs Install the CLI
$ elifrs new my-api Create your project
$ cd my-api && cargo run Your API is live!

Designed for the future

Where AI meets human intuition.

Built for the next generation of development.

01 Performance by design
02 AI-native patterns
03 Scale without limits
Performance < 1ms

Fast by default

200k+ requests/sec. Zero runtime overhead.

Great DX doesn't sacrifice performance.
Intelligence AI+

AI-native design

Claude, GPT-4, Cursor, Copilot understand naturally.

Architecture

Infinite scale

Millions of concurrent connections. Modular by design.

Security 100%

Secure by design

Memory safety. OWASP compliant.

Philosophy

01

Bootstrap Magic

One macro configures everything. Laravel-level DX.

02

AI-Native

APIs designed for LLM understanding from day one.

03

Performance + DX

200k req/sec with zero-boilerplate setup.

The paradigm shift

One macro. Zero boilerplate.

The Laravel/NestJS moment for Rust.

01 #[elif::bootstrap] magic
02 80% less setup code
03 5-minute APIs
Controller Declarative
#[controller("/api/users")]
impl UserController {
    #[post("")]
    #[body(user: CreateUserRequest)]
    async fn create(&self, user: CreateUserRequest) -> ElifResponse {
        // Direct access to typed body
        let new_user = self.service.create(user).await?;
        ElifResponse::created().json(&new_user)
    }
    
    #[put("/{id}")]
    #[param(id: i32)]
    #[body(data: UpdateUserRequest)]
    async fn update(&self, id: i32, data: UpdateUserRequest) -> ElifResponse {
        // Parameters automatically injected
        let user = self.service.update(id, data).await?;
        ElifResponse::ok().json(&user)
    }
}
LLMs understand this pattern instantly.
Request API Type-safe
// New helper methods
req.path_param_as::<i32>("id")?
req.query_param_as::<bool>("active")?
req.bearer_token()?
req.json_async::<User>().await?
Middleware V2 Laravel-style
impl Middleware for Auth {
    fn handle(&self, req: ElifRequest, next: Next) -> NextFuture {
        Box::pin(async move {
            if !authenticated(&req) {
                return ElifResponse::unauthorized();
            }
            next.run(req).await
        })
    }
}

From manual to magical

Before: Manual bootstrap
// Traditional Rust: 15-20 lines of setup
#[tokio::main]
async fn main() -> Result<(), Box<dyn Error>> {
    env_logger::init();
    dotenv::dotenv().ok();
    
    let db = Database::connect(&env::var("DATABASE_URL")?)?;
    run_migrations(&db).await?;
    
    let config = Config::from_env()?;
    let app_state = AppState::new(db, config);
    
    let app = Router::new()
        .merge(user_routes())
        .merge(auth_routes())
        .layer(cors_layer())
        .layer(trace_layer())
        .with_state(app_state);
    
    let addr = SocketAddr::from(([0, 0, 0, 0], 3000));
    axum::Server::bind(&addr)
        .serve(app.into_make_service())
        .await?;
    Ok(())
}
elif.rs: Zero boilerplate
// elif.rs: 3 lines. Everything configured.
#[elif::bootstrap]
fn main() {
    // Database, migrations, logging, tracing, CORS, server - all ready.
}

Endpoints that write themselves

Before: Verbose handlers
// Manual parameter extraction
async fn update_user(
    Path(id): Path<i32>,
    State(state): State<AppState>,
    Json(payload): Json<UpdateUser>
) -> Result<impl IntoResponse, AppError> {
    // Manual auth check
    let token = extract_bearer_token(&req)?;
    let claims = verify_token(&token)?;
    
    // Service call
    let user = state.service
        .update_user(id, payload)
        .await?;
    
    Ok(Json(user))
}
elif.rs: Declarative
// Everything auto-injected
#[put("/{id}")]
#[param(id: i32)]
#[body(data: UpdateUser)]
async fn update(&self, id: i32, data: UpdateUser) -> ElifResponse {
    let user = self.service.update(id, data).await?;
    ElifResponse::ok().json(&user)
}
Complete API 10 lines
#[elif::bootstrap]
fn main() {}

#[controller("/api")]
impl ApiController {
    #[get("/health")]
    async fn health(&self) -> ElifResponse {
        ElifResponse::ok().json(&json!({ "status": "healthy" }))
    }
}
Complete API server. Production ready.
Async Natural
async fn handler(req: &ElifRequest) {
    let user = req.json_async::<User>().await?
    ElifResponse::ok().json(&user)
}
Database Fluent
let users = User::query()
    .where_email_like("%@domain.com")
    .limit(10)
    .get().await?;

Expressive syntax

Rust that reads like poetry.

Write with intention. Code with clarity.

01 Intuitive patterns
02 Zero ceremony
03 Natural flow

The difference is clear

Before: Complex routing
// Traditional: Manual route registration
let app = Router::new()
    .route("/api/users", get(list_users))
    .route("/api/users", post(create_user))
    .route("/api/users/:id", get(get_user))
    .route("/api/users/:id", put(update_user))
    .route("/api/users/:id", delete(delete_user))
    .layer(cors_layer())
    .layer(auth_layer());
elif.rs: One attribute
// Convention over configuration
#[controller("/api/users")]
#[middleware(cors, auth)]
impl UserController {
    // All routes auto-generated
}
Before: Manual parsing
// Extracting request data manually
let id = req.param("id")
    .ok_or_else(|| Error::MissingParam)?
    .parse::<i32>()
    .map_err(|_| Error::InvalidParam)?;

let query = req.uri().query()
    .ok_or_else(|| Error::MissingQuery)?;
let params = parse_query(query)?;
let active = params.get("active")
    .map(|v| v == "true")
    .unwrap_or(false);
elif.rs: Type-safe helpers
// Direct, type-safe access
let id = req.path_param_as::<i32>("id")?;
let active = req.query_param_as::<bool>("active")?;

Everything you need

A complete ecosystem designed for modern development

elifrs

Zero-boilerplate CLI with #[elif::bootstrap] magic.

cargo install elifrs v0.8.2

DX Core Packages

elif-http HTTP server & routing
elif-orm Database ORM
elif-auth Authentication
elif-validation Input validation

AX Advanced Features

elif-openapi Auto API docs
elif-testing Test utilities
elif-security Security middleware
elif-cache Caching system

Essential packages

elif-core Foundation

Core framework architecture

elif-http Essential

Web server & WebSockets

elif-queue Production

Background job processing

elif-middleware V2

Composable middleware

Ready for the future of development?

Join the community building with both human and AI intelligence