SaaSHub helps you find the best software and product alternatives Learn more →
Top 23 C++ header-only Projects
-
-
SaaSHub
SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives
-
Project mention: Show HN: Logfmtxx – Header only C++23 structured logging library using logfmt | news.ycombinator.com | 2024-04-03
Why a new lib instead of using or contributing to an existing one as spdlog?
https://github.com/gabime/spdlog
-
-
Project mention: Using Jolt with flecs & Dear ImGui: Game Physics Introspection | dev.to | 2024-04-17
EnTT is a popular alternative to flecs for C++, which has different performance/memory characteristics.
-
Closest thing I've heard:
https://github.com/g-truc/glm?tab=License-1-ov-file#readme
-
FTXUI
Features: - Functional style. Inspired by [1] and React - Simple and elegant syntax (in my opinion). - Support for UTF8 and fullwidth chars (→ 测试). - No dependencies. - Cross platform. Linux/mac (main target), Windows (experimental thanks to contributors), - WebAssembly. - Keyboard & mouse navigation. Operating systems: - linux emscripten - linux gcc - linux clang - windows msvc - mac clang
libaloo is a C library which uses GTK4 behind the scenes to create an GTK application It’s mainly written in C. It also has a CLI and CLI with TUI written in C++ with FtxUI but to set it up, Python is used.
-
-
-
catch2 has become fairly bloated. doctest takes all of the best parts of catch2 without all the bloat and the end result is a test framework that is literally over 10x faster than catch2. It's also like 90% compatible with catch2 so porting your tests to it is pretty easy.
Especially if you have a build process that always runs your unit tests, it's nice to have a very fast test/compile/debug loop.
https://github.com/doctest/doctest
-
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
-
-
Project mention: Implementing Regular Expressions in TypeScript Types (Badly) | news.ycombinator.com | 2024-10-20
Hana Dusikova did this in C++ several years ago, with her CTRE library.
https://github.com/hanickadot/compile-time-regular-expressio...
Of course, it has all the usual tradeoffs of compile-time template programming.
-
-
-
-
Alternatives are glog from Google is full-featured, like spdlog, while Plog offers a lightweight alternative. Both are worthy upgrades on using C++ built-in std::clog.
-
-
Nameof C++
Nameof operator for modern C++, simply obtain the name of a variable, type, function, macro, and enum
-
-
-
-
uvw
Header-only, event based, tiny and easy to use libuv wrapper in modern C++ - now available as also shared/static library!
-
C++ header-only discussion
C++ header-only related posts
-
Implementing Regular Expressions in TypeScript Types (Badly)
-
libaloo (Aloo)
-
Giving C++ std:regex a C makeover
-
🚀Announcing conjure_enum - a C++20 enum and typename reflection Library
-
Show HN: Conjure_enum – a C++20 enum and typename reflection Library
-
Larena: Yet another simple header only arena allocator for C
-
Larena: Yet another simple header only arena allocator for C11
-
A note from our sponsor - SaaSHub
www.saashub.com | 16 Jan 2025
Index
What are some of the best open-source header-only projects in C++? This list will help you:
# | Project | Stars |
---|---|---|
1 | json | 44,078 |
2 | spdlog | 25,075 |
3 | cpp-httplib | 13,429 |
4 | entt | 10,449 |
5 | GLM | 9,511 |
6 | FTXUI | 7,591 |
7 | Crow | 7,528 |
8 | GuiLite | 7,426 |
9 | doctest | 6,060 |
10 | Magic Enum C++ | 5,116 |
11 | Crow | 3,489 |
12 | compile-time-regular-expressions | 3,437 |
13 | indicators | 3,062 |
14 | argparse | 2,851 |
15 | proxy | 2,373 |
16 | plog | 2,256 |
17 | FunctionalPlus | 2,154 |
18 | Nameof C++ | 2,116 |
19 | palanteer | 2,110 |
20 | cppzmq | 2,016 |
21 | PEGTL | 1,967 |
22 | uvw | 1,893 |
23 | mio | 1,740 |