Skip to main content
Horse Logo

Horse

Fast, opinionated, minimalist web framework for Delphi and Lazarus

Why Horse?

Horse is designed to make building web applications and APIs in Delphi as simple and straightforward as possible. Inspired by Express.js, Horse brings modern web framework patterns to the Delphi ecosystem.

Express.js Inspired

Familiar, elegant API inspired by the popular Express.js framework

Lightning Fast

Built for performance with minimal overhead

Multiple Deployment Options

Deploy as Console, VCL, Apache, ISAPI, CGI, Daemon, or FastCGI

Rich Middleware Ecosystem

Extensive collection of official and community middlewares

Quick Example

Get a simple REST API running in just a few lines of code:
Console.dpr
program Console;

uses Horse;

begin
  THorse.Get('/ping',
    procedure(Req: THorseRequest; Res: THorseResponse)
    begin
      Res.Send('pong');
    end);

  THorse.Listen(9000);
end.

Key Features

HTTP Routing

Support for GET, POST, PUT, DELETE, PATCH, and HEAD methods

Middleware System

Chain middleware functions for request/response processing

Route Grouping

Organize routes with prefixes and shared middleware

Session Management

Built-in session management support

File Handling

Easy file upload and download capabilities

SSL/TLS Support

Secure your applications with built-in SSL/TLS support

Getting Started

1

Install Horse

Install Horse using the Boss package manager
boss install horse
2

Create Your First Route

Write a simple endpoint to get started
THorse.Get('/hello',
  procedure(Req: THorseRequest; Res: THorseResponse)
  begin
    Res.Send('Hello World!');
  end);
3

Start Your Server

Launch your application and start handling requests
THorse.Listen(9000);

Community & Support

Join our Telegram

Connect with the Horse community

Browse Examples

Explore real-world examples and use cases

Explore Middlewares

Discover official and community middlewares

Contribute

Help make Horse even better

Supported Platforms

Horse works with multiple Delphi and Lazarus versions:
  • Delphi: XE7, XE8, 10 Seattle, 10.1 Berlin, 10.2 Tokyo, 10.3 Rio, 10.4 Sydney, 11 Alexandria, 12 Athens, 13 Florence
  • Lazarus: Free Pascal Compiler (FPC) support

License

Horse is free and open-source software licensed under the MIT License.

Build docs developers (and LLMs) love