Stream helps developers build engaging apps that scale to millions with performant and flexible Chat, Feeds, Moderation, and Video APIs and SDKs powered by a global edge network and enterprise-grade infrastructure. Learn more →
Top 15 C++ single-file Projects
-
-
Stream
Stream - Scalable APIs for Chat, Feeds, Moderation, & Video. Stream helps developers build engaging apps that scale to millions with performant and flexible Chat, Feeds, Moderation, and Video APIs and SDKs powered by a global edge network and enterprise-grade infrastructure.
-
Magic Enum C++
Static reflection for enums (to string, from string, iteration) for modern C++, work with any enum type without any macro or boilerplate code
-
Nameof C++
Nameof operator for modern C++, simply obtain the name of a variable, type, function, macro, and enum
-
-
-
-
span-lite
span lite - A C++20-like span for C++98, C++11 and later in a single-file header-only library
-
InfluxDB
InfluxDB – Built for High-Performance Time Series Workloads. InfluxDB 3 OSS is now GA. Transform, enrich, and act on time series data directly in the database. Automate critical tasks and eliminate the need to move data externally. Download now.
-
expected-lite
expected lite - Expected objects in C++11 and later in a single-file header-only library
-
string-view-lite
string_view lite - A C++17-like string_view for C++98, C++11 and later in a single-file header-only library
-
-
-
-
-
ring-span-lite
ring-span lite - A C++yy-like ring_span type for C++98, C++11 and later in a single-file header-only library
-
-
SaaSHub
SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives
C++ single-file discussion
C++ single-file related posts
-
Refactoring with C++17 std::optional
-
Is there a std::string::split or something similar?
-
The 23 year-old C++ developers with three job offers over $500k
-
Nanobench: Fast, Accurate, Single-Header Microbenchmarking Functionality For C++
-
C++ Return: std::any, std::optional, or std::variant?
-
A note from our sponsor - Stream
getstream.io | 15 Jul 2025
Index
What are some of the best open-source single-file projects in C++? This list will help you:
# | Project | Stars |
---|---|---|
1 | doctest | 6,305 |
2 | Magic Enum C++ | 5,527 |
3 | Nameof C++ | 2,213 |
4 | tomlplusplus | 1,790 |
5 | nanobench | 1,570 |
6 | Argh! | 1,383 |
7 | span-lite | 498 |
8 | expected-lite | 477 |
9 | string-view-lite | 443 |
10 | semver | 330 |
11 | imgui_entt_entity_editor | 239 |
12 | serializer | 195 |
13 | scope_guard | 191 |
14 | ring-span-lite | 159 |
15 | reflect | 15 |