Getting Started with Khadem

Welcome to Khadem — the Dart-powered backend framework for building fast, scalable APIs and CLI tools.

Why Khadem?

Khadem is designed from the ground up for performance, productivity, and developer joy. Whether you're building microservices, monoliths, or CLI tools, Khadem gives you the modern backend features you need — powered by Dart.

  • 🚀 Dart Isolates: Harness true concurrency and multithreading using Dart’s Isolate system. Handle thousands of connections with zero blocking.
  • 🧠 Smart Architecture: Structured with modular services, events, and middleware for clean, maintainable code.
  • 📦 Built for APIs: REST-first, JWT-ready, and highly customizable routing.

What is Khadem?

Khadem (خادم) is a modern and expressive backend framework built for the Dart language. It offers:

  • ⚡ High Performance: Powered by Dart's JIT and AOT compilation
  • 🧱 Modular Design: Clean architecture using Dependency Injection
  • 🚀 Production Ready: Environment configs, JWT auth, and Docker-ready

Key Features

Service Container

Powerful and flexible dependency injection system.

Event System

Decouple your logic using async event-driven architecture.

CLI Tools

Intuitive commands to generate code and manage your app.

Migrations & ORM

Manage your database schema and models with ease.

Dart Isolates

Concurrency made easy with Isolates — scale beyond traditional async.

Middleware & Routing

Clean and modular routing with full middleware support.

Quick Start

Follow these steps to spin up your first project:

bash
# Install Khadem globally
dart pub global activate khadem

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

# Navigate to project directory
cd my_api

# Start development server (multi-threaded Isolate support!)
khadem serve

On this page