Stroika v2.1

Stroika is a modern, portable, thread-savvy, C++ application framework. It makes writing high performance C++ applications easier by providing safe, flexible, modular building blocks which are easily combined.

Stroika works with the Standard C++ Library (STL), layered on top, and prodivdes simpler to use (higher level) classes, with more safety checking guarantees, and wider domain of applicability.

Stylistically, Stroika differs from the Standard C++ Library, boost, and many other C++ libraries, in that it (relatively) embraces object oriented abstractions over template-based genericity (see The abstraction of type hierarchies is better suited to how people reason, and templates and concepts - while powerful - can be fiddly and obscure programmer intent. Also, Stroika emphasizes separation of interface from implementation: carefully documenting the interface in the headers, and separating the implementation to other files.

Stroika is comprised of 2 layers, the Foundation, which provides directly usable classes, and a series of domain specific Frameworks which provide a rich collection of code in different domains.

The Frameworks depend on the Foundation; Foundation modules frequently depend on each other; but Foundation layer code contains no dependencies outside of the Foundation (except on the Standard C++ Library, and various ThirdPartyComponent libraries optionally included or referenced, like openssl).


  • Nearly all public interfaces and methods are well documented; implementations are clear and well commented.
  • Thoroughly integrated assertions (including thread-safety assertions) help document and enforce usage patterns (without performance cost in production builds).
  • Each release is tested with Valgrind (helgrind, memcheck), Google Sanitizers (TSAN, UBSAN, and ASAN), Github CodeQL, and a variety of platforms and compilers, as well as a large body of regression tests (including most documentation examples) to help assure library correctness.
  • Sample applications help show common use cases (like building a web server into your app to deliver web-service content and APIs).
  • Quick start using pre-built Docker containers (for Windows, and Linux).

Stroika Foundation provides

  • Cache classes (a variety of different caching/memoizing strategies directly supported).
  • Characters classes (simpler to use - especially with UNICODE - Strings class, with functional style mappings - to ToString\() for most Stroika objects).
  • Container classes (Collection, Queue, Mapping, Sequence, Set, and much more, each with rich variety of backend implementations).
  • DataExchange (VariantValue, rich collection of data format serializer/deserializers - like JSON, object to/from serialization mappings, and much more).
  • Execution pattern classes (external process runner, synchronization patterns, blocking queue, thread pools, and much more).
  • Networking support (high level socket wrappers, Web client fetching).
  • Simple, elegant streams library, with adapters for cryptography, compression, text transforms, etc.
  • Seamless integration (object oriented wrappers respecting Stroika's safety and adapter rules) with many important libraries , including: boost, libcurl, lzma sdk, openssl, sqlite, xerces, zlib (e.g. wrap a compression stream - using for example zlib).
  • and more...

Stroika Frameworks provides


Stroika's biggest strength is also its biggest weakness:

  • There are smaller, more focused libraries that do many of the things Stroika does. Being single purpose is a form of modularity (good) and allows for easy adoption/integration. But libraries that do anything of any complexity must create their own infrastructure for a wide variety of building block problems (e.g. Xerces has its own stream classes, pistache date classes, etc). And if you have two such libraries, they are unlikely to interact seemlessly, and their support classes (for stuff like date and streams above) certainly won't.
  • Stroika takes the approach of building its functionality in layers, leveraging other components (e.g. Streams and Containers) in lower layers (as well as standardized C++ libraries). This slightly increases the cost of adopting Stroika for something small (because pulling one thing in pulls many things in), but then pays dividends as you use it to accomplish a second or third task.


  • Stroika v3 development has started, and requires C++20 or later.

  • Stroika v2.1 is stable (in maintainance), and requires C++17 or later. Version 2.1 also conditionally supports many C++20 features (such as three-way-comparison etc, if available).

  • Stroika v2.0 is very stable, and requires C++14 or later. Stroika v2.0 is used to power a wide variety of open source and commercial applications.

Compilers / Platforms regularly tested/supported

  • Linux, MacOS, Windows

  • Stroika v2.1

    Tested on x86, arm (+m1), gcc8 thru gcc11, clang 6 thru clang 12, Visual Studio.Net 2017, Visual Studio.Net 2019 and Visual Studio.Net 2022, XCode 13.

  • Stroika v2.0

    Tested on x86, arm, gcc5 thru gcc8, clang 3 thru clang 6, XCode 8 thru 9.

CI System Integration

  • Github Actions


    Random Features

    • Vanilla make based builds
    • Portable API (targets windows/mac/unix), and multiple processors


    For more details on individual release changes, see:

    "Getting Started", build instructions, design and other documentation:


    Looking through the samples is also a good way to start:


    Please report bugs/issues at:

    Last Updated: 2022-05-07