Git Stars Git Stars

#header-only Repositories

Discover 107 active open source GitHub repositories tagged with #header-only, accumulating 303,315 total stars (averaging 2,834 stars per project). Leading this topic is nlohmann/json with 50,939 stars.

107
Total Repositories
303,315
Total Stars
2,834
Avg Stars/Repo
Programming Languages: C++ C CMake
1
nlohmann/json

JSON for Modern C++

nlohmann
โญ 50,939 C++ ๐Ÿ‘ค nlohmann User ๐Ÿ• Updated 2026-11-20 ๐Ÿ“… Created 2013-07-04
2
gabime/spdlog

Fast C++ logging library.

gabime
โญ 29,787 C++ ๐Ÿ‘ค gabime User ๐Ÿ• Updated 2026-11-21 ๐Ÿ“… Created 2014-11-01
3
yhirose/cpp-httplib

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

yhirose
โญ 16,996 C++ ๐Ÿ‘ค yhirose User ๐Ÿ• Updated 2026-11-21 ๐Ÿ“… Created 2012-09-22
4
skypjack/entt

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

skypjack
โญ 13,280 C++ ๐Ÿ‘ค skypjack User ๐Ÿ• Updated 2026-11-20 ๐Ÿ“… Created 2017-03-27
5
Immediate-Mode-UI/Nuklear

A single-header ANSI C immediate mode cross-platform GUI library

Immediate-Mode-UI
โญ 11,524 C ๐Ÿ‘ค Immediate-Mode-UI Organization ๐Ÿ• Updated 2026-11-05 ๐Ÿ“… Created 2019-11-26
6
idea4good/GuiLite

โœ”๏ธThe smallest header-only GUI library(4 KLOC) for all platforms

idea4good
โญ 7,777 C++ ๐Ÿ‘ค idea4good User ๐Ÿ• Updated 2025-10-22 ๐Ÿ“… Created 2017-09-15
7
ipkn/crow

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

ipkn
โญ 7,613 C++ ๐Ÿ‘ค ipkn User ๐Ÿ• Updated 2024-06-06 ๐Ÿ“… Created 2014-03-29
8
doctest/doctest

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

doctest
โญ 6,928 C++ ๐Ÿ‘ค doctest Organization ๐Ÿ• Updated 2026-10-18 ๐Ÿ“… Created 2014-08-05
9
Neargye/magic_enum

Static reflection for enums (to string, from string, iteration) for modern C++, work with any enum type without any macro or boilerplate code

Neargye
โญ 6,256 C++ ๐Ÿ‘ค Neargye User ๐Ÿ• Updated 2026-11-21 ๐Ÿ“… Created 2019-03-30
10
xtaci/algorithms

Algorithms & Data structures in C++.

xtaci
โญ 5,469 C++ ๐Ÿ‘ค xtaci User ๐Ÿ• Updated 2026-11-05 ๐Ÿ“… Created 2013-04-09
11
CrowCpp/Crow

A Fast and Easy to use microframework for the web.

CrowCpp
โญ 5,035 C++ ๐Ÿ‘ค CrowCpp Organization ๐Ÿ• Updated 2026-11-09 ๐Ÿ“… Created 2018-08-10
12
troydhanson/uthash

C macros for hash tables and more

troydhanson
โญ 4,793 C ๐Ÿ‘ค troydhanson User ๐Ÿ• Updated 2026-06-25 ๐Ÿ“… Created 2013-01-07
13
bombela/backward-cpp

A beautiful stack trace pretty printer for C++

bombela
โญ 4,304 C++ ๐Ÿ‘ค bombela User ๐Ÿ• Updated 2026-10-23 ๐Ÿ“… Created 2013-02-17
14
p-ranav/awesome-hpp

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

p-ranav
โญ 4,182 ๐Ÿ‘ค p-ranav User ๐Ÿ• Updated 2025-11-06 ๐Ÿ“… Created 2020-08-17
15
hanickadot/compile-time-regular-expressions

Compile Time Regular Expression in C++

hanickadot
โญ 3,879 C++ ๐Ÿ‘ค hanickadot User ๐Ÿ• Updated 2026-09-11 ๐Ÿ“… Created 2016-06-25
16
p-ranav/argparse

Argument Parser for Modern C++

p-ranav
โญ 3,569 C++ ๐Ÿ‘ค p-ranav User ๐Ÿ• Updated 2026-10-05 ๐Ÿ“… Created 2019-03-30
17
tsoding/nob.h

Header only library for writing build recipes in C.

tsoding
โญ 3,446 C++ ๐Ÿ‘ค tsoding Organization ๐Ÿ• Updated 2026-10-28 ๐Ÿ“… Created 2024-10-14
18
p-ranav/indicators

Activity Indicators for Modern C++

p-ranav
โญ 3,396 C++ ๐Ÿ‘ค p-ranav User ๐Ÿ• Updated 2025-05-09 ๐Ÿ“… Created 2019-12-03
19
stephenberry/glaze

Extremely fast, in memory, serialization, reflection, and RPC library for C++. JSON, BEVE, BSON, CBOR, CSV, JSONB, MessagePack, TOML, YAML, EETF

stephenberry
โญ 3,114 C++ ๐Ÿ‘ค stephenberry User ๐Ÿ• Updated 2026-11-19 ๐Ÿ“… Created 2022-07-15
20
microsoft/proxy

Proxy: Next Generation Polymorphism in C++

microsoft
โญ 3,068 C++ ๐Ÿ‘ค microsoft Organization ๐Ÿ• Updated 2026-01-28 ๐Ÿ“… Created 2022-05-30
21
SergiusTheBest/plog

Portable, simple and extensible C++ logging library

SergiusTheBest
โญ 2,602 C++ ๐Ÿ‘ค SergiusTheBest User ๐Ÿ• Updated 2026-11-15 ๐Ÿ“… Created 2014-12-01
22
friendlyanon/cmake-init

The missing CMake project initializer

friendlyanon
โญ 2,560 CMake ๐Ÿ‘ค friendlyanon User ๐Ÿ• Updated 2026-04-15 ๐Ÿ“… Created 2021-04-11
23
Neargye/nameof

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

Neargye
โญ 2,368 C++ ๐Ÿ‘ค Neargye User ๐Ÿ• Updated 2026-11-17 ๐Ÿ“… Created 2018-03-17
24
zeromq/cppzmq

Header-only C++ binding for libzmq

zeromq
โญ 2,345 C++ ๐Ÿ‘ค zeromq Organization ๐Ÿ• Updated 2026-10-05 ๐Ÿ“… Created 2011-05-25
25
Dobiasd/FunctionalPlus

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

Dobiasd
โญ 2,298 C++ ๐Ÿ‘ค Dobiasd User ๐Ÿ• Updated 2026-10-28 ๐Ÿ“… Created 2015-11-23
26
dfeneyrou/palanteer

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

dfeneyrou
โญ 2,213 C++ ๐Ÿ‘ค dfeneyrou User ๐Ÿ• Updated 2026-10-12 ๐Ÿ“… Created 2021-06-19
27
marzer/tomlplusplus

Header-only TOML config file parser and serializer for C++17.

marzer
โญ 2,188 C++ ๐Ÿ‘ค marzer User ๐Ÿ• Updated 2026-11-15 ๐Ÿ“… Created 2019-11-27
28
taocpp/PEGTL

Parsing Expression Grammar Template Library

taocpp
โญ 2,175 C++ ๐Ÿ‘ค taocpp Organization ๐Ÿ• Updated 2026-11-15 ๐Ÿ“… Created 2014-12-23
29
pocketpy/pocketpy

Portable Python 3.x Interpreter in Modern C

pocketpy
โญ 2,133 C ๐Ÿ‘ค pocketpy Organization ๐Ÿ• Updated 2026-11-12 ๐Ÿ“… Created 2022-11-06
30
skypjack/uvw

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

skypjack
โญ 2,061 C++ ๐Ÿ‘ค skypjack User ๐Ÿ• Updated 2026-11-09 ๐Ÿ“… Created 2016-06-19
31
nemtrif/utfcpp

UTF-8 with C++ in a Portable Way

nemtrif
โญ 2,005 C++ ๐Ÿ‘ค nemtrif User ๐Ÿ• Updated 2026-11-15 ๐Ÿ“… Created 2015-08-15
32
pantor/inja

A Template Engine for Modern C++

pantor
โญ 2,002 C++ ๐Ÿ‘ค pantor User ๐Ÿ• Updated 2026-11-18 ๐Ÿ“… Created 2017-08-12
33
kfrlib/kfr

Fast, modern C++ DSP framework, FFT, Sample Rate Conversion, FIR/IIR/Biquad Filters (SSE, AVX, AVX-512, ARM NEON, RISC-V RVV)

kfrlib
โญ 1,940 C++ ๐Ÿ‘ค kfrlib Organization ๐Ÿ• Updated 2026-11-20 ๐Ÿ“… Created 2016-06-29
34
max0x7ba/atomic_queue

C++14 concurrent lock-free low-latency queue.

max0x7ba
โญ 1,906 C++ ๐Ÿ‘ค max0x7ba User ๐Ÿ• Updated 2026-10-23 ๐Ÿ“… Created 2018-09-19
35
vimpunk/mio

Cross-platform C++11 header-only library for memory mapped file IO

vimpunk
โญ 1,896 C++ ๐Ÿ‘ค vimpunk User ๐Ÿ• Updated 2024-02-11 ๐Ÿ“… Created 2017-09-29
36
TartanLlama/expected

C++11/14/17 std::expected with functional-style extensions

TartanLlama
โญ 1,880 C++ ๐Ÿ‘ค TartanLlama User ๐Ÿ• Updated 2025-09-01 ๐Ÿ“… Created 2017-10-25
37
boostorg/hana

Your standard library for metaprogramming

boostorg
โญ 1,851 C++ ๐Ÿ‘ค boostorg Organization ๐Ÿ• Updated 2026-11-11 ๐Ÿ“… Created 2014-05-17
38
artivis/manif

A small C++11 header-only library for Lie theory.

artivis
โญ 1,828 C++ ๐Ÿ‘ค artivis User ๐Ÿ• Updated 2026-08-05 ๐Ÿ“… Created 2018-04-16
39
fungos/cr

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

fungos
โญ 1,817 C++ ๐Ÿ‘ค fungos User ๐Ÿ• Updated 2026-06-23 ๐Ÿ“… Created 2017-11-21
40
moderngpu/moderngpu

Patterns and behaviors for GPU computing

moderngpu
โญ 1,807 C++ ๐Ÿ‘ค moderngpu Organization ๐Ÿ• Updated 2026-01-17 ๐Ÿ“… Created 2013-05-20
41
aantron/better-enums

C++ compile-time enum to string, iteration, in a single header file

aantron
โญ 1,805 C++ ๐Ÿ‘ค aantron User ๐Ÿ• Updated 2024-02-10 ๐Ÿ“… Created 2015-05-11
42
martinus/nanobench

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

martinus
โญ 1,751 C++ ๐Ÿ‘ค martinus User ๐Ÿ• Updated 2026-09-07 ๐Ÿ“… Created 2019-10-05
43
wqking/eventpp

Event Dispatcher and callback list for C++

wqking
โญ 1,619 C++ ๐Ÿ‘ค wqking User ๐Ÿ• Updated 2024-12-08 ๐Ÿ“… Created 2018-05-13
44
rigtorp/MPMCQueue

A bounded multi-producer multi-consumer concurrent queue written in C++11

rigtorp
โญ 1,581 C++ ๐Ÿ‘ค rigtorp User ๐Ÿ• Updated 2026-11-18 ๐Ÿ“… Created 2016-03-29
45
gulrak/filesystem

An implementation of C++17 std::filesystem for C++11 /C++14/C++17/C++20 on Windows, macOS, Linux and FreeBSD.

gulrak
โญ 1,579 C++ ๐Ÿ‘ค gulrak User ๐Ÿ• Updated 2026-09-14 ๐Ÿ“… Created 2018-09-02
46
Tessil/robin-map

C++ implementation of a fast hash map and hash set using robin hood hashing

Tessil
โญ 1,520 C++ ๐Ÿ‘ค Tessil User ๐Ÿ• Updated 2026-06-13 ๐Ÿ“… Created 2017-08-10
47
zpl-c/librg

๐Ÿš€ Making multi-player gamedev simpler since 2017

zpl-c
โญ 1,519 C ๐Ÿ‘ค zpl-c Organization ๐Ÿ• Updated 2026-11-20 ๐Ÿ“… Created 2017-07-10
48
artem-ogre/CDT

Constrained Delaunay Triangulation (C++)

artem-ogre
โญ 1,476 C++ ๐Ÿ‘ค artem-ogre User ๐Ÿ• Updated 2026-11-16 ๐Ÿ“… Created 2019-04-04
49
adishavit/argh

Argh! A minimalist argument handler.

adishavit
โญ 1,438 C++ ๐Ÿ‘ค adishavit User ๐Ÿ• Updated 2025-01-21 ๐Ÿ“… Created 2016-08-05
50
ryanhaining/cppitertools

Implementation of python itertools and builtin iteration functions for C++17

ryanhaining
โญ 1,435 C++ ๐Ÿ‘ค ryanhaining User ๐Ÿ• Updated 2025-12-07 ๐Ÿ“… Created 2013-09-13

Frequently Asked Questions

1

What is the most popular #header-only repository on GitHub?

The top ranked open source #header-only project on GitHub is nlohmann/json with 50,939 stars. JSON for Modern C++

2

Which programming languages are most used in #header-only repositories?

Among the top ranked #header-only projects on GitHub, the most common programming languages are C++, C, CMake.

3

How is the #header-only repository ranking calculated?

We track 107 active open source repositories tagged with #header-only (500+ stars), totaling 303,315 stars with an average of 2,834 stars per repository. Rankings update daily from the GitHub API.