header-only

Open-source projects categorized as header-only
Language: + C++ + CMake
Topics: CPP Cpp17 Cpp20 Cpp11 C++

Top 23 header-only Open-Source Projects

  • json

    JSON for Modern C++

  • Project mention: Learn Modern C++ | news.ycombinator.com | 2023-12-26

    I have not done a "desktop" program in 25+ years and never using C++ (or C), since then I'm mostly a web developer (PHP,Elixir, JS, Kotlin etc).

    I'm currently doing a C++ audio plugin with the Juce framework.

    This website has been a good resource, alongside https://www.learncpp.com

    But I was actually close to give up before using those two things:

    - https://github.com/nlohmann/json : my plugin use a json api backend and the Juce json implementation is atrocious (apparently because of being born in previous c++ version), but this library is GREAT.

    - ChatGPT 4. I'm not sure I would have "succeeded" without it, at least not in a reasonable time frame. ChatGPT 3.5 is slow and does not give good results for my use case but 4 is impressive. And I use in a very dumb way, just posing question in the web UI. I probably could have it directly in MSVC?

    Also I must say, for all its flaws, I have a renewed appreciation for doing UI on the web ;)

  • spdlog

    Fast C++ logging library.

  • 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

  • InfluxDB

    Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.

    InfluxDB logo
  • cpp-httplib

    A C++ header-only HTTP/HTTPS server and client library

  • Project mention: Experience using crow as web server | /r/cpp | 2023-11-06

    Alternatives at the low to medium level of abstraction include civetweb and mongoose, which have a common ancestor. Both of these appear to be C rather than C++, but seem to be production quality and well-documented. Another C library is cpp-httplib, which is probably too low-level for me.

  • entt

    Gaming meets modern C++ - a fast and reliable entity component system (ECS) and much more

  • 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.

  • GLM

    OpenGL Mathematics (GLM)

  • Project mention: Release of GLM 1.0.0 | news.ycombinator.com | 2024-01-24
  • Crow

    Crow is very fast and easy to use C++ micro web framework (inspired by Python Flask)

  • GuiLite

    ✔️The smallest header-only GUI library(4 KLOC) for all platforms

  • Project mention: Bombed an interview and trying to figure out how to pivot. Any advice on on increasing code literacy and filling in knowledge gaps from EE? | /r/embedded | 2023-12-06
  • WorkOS

    The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.

    WorkOS logo
  • 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

  • Project mention: Functional Terminal User Interface | news.ycombinator.com | 2024-03-30
  • doctest

    The fastest feature-rich C++11/14/17/20/23 single-header testing framework

  • Project mention: Unit testing tool suggestions | /r/learnprogramming | 2023-05-07

    I have never used "tools" for unit-tests, only web sites that show the results of the tests or code coverage. For C++ I prefer https://github.com/doctest/doctest but most companies I worked for use Catch2.

  • 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: What C++ library do you wish existed but hasn’t been created yet? | /r/cpp | 2023-07-08

    I'm not sure this is quite what you're asking for, but this library has been super helpful to me in the past : https://github.com/Neargye/magic_enum

  • awesome-hpp

    A curated list of awesome header-only C++ libraries

  • compile-time-regular-expressions

    Compile Time Regular Expression in C++

  • Project mention: Why are strings and IO so complicated? | /r/cpp | 2023-12-07

    CTRE (https://github.com/hanickadot/compile-time-regular-expressions) ranges::views (filter, transform, etc.) (C++20) str.find() + str.substr() freopen to stdin + cin >> extraction Parser libraries

  • indicators

    Activity Indicators for Modern C++

  • Crow

    A Fast and Easy to use microframework for the web. (by CrowCpp)

  • Project mention: Experience using crow as web server | /r/cpp | 2023-11-06

    I'm investigating using C++ to build a REST server, and would love to know of people's experiences with Crow-- or whether they would recommend something else as a "medium-level" abstraction C++ web server. As background, I started off experimenting with Python/FastAPI, which is great, but there is too much friction to translate from pybind11-exported C++ objects to the format that FastAPI expects, and, of course, there are inherent performance limitations using Python, which could impact scaling up if the project were to be successful.

  • argparse

    Argument Parser for Modern C++

  • plog

    Portable, simple and extensible C++ logging library

  • Project mention: C++ Game Utility Libraries: for Game Dev Rustaceans | dev.to | 2024-03-13

    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.

  • palanteer

    Visual Python and C++ nanosecond profiler, logger, tests enabler

  • FunctionalPlus

    Functional Programming Library for C++. Write concise and readable C++ code.

  • Project mention: Leaving Haskell Behind | news.ycombinator.com | 2023-08-24

    Hoogle is really amazing!

    Inspired by it, I implemented something similar for FunctionalPlus (a functional-programming library for C++): https://www.editgym.com/fplus-api-search/

    I'd love to see more projects taking this path too. :)

  • Nameof C++

    Nameof operator for modern C++, simply obtain the name of a variable, type, function, macro, and enum

  • PEGTL

    Parsing Expression Grammar Template Library

  • Project mention: Show HN: Matcheroni, a tiny C++20 header library for building lexers/parsers | news.ycombinator.com | 2023-07-06

    Very cool, and I like the name!

    I'd be interested in reading about how Matcheroni compares with PEGTL and Lexy.

    https://github.com/taocpp/PEGTL

  • cppzmq

    Header-only C++ binding for libzmq

  • cmake-init

    The missing CMake project initializer

  • Project mention: CMake install schema for single- and multi-config generators | /r/cpp | 2023-12-06

    https://github.com/friendlyanon/cmake-init This is how you do CMake properly. If you deviate from its install rules you are highly likely to do something wrong.

  • uvw

    Header-only, event based, tiny and easy to use libuv wrapper in modern C++ - now available as also shared/static library!

  • SaaSHub

    SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives

    SaaSHub logo
NOTE: The open source projects on this list are ordered by number of github stars. The number of mentions indicates repo mentiontions in the last 12 Months or since we started tracking (Dec 2020). The latest post mention was on 2024-04-17.

header-only related posts

Index

What are some of the best open-source header-only projects? This list will help you:

Project Stars
1 json 40,148
2 spdlog 22,172
3 cpp-httplib 11,749
4 entt 9,428
5 GLM 8,653
6 Crow 7,372
7 GuiLite 7,152
8 FTXUI 6,065
9 doctest 5,553
10 Magic Enum C++ 4,390
11 awesome-hpp 3,168
12 compile-time-regular-expressions 3,145
13 indicators 2,822
14 Crow 2,749
15 argparse 2,353
16 plog 2,076
17 palanteer 2,027
18 FunctionalPlus 1,998
19 Nameof C++ 1,933
20 PEGTL 1,861
21 cppzmq 1,831
22 cmake-init 1,805
23 uvw 1,756
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com