Welcome to Baldr¶
Baldr is a lightweight and modern C++ microframework for building scalable and secure HTTP servers. It provides an expressive, composable architecture inspired by contemporary web frameworks, with first-class support for dependency injection, middleware, and modern C++ features out of the box.
Whether you're creating REST APIs, backend services, or embedded control interfaces, Baldr empowers C++ developers to write clean and modular server-side applications.
Key features¶
- Compositional HTTP server with routing, request/response lifecycle, and middleware.
- Dependency injection container for clean architecture and testability.
- Built-in middleware for logging and rate limiting.
- Modern C++ APIs built on smart pointers, generic lambdas, and RAII.
- Zero-overhead abstractions with performance in mind.
- Easily extensible using your own components and middlewares.
Where to go next¶
-
Get started
Install Baldr with CMake and run your first endpoint in minutes.
-
Tutorial
Six progressive pages covering routing, DI, middleware, static files, and testing.
-
Usage
Learn how routing, dependency injection, and middleware fit together.
-
Examples
Browse runnable examples for REST APIs, DI, and rate-limited endpoints.
License¶
Baldr is released under the MIT License. See the license page for details.
Stay in touch¶
- GitHub repository
- Issues and discussions are tracked on GitHub