| Crates.io | elifrs |
| lib.rs | elifrs |
| version | 0.13.0 |
| created_at | 2025-08-14 11:15:29.015025+00 |
| updated_at | 2025-09-11 13:59:12.997073+00 |
| description | elif.rs CLI - Convention over configuration web framework tooling with zero-boilerplate project generation |
| homepage | https://github.com/krcpa/elif.rs |
| repository | https://github.com/krcpa/elif.rs |
| max_upload_size | |
| id | 1794751 |
| size | 950,919 |
Production-ready LLM-friendly Rust web framework CLI - AI agent-optimized development tools
elifrs is the command-line interface for the elif.rs framework - a production-ready, spec-first Rust web framework specifically designed for AI-agent-driven development and LLM-friendly codegen patterns.
# Install globally from crates.io
cargo install elifrs
# Verify installation
elif --version
# Create a new elif.rs application
elif new my-todo-app --path ./projects/
cd projects/my-todo-app
# Set up database (PostgreSQL required)
export DATABASE_URL="postgresql://user:pass@localhost:5432/myapp_dev"
# Create your first model with migration
elif model add User email:string,name:string,age:int
# Create and run migrations
elif migrate create create_users_table
elif migrate run
# Check migration status
elif migrate status
# Generate project overview
elif map --json > project_map.json
# Run tests and validation
elif test
elif check
# Start development
cargo run
| Command | Description | Status |
|---|---|---|
elif new <name> [--path <dir>] |
Create new application with full structure | โ Production Ready |
elif check |
Run linting, type checking, and validation | โ Production Ready |
elif test [--focus <resource>] |
Execute test suites with optional filtering | โ Production Ready |
elif map [--json] |
Generate project structure map | โ Production Ready |
| Command | Description | Status |
|---|---|---|
elif model add <Name> <fields> |
Generate model with fields (email:string,age:int) | โ Production Ready |
elif migrate create <name> |
Create new database migration | โ Production Ready |
elif migrate run |
Apply pending migrations | โ Production Ready |
elif migrate rollback |
Rollback last migration batch | โ Production Ready |
elif migrate status |
Show migration status and preview | โ Production Ready |
| Command | Description | Status |
|---|---|---|
elif generate |
Generate code from resource specifications | โ Production Ready |
elif resource new <Name> --route /path --fields list |
Create new resource specification | โ Production Ready |
elif route add <METHOD> <path> <handler> |
Add HTTP route definition | โ Production Ready |
elif openapi export |
Export OpenAPI/Swagger specification | โ Production Ready |
Total Test Coverage: 353+ tests passing across all components
elif.rs is specifically designed for AI agents and LLM-driven development with predictable patterns:
// Generated application structure uses clean, AI-parseable patterns
use elif_core::{Application, Module, ServiceProvider, Container};
use elif_orm::{DatabaseServiceProvider, Model};
use elif_http::Server;
// Clean dependency injection
let mut app = Application::builder()
.provider(DatabaseServiceProvider::new(database_url))
.module(ApiModule::new())
.build()?;
// Production-ready server with middleware
let server = Server::new(container)
.middleware(SecurityMiddleware::strict())
.middleware(LoggingMiddleware::structured())
.router(api_router);
server.listen("0.0.0.0:3000").await?;
// AI-generated models with elif CLI
# elif model add User email:string,name:string,active:bool
// Results in clean, typed model:
use elif_orm::Model;
use serde::{Serialize, Deserialize};
use uuid::Uuid;
#[derive(Debug, Serialize, Deserialize, Model)]
pub struct User {
pub id: Uuid,
pub email: String,
pub name: String,
pub active: bool,
pub created_at: DateTime<Utc>,
pub updated_at: DateTime<Utc>,
}
// Automatic CRUD operations
let user = User::find(&pool, user_id).await?;
let users = User::all(&pool).await?;
let count = User::count(&pool).await?;
# Create migration
elif migrate create add_users_table
# Auto-generated SQL with proper structure
# migrations/20241215120000_add_users_table.sql
CREATE TABLE users (
id UUID PRIMARY KEY DEFAULT gen_random_uuid(),
email TEXT NOT NULL UNIQUE,
name TEXT NOT NULL,
active BOOLEAN NOT NULL DEFAULT true,
created_at TIMESTAMPTZ NOT NULL DEFAULT NOW(),
updated_at TIMESTAMPTZ NOT NULL DEFAULT NOW()
);
# Run migrations
elif migrate run
# โ Applied 1 migration(s) successfully: add_users_table
# Complete application setup
elif new ecommerce-api
cd ecommerce-api
# Database models
elif model add Product name:string,price:decimal,category:string
elif model add Order total:decimal,status:string,user_id:uuid
elif model add OrderItem quantity:int,price:decimal,product_id:uuid
# Run migrations
elif migrate run
# Generate API resources
elif resource new Product --route /api/products --fields name:string,price:decimal
elif resource new Order --route /api/orders --fields total:decimal,status:string
# Validate and test
elif check # โ All checks passed
elif test # โ 127 tests passing
# Deploy ready!
cargo run --release
# ๐ Server running on http://0.0.0.0:3000
We welcome contributions! The framework is designed for collaborative development:
git clone https://github.com/krcpa/elif.rs
cd elif.rs
cargo test # 353+ tests should pass
Licensed under the MIT License - see LICENSE.
โ
4 Complete Phases of development
๐งช 353+ Tests passing across all components
๐ Production-grade architecture and performance
๐ค AI-Agent Optimized for LLM-driven development
Build your next Rust web application with confidence!