TGViewer
C++ - Reddit C++ - Reddit @r_cpp · 227 subscribers
Post #23952 20
A FastApi-style framework for Cpp

Hello everyone, I am trying to make something similar to fastapi.

So far I’ve implemented:

* Header-only design (just include one header to get started)
* FastAPI-style route definitions with `APP_GET` / `APP_POST` macros
* Automatic parsing of path params and JSON bodies into native C++ types or models
* Validation layer using nlohmann::json (pydantic like)
* Support for standard HTTP methods

Due to lack of reflection in cpp, working on few parts was somewhat challenging to me as a beginner. It’s still early-stage and experimental, but I’d love guidance, feedback, and contributions from the community.

Repo:- [https://github.com/YashArote/fastapi-cpp](https://github.com/YashArote/fastapi-cpp)

https://redd.it/1nvjqxe
@r_cpp
GitHub GitHub - YashArote/fastapi-cpp: A FastApi-style framework for Cpp A FastApi-style framework for Cpp. Contribute to YashArote/fastapi-cpp development by creating an account on GitHub.
More from @r_cpp
  1. Oct 17, 2026"C++23 - The Complete Guide" now as Paperback C++23 - The Complete Guide is now also avail…
  2. Oct 17, 2026A quick C++ standard container overview https://meetingcpp.com/blog/items/A-quick-Cpp-stan…
  3. Oct 17, 2026The Double Headed Stack Allocator – The blog at the bottom of the sea https://blog.demofox…
  4. Oct 17, 2026Barry's C++ Blog - Generating Operator Functions https://brevzin.github.io/c++/2026/10/14/…
  5. Oct 17, 2026MSVC Build Tools Version 14.52 Release Candidate Now Available https://devblogs.microsoft.…
  6. Oct 17, 2026C++ futures part 4: What if I want an immediate on-thread std::async? https://devblogs.mic…
Threads Profile ViewerView any public Threads profile without an account.Open ThreadLook →Writing with AI? Make it sound human.Metric37 rewrites AI drafts so they read naturally. Free AI detector, 1,500 words free.Try Metric37 →