C++ single-header

Open-source C++ projects categorized as single-header

Top 18 C++ single-header Projects

single-header
  1. indicators

    Activity Indicators for Modern C++

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

    InfluxDB logo
  3. proxy

    Proxy: Next Generation Polymorphism in C++ (by microsoft)

  4. tabulate

    Table Maker for Modern C++ (by p-ranav)

  5. cr

    cr.h: A Simple C Hot Reload Header-only Library

  6. nanobench

    Simple, fast, accurate single-header microbenchmarking functionality for C++11/14/17/20

  7. watcher

    Filesystem watcher. Works anywhere. Simple, efficient and friendly. (by e-dant)

    Project mention: Show HN: What two years of maintenance on a project I love looks like | news.ycombinator.com | 2024-08-25
  8. matchit.cpp

    match(it): A lightweight single-header pattern-matching library for C++17 with macro-free APIs.

  9. SaaSHub

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

    SaaSHub logo
  10. csv2

    Fast CSV parser and writer for Modern C++

  11. leaf

    Lightweight Error Augmentation Framework (by boostorg)

  12. itoa

    Fast integer to ascii / integer to string conversion

  13. x86RetSpoof

    Invoke functions with a spoofed return address. For 32-bit Windows binaries. Supports __fastcall, __thiscall, __stdcall and __cdecl calling conventions. Written in C++17.

  14. meta.hpp

    C++20 Dynamic Reflection Library

  15. Heady

    A utility for creating amalgamated single-header C++ libraries

  16. ramen

    Real-time Actor-based Message Exchange Network 🍜

    Project mention: Dataflow programming on an MCU in C++: tiny pubsub library for DSP and controls | news.ycombinator.com | 2025-03-25
  17. curl4cpp

    Single header cURL wrapper for C++ around libcURL

  18. iface

    Anonymous, non-intrusive interfaces in C++

  19. command

    Command, ::process::Command like syscalls in C++. (by ferhatgec)

  20. EventSystem

    a single header event system that im using in my game

  21. 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).

C++ single-header discussion

Log in or Post with

C++ single-header related posts

  • how do you properly benchmark?

    2 projects | /r/cpp | 20 Feb 2023
  • Much Faster than std::string, fmt::format, std::to_chars, std::time and more?

    1 project | /r/cpp | 6 Oct 2022
  • I don’t know which container to use (and at this point I’m too afraid to ask)

    2 projects | /r/cpp | 3 Feb 2022
  • C++20 std::format is 2x slower than std::fstream?

    13 projects | /r/cpp_questions | 19 Nov 2021
  • Nanobench: Fast, single-header microbenchmarking functionality for C++

    1 project | news.ycombinator.com | 9 Nov 2021
  • Curl4cpp – single header C++ cURL wrapper around libcURL

    1 project | news.ycombinator.com | 1 Aug 2021
  • curl4cpp - single header c++ cURL wrapper around libcURL

    1 project | /r/linux | 31 Jul 2021
  • A note from our sponsor - InfluxDB
    www.influxdata.com | 14 May 2025
    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. Learn more β†’

Index

What are some of the best open-source single-header projects in C++? This list will help you:

# Project Stars
1 indicators 3,167
2 proxy 2,638
3 tabulate 2,007
4 cr 1,642
5 nanobench 1,540
6 watcher 734
7 matchit.cpp 588
8 csv2 583
9 leaf 325
10 itoa 223
11 x86RetSpoof 171
12 meta.hpp 136
13 Heady 54
14 ramen 46
15 curl4cpp 13
16 iface 6
17 command 3
18 EventSystem 1

Sponsored
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.
www.influxdata.com

Did you know that C++ is
the 7th most popular programming language
based on number of references?