mattiasgustavsson/libs
FreeSingle-file public domain libraries for C/C++
FreeFree tier
About mattiasgustavsson/libs
A collection of single-file, public domain (or MIT dual-licensed) libraries for C and C++ programming. The repository provides a wide range of utilities including a cross-platform app framework (app.h), file system abstraction (assetsys.h), HTTP client (http.h), hash table (hashtable.h), threading (thread.h), vector/matrix math (vecmath.h), audio mixing (audiosys.h), image processing (img.h), and more. It also includes work-in-progress libraries and repackaged versions of popular third-party libraries such as libsamplerate, LZMA, and hoedown (Markdown to HTML). The libraries are designed for easy integration into projects by being single-file headers.
Key Features
Cross-platform graphical app framework (app.h)
HTTP protocol implementation (http.h, no HTTPS)
Cache-efficient hash table (hashtable.h)
Cross-platform threading (thread.h)
Vector/matrix math library (vecmath.h)
Sound mixer library (audiosys.h)
Image processing functions (img.h)
Including repackaged libraries like LZMA, libsamplerate, hoedown
Pros & Cons
Pros
- Single-file headers are easy to integrate into any project
- Permissive public domain / MIT license allows unrestricted use
- Broad coverage of common programming needs
- Includes both original and repackaged well-known libraries
- Work-in-progress section provides early access to new libraries
Cons
- No HTTPS support in HTTP library (http.h)
- Some libraries in work-in-progress section are incomplete or lack documentation
- Repackaged libraries may not be the latest versions
- Maintained by a single developer, updates may be infrequent
- Limited Windows-specific API support
Best For
Developing cross-platform graphical applicationsGame development with audio, input, and file managementImplementing HTTP networking in C/C++ projectsImage processing and palette manipulationPerformance-critical applications requiring efficient data structures