npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2025 – Pkg Stats / Ryan Hefner

utl.cxx

v1.2025.10

Published

Collection of self-contained header-only libraries for C++17; DmitriBogdanov (2023).

Downloads

43

Readme

UTL

UTL is a collection of small self-contained libraries with a major aim towards usage simplicity, by Dmitri Bogdanov. It was mostly created during my work in gamedev and mathematical research for the purpose of fast prototyping.

For the ease of integration, all libraries are distributed as individual headers, which can be found here.

The entire collection can also be downloaded as an amalgamated single-header.

CMake FetchContent() support is also provided.

Installation

Run:

$ npm i utl.cxx

And then include UTL.hpp as follows:

#include "node_modules/utl.cxx/single_include/UTL.hpp"

Design goals

Implementation of this library sets following design goals:

  • Easy integration. Adding libraries to the project should be as simple as including their corresponding headers.
  • Concise syntax. Library usage should require minimal boilerplate on user side.
  • Platform agnostic. Implementation should be based around the C++ standard. Platform-specific features might be provided as optional addons.
  • Non-intrusive. Every library should reside in its own namespace, use its own macro prefix and not introduce any invasive identifiers.

Quality goals include:

  • Modern C++ style. Usage of modern C++ idioms is heavily preferred.
  • Usage examples. Documentation should include practical usage examples for all major methods.
  • Test & benchmark coverage. All modules should have appropriate unit test coverage, performance-focused implementations should be benchmarked against alternative approaches.
  • Easy to build. All headers, tests, benchmarks and examples should build under the strictest warning levels and with minimal tooling.

Modules & documentation

| Module | Short description | | --------------------------------------------------- | -------------------------------------------------------------------- | | utl::assertion | Assert macro with more diagnostic info | | utl::bit | Bit-twiddling, enum bitflags | | utl::enum_reflect | Enum reflection | | utl::integral | Saturated math, safe integer casts, literals, rounding and etc. | | utl::json | JSON parsing, serializing & reflection | | utl::log | Logging library | | utl::math | Additional math functions | | utl::mvl | Generalized matrix & vector containers | | utl::parallel | Thread pool, async tasks, parallel for, parallel reductions and etc. | | utl::predef | Detection of architectures, compilers, platforms and etc. | | utl::profiler | Call graph & thread profiling | | utl::progressbar | Progress bars for CLI apps | | utl::random | PRNGs & random number generation | | utl::shell | Shell commands and temporary files | | utl::sleep | Precise sleep implementations | | utl::stre | Efficient implementations of common string utils | | utl::strong_type | Strong typedefs & RAII wrappers | | utl::struct_reflect | Struct reflection | | utl::table | Export ASCII, Markdown, LaTeX, Mathematica and CSV tables | | utl::time | Floating-point time, timers, stopwatches, datetime |

See also

Requirements

  • Requires C++17 support
  • Some headers require a compliant preprocessor flag (/Zc:preprocessor) when using MSVC, such headers specify it in the docs

Developer toolchain

While the library itself consists of isolated headers with no embedded dependencies, it was built and tested using a number of third-party tools and libraries, some of which are embedded in the repo.

| Tool | Version | Used for | | ------------------------------------------------------------------------------------------------------ | ------------ | ---------------------------------------------------------------------------------------------------------------------------------------------------------------- | | clang-format | v.14.0.0 | Automatic code formatting | | clangd | v.15.0.7 | Language server functionality | | CMake | v.3.2.11 | Build system, CTest testing facilities | | GCC | v.11.4.0 | ASan and UBSan test instrumentation | | cppcheck | v.2.7 | Static analysis | | GitHub Actions | latest | Multi-platform CI testing | | MkDocs | latest | Building the website | | Matplotlib | latest | Data visualization |

| Library | Version | License | Used for | Embedded in repo | | ------------------------------------------------------------- | ------------------ | ------------------------------------------------------------------------------ | -------------------------- | ---------------- | | doctest | v.2.4.11 | MIT | Unit testing | ✔ | | nanobench | v.4.3.11 | MIT | Benchmarking | ✔ | | nlohmann json | v.3.11.3 | MIT | Benchmark comparison | ✔ | | PicoJSON | v.1.3.0 | BSD-2 | Benchmark comparison | ✔ | | RapidJSON | v.1.1.0 | MIT, BSD, JSON | Benchmark comparison | ✔ | | JSONTestSuite | commit 1ef36fa | MIT | JSON Validation test suite | ✔ | | BS::thread_pool | v.5.0.0 | MIT | Benchmark comparison | ✔ | | progschj/ThreadPool | commit 9a42ec1 | zlib | Benchmark comparison | ✔ |

Roadmap

  • Create packages for Conan and vcpkg
  • Possibly provide PCH targets for internal and external use
  • Set up better test coverage statistics
  • utl::mvl v1.0.0 release, involves a large scale refactor and several bug fixes
  • utl::random v3.0.0 release, includes CBPRNGs and fixed-entropy seeding sequence

License

This project is licensed under the MIT License - see the LICENSE.md for details.

ORG