High-Performance Web Framework for Modern C++
Build blazing-fast APIs and web applications with the raw power of C++ and an elegant, Express.js-inspired syntax
Framework Features
Boson provides a comprehensive set of features designed for high-performance web development
High Performance
Process over 100,000 requests per second with ultra-low latency. Engineered for speed from the ground up.
Modern C++ (17/20)
Built with the latest C++ features for safer, cleaner, and more maintainable code.
Express-Inspired API
Familiar syntax makes web development in C++ accessible, even to those coming from JavaScript.
Memory Efficient
Only a fraction of the memory footprint compared to JavaScript or Python frameworks.
Built-in Middleware
Easily extend request processing with global or route-specific middleware for modular architecture.
Production Ready
Comprehensive error handling, logging, and security features for robust production deployments.
Elegant, Express-Inspired API
Write beautiful, maintainable C++ code that feels like modern web frameworks while keeping all the performance benefits
#include <boson/boson.hpp>
int main() {
boson::initialize();
boson::Server app;
// Simple middleware
app.use([](const boson::Request& req, boson::Response& res, boson::NextFunction& next) {
std::cout << "[" << req.method() << "] " << req.path() << std::endl;
next();
});
// JSON API endpoint
app.get("/api/users/:id", [](const boson::Request& req, boson::Response& res) {
std::string id = req.param("id");
res.jsonObject({
{"id", id},
{"name", "User " + id},
{"email", "user" + id + "@example.com"}
});
});
app.configure(3000, "127.0.0.1");
return app.listen();
}
CRUSHING THE COMPETITION
While other frameworks struggle with basic loads, Boson delivers raw, unmatched power for the most demanding applications
Face it — your current tech stack is holding you back. Why settle for frameworks that choke under pressure when Boson handles what others can only dream of achieving?
And Memory Usage? It's Not Even a Contest.
While Python and Node.js bloat to hundreds of MB of RAM, Boson delivers the same functionality in just 3MB.
Cut your server costs by 90%. Run 10x more instances on the same hardware. Scale further than ever before.
Perfect For High-Performance Applications
Boson excels in scenarios where performance, efficiency, and reliability are critical
High-Volume APIs
Handle millions of requests with minimal resources. Perfect for high-traffic APIs where every millisecond counts.
Gaming Backends
Process real-time events with ultra-low latency for responsive multiplayer experiences and game services.
Trading Systems
Execute time-sensitive financial operations with the reliability and speed that C++ is known for.
IoT Applications
Optimize for constrained environments where resources are limited but performance demands are high.
Get Started in Minutes
Boson makes it easy to start building high-performance web applications with a simple setup process
Install Boson
curl -fsSL https://raw.githubusercontent.com/S1D007/boson/main/install.sh | bash
Create a New Project
boson new my-project && cd my-project
Run Your Server
boson run -w