Fast
Built on Boost.Asio and Boost.Beast with asynchronous networking, efficient request handling, and low framework overhead.
MODERN C++ WEB FRAMEWORK
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();
}WHY MACH?
Modern C++ gives you performance and control. Mach adds the application model needed to build real HTTP services without assembling every layer yourself.
Built on Boost.Asio and Boost.Beast with asynchronous networking, efficient request handling, and low framework overhead.
Use concise Minimal APIs or structured controllers with typed results, automatic binding, middleware, and strongly typed framework APIs.
Routing, dependency injection, validation, JSON, cookies, CORS, CSRF, exception handling, logging, and application configuration are built in.
PERFORMANCE
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 benchmarksBUILT IN
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
Install Mach, create a project, and start serving HTTP requests in minutes.