dotpas/dext

Dext - Modern Full Stack Framework for Delphi

What it solves

Dext provides a comprehensive, native full-stack infrastructure for Delphi developers, eliminating the need to piece together disparate libraries for dependency injection, ORM, web APIs, and telemetry. It aims to bridge the gap between legacy Delphi systems and modern development patterns (similar to ASP.NET Core), allowing developers to build high-performance, native binaries with small memory footprints and instant startup times.

How it works

It functions as a unified ecosystem that integrates several core modules:

  • Web Pipeline: Supports Minimal APIs, Controllers, and a "DataAPI" that can automatically generate REST endpoints from entities.
  • ORM: A type-safe Object-Relational Mapper with change tracking, Unit of Work, and support for multiple database dialects.
  • Core Infrastructure: Implements dependency injection (Singleton, Transient, Scoped), cached RTTI, and configuration management (JSON, YAML, environment variables).
  • Concurrency: Uses TAsyncTask and cancellation tokens to handle asynchronous operations without manual thread management.
  • AI Integration: Includes a native Model Context Protocol (MCP) server to expose Delphi business rules as tools for AI agents like Claude and Cursor.
  • Telemetry: A built-in dashboard for tracking structured logs, SQL execution, and HTTP latency.

Who it’s for

  • Delphi developers building high-throughput APIs, web applications, or mobile backends.
  • Teams maintaining large legacy ERP systems who want to modernize their stack without rewriting the entire codebase.
  • Developers needing native performance (no JIT/cold starts) for microservices, IoT, or background jobs.

Highlights

  • Native MCP Server: Directly exposes business logic as tools for AI agents.
  • Zero-Allocation Pipeline: Uses SIMD and UTF-8 processing to minimize memory overhead during JSON handling.
  • Type-Safe ORM: Builds query ASTs in Pascal to avoid runtime errors caused by magic strings.
  • Integrated Telemetry: Real-time dashboard for monitoring SQL tracing and system metrics.
  • Design-Time Integration: Provides context-menu scaffolding and live data previews within the Delphi IDE.

관련

  • 프로젝트
  • 프로젝트
  • 프로젝트
  • 프로젝트
  • 프로젝트