Git Stars Git Stars

#header-only Repositories

107
Total Repositories
303,315
Total Stars
2,834
Avg Stars/Repo
Programming Languages: C++ C
51
vurtun/lib

single header libraries for C/C++

vurtun
โญ 1,414 C ๐Ÿ‘ค vurtun User ๐Ÿ• Updated 2025-03-19 ๐Ÿ“… Created 2015-11-18
52
daniele77/cli

A library for interactive command line interfaces in modern C++

daniele77
โญ 1,377 C++ ๐Ÿ‘ค daniele77 User ๐Ÿ• Updated 2026-11-06 ๐Ÿ“… Created 2016-07-29
53
eranpeer/FakeIt

C++ mocking made easy. A simple yet very expressive, headers only library for c++ mocking.

eranpeer
โญ 1,371 C++ ๐Ÿ‘ค eranpeer User ๐Ÿ• Updated 2026-06-30 ๐Ÿ“… Created 2013-09-01
54
adamyaxley/Obfuscate

Guaranteed compile-time string literal obfuscation header-only library for C++14

adamyaxley
โญ 1,349 C++ ๐Ÿ‘ค adamyaxley User ๐Ÿ• Updated 2026-06-03 ๐Ÿ“… Created 2017-11-15
55
rigtorp/SPSCQueue

A bounded single-producer, single-consumer, wait-free and lock-free queue written in C++20

rigtorp
โญ 1,330 C++ ๐Ÿ‘ค rigtorp User ๐Ÿ• Updated 2026-11-17 ๐Ÿ“… Created 2016-03-29
56
ToruNiina/toml11

TOML for Modern C++

ToruNiina
โญ 1,315 C++ ๐Ÿ‘ค ToruNiina User ๐Ÿ• Updated 2025-12-03 ๐Ÿ“… Created 2017-04-19
57
muellan/clipp

easy to use, powerful & expressive command line argument parsing for modern C++ / single header / usage & doc generation

muellan
โญ 1,312 C++ ๐Ÿ‘ค muellan User ๐Ÿ• Updated 2024-05-30 ๐Ÿ“… Created 2017-11-08
58
madmann91/bvh

A modern C++ BVH construction and traversal library

madmann91
โญ 1,180 C++ ๐Ÿ‘ค madmann91 User ๐Ÿ• Updated 2026-10-16 ๐Ÿ“… Created 2020-01-16
59
Thalhammer/jwt-cpp

A header only library for creating and validating json web tokens in c++

Thalhammer
โญ 1,168 C++ ๐Ÿ‘ค Thalhammer User ๐Ÿ• Updated 2026-10-06 ๐Ÿ“… Created 2017-10-30
60
Dobiasd/frugally-deep

A lightweight header-only library for using Keras (TensorFlow) models in C++.

Dobiasd
โญ 1,128 C++ ๐Ÿ‘ค Dobiasd User ๐Ÿ• Updated 2026-11-05 ๐Ÿ“… Created 2016-07-15
61
zpl-c/enet

โšก๏ธ ENet reliable UDP networking library

zpl-c
โญ 1,127 C ๐Ÿ‘ค zpl-c Organization ๐Ÿ• Updated 2026-06-16 ๐Ÿ“… Created 2017-08-15
62
digint/tinyfsm

A simple C++ finite state machine library

digint
โญ 1,126 C++ ๐Ÿ‘ค digint User ๐Ÿ• Updated 2024-06-25 ๐Ÿ“… Created 2014-05-15
63
hirrolot/metalang99

Full-blown preprocessor metaprogramming

hirrolot
โญ 1,090 C ๐Ÿ‘ค hirrolot User ๐Ÿ• Updated 2025-10-05 ๐Ÿ“… Created 2020-09-18
64
yhirose/cpp-peglib

A single file C++ header-only PEG (Parsing Expression Grammars) library

yhirose
โญ 1,066 C++ ๐Ÿ‘ค yhirose User ๐Ÿ• Updated 2026-11-06 ๐Ÿ“… Created 2015-02-07
65
zpl-c/zpl

๐Ÿ“ Pushing the boundaries of simplicity

zpl-c
โญ 1,065 C ๐Ÿ‘ค zpl-c Organization ๐Ÿ• Updated 2025-04-26 ๐Ÿ“… Created 2017-07-10
66
IronsDu/brynet

A Header-Only cross-platform C++ TCP network library . We can use vcpkg(https://github.com/Microsoft/vcpkg/tree/master/ports/brynet) install brynet.

IronsDu
โญ 1,063 C++ ๐Ÿ‘ค IronsDu User ๐Ÿ• Updated 2026-05-25 ๐Ÿ“… Created 2013-09-17
67
nholthaus/units

a compile-time, header-only, dimensional analysis and unit conversion library built on c++14 with no dependencies.

nholthaus
โญ 1,060 C++ ๐Ÿ‘ค nholthaus User ๐Ÿ• Updated 2026-10-18 ๐Ÿ“… Created 2016-01-29
68
mapbox/earcut.hpp

Fast, header-only polygon triangulation

mapbox
โญ 1,051 C++ ๐Ÿ‘ค mapbox Organization ๐Ÿ• Updated 2026-10-31 ๐Ÿ“… Created 2015-02-19
69
eyalz800/zpp_bits

A lightweight C++20 serialization and RPC library

eyalz800
โญ 1,019 C++ ๐Ÿ‘ค eyalz800 User ๐Ÿ• Updated 2026-11-10 ๐Ÿ“… Created 2021-12-16
70
gsl-lite/gsl-lite

ISO C++ Core Guidelines Library implementation for C++98, C++11 up

gsl-lite
โญ 992 C++ ๐Ÿ‘ค gsl-lite Organization ๐Ÿ• Updated 2026-08-20 ๐Ÿ“… Created 2015-09-24
71
bytedance/sonic-cpp

A fast JSON serializing & deserializing library, accelerated by SIMD.

bytedance
โญ 980 C++ ๐Ÿ‘ค bytedance Organization ๐Ÿ• Updated 2026-11-13 ๐Ÿ“… Created 2022-11-11
72
ilqvya/random

Random for modern C++ with convenient API

ilqvya
โญ 955 C++ ๐Ÿ‘ค ilqvya User ๐Ÿ• Updated 2026-10-25 ๐Ÿ“… Created 2017-05-12
73
zhllxt/asio2

Header only c++ network library, based on asio,support tcp,udp,http,websocket,rpc,ssl,icmp,serial_port,socks5.

zhllxt
โญ 939 C++ ๐Ÿ‘ค zhllxt User ๐Ÿ• Updated 2026-02-02 ๐Ÿ“… Created 2017-10-27
74
Tessil/hat-trie

C++ implementation of a fast and memory efficient HAT-trie

Tessil
โญ 876 C++ ๐Ÿ‘ค Tessil User ๐Ÿ• Updated 2025-11-11 ๐Ÿ“… Created 2017-04-20
75
edubart/minicoro

Single header stackful cross-platform coroutine library in pure C.

edubart
โญ 872 C ๐Ÿ‘ค edubart User ๐Ÿ• Updated 2024-12-07 ๐Ÿ“… Created 2021-01-09
76
yixuan/spectra

A header-only C++ library for large scale eigenvalue problems

yixuan
โญ 872 C++ ๐Ÿ‘ค yixuan User ๐Ÿ• Updated 2026-07-04 ๐Ÿ“… Created 2015-09-10
77
Tracktion/choc

A collection of header only classes, permissively licensed, to provide basic useful tasks with the bare-minimum of dependencies.

Tracktion
โญ 865 C++ ๐Ÿ‘ค Tracktion Organization ๐Ÿ• Updated 2026-10-23 ๐Ÿ“… Created 2020-05-23
78
gvinciguerra/PGM-index

๐Ÿ…State-of-the-art learned data structure that enables fast lookup, predecessor, range searches and updates in arrays of billions of items using orders of magnitude less space than traditional indexes

gvinciguerra
โญ 859 C++ ๐Ÿ‘ค gvinciguerra User ๐Ÿ• Updated 2024-11-28 ๐Ÿ“… Created 2019-10-18
79
cppfastio/fast_io

Freestanding fast input/output for C++20

cppfastio
โญ 858 C++ ๐Ÿ‘ค cppfastio Organization ๐Ÿ• Updated 2026-10-30 ๐Ÿ“… Created 2022-02-19
80
cxong/tinydir

Lightweight, portable and easy to integrate C directory and file reader

cxong
โญ 857 C ๐Ÿ‘ค cxong User ๐Ÿ• Updated 2024-02-27 ๐Ÿ“… Created 2013-02-01
81
Tessil/hopscotch-map

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

Tessil
โญ 851 C++ ๐Ÿ‘ค Tessil User ๐Ÿ• Updated 2025-11-02 ๐Ÿ“… Created 2016-08-15
82
MikeLankamp/fpm

C++ header-only fixed-point math library

MikeLankamp
โญ 848 C++ ๐Ÿ‘ค MikeLankamp User ๐Ÿ• Updated 2026-03-29 ๐Ÿ“… Created 2019-01-16
83
e-dant/watcher

Filesystem watcher. Works anywhere. Simple, efficient and friendly.

e-dant
โญ 808 C++ ๐Ÿ‘ค e-dant User ๐Ÿ• Updated 2026-07-05 ๐Ÿ“… Created 2022-09-05
84
tcbrindle/flux

A C++20 library for sequence-orientated programming

tcbrindle
โญ 762 C++ ๐Ÿ‘ค tcbrindle User ๐Ÿ• Updated 2026-09-15 ๐Ÿ“… Created 2022-05-11
85
stateless-me/uuidv47

โšก UUIDv47 = v4 privacy + v7 performance

stateless-me
โญ 749 C ๐Ÿ‘ค stateless-me Organization ๐Ÿ• Updated 2025-11-06 ๐Ÿ“… Created 2025-09-16
86
okdshin/PicoSHA2

a header-file-only, SHA256 hash generator in C++

okdshin
โญ 749 C++ ๐Ÿ‘ค okdshin User ๐Ÿ• Updated 2025-05-04 ๐Ÿ“… Created 2014-02-14
87
renatoGarcia/icecream-cpp

๐Ÿฆ Never use cout/printf to debug again

renatoGarcia
โญ 748 C++ ๐Ÿ‘ค renatoGarcia User ๐Ÿ• Updated 2026-04-22 ๐Ÿ“… Created 2019-02-03
88
ktprime/emhash

Fast and memory efficient c++ flat hash table/map/set

ktprime
โญ 743 C++ ๐Ÿ‘ค ktprime User ๐Ÿ• Updated 2026-11-06 ๐Ÿ“… Created 2019-09-11
89
ZigRazor/CXXGraph

Header-Only C++ Library for Graph Representation and Algorithms

ZigRazor
โญ 742 C++ ๐Ÿ‘ค ZigRazor User ๐Ÿ• Updated 2026-09-10 ๐Ÿ“… Created 2020-06-19
90
JCash/voronoi

A C implementation for creating 2D Voronoi/Delaunay diagrams

JCash
โญ 740 C ๐Ÿ‘ค JCash User ๐Ÿ• Updated 2026-07-25 ๐Ÿ“… Created 2015-03-29
91
JustasMasiulis/inline_syscall

Inline syscalls made easy for windows on clang

JustasMasiulis
โญ 728 C++ ๐Ÿ‘ค JustasMasiulis User ๐Ÿ• Updated 2024-06-21 ๐Ÿ“… Created 2019-05-09
92
taocpp/json

C++ header-only JSON library

taocpp
โญ 684 C++ ๐Ÿ‘ค taocpp Organization ๐Ÿ• Updated 2026-10-15 ๐Ÿ“… Created 2015-11-26
93
google/cctz

CCTZ is a C++ library for translating between absolute and civil times using the rules of a time zone.

google
โญ 660 C++ ๐Ÿ‘ค google Organization ๐Ÿ• Updated 2026-11-13 ๐Ÿ“… Created 2015-09-14
94
BowenFu/matchit.cpp

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

BowenFu
โญ 654 C++ ๐Ÿ‘ค BowenFu User ๐Ÿ• Updated 2026-11-17 ๐Ÿ“… Created 2021-05-30
95
andrew-gresyk/HFSM2

High-Performance Hierarchical Finite State Machine Framework

andrew-gresyk
โญ 649 C++ ๐Ÿ‘ค andrew-gresyk User ๐Ÿ• Updated 2026-06-27 ๐Ÿ“… Created 2018-09-26
96
p-ranav/csv2

Fast CSV parser and writer for Modern C++

p-ranav
โญ 624 C++ ๐Ÿ‘ค p-ranav User ๐Ÿ• Updated 2026-10-14 ๐Ÿ“… Created 2020-04-17
97
bfgroup/Lyra

A simple to use, composable, command line parser for C++ 11 and beyond

bfgroup
โญ 606 C++ ๐Ÿ‘ค bfgroup Organization ๐Ÿ• Updated 2026-07-29 ๐Ÿ“… Created 2018-07-07
98
svgpp/svgpp

C++ SVG library

svgpp
โญ 592 C++ ๐Ÿ‘ค svgpp Organization ๐Ÿ• Updated 2024-02-29 ๐Ÿ“… Created 2014-02-18
99
Tessil/ordered-map

C++ hash map and hash set which preserve the order of insertion

Tessil
โญ 581 C++ ๐Ÿ‘ค Tessil User ๐Ÿ• Updated 2026-06-13 ๐Ÿ“… Created 2017-02-27
100
ptsouchlos/thread-pool

A modern, fast, lightweight thread pool library based on C++2x

ptsouchlos
โญ 575 C++ ๐Ÿ‘ค ptsouchlos User ๐Ÿ• Updated 2026-11-20 ๐Ÿ“… Created 2021-05-21