Skip to content

Xpress++Fast C++ APIs for web, data, and native AI.

Build Drogon-powered services with an Express-like API, built-in middleware, SQL tooling, and lightweight helpers for exposing C++ AI workloads.

Empowered by C++ Hardware Performance

Production metrics under peak concurrent load (400 concurrent connections, 16-core CPU)

250K+Requests / SecondSaturates multi-core hardware
1.89msAverage LatencyFlat response times
19.3MBPeak Memory Usagemicroscopic RAM footprint
70xMemory EfficientVS Express & FastAPI

Wrap native C++ workloads in clean HTTP APIs

Use Xpress++ for API services, SQL-backed backends, and local AI runtimes such as llama.cpp, ONNX Runtime, Whisper.cpp, or custom C++ inference.

curl -fsSL https://raw.githubusercontent.com/aaryan359/xpresspp/main/install.sh | bash

Familiar API, Native Runtime

Keep the route shape readable while your hot path stays close to Drogon, C++ libraries, and native model runtimes.

cpp
#include <xpresspp/xpresspp.h>

int main() {
    xp::App app;

    app.get("/api/user", [](xp::Request&, xp::Response& res) {
        res.ok({
            {"status", "success"},
            {"user", "Aaryan"}
        });
    });

    app.listen(3000);
    return 0;
}
javascript
const express = require('express');
const app = express();

// Familiar route shape
app.get('/api/user', (req, res) => {
    res.json({
        status: 'success',
        user: 'Aaryan'
    });
});

app.listen(3000);

What You Can Build Today

The alpha focuses on the pieces that are already useful: HTTP APIs, middleware, SQL-backed services, and native C++ workloads.

HTTP

Drogon-powered performance

Built on top of Drogon, one of the fastest HTTP frameworks in the world. Handles thousands of requests per second out of the box.

API

Express-style API

If you've used Express.js, you already know Xpress++. Routes, middleware, and responses all work exactly the way you'd expect.

ERR

Rich error handling

Typed HTTP errors, developer hints in debug mode, and colored terminal output so you always know exactly what went wrong.

MW

Built-in middleware

CORS, rate limiting, security headers, request IDs, and body limits — all included, zero config required.

C++20

Modern C++20

Uses lambdas, std::optional, std::filesystem, structured bindings, and other C++20 features for clean, expressive code.

CLI

First-class CLI

Create, build, run, and watch your projects with a single command. The xp CLI handles CMake so you don't have to.

Built with ❤️ on top of Drogon, the world's fastest C++ HTTP framework.