C++ Library

Open-source C++ projects categorized as Library

Top 23 C++ Library Projects

  • imgui

    Dear ImGui: Bloat-free Graphical User interface for C++ with minimal dependencies

    Project mention: Immediate Mode GUI Programming | news.ycombinator.com | 2024-01-15

    Immediate mode is a fuzzy concept, as witnessed by this writeup: https://github.com/ocornut/imgui/wiki/About-the-IMGUI-paradi...

  • Apache Thrift

    Apache Thrift

  • JetBrains Dev Survey

    What’s up with the C++ ecosystem in 2023? JetBrains Developer Ecosystem Survey 2023 has given us many interesting insights. The Embedded (37%) and Games (39%) industries are already working with C++20, developers are incorporating static analysis in their CI, and ChatGPT usage among coders is flourishing. Read on for more!

  • tracy

    Frame profiler

    Project mention: Google/orbit – C/C++ Performance Profiler | news.ycombinator.com | 2024-02-11

    i don't really think there is _anything_ that comes even close to tracy https://github.com/wolfpld/tracy.

    on top of this, given google's penchant for dumping projects aka abandonware, this would be an easy pass.

  • librealsense

    Intel® RealSense™ SDK

    Project mention: 3D visualization of geospatial data using Unity | /r/Unity3D | 2023-05-25
  • td

    Cross-platform library for building Telegram clients

    Project mention: India blocks 14 mobile apps used by terrorists in Pakistan (includes Briar, Element, Threema etc.) | /r/privacy | 2023-05-01
  • cpr

    C++ Requests: Curl for People, a spiritual port of Python Requests.

    Project mention: What C++ library do you wish existed but hasn’t been created yet? | /r/cpp | 2023-07-08

    This one might fit the bill https://github.com/libcpr/cpr

  • libtorrent

    an efficient feature complete C++ bittorrent implementation

    Project mention: Why is QBitTorrent so worshipped? Genuinely asking from someone who has used uTorrent for a few years. | /r/torrents | 2023-12-06

    I had a longer answer, but qBittorrent is great and has a great webui/server model if you're running a separate linux box to run it in. If you're on windows, grab 4.3.9 or 4.6.2 with libtorrent 1.x. RSS stuff is nice too. Libtorrent 2.x has issues on Windows currently (read these threads if you want to know more - https://github.com/arvidn/libtorrent/pull/7013 - https://github.com/arvidn/libtorrent/issues/6667#issuecomment-1804035311 ). Please don't bug Arvid about it though. Libtorrent 2.x gets us Bittorrent v2, which is a good thing.

  • WorkOS

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

  • CGal

    The public CGAL repository, see the README below

  • Clipboard

    😎🏖️🐬 Your new, 𝙧𝙞𝙙𝙤𝙣𝙠𝙪𝙡𝙞𝙘𝙞𝙤𝙪𝙨𝙡𝙮 smart clipboard manager

    Project mention: hotel management system project in c++ 👍 | /r/programmingcirclejerk | 2023-07-01
  • Arduino-IRremote

    Infrared remote library for Arduino: send and receive infrared signals with multiple protocols

    Project mention: Connect to wand? | /r/MagiQuest | 2023-09-10

    However, there are plenty of libraries at this point which can handle the signal to varying degrees (some cant handle cast type but many dont care about that feature, including the game itself). I believe the most up to date currently is: https://github.com/Arduino-IRremote/Arduino-IRremote

  • harfbuzz

    HarfBuzz text shaping engine

    Project mention: Libsodium: A modern, portable, easy to use crypto library | news.ycombinator.com | 2023-09-14

    For C/C++ projects that use meson as the build system, there is an excellent way to manage dependencies:



    meson will download and build the libraries automatically and give you a variable which you pass as a regular dependency into the built target:




    Or, if you're using proper operating systems, they're managed by the usual package manager, just like everything else.

  • oneDNN

    oneAPI Deep Neural Network Library (oneDNN)

  • rttr

    C++ Reflection Library

  • indicators

    Activity Indicators for Modern C++

  • argparse

    Argument Parser for Modern C++

    Project mention: Command line interface library | /r/Cplusplus | 2023-03-24

    The most feature-rich C++ CLI library is CLI11. Other popular choices include Boost.ProgramOptions, argparse, cxxopts and others.

  • contour

    Modern C++ Terminal Emulator (by christianparpart)

    Project mention: Neovide – a simple, no-nonsense, cross-platform GUI for Neovim | news.ycombinator.com | 2024-01-31

    Another problem is that the cursor moves while the screen is buffer is being rendered. The location is only really known once the cursor settles in the same place for some time, which is unacceptable in terms of latency.

    The synchronized output extension could be used to do this, though. https://github.com/contour-terminal/contour/blob/master/docs...

  • plog

    Portable, simple and extensible C++ logging library

    Project mention: Fully Permissive License C++ Logger For Embedded System | /r/embedded | 2023-06-28
  • 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. :)

  • etl

    Embedded Template Library

    Project mention: Modern C++ Programming Course | news.ycombinator.com | 2023-11-28

    If you can't use the STL because of exceptions: https://www.etlcpp.com/

  • tabulate

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

  • fann

    Official github repository for Fast Artificial Neural Network Library (FANN)

  • casadi

    CasADi is a symbolic framework for numeric optimization implementing automatic differentiation in forward and reverse modes on sparse matrix-valued computational graphs. It supports self-contained C-code generation and interfaces state-of-the-art codes such as SUNDIALS, IPOPT etc. It can be used from C++, Python or Matlab/Octave.

    Project mention: pyomo VS casadi - a user suggested alternative | libhunt.com/r/pyomo | 2023-09-05

    Interface for several solvers and integrators.

  • taco

    The Tensor Algebra Compiler (taco) computes sparse tensor expressions on CPUs and GPUs

    Project mention: The Distributed Tensor Algebra Compiler (2022) | news.ycombinator.com | 2023-06-15

    I agree! Much of this work was done as part of the overarching TACO project (https://github.com/tensor-compiler/taco), in an attempt to distribute sparse tensor computations (https://rohany.github.io/publications/sc2022-spdistal.pdf). MLIR recently (~mid 2022) began implementing the ideas from TACO into a "sparse tensor" dialect, so perhaps some of these ideas could make it into there. I'm working with MLIR these days, and if I could re-do the project now I would probably utilize and targetb the MLIR linalg infrastructure!

  • LearnThisRepo.com

    Learn 300+ open source libraries for free using AI. LearnThisRepo lets you learn 300+ open source repos including Postgres, Langchain, VS Code, and more by chatting with them using AI!

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-02-11.

C++ Library related posts


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

Project Stars
1 imgui 54,149
2 Apache Thrift 10,065
3 tracy 7,243
4 librealsense 7,190
5 td 6,310
6 cpr 6,030
7 libtorrent 4,929
8 CGal 4,411
9 Clipboard 4,241
10 Arduino-IRremote 4,215
11 harfbuzz 3,443
12 oneDNN 3,367
13 rttr 2,841
14 indicators 2,747
15 argparse 2,230
16 contour 2,123
17 plog 2,033
18 FunctionalPlus 1,952
19 etl 1,891
20 tabulate 1,733
21 fann 1,529
22 casadi 1,478
23 taco 1,178
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.