Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 27 additions & 0 deletions frameworks/handy-httpd/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
FROM ubuntu:24.04 AS build

RUN apt-get update && \
apt-get install -y --no-install-recommends \
curl gcc xz-utils ca-certificates pkg-config \
libsqlite3-dev zlib1g-dev && \
rm -rf /var/lib/apt/lists/*

# Install LDC
ARG LDC_VERSION=1.42.0
RUN curl -fsSL "https://github.com/ldc-developers/ldc/releases/download/v${LDC_VERSION}/ldc2-${LDC_VERSION}-linux-x86_64.tar.xz" \
| tar xJ -C /opt && \
ln -s /opt/ldc2-${LDC_VERSION}-linux-x86_64 /opt/ldc
ENV PATH="/opt/ldc/bin:${PATH}"

WORKDIR /app
COPY dub.sdl .
COPY src ./src
RUN dub build -b release --compiler=ldc2

FROM ubuntu:24.04
RUN apt-get update && \
apt-get install -y --no-install-recommends libsqlite3-0 zlib1g && \
rm -rf /var/lib/apt/lists/*
COPY --from=build /app/httparena-handy-httpd /server
EXPOSE 8080
CMD ["/server"]
20 changes: 20 additions & 0 deletions frameworks/handy-httpd/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# handy-httpd

An extremely lightweight HTTP server for the [D programming language](https://dlang.org/).

- **Language:** D
- **Repository:** https://github.com/andrewlalis/handy-httpd
- **Stars:** ~36
- **Compiler:** LDC2 (LLVM-based D compiler)

## About

handy-httpd is a solo-dev passion project by [@andrewlalis](https://github.com/andrewlalis), maintained since 2021. It provides a clean, composable API with routing via `PathHandler`, WebSocket support, and middleware via filters — all while staying extremely lightweight.

D compiles to native code via LLVM (LDC) and offers manual memory management with optional GC, making it an interesting performance data point between C/C++ and higher-level languages.

## Build

```bash
docker build -t httparena-handy-httpd .
```
9 changes: 9 additions & 0 deletions frameworks/handy-httpd/dub.sdl
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
name "httparena-handy-httpd"
targetType "executable"
targetName "httparena-handy-httpd"

dependency "handy-httpd" version="~>8.7.0"
dependency "d2sqlite3" version="~>1.0.0"

dflags "-O3" "-release" "-boundscheck=off" "-link-defaultlib-shared=false" platform="ldc"
lflags "-lsqlite3" "-lz"
18 changes: 18 additions & 0 deletions frameworks/handy-httpd/meta.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"display_name": "handy-httpd",
"language": "D",
"type": "framework",
"engine": "handy-httpd",
"description": "Extremely lightweight HTTP server for the D programming language. Solo-dev passion project with routing, WebSocket support, and clean API.",
"repo": "https://github.com/andrewlalis/handy-httpd",
"enabled": true,
"tests": [
"baseline",
"pipelined",
"limited-conn",
"json",
"upload",
"compression",
"mixed"
]
}
Loading
Loading