⚠️ Warning: Axeu is under active development and not production-ready.
Features and APIs may change without notice.
- ✅ Header-only: Just include and go
- ⚙️ Modern C++ (C++17+) API design
- 📦 No external dependencies beyond Asio
- 🚀 Blazing-fast routing with minimal runtime overhead
#include "axeu.hpp"
int main() {
axeu::app app;
app.get("/", [](const axeu::request &) {
return axeu::response(200, "Welcome to Axeu!");
});
app.get("/hello/<str>", [](const axeu::request &req) {
auto name = req.get_param<std::string>(0);
return axeu::response(200, "Hello, " + name + "!");
});
app.get("/add/<int>/<int>", [](const axeu::request &req) {
int a = req.get_param<int>(0);
int b = req.get_param<int>(1);
return axeu::response::json(200, {{"sum", std::to_string(a + b)}});
});
app.port(8000).run();
}You need a C++17+ compiler (e.g. clang++ or g++) and Asio (either standalone or via Boost).
sudo apt install libasio-dev # or install manuallyclang++ -std=c++17 -o server main.cpp
./serverTo install Axeu globally using CMake:
git clone https://github.com/Srinath10X/Axeu.git && cd Axeu
cmake --build build && sudo cmake --install buildThis installs the header to your system include path.
app.get(path, handler);
app.post(path, handler);
app.put(path, handler);
app.del(path, handler);
app.port(port_number).run();Use <int> or <str> in route paths:
/user/<int>→ casts toint/hello/<str>→ casts tostd::string
Axeu is licensed under the Apache License 2.0.
Use it freely in personal, academic, or commercial projects.
Inspired by:
Happy hacking! 🧠⚙️
