Dext Framework Patterns

Architect Delphi backends using Dext with DI, minimal APIs, and ORM-driven patterns.

48|12|Updated Mar 20, 2026
One-click install
npx skills add https://github.com/delphicleancode/delphi-spec-kit --skill dext-framework-patterns
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: Dext Framework Patterns
Source: https://github.com/delphicleancode/delphi-spec-kit/tree/main/.gemini/skills/dext-framework
Command: npx skills add https://github.com/delphicleancode/delphi-spec-kit --skill dext-framework-patterns

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Delphi developers often struggle to enforce clean architecture in backends, lacking a cohesive pattern for DI, minimal routing, and a robust ORM, which this skill codifies as Dext Framework Patterns.

Core Features & Use Cases

  • Minimal Routing (Minimal APIs): use MapGet/MapPost with typed parameters and automatic model binding to reduce boilerplate.
  • Controlled DI: centralizes dependency resolution through a shared container to promote testability and maintainability.
  • Smart ORM with Dext.Entity: provides type-safe data access and expressive queries for scalable data layers.
  • Returns and Resilience: standardizes response patterns and async task handling for robust endpoints.

Quick Start

Create a minimal Dext API with a health endpoint using MapGet and start the web server.

Frequently Asked Questions about Dext Framework Patterns

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I structure Delphi backends with dependency injection and minimal APIs?

Delphi backends use the Dext framework to structure routing and dependency injection. It applies minimal APIs via MapGet and MapPost with typed parameters, centralizing DI through a shared container to promote testability and maintainability.

What is the best way to implement type-safe data access in a Delphi web API?

Type-safe data access in a Delphi web API is handled using Dext.Entity. This ORM-driven pattern provides expressive queries and robust data layers, reducing boilerplate while ensuring scalable and resilient data operations.

How do I create a minimal web API endpoint in Delphi?

Creating a minimal web API endpoint in Delphi uses MapGet or MapPost with typed parameters and automatic model binding. This approach reduces boilerplate and standardizes response patterns for robust endpoints.

Can I use these Delphi architecture patterns for both microservices and monoliths?

Yes, these Delphi architecture patterns apply to both microservices and monoliths. The Dext framework enforces structured routing, dependency injection, and type-safe data access for enterprise services regardless of deployment scale.

How does async task handling work in Delphi backend routing?

Async task handling in Delphi backend routing standardizes response patterns and ensures robust endpoints. The Dext framework manages asynchronous operations alongside minimal API routing and dependency injection for resilient service execution.