Daraja is a flexible HTTP framework for Object Pascal, based on the stand-alone HTTP server in the free open source library Internet Direct (Indy).
Daraja provides the core foundation for serving HTTP resources of all content-types such as HTML pages, images, scripts, web service responses etc. by mapping resource paths to your own Object Pascal code.
The framework uses the concept of web components for resource generation, which provide distinct handlers for GET, POST and other requests to separate resource building code for all supported HTTP methods.
With the Daraja Framework, writing well organized stand alone HTTP server applications in Object Pascal requires only a few lines of code, and a minimum of installation and project set up steps.
The Daraja framework is focused on simple design principles to get you started within minutes:
The result is pure, type-safe binary code which can be embedded in applications and run as an independent HTTP server for small to medium size systems.
Daraja is compatible with the compilers
Windows platform only (Linux platform with restrictions)
|Indy||Requires Internet Direct (Indy) 10.6.2|
|Logging||Uses the SLF4P logging facade (supports LazLogger, Log4D and other loggers)|
|Source available on|
|Dual licensed under the GNU Affero General Public License Version 3 / Commercial license|
This example demonstrates HTTP GET response building for the resource path /tutorial/hello.
Unit HelloWorldResource generates the response to the GET request in the OnGet method of a subclass of TdjWebComponent:
The HelloWorldServer project code specifies the resource location, and starts the server:
This example also shows the separation of concerns: the unit which builds the response content does not specify the resource path. The framework automatically searches and executes the Object Pascal code which has been mapped to a resource path.
Use Daraja with jQuery Mobile to to build web apps for mobile devices.
A demo application (Flightplan) is included with source code.
Use Daraja with the popular Bootstrap framework to to build responsive web applications.
A demo application (Kitchen Sink) is included with source code.
Learn how Daraja helps to keep your web applications and HTTP services well structured and easy to manage:
Daraja Framework is dual licensed under the GNU Affero General Public License and a commercial license. The GNU Affero General Public License is a free, copyleft license for software and other kinds of works, specifically designed to ensure cooperation with the community in the case of network server software.
Prices below are per developer with no royalties or hidden fees.
25 € / year
99 € / year
189 € / year
|No AGPL restrictions||✓||✓||✓|
|Deploy on unlimited servers||✓||✓||✓|
|One Business Day SLA||✓|
The Daraja Framework is hosted on GitHubDownload