What C++ library do you wish existed but hasn’t been created yet?

This page summarizes the projects mentioned and recommended in the original post on /r/cpp

Our great sponsors
  • WorkOS - The modern identity platform for B2B SaaS
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • SaaSHub - Software Alternatives and Reviews
  • cpr

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

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

  • mysql

    MySQL C++ client based on Boost.Asio (by boostorg)

  • WorkOS

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

    WorkOS logo
  • Magic Enum C++

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

  • I'm not sure this is quite what you're asking for, but this library has been super helpful to me in the past : https://github.com/Neargye/magic_enum

  • frozen

    a header-only, constexpr alternative to gperf for C++14 users

  • I use the Frozen library for that. Since the conversions should be known at compile time you can make constexpr hash tables for lookups.

  • cheap

    C++ HTML Element Apparator

  • https://github.com/s9w/cheap is pretty basic but I had the same problem once

  • http_parser

    http utils using STL only

  • i'v tried to write http parser (it can only parse, socket and so on is external). tere is no enough time to test it well, but you can try. it's header only and uses only std.

  • sqlpp11

    A type safe SQL template library for C++

  • sqlpp11 actually helps in this area (which imo is the most error prone area of using a database) and offers compile time query checking

  • InfluxDB

    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.

    InfluxDB logo
  • simdutf

    Unicode routines (UTF8, UTF16, UTF32) and Base64: billions of characters per second using SSE2, AVX2, NEON, AVX-512, RISC-V Vector Extension. Part of Node.js and Bun.

  • utf8 normalization, stemming, case insensitive comparison. https://github.com/unicode-rs example for rust What are options for C++? 1. translate to utf16 ( https://github.com/simdutf/simdutf ) and use icu -- slow 2. boost text, https://github.com/tzlaine/text , also slow (because the author doesn't care or couldn't care), we made a lot of patches to make our library faster than lucene, but still this part is slower than icu for utf16 (icu for utf16 also very slow...)

  • text

    What a c++ standard Unicode library might look like. (by tzlaine)

  • utf8 normalization, stemming, case insensitive comparison. https://github.com/unicode-rs example for rust What are options for C++? 1. translate to utf16 ( https://github.com/simdutf/simdutf ) and use icu -- slow 2. boost text, https://github.com/tzlaine/text , also slow (because the author doesn't care or couldn't care), we made a lot of patches to make our library faster than lucene, but still this part is slower than icu for utf16 (icu for utf16 also very slow...)

  • json

    JSON for Modern C++

  • https://github.com/nlohmann/json works well for me

  • binary_io

    A binary i/o library for C++, without the agonizing pain

  • I wrote a modern iostreams library a while back that was born out of these exact same frustrations: https://github.com/Ryan-rsm-McKenzie/binary_io

  • nativejson-benchmark

    C/C++ JSON parser/generator benchmark

  • hexago

    A Screensaver that draws shrinking hexagons of random size and colour (by saxbophone)

  • SFML supports instantiating a rendering context from an existing OS-native window handle. I use said technique myself to support my screensaver rendering to the mini preview in the screensaver settings screen on macOS and Windows: https://github.com/saxbophone/hexago

  • colrcv

    C Library for converting Colours between different Colour Models

  • I wrote a basic C library https://github.com/saxbophone/colrcv for it back in the day, but I am not a colour model expert and it doesn't support profiles, only conversion between models in D65. I wrote it because I looked at the profile-aware system for doing so and proceeded to get sad!

  • papers

    ISO/IEC JTC1 SC22 WG21 paper scheduling and management (by cplusplus)

  • Wt

    Wt, C++ Web Toolkit

  • Take a look at Wt Webtoolkit. It can do exactly this (and a lot more) https://www.webtoolkit.eu/wt

  • Better Enums

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

  • IIRC I then switched to another library doing the same stuff: https://github.com/aantron/better-enums It is not as magical, as it uses a special macro to define the enum, using dedicated syntax. So it only works for enums you yourself define. However, it did work a lot better for me with enums with huge values.

  • SaaSHub

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

    SaaSHub logo
NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts