A collection of single-file public domain libraries for C/C++ covering graphics, audio, game development, and utilities.
stb is a collection of single-file, public domain libraries for C and C++ that provide essential functionality for graphics, audio, game development, and utilities. It solves the problem of complex library integration by offering easy-to-drop-in headers with minimal dependencies and permissive licensing.
C and C++ developers, especially those working on graphics, audio, game development, or embedded systems who need lightweight, easy-to-integrate libraries without licensing hassles.
Developers choose stb for its simplicity—single-file headers that are trivial to integrate, public domain/MIT licensing that allows unrestricted use, and a broad set of functionalities that reduce the need for multiple external dependencies.
stb single-file public domain libraries for C/C++
Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.
Single-file headers allow dropping into projects with just a macro definition, eliminating complex build systems or dependencies.
Public domain or MIT license means no attribution required and free relicensing, minimizing legal overhead for commercial use.
Covers essential areas like image loading (JPG, PNG), font rasterization, audio decoding, and data structures, reducing need for multiple external libs.
Designed to work with minimal external libraries, simplifying deployment especially on platforms like Windows without standard library directories.
Security fixes can be delayed as bugs are discussed publicly in GitHub Issues, posing a risk for projects where vulnerabilities must be patched quickly.
Libraries like stb_image lack runtime SIMD detection on GCC, potentially underperforming compared to optimized alternatives.
Admitted to be less featureful, slower, or using more memory than specialized libraries, making them unsuitable for advanced needs.