Skip to content
Download

Mach

MODERN C++ WEB FRAMEWORK

Mach

Modern web applications. Native C++ performance.

Mach brings routing, controllers, dependency injection, middleware, validation, JSON binding, and modern application architecture to high-performance C++20 HTTP services.

#include <mach/mach.hpp>

int main() {
    mach::AppBuilder builder;
    auto app = builder.build();

    app.mapGet("/", [] {
        return mach::ok("Hello, World!");
    });

    return app.run();
}
C++20AsynchronousType-safeCross-platform

WHY MACH?

Everything you expect from a modern web framework.

Modern C++ gives you performance and control. Mach adds the application model needed to build real HTTP services without assembling every layer yourself.

01

Fast

Built on Boost.Asio and Boost.Beast with asynchronous networking, efficient request handling, and low framework overhead.

02

Expressive

Use concise Minimal APIs or structured controllers with typed results, automatic binding, middleware, and strongly typed framework APIs.

03

Complete

Routing, dependency injection, validation, JSON, cookies, CORS, CSRF, exception handling, logging, and application configuration are built in.

PERFORMANCE

Built to be fast.

~280krequests / second

Mach uses asynchronous networking throughout its HTTP stack and keeps the abstraction between your endpoint and the network deliberately small.

Plain-text benchmark on Ubuntu using wrk on an Intel Core i7-13620H.

View benchmarks

BUILT IN

Everything you need to build an HTTP application.

Mach provides the application-level tools you would expect from a modern web framework, while keeping the underlying C++ model visible and predictable.

GET STARTED

Build your first Mach application.

Install Mach, create a project, and start serving HTTP requests in minutes.