Welcome to Khadem

A powerful, modern Dart backend framework for building high-performance, scalable web applications with elegance and full control.

Dart >=3.0.0 Apache 2.0

What is Khadem?

Khadem (خادم) is a comprehensive backend framework designed for developers who demand performance, elegance, and full control. Built with Dart, it provides everything you need to create robust web applicationsfrom dependency injection and modular architecture to authentication, background jobs, and deployment tools.

Whether you are building microservices, monolithic applications, or CLI tools, Khadem gives you modern backend features powered by Dart's exceptional speed and efficiency.

High Performance

Dart JIT & AOT compilation for exceptional speed

Modular Design

Clean architecture with service providers & DI

Production Ready

JWT auth, Docker support, and security built-in

Quick Start

Get started with Khadem in under 2 minutes. Install the CLI, create a project, and start building.

bash
# Install Khadem CLI globally
dart pub global activate khadem

# Create a new project
khadem new --name=my_api

# Navigate to project directory
cd my_api

# Install dependencies
dart pub get

# Start development server with hot reload
khadem serve

Pro tip: Use khadem serve for development with hot reload support, leveraging Dart isolate system for true concurrency.

Key Features

Khadem comes packed with powerful features to accelerate your development and simplify complex tasks.

Service Container

Powerful dependency injection system with automatic resolution, singleton support, and flexible binding options.

Event System

Decouple your application logic with async event-driven architecture and listener-based patterns.

CLI Tools

Comprehensive command-line tools with automatic discovery, code generation, and project scaffolding.

Database & ORM

Full migration system, database seeders, and MySQL support with an extensible driver architecture.

Queue & Jobs

Background job processing with Redis queue support for asynchronous task handling.

Authentication

JWT-based authentication system with secure token generation, multi-device support, and middleware protection.

Middleware & Routing

Clean, modular routing with full middleware support for request/response processing.

Caching

Multiple caching drivers including Redis and memory-based caching for optimal performance.

File Storage

Flexible file upload and storage management system with support for multiple storage drivers.

Validation

Comprehensive validation rules with custom error messages and multi-language support.

Logging

Structured logging system with multiple output formats and configurable log levels.

Internationalization

Built-in i18n support with JSON-based translations and dot-notation access.

Why Choose Khadem?

Performance First

Built with Dart for exceptional speed, leveraging JIT during development and AOT for production deployments.

Developer Experience

Intuitive API design with excellent tooling, auto-discovery, and comprehensive code generation capabilities.

Modern Structure

Follows Dart package conventions with organized lib directory structure and clear separation of concerns.

Full Control

No magic complete transparency and control over your application with explicit configuration.

Scalable Architecture

Designed to handle growth from prototype to production scale with Dart isolates for true concurrency.

Security Built-in

Security best practices included from the ground up with JWT authentication and middleware protection.

Docker Ready

Production-ready with Docker support and optimized containers for seamless deployment.

Active Development

Growing ecosystem with continuous improvements, taking advantage of the latest Dart features.

Requirements

Required

  • Dart SDK: 3.0.0
  • Platforms: Windows, macOS, Linux

Optional

  • Database: MySQL (for database features)
  • Cache: Redis (for caching & queues)

Community & Support

Join our growing community of Dart backend developers and get the help you need.

Built with passion for the Dart community by Khedr Mahmoud

Empowering developers to build powerful backend applications with the elegance and performance of Dart

On this page