dext  by cesarliws

Delphi full-stack framework for modern web development

Created 6 months ago
278 stars

Top 93.2% on SourcePulse

GitHubView on GitHub
Project Summary

Summary

Dext is a modern, integrated full-stack web framework for Delphi, designed to streamline development by unifying Dependency Injection, ORM, Web Pipeline, and Testing. It targets Delphi developers seeking to build high-performance web applications, APIs, and mobile backends while drastically reducing boilerplate code and infrastructure complexity, allowing teams to focus on business logic.

How It Works

Dext employs a high-performance, native architecture that consolidates essential development components. Its core features include a robust Dependency Injection system, an ORM with strongly-typed, AST-based queries and zero-code Data API generation, and a flexible Web Pipeline supporting Minimal APIs, Controllers, and native templates. Advanced asynchronous processing via Fluent Tasks and a zero-allocation streaming pipeline for data serialization enhance performance. The framework also offers seamless VCL integration and built-in support for AI agentic capabilities.

Quick Start & Requirements

Installation involves cloning the source code from GitHub, adding Dext's main modules to Delphi's library paths, and compiling the provided project group (Sources\DextFramework.groupproj). It requires Delphi 10.3 Rio or higher, with full support for versions 10.4, 11, and 12 Athens; legacy versions like 10.1 Berlin are supported with limitations. No mandatory external dependencies are required.

Highlighted Details

  • Zero-Code APIs: Automatically expose entities as RESTful endpoints using the [DataApi] attribute.
  • Type-Safe ORM: Generates Abstract Syntax Trees (AST) for queries, eliminating runtime errors from magic strings and supporting eager loading and bulk updates.
  • Async Processing: Modernizes TThread usage with a fluent, chained task abstraction for non-blocking workflows.
  • VCL Compatibility: TEntityDataSet bridges the ORM's POCOs to Delphi's TDataSet for seamless integration with data-aware components.
  • AI Integration: Includes an MCP (Model Context Protocol) Server to expose Delphi business logic as tools for AI assistants.
  • Performance: Features a zero-allocation pipeline with direct-to-JSON streaming and leverages SIMD for parsing.
  • Native HTMX Support: Facilitates dynamic web interfaces.

Maintenance & Community

Dext is a community-driven project. Contributions are encouraged through bug reports, feature suggestions, and pull requests. Community engagement is fostered via GitHub Discussions and a public Roadmap.

Licensing & Compatibility

The framework is licensed under the permissive Apache License 2.0, allowing for unrestricted commercial use, distribution, and encapsulation without royalties or hidden conditions.

Limitations & Caveats

The framework is currently in Version 1 Release Candidate (RC1), indicating potential for API changes before a stable release. Compatibility with older Delphi versions (pre-10.3 Rio) is limited.

Health Check
Last Commit

22 hours ago

Responsiveness

Inactive

Pull Requests (30d)
10
Issues (30d)
9
Star History
34 stars in the last 30 days

Explore Similar Projects

Feedback? Help us improve.