SaaSHub helps you find the best software and product alternatives Learn more →
Top 12 C++ single-header-lib Projects
-
webview
Tiny cross-platform webview library for C/C++. Uses WebKit (GTK/Cocoa) and Edge WebView2 (Windows).
Project mention: Webview – cross-platform HTML5 UI abstraction layer | news.ycombinator.com | 2026-06-16 -
SaaSHub
SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives
-
-
-
I see `dotnet watch` being mentioned for code hot reload which is such a great feature for quickly iterating on a game. Not having to restart the whole game just because one has changed a few if statements and values really helps staying in the flow.
But I'm still not too enthusiastic about having GC in C# which is why ideally I'd like to start making a small 2D game just with SDL3 and C++ but how could I get this nice hot reload workflow there? I don't have the money to pay for expensive proprietary tools like https://liveplusplus.tech so what can I do? I guess there's the "game as dynamic library" trick from Handmade Hero (see https://www.youtube.com/shorts/seWAIURXxH0) so maybe that would work good enough? Maybe https://github.com/fungos/cr would do most of what's needed here?
Also, how does one even do modern C++ these days? Is it possible to have big C++ code bases that still compile fast these days? Is CMake 4 good™ now? Are modules really there yet? I rely on clangd as LSP for working with C++ but I read that clangd still fundamentally struggles with C++ modules https://chuanqixu9.github.io/c++/2025/12/03/Clangd-support-f... and it's so bad that there has even been some effort going into making a new C++ LSP https://github.com/clice-io/clice
-
-
-
matchit.cpp
match(it): A lightweight single-header pattern-matching library for C++17 with macro-free APIs.
-
-
-
-
-
C++ single-header-lib discussion
C++ single-header-lib related posts
-
Webview – cross-platform HTML5 UI abstraction layer
-
Ported my C game to WASM, here's everybug that I hit
-
Much Faster than std::string, fmt::format, std::to_chars, std::time and more?
-
C++20 std::format is 2x slower than std::fstream?
-
Nanobench: Fast, single-header microbenchmarking functionality for C++
-
Shocked by the size of std::bitset
-
GUI heavy games - what are my options
-
A note from our sponsor - SaaSHub
www.saashub.com | 18 Jun 2026
Index
What are some of the best open-source single-header-lib projects in C++? This list will help you:
| # | Project | Stars |
|---|---|---|
| 1 | webview | 14,105 |
| 2 | indicators | 3,391 |
| 3 | tabulate | 2,163 |
| 4 | cr | 1,747 |
| 5 | nanobench | 1,680 |
| 6 | icecream-cpp | 744 |
| 7 | matchit.cpp | 644 |
| 8 | csv2 | 619 |
| 9 | structopt | 507 |
| 10 | imgui_entt_entity_editor | 272 |
| 11 | rapidobj | 219 |
| 12 | Heady | 63 |