awesome-hpp
A curated list of awesome header-only C++ libraries
https://github.com/p-ranav/awesome-hpp
Last synced: 1 day ago
JSON representation
Argument Parsers
- Argh! - Argh! A minimalist argument handler.
- argparse - Argument Parser for Modern C++.
- args - A simple header-only C++ argument parser library.
- cmd_line_parser - Command line parser for C++17.
- CLI11 - CLI11 is a command line parser for C++11 and beyond.
- clipp - Powerful & Expressive Argument Parsing for Modern C++.
- cxxopts - Lightweight C++ GNU style option parser library.
- fire-hpp - Create fully functional CLIs using function signatures.
- flags - Simple, extensible, header-only C++17 argument parser.
- structopt - Parse command line arguments by defining a struct.
Audio
Benchmarking
Communication
- comms - Implement binary communication protocols in >=C++11.
Compression
- Gzip - Gzip header-only C++ library.
- interpolative_coding - Binary Interpolative Coding algorithm.
- zstr - A C++ header-only ZLib wrapper.
Concurrency
- cs_libguarded - Multithreaded programming.
- taskflow - Modern C++ Parallel Task Programming.
- task_system - Better Code: Concurrency - Sean Parent.
- transwarp - A header-only C++ library for task concurrency.
- taskpool - Modern C++ taskpool.
- thread-pool - Modern C++20 thread-pool.
Cryptography and Security
Data Formats
- bencode - C++20 bencode library.
- cpptoml - Header-only library for parsing TOML.
- csv2 - Fast CSV parser and writer for Modern C++.
- CSV Parser - Reading, writing, and analyzing CSV files.
- daw_json_link - Static JSON parsing in C++.
- Fast C++ CSV Parser - Fast library for reading CSV files.
- FlatJSON - Extremely fast just one allocation and zero copy JSON parser.
- Glaze - Extremely fast, in memory, JSON and interface library for modern C++.
- inih - This is a header only C++ version of inih.
- nlohmann/json - JSON for Modern C++.
- json_struct - High performance, single header only to serialize and deserialize JSON to C++ structs.
- jsoncons - Construct JSON and JSON-like data formats.
- minicsv - Bare minimal CSV stream based on C++ file streams.
- picojson - a header-file-only, JSON parser serializer in C++.
- pugixml - A C++ XML processing library with a DOM-like interface and XPath 1.0 support.
- rapidcsv - C++ CSV parser library.
- rapidjson - A fast JSON parser/generator for C++.
- rapidxml - RapidXML fork; XML namespacing, per-element parsing, etc.
- simdjson - Parsing gigabytes of JSON per second.
- simpleini - Read and write INI-style configuration files.
- taocpp JSON - C++ header-only JSON library.
- toml11 - TOML for Modern C++.
- tomlplusplus - TOML config file parser and serializer for >=C++17.
- tortellini - A really stupid INI file format for C++11.
- valijson - JSON Schema validation.
- xml2json - A header-only C++ library converts XML to JSON.
- Boost.JSON - JSON parsing, serialization, inspection and modification.
Data Formatting and Presentation
- asap - Creating, displaying, iterating and manipulating dates.
- cxx prettyprint - Pretty-printing of any container in C++(0x).
- emio - A safe and fast high-level and low-level character input/output C++20 library.
- fmt - A modern formatting library.
- pprint - Pretty Printer for Modern C++.
- strf - A fast formatting library for C++14.
- tabulate - Table Maker for Modern C++.
Data Mining, Machine Learning, and Deep Learning
- frugally deep - Use Keras models in C++.
- gaenari - Incremental decision tree in C++17.
- hnswlib - Fast approximate nearest neighbors.
- MiniDNN - A header-only C++ library for deep neural networks.
- mlpack - mlpack: a fast, header-only C++ machine learning library.
- nanoflann - Nearest Neighbor (NN) search with KD-trees.
- tiny-dnn - Dependency-free deep learning framework in C++14.
- dlib - A toolkit for real-world machine learning and data analysis.
Data Querying
- boolinq - Simplest C++ header-only LINQ template library.
Data Structures and Algorithms
- BitMagic - Compressed bit-vectors, logical operations, memory compact containers.
- dynamic bitset - The C++17 header-only dynamic bitset.
- frozen - Constexpr alternative to gperf for C++14 users.
- hopscotch map - Fast hash map and hash set using hopscotch hashing.
- immer - Postmodern immutable and persistent data structures.
- MPMCQueue - A bounded multi-producer multi-consumer concurrent queue.
- outcome - Lightweight outcome and result.
- parallel hashmap - Very fast and memory-friendly hashmap and btree containers.
- PGM-index - Blazing fast queries and updates over billions of items using orders of magnitude less memory than other containers.
- robin-hood hashing - Fast & memory efficient hashtable based on robin hood hashing.
- robin-map - Fast hash map and hash set using robin hood hashing.
- sfl-library - Small vector. Small flat map/multimap/set/multiset (ordered and unordered). C++11.
- small - Implementations of the main STL containers optimized for the case when they are small.
- tries - Fast and highly customisable C++20 trie implementation.
- concurrent queue - Fast multi-producer, multi-consumer lock-free concurrent queue.
Debugging
- backward-cpp - A beautiful stack trace pretty printer for C++.
Deep Learning
- ceras - A deep learning engine in C++20.
Dependency Injection
- inversify-cpp - C++17 inversion of control and dependency injection container library.
Event Handling Mechanisms
- eventbus - Mediator pattern event bus for C++.
- eventpp - Event Dispatcher and callback list for C++.
- periodic-function - Callbacks at a specified time interval.
File System
- simplebinstream - C++ Simplistic Binary Stream.
- filesystem - Cross-platform implementation of std::filesystem for C++11/14/17.
- glob - Glob for C++17.
- llfio - P1031 low-Level file i/o and filesystem library.
- mm_file - Memory-mapped files for C++.
- tinydir - Lightweight, portable C directory and file reader.
- mio - Cross-platform C++11 memory mapped file IO.
Functional Programming
- FunctionalPlus - Functional Programming Library for C++.
- lager - Redux-like unidirectional data-flow for C++.
- schmutz - Easy Guile Scheme C++ bindings.
- zug - Transducers (from Clojure) in C++.
Geometry, Graphics Processing, and Game Development
- arcball_camera - Immediate-mode camera for your graphics demos.
- Brutus - Marching cubes implementation.
- cinolib - Process polygonal and polyhedral meshes.
- cr - A Simple C Hot Reload Header-only Library.
- CxxSwizzle - Modern C++ swizzling header-only library.
- earcut.hpp - Fast Polygon triangulation.
- entt - Entity component system (ECS) and much more.
- glm - OpenGL Mathematics (GLM).
- librg - 🚀 Making multi-player gamedev simpler since 2017.
- micro-gl - 👾 CPU Vector Graphics Engine (No FPU or std-lib needed).
- nanort - Modern ray tracing kernel.
- px - Thread Scheduling, Rendering, and so on.
- Simple OpenGL Loader - Extensible, cross-platform OpenGL loader.
- Sokol - Cross-platform libraries for C and C++.
- stb - Single-file public domain libraries.
- Swarmz - Swarming (flocking) library for real-time applications.
- tinygltf - C++11 tiny glTF 2.0 library.
- tweeny - A modern C++ tweening library.
- Vookoo - Take the pain out of Vulkan.
- voxelizer - Header only mesh voxelizer in c99.
- tiny-differentiable-simulator - Tiny Differentiable Simulator is a header-only C++ physics library with zero dependencies.
GPU
Graph
GUI
High-performance Computing
- MPL - A C++11 message passing library based on the Message Passing Interface standard.
HTTP and the Web
- cinatra - Modern (c++17), Cross-platform Http Framework.
- cpp-httplib - A C++11 Cross platform HTTP/HTTPS library.
- jwt-cpp - Create and validate JSON web tokens.
- RESTinio - Asynchronous HTTP/WebSocket server C++14 library
- libfv - libfv is C++20 header-only network library, support TCP/SSL/Http/websocket server and client
- NetIF - Cross-platform network interface addresses without name lookups in C++14.
- cuehttp - Modern c++ middleware framework for http(http/https)/websocket(ws/wss).
Image Processing
- CImg - Cool Image, one file: full featured image processing.
- color-util - Colors, Color space converters for RGB, HSL, XYZ, Lab, etc.
- color - Color manipulation/conversion for different types and formats.
- nanopm - NanoPM, single header only PatchMatch.
- BitmapPlusPlus - Simple and Fast header only Bitmap (BMP) library.
- noise2d - 2D Noise generation for C++17 and later.
Language Bindings
- jni.hpp - A modern, type-safe, C++14 wrapper for JNI.
- pybind11 - Seamless operability between C++11 and Python.
- Selene - Simple C++11 friendly bindings to Lua.
- Sol - Sol3 (sol2 v3.0) - a C++ <-> Lua API wrapper with advanced features and top notch performance.
- v8pp - Bind C++ functions and classes into V8 JavaScript engine.
Language Development
- Command Interpreter - Add a command interpreter (eg., REPL) to any C++ program.
Logging
- plog - Portable, simple and extensible C++ logging library.
- spdlog - Fast C++ logging library.
- easyloggingpp - Single header C++ logging library.
Mathematics
- exprtk - C++ Mathematical Expression Toolkit.
- amgcl - Solve large sparse linear systems with algebraic multigrid method.
- dj_fft - FFT library.
- eigen - Template library for linear algebra.
- fpm - Fixed-point math library.
- kfr - Fast DSP framework, FFT, Sample Rate Conversion, etc.
- libmorton - Methods to efficiently encode/decode Morton codes in/from 2D/3D coordinates.
- linalg - Short vector math library for C++.
- matplotlib-cpp - C++ plotting library built on the popular matplotlib.
- mathplot - Data visualization for simulations (C++20).
- matrix - A 2D matrix lib in C++20.
- NumCpp - C++ implementation of the Python Numpy library.
- random - Random for modern C++ with convenient API.
- spectra - A header-only C++ library for large scale eigenvalue problems.
- universal - Universal Number Arithmetic.
Memory Management
- ugc - Incremental garbage collector.
Mocking
- FakeIt - C++ mocking made easy.
- trompeloeil - C++14 mocking framework.
Networking
Optimization
- ensmallen - C++ library for numerical optimization.
Parsing
- lexertl14 - The Modular Lexical Analyser Generator.
- Matcheroni & Parseroni - C++20 libraries for doing pattern matching using Parsing Expression Grammars
- parsertl14 - The Modular Parser Generator.
Parsing Expression Grammars
- cpp-peglib - PEG (Parsing Expression Grammars) library.
- lug - A C++17 embedded domain specific language for expressing parsers as extended PEG.
- PEGTL - Parsing Expression Grammar Template Library.
Portability Definitions
- hedley - Move #ifdefs out of your code.
Reflection
- better-enums - C++ compile-time enum to string, iteration.
- magic_enum - Static reflection for enums.
- meta - Macro-free runtime reflection system.
- nameof - Nameof operator for modern C++.
- refl-cpp - Compile-time reflection library.
- visit_struct - A miniature library for struct-field reflection.
Regular Expression
- compile-time regular expressions - A Compile time regular expression matcher.
- SRELL - A ECMAScript (JavaScript) compatible regular expression engine.
Robotics
- manif - Small library for Lie theory.
Serialization
- alpaca - Serialization library written in C++17.