DAF β Delphi Application Foundation
Community Edition

Bringing modern practices to Delphi
Dependency Injection Β· Structured Logging Β· Configuration Β· CQRS Β· BDD Testing
What is DAF?
DAF is a modular and extensible library for building structured, maintainable, and testable Delphi applications. It modernizes Delphi development by promoting patterns inspired by the .NET ecosystem β making it a natural bridge for developers coming from C#.
π Dependency Injection
A full DI container modeled after Microsoft.Extensions.DependencyInjection. Supports singleton, transient and scoped lifetimes.
π Hosting
IHost and IHostBuilder for application composition and lifecycle β just like ASP.NET Core.
βοΈ Configuration
Bind configuration from JSON, environment variables, and in-memory sources to typed Delphi classes.
π Logging
Structured logging with scopes and message templates, modeled after Microsoft.Extensions.Logging.
βοΈ MediatR
CQRS and in-process messaging: commands, queries, notifications and pipelines.
π§ͺ MiniSpec
BDD testing framework inspired by Cucumber and RSpec, with Gherkin-style specs in Delphi.